diff options
author | archie <archie@FreeBSD.org> | 2002-09-11 21:40:02 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-09-11 21:40:02 +0000 |
commit | 57de4fb94545b659220eab0ea85fc5c601859bee (patch) | |
tree | 5697d36b858a9c6466ebd6aed459f388d4a783fa /lib | |
parent | b2c4f4ae74d752a0bcd8d9b06e316c98bd3c4f6e (diff) | |
download | FreeBSD-src-57de4fb94545b659220eab0ea85fc5c601859bee.zip FreeBSD-src-57de4fb94545b659220eab0ea85fc5c601859bee.tar.gz |
Update to reflect reality.
Reviewed by: mini
MFC after: 3 days
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/sigaction.2 | 5 | ||||
-rw-r--r-- | lib/libc/sys/sigreturn.2 | 34 |
2 files changed, 8 insertions, 31 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 59320f6..197e9f3 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -460,7 +460,7 @@ There are three possible prototypes the handler may match: .Fn handler int "int code" "struct sigcontext *scp" ; .It POSIX SA_SIGINFO: .Ft void -.Fn handler int "siginfo_t *info" "void *context" ; +.Fn handler int "siginfo_t *info" "ucontext_t *uap" ; .El .Pp The handler function should match the SA_SIGINFO prototype if the @@ -528,7 +528,7 @@ handler points to an instance of struct sigcontext. .Pp The -.Fa context +.Fa uap argument to a POSIX SA_SIGINFO handler points to an instance of ucontext_t. .Sh ERRORS @@ -608,4 +608,5 @@ flags are featuring options commonly found in other operating systems. .Xr setjmp 3 , .Xr siginterrupt 3 , .Xr sigsetops 3 , +.Xr ucontext 3 , .Xr tty 4 diff --git a/lib/libc/sys/sigreturn.2 b/lib/libc/sys/sigreturn.2 index e5b186a..6c5df09 100644 --- a/lib/libc/sys/sigreturn.2 +++ b/lib/libc/sys/sigreturn.2 @@ -42,40 +42,15 @@ .Lb libc .Sh SYNOPSIS .In signal.h -.Pp -.Bd -literal -struct sigcontext { - int sc_onstack; /* sigstack state to restore */ - int sc_mask; /* signal mask to restore */ - int sc_esp; /* machine state */ - int sc_ebp; - int sc_isp; - int sc_eip; - int sc_efl; - int sc_es; - int sc_ds; - int sc_cs; - int sc_ss; - int sc_edi; - int sc_esi; - int sc_ebx; - int sc_edx; - int sc_ecx; - int sc_eax; -# define sc_sp sc_esp -# define sc_fp sc_ebp -# define sc_pc sc_eip -# define sc_ps sc_efl -}; -.Ed .Ft int -.Fn sigreturn "struct sigcontext *scp" +.Fn sigreturn "ucontext_t *scp" .Sh DESCRIPTION .Fn Sigreturn allows users to atomically unmask, switch stacks, and return from a signal context. The processes signal mask and stack status are -restored from the context. +restored from the context structure pointed to by +.Fa scp . The system call does not return; the users stack pointer, frame pointer, argument pointer, and processor status longword are restored from the context. @@ -107,7 +82,8 @@ raise the privilege level of the process. .El .Sh SEE ALSO .Xr sigvec 2 , -.Xr setjmp 3 +.Xr setjmp 3 , +.Xr ucontext 3 .Sh HISTORY The .Fn sigreturn |