Mail Archives: djgpp-workers/2000/12/28/17:56:35
Hello.
Please find below a patch that adds documentation of O_NOINHERIT to
the open() info page, plus fixes a typo (I think) in the fcntl() page.
Bye, Rich =]
*** src/libc/posix/fcntl/fcntl.txh.orig Thu Dec 28 22:47:38 2000
--- src/libc/posix/fcntl/fcntl.txh Thu Dec 28 22:46:12 2000
***************
*** 35,41 ****
those handles are inherited, and @code{FD_CLOEXEC} for handles 18 and
above.
! The no-inherit bit can be set when the file is open, by using the
@code{O_NOINHERIT} in the open flags; see @ref{open}.
@item F_SETFD
--- 35,41 ----
those handles are inherited, and @code{FD_CLOEXEC} for handles 18 and
above.
! The no-inherit bit can be set when the file is opened, by using the
@code{O_NOINHERIT} in the open flags; see @ref{open}.
@item F_SETFD
*** src/libc/posix/fcntl/open.txh.orig Thu Dec 28 22:43:34 2000
--- src/libc/posix/fcntl/open.txh Thu Dec 28 22:47:08 2000
***************
*** 62,67 ****
--- 62,73 ----
function (@pxref{__djgpp_set_ctrl_c}) if you want @kbd{Ctrl-C} to
generate interrupts while console is read in binary mode.
+ @item O_NOINHERIT
+
+ When set, child processes will not inherit this file handle. This is also
+ known as close-on-exec - see @code{fcntl}, @ref{fcntl}. This option is
+ DOS/Windows-specific.
+
@item O_NOFOLLOW
@code{open} will fail with @code{errno} set to @code{ELOOP}, if the last path
- Raw text -