* manual: add dup3
@ 2024-05-10 21:35 DJ Delorie
2024-05-11 9:23 ` Florian Weimer
0 siblings, 1 reply; 3+ messages in thread
From: DJ Delorie @ 2024-05-10 21:35 UTC (permalink / raw)
To: libc-alpha
diff --git a/manual/llio.texi b/manual/llio.texi
index 2086e04afd..675d30ba2b 100644
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -3520,6 +3520,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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: manual: add dup3
2024-05-10 21:35 manual: add dup3 DJ Delorie
@ 2024-05-11 9:23 ` Florian Weimer
2024-05-13 21:42 ` DJ Delorie
0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2024-05-11 9:23 UTC (permalink / raw)
To: DJ Delorie; +Cc: libc-alpha
* DJ Delorie:
> diff --git a/manual/llio.texi b/manual/llio.texi
> index 2086e04afd..675d30ba2b 100644
> --- a/manual/llio.texi
> +++ b/manual/llio.texi
> @@ -3520,6 +3520,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{}}
I think you can drop the @prelim{} if you want.
> +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
Looks good.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks,
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: manual: add dup3
2024-05-11 9:23 ` Florian Weimer
@ 2024-05-13 21:42 ` DJ Delorie
0 siblings, 0 replies; 3+ messages in thread
From: DJ Delorie @ 2024-05-13 21:42 UTC (permalink / raw)
To: Florian Weimer; +Cc: libc-alpha
Florian Weimer <fweimer@redhat.com> writes:
> Looks good.
>
> Reviewed-by: Florian Weimer <fweimer@redhat.com>
Thanks! Pushed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-13 21:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 21:35 manual: add dup3 DJ Delorie
2024-05-11 9:23 ` Florian Weimer
2024-05-13 21:42 ` DJ Delorie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).