diff options
author | DJ Delorie <dj@redhat.com> | 2024-05-10 17:34:29 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2024-05-13 17:38:47 -0400 |
commit | a07e000e82cb71238259e674529c37c12dc7d423 (patch) | |
tree | 80374e7c100021d4d4983aa1d66a33c10e030280 /manual | |
parent | e3c375eb4f33e265b0cb186435c0b540ed27d2da (diff) | |
download | glibc-a07e000e82cb71238259e674529c37c12dc7d423.zip glibc-a07e000e82cb71238259e674529c37c12dc7d423.tar.gz glibc-a07e000e82cb71238259e674529c37c12dc7d423.tar.bz2 |
manual: add dup3
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r-- | manual/llio.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manual/llio.texi b/manual/llio.texi index fae49d1..fe1807a 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -3415,6 +3415,14 @@ middle of calling @code{dup2} at which @var{new} is closed and not yet a duplicate of @var{old}. @end deftypefun +@deftypefun int dup3 (int @var{old}, int @var{new}, int @var{flags}) +@standards{Linux, unistd.h} +@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} +This function is the same as @code{dup2} but creates the new +descriptor as if it had been opened with flags @var{flags}. The only +allowed flag is @code{O_CLOEXEC}. +@end deftypefun + @deftypevr Macro int F_DUPFD @standards{POSIX.1, fcntl.h} This macro is used as the @var{command} argument to @code{fcntl}, to |