Skip to content

Conversation

@dra27
Copy link
Owner

@dra27 dra27 commented Oct 2, 2025

Parking the HEAD commit until the updates to Unix.create_process etc. are done to support an (int * file_descr) list optional argument specifying additional fds to be passed in addition to 0, 1 and 2 (requires the updates to Unix.create_process for correct operation of fds on Windows as well)

@dra27
Copy link
Owner Author

dra27 commented Oct 2, 2025

(first two commits from #240)

dra27 added 3 commits October 2, 2025 11:53
caml_unix_file_descr_of_os, caml_unix_file_descr_of_fd and
caml_unix_fd_of_file_descr allow C code to interoperate portably with
the Unix library's file_descr values.
Allows printing/logging of Unix.file_descr values without providing full
introspection from OCaml-code (for which the C API should be used).
Unix.fdopen allows a program to open additional file streams beyond the
standard 0, 1, and 2 already exposed in stdin, stdout and stderr.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants