home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntlib44.zoo / mntlib / lockf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-01  |  276 b   |  19 lines

  1. /*
  2.  * lockf(3) and flock(2) emulation for MiNT by Dave Gymer
  3.  * Placed in the public domain; do with me as you will!
  4.  */
  5.  
  6. #include <unistd.h>
  7. #include <fcntl.h>
  8. #include "lib.h"
  9.  
  10. int
  11. lockf(fd, cmd, size)
  12.     int fd;
  13.     int cmd;
  14.     long size;
  15. {
  16.     return _do_lock(fd, cmd, size, 1);
  17. }
  18.  
  19.