summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/alarm.33
-rw-r--r--lib/libc/gen/siginterrupt.35
-rw-r--r--lib/libc/gen/ualarm.34
-rw-r--r--lib/libc/nls/ru_RU.KOI8-R.msg8
-rw-r--r--lib/libc/sys/execve.24
-rw-r--r--lib/libc/sys/fcntl.22
-rw-r--r--lib/libc/sys/getitimer.22
-rw-r--r--lib/libc/sys/getrlimit.22
-rw-r--r--lib/libc/sys/sigaction.24
-rw-r--r--lib/libc/sys/sigaltstack.232
-rw-r--r--lib/libc/sys/sigreturn.22
-rw-r--r--lib/libc/sys/vfork.22
12 files changed, 31 insertions, 39 deletions
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index 70e7c6e..92817b8 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -76,8 +76,7 @@ If no alarm is currently set, the return value is 0.
.Sh SEE ALSO
.Xr setitimer 2 ,
.Xr sigaction 2 ,
-.Xr sigpause 2 ,
-.Xr sigvec 2 ,
+.Xr sigsuspend 2 ,
.Xr signal 3 ,
.Xr sleep 3 ,
.Xr ualarm 3 ,
diff --git a/lib/libc/gen/siginterrupt.3 b/lib/libc/gen/siginterrupt.3
index e5eae62..e790132 100644
--- a/lib/libc/gen/siginterrupt.3
+++ b/lib/libc/gen/siginterrupt.3
@@ -109,9 +109,8 @@ is not a valid signal number.
.El
.Sh SEE ALSO
.Xr sigaction 2 ,
-.Xr sigblock 2 ,
-.Xr sigpause 2 ,
-.Xr sigsetmask 2 ,
+.Xr sigprocmask 2 ,
+.Xr sigsuspend 2 ,
.Xr signal 3
.Sh HISTORY
The
diff --git a/lib/libc/gen/ualarm.3 b/lib/libc/gen/ualarm.3
index 47575cf..5719896 100644
--- a/lib/libc/gen/ualarm.3
+++ b/lib/libc/gen/ualarm.3
@@ -84,8 +84,8 @@ A microsecond is 0.000001 seconds.
.Sh SEE ALSO
.Xr getitimer 2 ,
.Xr setitimer 2 ,
-.Xr sigpause 2 ,
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
+.Xr sigsuspend 2 ,
.Xr alarm 3 ,
.Xr signal 3 ,
.Xr sleep 3 ,
diff --git a/lib/libc/nls/ru_RU.KOI8-R.msg b/lib/libc/nls/ru_RU.KOI8-R.msg
index 55233b9..431bc27 100644
--- a/lib/libc/nls/ru_RU.KOI8-R.msg
+++ b/lib/libc/nls/ru_RU.KOI8-R.msg
@@ -114,7 +114,7 @@ $ ENETRESET
$ ECONNABORTED
53 Программа вызвала аварийное прекращение подключения
$ ECONNRESET
-54 Подключение сброшено противоположной строной
+54 Подключение сброшено противоположной стороной
$ ENOBUFS
55 Не осталось места под буфер
$ EISCONN
@@ -146,7 +146,7 @@ $ EUSERS
$ EDQUOT
69 Превзойдена дисковая квота
$ ESTALE
-70 Устаревший декриптор файла NFS
+70 Устаревший дескриптор файла NFS
$ EREMOTE
71 Слишком много дистанционных переходов в пути
$ EBADRPC
@@ -180,9 +180,9 @@ $ ECANCELED
$ EILSEQ
86 Недопустимая последовательность байтов
$ ENOATTR
-87 Аттрибут не найден
+87 Атрибут не найден
$ EDOOFUS
-88 Ошибка програмирования
+88 Ошибка программирования
$
$ strsignal() support catalog
$
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index cdd4197..acc6471 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -189,8 +189,8 @@ the calling process:
.It interval timers Ta see Xr getitimer 2
.It resource limits Ta see Xr getrlimit 2
.It file mode mask Ta see Xr umask 2
-.It signal mask Ta see Xr sigvec 2 ,
-.Xr sigsetmask 2
+.It signal mask Ta see Xr sigaction 2 ,
+.Xr sigprocmask 2
.El
.Pp
When a program is executed as a result of an
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 250cef4..a801b60 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -618,7 +618,7 @@ for the reasons as stated in
.Xr flock 2 ,
.Xr getdtablesize 2 ,
.Xr open 2 ,
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
.Xr lockf 3 ,
.Xr tcgetpgrp 3 ,
.Xr tcsetpgrp 3
diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2
index 260f8f0..e942cc8 100644
--- a/lib/libc/sys/getitimer.2
+++ b/lib/libc/sys/getitimer.2
@@ -171,7 +171,7 @@ to be handled.
.Sh SEE ALSO
.Xr gettimeofday 2 ,
.Xr select 2 ,
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
.Xr clocks 7
.Sh HISTORY
The
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index 48feea0..35198bc 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -193,7 +193,7 @@ raised the maximum limit value, and the caller is not the super-user.
.Xr quota 1 ,
.Xr quotactl 2 ,
.Xr sigaltstack 2 ,
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
.Xr sysctl 3 ,
.Xr ulimit 3
.Sh HISTORY
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 3b4f2f0..47b3a72 100644
--- a/lib/libc/sys/sigaction.2
+++ b/lib/libc/sys/sigaction.2
@@ -609,13 +609,9 @@ or
.Xr kill 2 ,
.Xr ptrace 2 ,
.Xr sigaltstack 2 ,
-.Xr sigblock 2 ,
-.Xr sigpause 2 ,
.Xr sigpending 2 ,
.Xr sigprocmask 2 ,
-.Xr sigsetmask 2 ,
.Xr sigsuspend 2 ,
-.Xr sigvec 2 ,
.Xr wait 2 ,
.Xr fpsetmask 3 ,
.Xr setjmp 3 ,
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index da6877e..6119c6a 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -28,7 +28,7 @@
.\" @(#)sigaltstack.2 8.2 (Berkeley) 5/1/95
.\" $FreeBSD$
.\"
-.Dd May 1, 1995
+.Dd May 6, 2010
.Dt SIGALTSTACK 2
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.In signal.h
.Bd -literal
-typedef struct sigaltstack {
+typedef struct {
char *ss_sp;
size_t ss_size;
int ss_flags;
@@ -51,25 +51,25 @@ typedef struct sigaltstack {
The
.Fn sigaltstack
system call
-allows users to define an alternate stack on which signals
-are to be processed.
+allows defining an alternate stack on which signals
+are to be processed for the current thread.
If
.Fa ss
is non-zero,
it specifies a pointer to and the size of a
.Em "signal stack"
-on which to deliver signals,
-and tells the system if the process is currently executing
-on that stack.
+on which to deliver signals.
When a signal's action indicates its handler
should execute on the signal stack (specified with a
.Xr sigaction 2
system call), the system checks to see
-if the process is currently executing on that stack.
-If the process is not currently executing on the signal stack,
+if the thread is currently executing on that stack.
+If the thread is not currently executing on the signal stack,
the system arranges a switch to the signal stack for the
duration of the signal handler's execution.
.Pp
+An active stack cannot be modified.
+.Pp
If
.Dv SS_DISABLE
is set in
@@ -78,12 +78,6 @@ is set in
and
.Fa ss_size
are ignored and the signal stack will be disabled.
-Trying to disable an active stack will cause
-.Fn sigaltstack
-to return -1 with
-.Va errno
-set to
-.Er EINVAL .
A disabled stack will cause all signals to be
taken on the regular user stack.
If the stack is later re-enabled then all signals that were specified
@@ -96,7 +90,7 @@ The
.Fa ss_flags
field will contain the value
.Dv SS_ONSTACK
-if the process is currently on a signal stack and
+if the thread is currently on a signal stack and
.Dv SS_DISABLE
if the signal stack is currently disabled.
.Sh NOTES
@@ -146,8 +140,12 @@ or
.Fa oss
points to memory that is not a valid part of the process
address space.
+.It Bq Er EPERM
+An attempt was made to modify an active stack.
.It Bq Er EINVAL
-An attempt was made to disable an active stack.
+The
+.Fa ss_flags
+field was invalid.
.It Bq Er ENOMEM
Size of alternate stack area is less than or equal to
.Dv MINSIGSTKSZ .
diff --git a/lib/libc/sys/sigreturn.2 b/lib/libc/sys/sigreturn.2
index a022470..02d75a8 100644
--- a/lib/libc/sys/sigreturn.2
+++ b/lib/libc/sys/sigreturn.2
@@ -83,7 +83,7 @@ The process status longword is invalid or would improperly
raise the privilege level of the process.
.El
.Sh SEE ALSO
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
.Xr setjmp 3 ,
.Xr ucontext 3
.Sh HISTORY
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index 3cd3368..1cfaa61 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -104,7 +104,7 @@ Same as for
.Xr _exit 2 ,
.Xr fork 2 ,
.Xr rfork 2 ,
-.Xr sigvec 2 ,
+.Xr sigaction 2 ,
.Xr wait 2 ,
.Xr exit 3
.Sh HISTORY
OpenPOWER on IntegriCloud