]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/cancelable/fcntl-base.c
xnu-4903.221.2.tar.gz
[apple/xnu.git] / libsyscall / wrappers / cancelable / fcntl-base.c
index 7bbded99e9a99d76670c697ff8d2501f832d0a13..fc98ea7aedc39b370e7b5debe6d29ca006cee332 100644 (file)
@@ -28,8 +28,6 @@ int __FCNTL(int, int, void *);
  * Stub function to account for the differences in the size of the third
  * argument when int and void * are different sizes. Also add pthread
  * cancelability.
- *
- * This is for LP64 only.
  */
 int
 fcntl(int fd, int cmd, ...)
@@ -40,10 +38,17 @@ fcntl(int fd, int cmd, ...)
        va_start(ap, cmd);
        switch(cmd) {
         case F_GETLK:
+        case F_GETLKPID:
         case F_SETLK:
         case F_SETLKW:
         case F_SETLKWTIMEOUT:
+       case F_OFD_GETLK:
+       case F_OFD_GETLKPID:
+       case F_OFD_SETLK:
+       case F_OFD_SETLKW:
+       case F_OFD_SETLKWTIMEOUT:
         case F_PREALLOCATE:
+        case F_PUNCHHOLE:
         case F_SETSIZE:
         case F_RDADVISE:
         case F_LOG2PHYS:
@@ -56,8 +61,12 @@ fcntl(int fd, int cmd, ...)
         case F_UNLINKFROM:
         case F_ADDSIGS:
         case F_ADDFILESIGS:
+        case F_ADDFILESIGS_FOR_DYLD_SIM:
+        case F_ADDFILESIGS_RETURN:
         case F_FINDSIGS:
         case F_TRANSCODEKEY:
+        case F_TRIM_ACTIVE_FILE:
+        case F_CHECK_LV:
                arg = va_arg(ap, void *);
                break;
         default: