Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include <unistd.h>
  2. #include <fcntl.h>
  3.  
  4. int
  5. fcntl(int fd, int cmd, ...)
  6. {
  7.   switch (cmd)
  8.   {
  9.   case F_DUPFD:
  10.     return dup(fd);
  11.   case F_GETFD:
  12.   case F_SETFD:
  13.   case F_GETFL:
  14.   case F_SETFL:
  15.     return 0;
  16.   case F_GETLK:
  17.   case F_SETLK:
  18.   case F_SETLKW:
  19.     return -1;
  20.   }
  21.   return -1;
  22. }
  23.