MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ff_fcntl

Function ff_fcntl

lib/ff_syscall_wrapper.c:1331–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1329}
1330
1331int
1332ff_fcntl(int fd, int cmd, ...)
1333{
1334 int rc;
1335 va_list ap;
1336 uintptr_t argp;
1337
1338 va_start(ap, cmd);
1339
1340 argp = va_arg(ap, uintptr_t);
1341 va_end(ap);
1342
1343 cmd = linux2freebsd_fcntl(cmd, &argp);
1344
1345 if ((rc = kern_fcntl(curthread, fd, cmd, argp)))
1346 goto kern_fail;
1347 rc = freebsd2linux_fcntl(cmd, curthread->td_retval[0]);
1348 return (rc);
1349kern_fail:
1350 ff_os_errno(rc);
1351 return (-1);
1352}
1353
1354int
1355ff_accept(int s, struct linux_sockaddr * addr,

Callers 4

fcntlFunction · 0.85
ff_sys_fcntlFunction · 0.85
ff_hook_fcntlFunction · 0.85
InitKqueueMethod · 0.85

Calls 4

linux2freebsd_fcntlFunction · 0.85
kern_fcntlFunction · 0.85
freebsd2linux_fcntlFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected