[libc-commits] [libc] [libc] Implement close_range in unistd (PR #236913)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Mon Nov 2 04:52:35 PST 2026
================
@@ -185,6 +189,14 @@ functions:
return_type: int
arguments:
- type: int
+ - name: close_range
+ standards:
+ - posix
+ return_type: int
+ arguments:
+ - type: unsigned int
+ - type: unsigned int
+ - type: unsigned int
----------------
labath wrote:
This is interesting. The kernel does take the flags argument as an unsigned int, but all the wrappers take this as an int. I'm not sure what's the reason for that (it might be interesting/educating to do some research there), but I'd stick with `int` for compatibility.
https://github.com/llvm/llvm-project/pull/236913
More information about the libc-commits
mailing list