sync with OpenBSD -current

This commit is contained in:
purplerain 2024-07-18 16:18:12 +00:00
parent 3110dbb17d
commit d1109c2ac1
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
30 changed files with 1016 additions and 235 deletions

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: getrusage.2,v 1.17 2015/02/28 21:51:57 bentley Exp $
.\" $OpenBSD: getrusage.2,v 1.18 2024/07/17 13:29:05 claudio Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93
.\"
.Dd $Mdocdate: February 28 2015 $
.Dd $Mdocdate: July 17 2024 $
.Dt GETRUSAGE 2
.Os
.Sh NAME
@ -48,7 +48,10 @@ which can be one of the following:
.It Dv RUSAGE_SELF
Resources used by the current process.
.It Dv RUSAGE_CHILDREN
Resources used by all the terminated children of the current process.
Resources used by all the terminated children of the current process which
were waited upon.
If the child is never waited for, the resource information for the child
process is discarded.
.It Dv RUSAGE_THREAD
Resources used by the current thread.
.El
@ -186,4 +189,4 @@ flag has been available since
.Ox 4.8 .
.Sh BUGS
There is no way to obtain information about a child process
that has not yet terminated.
that has not yet terminated or has not been waited for by the parent.

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: link.2,v 1.30 2024/03/25 17:57:07 guenther Exp $
.\" $OpenBSD: link.2,v 1.31 2024/07/18 15:38:57 millert Exp $
.\" $NetBSD: link.2,v 1.7 1995/02/27 12:34:01 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@ -30,7 +30,7 @@
.\"
.\" @(#)link.2 8.3 (Berkeley) 1/12/94
.\"
.Dd $Mdocdate: March 25 2024 $
.Dd $Mdocdate: July 18 2024 $
.Dt LINK 2
.Os
.Sh NAME
@ -65,15 +65,13 @@ is removed, the file
.Fa name2
is not deleted and the link count of the underlying object is decremented.
.Pp
For the hard link to succeed,
.Fa name1
must exist for the hard link to succeed and both
must exist and not be a directory, and both
.Fa name1
and
.Fa name2
must be in the same file system.
As mandated by POSIX.1
.Fa name1
may not be a directory.
.Pp
The
.Fn linkat