7 PUBLIC
int fcntl(int fd
, int cmd
, ...)
9 PUBLIC
int fcntl(fd
, cmd
)
19 /* Set up for the sensible case where there is no variable parameter. This
20 * covers F_GETFD, F_GETFL and invalid commands.
25 /* Adjust for the stupid cases. */
30 m
.m1_i3
= va_arg(argp
, int);
36 m
.m1_p1
= (char *) va_arg(argp
, struct flock
*);
40 /* Clean up and make the system call. */
44 return(_syscall(FS
, FCNTL
, &m
));