[libc-commits] [libc] [libc] Change fcntl cmd when only fcntl64 is available (PR #99675)

via libc-commits libc-commits at lists.llvm.org
Sat Jul 20 07:28:41 PDT 2024


================
@@ -86,17 +86,37 @@ int fcntl(int fd, int cmd, void *arg) {
     libc_errno = -ret;
     return -1;
   }
+  case F_GETLK: {
----------------
lntue wrote:

Look like we can just put all these 3 cases inside `#ifdef SYS_fcntl64` and remove the `default` case.

https://github.com/llvm/llvm-project/pull/99675


More information about the libc-commits mailing list