diff options
author | 2012-04-03 23:06:11 +0000 | |
---|---|---|
committer | 2012-04-03 23:06:11 +0000 | |
commit | d6c020391d28a45dfc954b8f4bae4cbe292cc31c (patch) | |
tree | e8afe9d99d98cae3ceda5aa58c8cf4f903edc646 /lib/libc | |
parent | Uncomment eisa0 attachment. People can then complain about their boards not (diff) | |
download | wireguard-openbsd-d6c020391d28a45dfc954b8f4bae4cbe292cc31c.tar.xz wireguard-openbsd-d6c020391d28a45dfc954b8f4bae4cbe292cc31c.zip |
Document that openat(), etc are safe to call from a signal handler.
While here, recognize that _Exit() and raise() are C functions.
ok deraadt@, guenther@, jmc@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/signal.3 | 40 | ||||
-rw-r--r-- | lib/libc/sys/sigaction.2 | 40 |
2 files changed, 40 insertions, 40 deletions
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3 index 933dc81cf03..89bc20d6229 100644 --- a/lib/libc/gen/signal.3 +++ b/lib/libc/gen/signal.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: signal.3,v 1.38 2012/01/19 17:35:42 espie Exp $ +.\" $OpenBSD: signal.3,v 1.39 2012/04/03 23:06:11 matthew Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: January 19 2012 $ +.Dd $Mdocdate: April 3 2012 $ .Dt SIGNAL 3 .Os .Sh NAME @@ -241,7 +241,6 @@ invoke them, without restriction, from signal-catching functions: .Pp Base Interfaces: .Pp -.Fn _Exit , .Fn _exit , .\" SUSv7 says abort() is safe, but since it flushes stdio buffers, .\" that's not practical @@ -266,15 +265,20 @@ Base Interfaces: .Fn execle , .Fn execv , .Fn execve , +.Fn faccessat , .Fn fchdir , .Fn fchmod , +.Fn fchmodat , .Fn fchown , +.Fn fchownat , .Fn fcntl , .Fn fork , .Fn fpathconf , .Fn fstat , +.Fn fstatat , .Fn fsync , .Fn ftruncate , +.Fn futimens , .Fn futimes , .Fn getegid , .Fn geteuid , @@ -289,24 +293,30 @@ Base Interfaces: .Fn getuid , .Fn kill , .Fn link , +.Fn linkat , .Fn listen , .Fn lseek , .Fn lstate , .Fn mkdir , +.Fn mkdirat , .Fn mkfifo , +.Fn mkfifoat , .Fn mknod , +.Fn mknodat , .Fn open , +.Fn openat , .Fn pathconf , .Fn pause , .Fn pipe , .Fn poll , -.Fn raise , .Fn read , .Fn readlink , +.Fn readlinkat , .Fn recv , .Fn recvfrom , .Fn recvmsg , .Fn rename , +.Fn renameat , .Fn rmdir , .Fn select , .Fn send , @@ -334,6 +344,7 @@ Base Interfaces: .Fn socketpair , .Fn stat , .Fn symlink , +.Fn symlinkat , .Fn sysconf , .Fn tcdrain , .Fn tcflow , @@ -348,7 +359,9 @@ Base Interfaces: .Fn umask , .Fn uname , .Fn unlink , +.Fn unlinkat , .Fn utime , +.Fn utimensat . .Fn utimes , .Fn wait , .Fn waitpid , @@ -361,22 +374,7 @@ Base Interfaces: .\" .\" SUSv7 additions .\" .Pp -.\" .Fn faccessat , -.\" .Fn fchmodat , -.\" .Fn fchownat , -.\" .Fn fexecve , -.\" .Fn fstatat , -.\" .Fn futimens , -.\" .Fn linkat , -.\" .Fn mkdirat , -.\" .Fn mkfifoat , -.\" .Fn mknodat , -.\" .Fn openat , -.\" .Fn readlinkat , -.\" .Fn renameat , -.\" .Fn symlinkat , -.\" .Fn unlinkat , -.\" .Fn utimensat . +.\" .Fn fexecve . .\" .\" Realtime Interfaces: .\" .Pp @@ -391,6 +389,8 @@ Base Interfaces: .\" .Fn timer_settime . ANSI C Interfaces: .Pp +.Fn _Exit , +.Fn raise , .Fn strcat , .Fn strcpy , .Fn strncat , diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 97c8985c79d..325048b910d 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sigaction.2,v 1.48 2011/09/03 23:40:15 jmc Exp $ +.\" $OpenBSD: sigaction.2,v 1.49 2012/04/03 23:06:11 matthew Exp $ .\" $NetBSD: sigaction.2,v 1.7 1995/10/12 15:41:16 jtc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sigaction.2 8.2 (Berkeley) 4/3/94 .\" -.Dd $Mdocdate: September 3 2011 $ +.Dd $Mdocdate: April 3 2012 $ .Dt SIGACTION 2 .Os .Sh NAME @@ -463,7 +463,6 @@ invoke them, without restriction, from signal-catching functions: .Pp Base Interfaces: .Pp -.Fn _Exit , .Fn _exit , .\" SUSv7 says abort() is safe, but since it flushes stdio buffers, .\" that's not practical @@ -488,15 +487,20 @@ Base Interfaces: .Fn execle , .Fn execv , .Fn execve , +.Fn faccessat , .Fn fchdir , .Fn fchmod , +.Fn fchmodat , .Fn fchown , +.Fn fchownat , .Fn fcntl , .Fn fork , .Fn fpathconf , .Fn fstat , +.Fn fstatat , .Fn fsync , .Fn ftruncate , +.Fn futimens , .Fn futimes , .Fn getegid , .Fn geteuid , @@ -511,24 +515,30 @@ Base Interfaces: .Fn getuid , .Fn kill , .Fn link , +.Fn linkat , .Fn listen , .Fn lseek , .Fn lstate , .Fn mkdir , +.Fn mkdirat , .Fn mkfifo , +.Fn mkfifoat , .Fn mknod , +.Fn mknodat , .Fn open , +.Fn openat , .Fn pathconf , .Fn pause , .Fn pipe , .Fn poll , -.Fn raise , .Fn read , .Fn readlink , +.Fn readlinkat , .Fn recv , .Fn recvfrom , .Fn recvmsg , .Fn rename , +.Fn renameat , .Fn rmdir , .Fn select , .Fn send , @@ -556,6 +566,7 @@ Base Interfaces: .Fn socketpair , .Fn stat , .Fn symlink , +.Fn symlinkat , .Fn sysconf , .Fn tcdrain , .Fn tcflow , @@ -570,7 +581,9 @@ Base Interfaces: .Fn umask , .Fn uname , .Fn unlink , +.Fn unlinkat , .Fn utime , +.Fn utimensat . .Fn utimes , .Fn wait , .Fn waitpid , @@ -583,22 +596,7 @@ Base Interfaces: .\" .\" SUSv7 additions .\" .Pp -.\" .Fn faccessat , -.\" .Fn fchmodat , -.\" .Fn fchownat , -.\" .Fn fexecve , -.\" .Fn fstatat , -.\" .Fn futimens , -.\" .Fn linkat , -.\" .Fn mkdirat , -.\" .Fn mkfifoat , -.\" .Fn mknodat , -.\" .Fn openat , -.\" .Fn readlinkat , -.\" .Fn renameat , -.\" .Fn symlinkat , -.\" .Fn unlinkat , -.\" .Fn utimensat . +.\" .Fn fexecve . .\" .\" Realtime Interfaces: .\" .Pp @@ -613,6 +611,8 @@ Base Interfaces: .\" .Fn timer_settime . ANSI C Interfaces: .Pp +.Fn _Exit , +.Fn raise , .Fn strcat , .Fn strcpy , .Fn strncat , |