CVS commit: src/share/man/man2
Module Name:src Committed By: christos Date: Mon Apr 4 17:29:04 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Fix description of si_status. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.7 src/share/man/man2/siginfo.2:1.8 --- src/share/man/man2/siginfo.2:1.7 Fri Feb 27 10:21:54 2015 +++ src/share/man/man2/siginfo.2 Mon Apr 4 13:29:04 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.7 2015/02/27 15:21:54 riastradh Exp $ +.\" $NetBSD: siginfo.2,v 1.8 2016/04/04 17:29:04 christos Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 23, 2012 +.Dd April 43, 2016 .Dt SIGINFO 2 .Os .Sh NAME @@ -321,7 +321,10 @@ field contains the pid of the process wh .Fa si_uid field contains the user id of the that process, the .Fa si_status -field contains a status code described in +field contains either the exit code of the process (for +.Dv CLD_EXITED ) , +or the signal number received by the process. +.Xr waitid 2 , .Xr waitpid 2 , and the .Fa si_utime
CVS commit: src/share/man/man2
Module Name:src Committed By: wiz Date: Mon Apr 4 20:43:31 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: I do like the idea of April 43, 2016, but it's just not standardized enough. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.8 src/share/man/man2/siginfo.2:1.9 --- src/share/man/man2/siginfo.2:1.8 Mon Apr 4 17:29:04 2016 +++ src/share/man/man2/siginfo.2 Mon Apr 4 20:43:31 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.8 2016/04/04 17:29:04 christos Exp $ +.\" $NetBSD: siginfo.2,v 1.9 2016/04/04 20:43:31 wiz Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 43, 2016 +.Dd April 4, 2016 .Dt SIGINFO 2 .Os .Sh NAME
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Sun Feb 25 16:53:51 UTC 2018 Modified Files: src/share/man/man2: ucontext.2 Log Message: Document _UC_MACHINE_*() in ucontext(2) Document: - _UC_MACHINE_SP() - _UC_MACHINE_FP() - _UC_MACHINE_PC() - _UC_MACHINE_INTRV() - _UC_MACHINE_SET_PC() Document fragileness of the frame-pointer accessor. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/ucontext.2 diff -u src/share/man/man2/ucontext.2:1.6 src/share/man/man2/ucontext.2:1.7 --- src/share/man/man2/ucontext.2:1.6 Thu Apr 29 06:07:35 2010 +++ src/share/man/man2/ucontext.2 Sun Feb 25 16:53:51 2018 @@ -1,4 +1,4 @@ -.\" $NetBSD: ucontext.2,v 1.6 2010/04/29 06:07:35 jruoho Exp $ +.\" $NetBSD: ucontext.2,v 1.7 2018/02/25 16:53:51 kamil Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 29, 2010 +.Dd February 25, 2018 .Dt UCONTEXT 2 .Os .Sh NAME @@ -35,6 +35,11 @@ .Nd user context .Sh SYNOPSIS .In ucontext.h +.Fn _UC_MACHINE_SP "&uc" +.Fn _UC_MACHINE_FP "&uc" +.Fn _UC_MACHINE_PC "&uc" +.Fn _UC_MACHINE_INTRV "&uc" +.Fn _UC_MACHINE_SET_PC "&uc" .Sh DESCRIPTION The .Vt ucontext_t @@ -86,6 +91,36 @@ it may consist of general registers, flo and other machine-specific information. Its description is beyond the scope of this manual page; portable applications should not access this structure member. +.Pp +The +.Fn _UC_MACHINE_SP , +.Fn _UC_MACHINE_FP , +.Fn _UC_MACHINE_PC , +.Fn _UC_MACHINE_INTRV +and +.Fn _UC_MACHINE_SET_PC +auxiliary macros are designed to perform respectively the following operations: +.Bl -dash +.It +read stack pointer , +.It +read frame pointer (base pointer) , +.It +read program counter , +.It +read interrupt vector , +.It +write program counter . +.El +.Pp +The frame pointer macro does not guarantee to retrieve a reliable value +and should not be used in a code unless no other debugging format is +easily accessible. +A compiler might optimize the frame pointer register in a function, +reusing as a general purpose register storage +.Ar -fomit-frame-pointer +or emit function prologues only before parts that need them +.Ar -fshrink-wrap . .Sh SEE ALSO .Xr _exit 2 , .Xr getcontext 2 ,
CVS commit: src/share/man/man2
Module Name:src Committed By: uwe Date: Sun Feb 25 17:37:05 UTC 2018 Modified Files: src/share/man/man2: ucontext.2 Log Message: Flags are .Fl not .Ar To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/ucontext.2 diff -u src/share/man/man2/ucontext.2:1.7 src/share/man/man2/ucontext.2:1.8 --- src/share/man/man2/ucontext.2:1.7 Sun Feb 25 16:53:51 2018 +++ src/share/man/man2/ucontext.2 Sun Feb 25 17:37:05 2018 @@ -1,4 +1,4 @@ -.\" $NetBSD: ucontext.2,v 1.7 2018/02/25 16:53:51 kamil Exp $ +.\" $NetBSD: ucontext.2,v 1.8 2018/02/25 17:37:05 uwe Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -117,10 +117,10 @@ The frame pointer macro does not guarant and should not be used in a code unless no other debugging format is easily accessible. A compiler might optimize the frame pointer register in a function, -reusing as a general purpose register storage -.Ar -fomit-frame-pointer +reusing it as a general purpose register storage +.Fl ( fomit-frame-pointer ) or emit function prologues only before parts that need them -.Ar -fshrink-wrap . +.Fl ( fshrink-wrap ) . .Sh SEE ALSO .Xr _exit 2 , .Xr getcontext 2 ,
CVS commit: src/share/man/man2
Module Name:src Committed By: uwe Date: Sun Feb 25 17:45:40 UTC 2018 Modified Files: src/share/man/man2: ucontext.2 Log Message: Use tagged list. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/ucontext.2 diff -u src/share/man/man2/ucontext.2:1.8 src/share/man/man2/ucontext.2:1.9 --- src/share/man/man2/ucontext.2:1.8 Sun Feb 25 17:37:05 2018 +++ src/share/man/man2/ucontext.2 Sun Feb 25 17:45:40 2018 @@ -1,4 +1,4 @@ -.\" $NetBSD: ucontext.2,v 1.8 2018/02/25 17:37:05 uwe Exp $ +.\" $NetBSD: ucontext.2,v 1.9 2018/02/25 17:45:40 uwe Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -92,25 +92,19 @@ and other machine-specific information. Its description is beyond the scope of this manual page; portable applications should not access this structure member. .Pp -The -.Fn _UC_MACHINE_SP , -.Fn _UC_MACHINE_FP , -.Fn _UC_MACHINE_PC , -.Fn _UC_MACHINE_INTRV -and -.Fn _UC_MACHINE_SET_PC -auxiliary macros are designed to perform respectively the following operations: -.Bl -dash -.It -read stack pointer , -.It -read frame pointer (base pointer) , -.It -read program counter , -.It -read interrupt vector , -.It -write program counter . +The following auxiliary macros are available to access some of that +machine-specific information: +.Bl -tag -width ".Fn _UC_MACHINE_SET_PC" -offset indent +.It Fn _UC_MACHINE_SP +\(em read stack pointer, +.It Fn _UC_MACHINE_FP +\(em read frame pointer (base pointer), +.It Fn _UC_MACHINE_PC +\(em read program counter, +.It Fn _UC_MACHINE_INTRV +\(em read interrupt vector, +.It Fn _UC_MACHINE_SET_PC +\(em write program counter. .El .Pp The frame pointer macro does not guarantee to retrieve a reliable value
CVS commit: src/share/man/man2
Module Name:src Committed By: uwe Date: Tue Feb 27 10:09:42 UTC 2018 Modified Files: src/share/man/man2: ucontext.2 Log Message: INTRV is INT-RV - integer return value (not INTR-V, interrupt vector) :) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/ucontext.2 diff -u src/share/man/man2/ucontext.2:1.9 src/share/man/man2/ucontext.2:1.10 --- src/share/man/man2/ucontext.2:1.9 Sun Feb 25 17:45:40 2018 +++ src/share/man/man2/ucontext.2 Tue Feb 27 10:09:42 2018 @@ -1,4 +1,4 @@ -.\" $NetBSD: ucontext.2,v 1.9 2018/02/25 17:45:40 uwe Exp $ +.\" $NetBSD: ucontext.2,v 1.10 2018/02/27 10:09:42 uwe Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -102,7 +102,7 @@ machine-specific information: .It Fn _UC_MACHINE_PC \(em read program counter, .It Fn _UC_MACHINE_INTRV -\(em read interrupt vector, +\(em read integer return value, .It Fn _UC_MACHINE_SET_PC \(em write program counter. .El
CVS commit: src/share/man/man2
Module Name:src Committed By: sevan Date: Mon Jun 8 17:19:44 UTC 2020 Modified Files: src/share/man/man2: siginfo.2 Log Message: white space To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.23 src/share/man/man2/siginfo.2:1.24 --- src/share/man/man2/siginfo.2:1.23 Sat May 25 05:11:14 2019 +++ src/share/man/man2/siginfo.2 Mon Jun 8 17:19:44 2020 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.23 2019/05/25 05:11:14 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.24 2020/06/08 17:19:44 sevan Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -278,7 +278,7 @@ High priority input available .Pp For .Dv SIGILL , -.Dv SIGFPE , +.Dv SIGFPE , .Dv SIGBUS and .Dv SIGSEGV
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Tue Dec 27 01:44:06 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Rename SIGPOLL signal to SIGIO in documentation siginfo(2) SIGPOLL is absent on NetBSD, it's emulated in linux_compat(8). To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.9 src/share/man/man2/siginfo.2:1.10 --- src/share/man/man2/siginfo.2:1.9 Mon Apr 4 20:43:31 2016 +++ src/share/man/man2/siginfo.2 Tue Dec 27 01:44:06 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.9 2016/04/04 20:43:31 wiz Exp $ +.\" $NetBSD: siginfo.2,v 1.10 2016/12/27 01:44:06 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 4, 2016 +.Dd December 27, 2016 .Dt SIGINFO 2 .Os .Sh NAME @@ -229,7 +229,7 @@ Child has stopped .It CLD_CONTINUED Stopped child has continued .El -.It SIGPOLL +.It SIGIO .Bl -tag -width POLL_OUT .It POLL_IN Data input available @@ -286,7 +286,7 @@ the value of may be inaccurate. .Pp For -.Dv SIGPOLL +.Dv SIGIO the .Nm structure contains the following additional members:
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Wed Dec 28 20:00:15 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document SI_NOINFO in siginfo(2) SI_NOINFO The signal was generated without specifc info available. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.10 src/share/man/man2/siginfo.2:1.11 --- src/share/man/man2/siginfo.2:1.10 Tue Dec 27 01:44:06 2016 +++ src/share/man/man2/siginfo.2 Wed Dec 28 20:00:15 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.10 2016/12/27 01:44:06 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.11 2016/12/28 20:00:15 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -146,6 +146,8 @@ on an out-of-band write it will contain .\" message queue. .\" See .\" .Xr mq_notify 3 . +.It SI_NOINFO +The signal was generated without specifc info available. .El .Pp If
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Wed Dec 28 20:06:00 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document SI_LWP in siginfo(2) SI_LWP The signal was generated via _lwp_kill(2). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.11 src/share/man/man2/siginfo.2:1.12 --- src/share/man/man2/siginfo.2:1.11 Wed Dec 28 20:00:15 2016 +++ src/share/man/man2/siginfo.2 Wed Dec 28 20:06:00 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.11 2016/12/28 20:00:15 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.12 2016/12/28 20:06:00 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -146,6 +146,22 @@ on an out-of-band write it will contain .\" message queue. .\" See .\" .Xr mq_notify 3 . +.It SI_LWP +The signal was generated via +.Xr _lwp_kill 2 . +The +.Nm +structure contains the following additional members: +.Bd -literal -offset indent +pid_t si_pid; +uid_t si_uid; +.Ed +.Pp +The +.Fa si_pid +field contains the pid of the sending process and the +.Fa si_uid +field contains the user id of the sending process. .It SI_NOINFO The signal was generated without specifc info available. .El
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Wed Dec 28 20:34:36 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document SI_QUEUE in siginfo(2) SI_QUEUE The signal was generated via sigqueue(2). This code was commented out since inception of this manual page (originally located in siginfo(5)). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.12 src/share/man/man2/siginfo.2:1.13 --- src/share/man/man2/siginfo.2:1.12 Wed Dec 28 20:06:00 2016 +++ src/share/man/man2/siginfo.2 Wed Dec 28 20:34:36 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.12 2016/12/28 20:06:00 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.13 2016/12/28 20:34:36 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -79,27 +79,27 @@ The field contains the pid of the sending process and the .Fa si_uid field contains the user id of the sending process. -.\" .It SI_QUEUE -.\" The signal was generated via -.\" .Xr sigqueue 3 . -.\" The -.\" .Nm -.\" structure contains the following additional members: -.\" .Bd -literal -offset indent -.\" pid_t si_pid; -.\" uid_t si_uid; -.\" sigval_t si_value; -.\" .Ed -.\" .Pp -.\" The -.\" .Fa si_pid -.\" field contains the pid of the sending process and the -.\" .Fa si_uid -.\" field contains the user id of the sending process. -.\" Finally, the -.\" .Fa si_value -.\" field contains the value sent via -.\" .Xr sigqueue 3 . +.It SI_QUEUE +The signal was generated via +.Xr sigqueue 2 . +The +.Nm +structure contains the following additional members: +.Bd -literal -offset indent +pid_t si_pid; +uid_t si_uid; +sigval_t si_value; +.Ed +.Pp +The +.Fa si_pid +field contains the pid of the sending process and the +.Fa si_uid +field contains the user id of the sending process. +Finally, the +.Fa si_value +field contains the value sent via +.Xr sigqueue 2 . .It SI_TIMER The signal was generated because a timer set by .Xr timer_settime 2
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Wed Dec 28 20:41:55 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document SI_MESGQ in siginfo(2) SI_MESGQ The signal was generated because of the arrival of a message on an empty message queue. This code was commented out since inception of this manual page (originally located in siginfo(5)). Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.13 src/share/man/man2/siginfo.2:1.14 --- src/share/man/man2/siginfo.2:1.13 Wed Dec 28 20:34:36 2016 +++ src/share/man/man2/siginfo.2 Wed Dec 28 20:41:55 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.13 2016/12/28 20:34:36 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.14 2016/12/28 20:41:55 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -141,11 +141,11 @@ on a normal write it will contain .Dv POLLOUT | POLLWRNORM ; on an out-of-band write it will contain .Dv POLLPRI | POLLWRBAND . -.\" .It SI_MESGQ -.\" The signal was generated because of the arrival of a message on an empty -.\" message queue. -.\" See -.\" .Xr mq_notify 3 . +.It SI_MESGQ +The signal was generated because of the arrival of a message on an empty +message queue. +See +.Xr mq_notify 3 . .It SI_LWP The signal was generated via .Xr _lwp_kill 2 .
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Wed Dec 28 21:19:06 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Bump date for siginfo(2) and document SI_LWP and SI_NOINFO as .Nx extension Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.14 src/share/man/man2/siginfo.2:1.15 --- src/share/man/man2/siginfo.2:1.14 Wed Dec 28 20:41:55 2016 +++ src/share/man/man2/siginfo.2 Wed Dec 28 21:19:06 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.14 2016/12/28 20:41:55 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.15 2016/12/28 21:19:06 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd December 27, 2016 +.Dd December 28, 2016 .Dt SIGINFO 2 .Os .Sh NAME @@ -354,6 +354,14 @@ The .Nm type conforms to .St -xsh5 . +.Pp +Signals specifying +.Dv SI_LWP +or +.Dv SI_NOINFO +are +.Nx +extension. .Sh HISTORY The .Nm
CVS commit: src/share/man/man2
Module Name:src Committed By: wiz Date: Thu Dec 29 11:50:44 UTC 2016 Modified Files: src/share/man/man2: siginfo.2 Log Message: Fix typos. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.15 src/share/man/man2/siginfo.2:1.16 --- src/share/man/man2/siginfo.2:1.15 Wed Dec 28 21:19:06 2016 +++ src/share/man/man2/siginfo.2 Thu Dec 29 11:50:44 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.15 2016/12/28 21:19:06 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.16 2016/12/29 11:50:44 wiz Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -163,7 +163,7 @@ field contains the pid of the sending pr .Fa si_uid field contains the user id of the sending process. .It SI_NOINFO -The signal was generated without specifc info available. +The signal was generated without specific info available. .El .Pp If @@ -361,7 +361,7 @@ or .Dv SI_NOINFO are .Nx -extension. +extensions. .Sh HISTORY The .Nm
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Sat Jan 7 01:22:12 UTC 2017 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document TRAP_EXEC in SIGRAP in siginfo(2) TRAP_EXEC - Process exec trap This signal is emitted on exec() when a process is controlled by a debugger. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.16 src/share/man/man2/siginfo.2:1.17 --- src/share/man/man2/siginfo.2:1.16 Thu Dec 29 11:50:44 2016 +++ src/share/man/man2/siginfo.2 Sat Jan 7 01:22:12 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.16 2016/12/29 11:50:44 wiz Exp $ +.\" $NetBSD: siginfo.2,v 1.17 2017/01/07 01:22:12 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd December 28, 2016 +.Dd January 7, 2017 .Dt SIGINFO 2 .Os .Sh NAME @@ -231,6 +231,8 @@ Object-specific hardware error Process breakpoint .It TRAP_TRACE Process trace trap +.It TRAP_EXEC +Process exec trap .El .It SIGCHLD .Bl -tag -width CLD_CONTINUED
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Sat Jan 7 06:01:20 UTC 2017 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document that TRAP_EXEC is .Nx extension and update .Sh HISTORY for it Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.17 src/share/man/man2/siginfo.2:1.18 --- src/share/man/man2/siginfo.2:1.17 Sat Jan 7 01:22:12 2017 +++ src/share/man/man2/siginfo.2 Sat Jan 7 06:01:20 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.17 2017/01/07 01:22:12 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.18 2017/01/07 06:01:20 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -364,8 +364,21 @@ or are .Nx extensions. +.Pp +The +.Dv TRAP_EXEC +signal specific reason of +.Dv SIGTRAP +is +.Nx +extension. .Sh HISTORY The .Nm functionality first appeared in .At V.4 . +.Pp +.Dv TRAP_EXEC +first appeared +in +.Nx 8 .
CVS commit: src/share/man/man2
Module Name:src Committed By: wiz Date: Sun Jan 8 13:53:28 UTC 2017 Modified Files: src/share/man/man2: siginfo.2 Log Message: Sort a bit. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.18 src/share/man/man2/siginfo.2:1.19 --- src/share/man/man2/siginfo.2:1.18 Sat Jan 7 06:01:20 2017 +++ src/share/man/man2/siginfo.2 Sun Jan 8 13:53:28 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.18 2017/01/07 06:01:20 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.19 2017/01/08 13:53:28 wiz Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -173,48 +173,48 @@ why the signal was generated: .Bl -tag -width SIGCHLD .It SIGILL .Bl -tag -width ILL_ILLOPC +.It ILL_BADSTK +Internal stack error +.It ILL_COPROC +Coprocessor error +.It ILL_ILLADR +Illegal addressing mode .It ILL_ILLOPC Illegal opcode .It ILL_ILLOPN Illegal operand -.It ILL_ILLADR -Illegal addressing mode .It ILL_ILLTRP Illegal trap .It ILL_PRVOPC Privileged opcode .It ILL_PRVREG Privileged register -.It ILL_COPROC -Coprocessor error -.It ILL_BADSTK -Internal stack error .El .It SIGFPE .Bl -tag -width FPE_INTDIV -.It FPE_INTDIV -Integer divide by zero -.It FPE_INTOVF -Integer overflow .It FPE_FLTDIV Floating-point divide by zero +.It FPE_FLTINV +Invalid floating-point operation .It FPE_FLTOVF Floating-point overflow -.It FPE_FLTUND -Floating-point underflow .It FPE_FLTRES Floating-point inexact result -.It FPE_FLTINV -Invalid floating-point operation +.It FPE_FLTUND +Floating-point underflow .It FPE_FLTSUB Subscript out of range +.It FPE_INTDIV +Integer divide by zero +.It FPE_INTOVF +Integer overflow .El .It SIGSEGV .Bl -tag -width SEGV_MAPERR -.It SEGV_MAPERR -Address not mapped to object .It SEGV_ACCERR Invalid permissions for mapped object +.It SEGV_MAPERR +Address not mapped to object .El .It SIGBUS .Bl -tag -width BUS_ADRALN @@ -229,40 +229,40 @@ Object-specific hardware error .Bl -tag -width TRAP_BRKPT .It TRAP_BRKPT Process breakpoint -.It TRAP_TRACE -Process trace trap .It TRAP_EXEC Process exec trap +.It TRAP_TRACE +Process trace trap .El .It SIGCHLD .Bl -tag -width CLD_CONTINUED +.It CLD_CONTINUED +Stopped child has continued +.It CLD_DUMPED +Child has terminated abnormally and created a core file .It CLD_EXITED Child has exited .It CLD_KILLED Child has terminated abnormally but did not create a core file -.It CLD_DUMPED -Child has terminated abnormally and created a core file -.It CLD_TRAPPED -Traced child has trapped .It CLD_STOPPED Child has stopped -.It CLD_CONTINUED -Stopped child has continued +.It CLD_TRAPPED +Traced child has trapped .El .It SIGIO .Bl -tag -width POLL_OUT +.It POLL_ERR +I/O error +.It POLL_HUP +Device disconnected .It POLL_IN Data input available -.It POLL_OUT -Output buffers available .It POLL_MSG Input message available -.It POLL_ERR -I/O error +.It POLL_OUT +Output buffers available .It POLL_PRI High priority input available -.It POLL_HUP -Device disconnected .El .El .Pp
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Tue Jan 10 00:51:56 UTC 2017 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document TRAP_CHLD in siginfo(2) The SIGTRAP signal is thrown from the kernel if EVENT_MASK (ptrace_event) enables PTRACE_FORK. This new si_code helps debuggers to distinguish the exact source of signal delivered for a debugger. Another purpose of TRAP_CHLD is to retain the same behavior inside the NetBSD kernel for process child traps and have an interface to monitor it. Retrieving exact event and extended properties of process child trap is available with PT_GET_PROCESS_STATE. There is no behavior change for existing software. This si_code value is NetBSD extension. Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.19 src/share/man/man2/siginfo.2:1.20 --- src/share/man/man2/siginfo.2:1.19 Sun Jan 8 13:53:28 2017 +++ src/share/man/man2/siginfo.2 Tue Jan 10 00:51:56 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.19 2017/01/08 13:53:28 wiz Exp $ +.\" $NetBSD: siginfo.2,v 1.20 2017/01/10 00:51:56 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 7, 2017 +.Dd January 10, 2017 .Dt SIGINFO 2 .Os .Sh NAME @@ -229,6 +229,8 @@ Object-specific hardware error .Bl -tag -width TRAP_BRKPT .It TRAP_BRKPT Process breakpoint +.It TRAP_CHLD +Process child trap .It TRAP_EXEC Process exec trap .It TRAP_TRACE @@ -378,6 +380,8 @@ The functionality first appeared in .At V.4 . .Pp +.Dv TRAP_CHLD +and .Dv TRAP_EXEC first appeared in
CVS commit: src/share/man/man2
Module Name:src Committed By: kamil Date: Sat Jan 14 06:55:40 UTC 2017 Modified Files: src/share/man/man2: siginfo.2 Log Message: Document TRAP_LWP in siginfo(2) TRAP_LWP - process lwp (thread) traps Sponsored by To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.20 src/share/man/man2/siginfo.2:1.21 --- src/share/man/man2/siginfo.2:1.20 Tue Jan 10 00:51:56 2017 +++ src/share/man/man2/siginfo.2 Sat Jan 14 06:55:40 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.20 2017/01/10 00:51:56 kamil Exp $ +.\" $NetBSD: siginfo.2,v 1.21 2017/01/14 06:55:40 kamil Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 10, 2017 +.Dd January 14, 2017 .Dt SIGINFO 2 .Os .Sh NAME @@ -233,6 +233,8 @@ Process breakpoint Process child trap .It TRAP_EXEC Process exec trap +.It TRAP_LWP +Process LWP trap .It TRAP_TRACE Process trace trap .El
CVS commit: src/share/man/man2
Module Name:src Committed By: jym Date: Mon Apr 23 17:44:39 UTC 2012 Modified Files: src/share/man/man2: siginfo.2 Log Message: Note that si_addr may be inaccurate on certain architectures. Example: i386/amd64 alignement fault can drive to SIGBUS (when configured so by process), however the faulty address returned by the CPU is not reliable. Bump date. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.5 src/share/man/man2/siginfo.2:1.6 --- src/share/man/man2/siginfo.2:1.5 Mon Jul 26 12:50:52 2010 +++ src/share/man/man2/siginfo.2 Mon Apr 23 17:44:39 2012 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.5 2010/07/26 12:50:52 christos Exp $ +.\" $NetBSD: siginfo.2,v 1.6 2012/04/23 17:44:39 jym Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 26, 2010 +.Dd April 23, 2012 .Dt SIGINFO 2 .Os .Sh NAME @@ -280,6 +280,11 @@ contains the address of the faulting dat .Fa si_trap contains a hardware specific reason. .Pp +For some architectures +the value of +.Fa si_addr +may be inaccurate. +.Pp For .Dv SIGPOLL the
CVS commit: src/share/man/man2
Module Name:src Committed By: jruoho Date: Wed Apr 28 13:23:02 UTC 2010 Modified Files: src/share/man/man2: ucontext.2 Log Message: Improvements to markup. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/share/man/man2/ucontext.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/ucontext.2 diff -u src/share/man/man2/ucontext.2:1.3 src/share/man/man2/ucontext.2:1.4 --- src/share/man/man2/ucontext.2:1.3 Wed Apr 30 13:10:53 2008 +++ src/share/man/man2/ucontext.2 Wed Apr 28 13:23:02 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: ucontext.2,v 1.3 2008/04/30 13:10:53 martin Exp $ +.\" $NetBSD: ucontext.2,v 1.4 2010/04/28 13:23:02 jruoho Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 13, 2001 +.Dd April 28, 2010 .Dt UCONTEXT 2 .Os .Sh NAME @@ -36,17 +36,21 @@ .Sh SYNOPSIS .In ucontext.h .Sh DESCRIPTION -.Nm ucontext_t +The +.Vt ucontext_t is a structure type which is used to describe the context of a thread of control within the execution of a process. +A thread's context includes its stack, saved registers, and list of +blocked signals. .Pp -.Nm ucontext_t -includes the following members: +The +.Vt ucontext_t +structure includes the following members: .Bd -literal -offset indent -ucontext_t * uc_link -sigset_t uc_sigmask -stack_t uc_stack -mcontext_tuc_mcontext +ucontext_t *uc_link +sigset_tuc_sigmask +stack_t uc_stack +mcontext_t uc_mcontext .Ed .Pp The @@ -57,7 +61,9 @@ has returned. If .Fa uc_link -is a null pointer, then the context is the main context, +is a +.Dv NULL +pointer, then the context is the main context, and the process will exit with an exit status of 0 upon return. .Pp The
CVS commit: src/share/man/man2
Module Name:src Committed By: christos Date: Mon Jul 26 12:50:52 UTC 2010 Modified Files: src/share/man/man2: siginfo.2 Log Message: fix typo. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.4 src/share/man/man2/siginfo.2:1.5 --- src/share/man/man2/siginfo.2:1.4 Wed Apr 30 09:10:53 2008 +++ src/share/man/man2/siginfo.2 Mon Jul 26 08:50:52 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.4 2008/04/30 13:10:53 martin Exp $ +.\" $NetBSD: siginfo.2,v 1.5 2010/07/26 12:50:52 christos Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 21, 2007 +.Dd July 26, 2010 .Dt SIGINFO 2 .Os .Sh NAME @@ -185,9 +185,9 @@ .It FPE_FLTUND Floating point underflow .It FPE_FLTRES -Floating poing inexact result +Floating point inexact result .It FPE_FLTINV -Invalid Floating poing operation +Invalid Floating point operation .It FPE_FLTSUB Subscript out of range .El
CVS commit: src/share/man/man2
Module Name:src Committed By: riastradh Date: Fri Feb 27 15:21:54 UTC 2015 Modified Files: src/share/man/man2: siginfo.2 Log Message: Fix some typos and make style more consistent. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/share/man/man2/siginfo.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man2/siginfo.2 diff -u src/share/man/man2/siginfo.2:1.6 src/share/man/man2/siginfo.2:1.7 --- src/share/man/man2/siginfo.2:1.6 Mon Apr 23 17:44:39 2012 +++ src/share/man/man2/siginfo.2 Fri Feb 27 15:21:54 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: siginfo.2,v 1.6 2012/04/23 17:44:39 jym Exp $ +.\" $NetBSD: siginfo.2,v 1.7 2015/02/27 15:21:54 riastradh Exp $ .\" .\" Copyright (c) 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -179,15 +179,15 @@ Integer divide by zero .It FPE_INTOVF Integer overflow .It FPE_FLTDIV -Floating point divide by zero +Floating-point divide by zero .It FPE_FLTOVF -Floating point overflow +Floating-point overflow .It FPE_FLTUND -Floating point underflow +Floating-point underflow .It FPE_FLTRES -Floating point inexact result +Floating-point inexact result .It FPE_FLTINV -Invalid Floating point operation +Invalid floating-point operation .It FPE_FLTSUB Subscript out of range .El @@ -203,9 +203,9 @@ Invalid permissions for mapped object .It BUS_ADRALN Invalid address alignment .It BUS_ADRERR -Non-existant physical address +Nonexistent physical address .It BUS_OBJERR -Object specific hardware error +Object-specific hardware error .El .It SIGTRAP .Bl -tag -width TRAP_BRKPT @@ -238,7 +238,7 @@ Output buffers available .It POLL_MSG Input message available .It POLL_ERR -I/O Error +I/O error .It POLL_PRI High priority input available .It POLL_HUP