View | Details | Raw Unified | Return to bug 42346
Collapse All | Expand All

(-)sigreturn.2 (-26 / +2 lines)
Lines 43-75 Link Here
43
.Sh SYNOPSIS
43
.Sh SYNOPSIS
44
.In signal.h
44
.In signal.h
45
.Pp
45
.Pp
46
.Bd -literal
47
struct	sigcontext {
48
	int	sc_onstack;		/* sigstack state to restore */
49
	int	sc_mask;		/* signal mask to restore */
50
	int	sc_esp;			/* machine state */
51
	int	sc_ebp;
52
	int	sc_isp;
53
	int	sc_eip;
54
	int	sc_efl;
55
	int	sc_es;
56
	int	sc_ds;
57
	int	sc_cs;
58
	int	sc_ss;
59
	int	sc_edi;
60
	int	sc_esi;
61
	int	sc_ebx;
62
	int	sc_edx;
63
	int	sc_ecx;
64
	int	sc_eax;
65
#  define sc_sp sc_esp
66
#  define sc_fp sc_ebp
67
#  define sc_pc sc_eip
68
#  define sc_ps sc_efl
69
};
70
.Ed
46
.Ed
71
.Ft int
47
.Ft int
72
.Fn sigreturn "struct sigcontext *scp"
48
.Fn sigreturn "ucontext_t *ucp"
73
.Sh DESCRIPTION
49
.Sh DESCRIPTION
74
.Fn Sigreturn
50
.Fn Sigreturn
75
allows users to atomically unmask, switch stacks,
51
allows users to atomically unmask, switch stacks,
Lines 98-104 Link Here
98
if one of the following occurs.
74
if one of the following occurs.
99
.Bl -tag -width Er
75
.Bl -tag -width Er
100
.It Bq Er EFAULT
76
.It Bq Er EFAULT
101
.Fa Scp
77
.Fa Ucp
102
points to memory that is not a valid part of the process
78
points to memory that is not a valid part of the process
103
address space.
79
address space.
104
.It Bq Er EINVAL
80
.It Bq Er EINVAL

Return to bug 42346