]> sourceware.org Git - glibc.git/commitdiff
manual: add dup3
authorDJ Delorie <dj@redhat.com>
Fri, 10 May 2024 21:34:29 +0000 (17:34 -0400)
committerDJ Delorie <dj@redhat.com>
Mon, 13 May 2024 21:38:47 +0000 (17:38 -0400)
Reviewed-by: Florian Weimer <fweimer@redhat.com>
manual/llio.texi

index fae49d14332db6756e2c35bd3c6b284c8e75fb75..fe1807a84996f118ababddc04351189ce497f9b0 100644 (file)
@@ -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
This page took 0.044117 seconds and 5 git commands to generate.