History log of /netbsd/sys/sys/wait.h (Results 1 – 25 of 38)
Revision Date Author Comments
# a4f95a9c 07-Aug-2022 andvar <andvar@NetBSD.org>

fix various typos in comments, documentation and messages.
mainly s/paramater/parameter/ and s/reduntant/redundant/.


# c8d61b77 08-Dec-2021 andvar <andvar@NetBSD.org>

fix various typos in comments and log messages.


# 8119d82c 03-Jul-2018 kamil <kamil@NetBSD.org>

Try to appease KUBSan in sys/sys/wait.h in W_EXITCODE()

Cast return value that is stored as int to unsigned int in order to
appease the << 8 operation. In case of a ret=-1, this cast is papering
thi

Try to appease KUBSan in sys/sys/wait.h in W_EXITCODE()

Cast return value that is stored as int to unsigned int in order to
appease the << 8 operation. In case of a ret=-1, this cast is papering
things over or replacing UB with an implementation specific behavior.

There is a reverse operation with the same papering things over:
WEXITSTATUS(x) ((int)(((unsigned int)_W_INT(x)) >> 8) & 0xff)

No functional change intended.

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

show more ...


# f158d337 10-Nov-2016 christos <christos@NetBSD.org>

- Move WUNTRACED outside the _NETBSD_SOURCE ifdef because waitpid()
needs it (kre)
- Reformat the comments


# 3c7ecff3 10-Nov-2016 christos <christos@NetBSD.org>

Reflect current reality about the wait options and standards.


# 2ce97a2c 10-Nov-2016 christos <christos@NetBSD.org>

GC WOPTSCHECKED, define macros for the select opts and all the valid opts.
The linux compat flags are not part of X/Open.


# 33e727d2 05-Nov-2016 christos <christos@NetBSD.org>

Since the stopped bits set is a subset of the continued bits set, check
that we are not continued in WIFSTOPPED.
Make WIFSIGNALED more obvious, it being the remaining state of not exited,
not stopped

Since the stopped bits set is a subset of the continued bits set, check
that we are not continued in WIFSTOPPED.
Make WIFSIGNALED more obvious, it being the remaining state of not exited,
not stopped and not continued.

show more ...


# 575a7585 07-Jul-2016 msaitoh <msaitoh@NetBSD.org>

KNF. Remove extra spaces. No functional change.


# e4b50f62 06-Apr-2016 christos <christos@NetBSD.org>

Implement WIFCONTINUED using the linux value instead of the FreeBSD one...


# 8c071135 02-Apr-2016 christos <christos@NetBSD.org>

need more includes for siginfo...


# 1abafffc 02-Apr-2016 christos <christos@NetBSD.org>

Add wait6() to be used to implement waitid, mostly from FreeBSD.
Create idtypes.h shared by wait.h and pset.h


# 7859dc53 02-Apr-2016 christos <christos@NetBSD.org>

correct the definition of WSTOPPED


# 461a86f9 11-Jan-2009 christos <christos@NetBSD.org>

merge christos-time_t


# 1844147f 07-May-2007 dsl <dsl@NetBSD.org>

Split sys_wait4() so that compat code can fiddle with the returned 'status'
and 'rusage' without having to copy data to/from stackgap buffers.
The old split (find_stopped_child) could be removed.
amd

Split sys_wait4() so that compat code can fiddle with the returned 'status'
and 'rusage' without having to copy data to/from stackgap buffers.
The old split (find_stopped_child) could be removed.
amd64 seems to run netbsd32, linux and linux32 emulations. sparc64 compiles.

show more ...


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 612dd971 26-Feb-2005 perry <perry@NetBSD.org>

nuke trailing whitespace


# 0e1b702c 03-Feb-2005 perry <perry@NetBSD.org>

de-__P


# b15cfcd9 20-Sep-2003 cl <cl@NetBSD.org>

correctly define _W_INT ifdef _KERNEL
- kernels where sizeof(u_short) != sizeof(int) were broken otherwise


# aad01611 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.


# 4be7a2dc 28-Apr-2003 bjh21 <bjh21@NetBSD.org>

Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.

Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

show more ...


# e99cdd83 14-Feb-2003 dsl <dsl@NetBSD.org>

Defines for modified kern_exit.c


# f2082233 18-Jul-2001 thorpej <thorpej@NetBSD.org>

Add `WALLSIG' which causes wait4(2) to wait for all processes, regardless
of exit signal. Add Linux-compatible aliases __WCLONE (for WALTSIG) and
__WALL (for WALLSIG), for compatibility with the Lin

Add `WALLSIG' which causes wait4(2) to wait for all processes, regardless
of exit signal. Add Linux-compatible aliases __WCLONE (for WALTSIG) and
__WALL (for WALLSIG), for compatibility with the Linux clone(2) API.

show more ...


# 40ac8480 11-Jun-2001 wiz <wiz@NetBSD.org>

Fix various misspellings of compatible/compatibility.


# 5d97669c 13-May-1999 thorpej <thorpej@NetBSD.org>

Allow an alternate exit signal (i.e. not SIGCHLD) to be delivered to the
parent, specified at fork time. Specify a new flag to wait4(2), WALTSIG,
to wait for processes which use an alternate exit si

Allow an alternate exit signal (i.e. not SIGCHLD) to be delivered to the
parent, specified at fork time. Specify a new flag to wait4(2), WALTSIG,
to wait for processes which use an alternate exit signal.

This is required for clone(2).

show more ...


# cb7b801c 16-Dec-1998 christos <christos@NetBSD.org>

& 0xff WSTOPSIG and WEXITSTATUS, since only 8 bits are significant.


12