From eb185aa8846bcbcf2fd61b6d629c04789a87b095 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 19 Jul 2014 08:55:22 +0000 Subject: [PATCH] Document that abort() is async signal safe now that it doesn't flush stdio buffers While here replace "SUSv[67]" with "POSIX Issue [67]" and update signal(3) to mention that pselect() and ppoll() are async signal safe like sigaction(2) already does. ok guenther --- lib/libc/gen/signal.3 | 14 +++++++------- lib/libc/sys/sigaction.2 | 11 +++++------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3 index dcdd2e14fab..d4599bd1cad 100644 --- a/lib/libc/gen/signal.3 +++ b/lib/libc/gen/signal.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: signal.3,v 1.45 2014/07/18 19:24:42 matthew Exp $ +.\" $OpenBSD: signal.3,v 1.46 2014/07/19 08:55:22 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: July 18 2014 $ +.Dd $Mdocdate: July 19 2014 $ .Dt SIGNAL 3 .Os .Sh NAME @@ -242,8 +242,7 @@ invoke them, without restriction, from signal-catching functions: Base Interfaces: .Pp .Fn _exit , -.\" SUSv7 says abort() is safe, but since it flushes stdio buffers, -.\" that's not practical +.Fn abort , .Fn accept , .Fn access , .Fn alarm , @@ -309,6 +308,7 @@ Base Interfaces: .Fn pause , .Fn pipe , .Fn poll , +.Fn pselect , .Fn read , .Fn readlink , .Fn readlinkat , @@ -368,11 +368,10 @@ Base Interfaces: .Fn write . .Pp .\" unimplemented functions that should be async-sig-safe, if we had them -.\" SUSv[56] additions -.\" .Fn pselect , +.\" POSIX Issue 6 additions .\" .Fn sockatmark . .\" -.\" SUSv7 additions +.\" POSIX Issue 7 additions .\" .Pp .\" .Fn fexecve . .\" @@ -404,6 +403,7 @@ Extension Interfaces: .Fn getentropy , .Fn getresgid , .Fn getresuid , +.Fn ppoll , .Fn setresgid , .Fn setresuid , .Fn strlcat , diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 55123939e99..bcbeff82630 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sigaction.2,v 1.57 2014/07/18 19:24:42 matthew Exp $ +.\" $OpenBSD: sigaction.2,v 1.58 2014/07/19 08:55:22 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: July 18 2014 $ +.Dd $Mdocdate: July 19 2014 $ .Dt SIGACTION 2 .Os .Sh NAME @@ -470,8 +470,7 @@ invoke them, without restriction, from signal-catching functions: Base Interfaces: .Pp .Fn _exit , -.\" SUSv7 says abort() is safe, but since it flushes stdio buffers, -.\" that's not practical +.Fn abort , .Fn accept , .Fn access , .Fn alarm , @@ -598,10 +597,10 @@ Base Interfaces: .Fn write . .Pp .\" unimplemented functions that should be async-sig-safe, if we had them -.\" SUSv[56] additions +.\" POSIX Issue 6 additions .\" .Fn sockatmark . .\" -.\" SUSv7 additions +.\" POSIX Issue 7 additions .\" .Pp .\" .Fn fexecve . .\" -- 2.20.1