File libsrc/lock_file.c


Included Files


Global Function lock_file()

int lock_file ( const char* filename )
Prototyped in: mplib1/lock_file.h
Calls: gen_pid_str() libsrc/pidstr.c
  lock_reg() libsrc/lock_file.c
  close(), fcntl(), ftruncate(), getpid(), open(), strlen(), write()

Global Function lock_reg()

int lock_reg ( int fd, int cmd, int type, off_t offset, int whence, off_t len )
Prototyped in: mplib1/lock_file.h
Calls: fcntl()
Called by: lock_file() libsrc/lock_file.c