Date: Thu, 28 Dec 2000 22:50:43 +0000 From: "Richard Dawe" Sender: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp-workers AT delorie DOT com X-Mailer: Emacs 21.0.93 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 Subject: Fixes for O_NOINHERIT documentation in fcntl(), open() Message-Id: Reply-To: djgpp-workers AT delorie DOT com 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