File sys/unix/unixunix.c


Included Files


Preprocessor definitions

#define MAXPATHLEN 1024

Local Variables

buf
static struct stat buf
Used in: veryold()

hbuf
static struct stat hbuf
Used in: gethdate()


Global Function child()

int child ( int wt )
Prototyped in: include/extern.h
Calls: pline()src/pline.c
  chdir(), fork(), getenv(), getgid(), getuid(), linux_mapoff(), linux_mapon(), setgid(), setuid(), signal(), wait()
Called by: dosh()sys/unix/unixunix.c
References Functions: done1()src/end.c
References Variables: flagssrc/decl.c
  windowprocssrc/windows.c

Global Function dosh()

int dosh ( void )
Prototyped in: include/extern.h
Calls: child()sys/unix/unixunix.c
  execl(), exit(), getenv()
Used in:  src/cmd.c
References Variables: windowprocssrc/windows.c

Global Function gethdate()

void gethdate ( const char* name )
Prototyped in: include/extern.h
Calls: error(), getenv(), stat(), strchr(), strlen(), strncpy(), strrchr()
Called by: main()sys/unix/unixmain.c
References Variables: hbufsys/unix/unixunix.c

Global Function getlock()

void getlock ( void )
Prototyped in: include/extern.h
Calls: eraseoldlocks()sys/unix/unixunix.c
  fqname()src/files.c
  lock_file()src/files.c
  regularize()sys/unix/unixunix.c
  set_levelfile_name()src/files.c
  unlock_file()src/files.c
  veryold()sys/unix/unixunix.c
  __errno_location(), close(), creat(), error(), fflush(), getchar(), isatty(), open(), perror(), printf(), putchar(), strcmp(), write()
Called by: main()sys/unix/unixmain.c
References Variables: hackpidsrc/decl.c
  iflagssrc/decl.c
  locksrc/files.c
  locknumsrc/decl.c
  windowprocssrc/windows.c
  yncharssrc/decl.c

Global Function regularize()

void regularize ( char* s )
Prototyped in: include/extern.h
Calls: strchr(), strlen()
Called by: getlock()sys/unix/unixunix.c
  set_savefile_name()src/files.c

Local Function eraseoldlocks()

static int eraseoldlocks ( void )
Calls: fqname()src/files.c
  set_levelfile_name()src/files.c
  unlink()
Called by: getlock()sys/unix/unixunix.c
References Variables: locksrc/files.c

Local Function veryold()

static int veryold ( int fd )
Calls: close(), fstat(), read(), time()
Called by: getlock()sys/unix/unixunix.c
References Variables: bufsys/unix/unixunix.c