ocaml-uring icon indicating copy to clipboard operation
ocaml-uring copied to clipboard

Handle `AT_FDCWD` in C to eliminate `Obj.magic`

Open dra27 opened this issue 2 months ago • 9 comments

Eliminates both the need to probe AT_FDCWD and the need to use Obj.magic in the library to pass it to the C stubs.

If my understanding of the calling convention for optional arguments is correct, even with the default in the code and a non-opaque interface, the option is still allocated at call-sites, so I don't think the allocation profile changes.

dra27 avatar Oct 02 '25 15:10 dra27