Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
#include 
2
#include 
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
}