K 10 svn:author V 3 kib K 8 svn:date V 27 2012-12-13T06:17:05.454821Z K 7 svn:log V 1226 MFC r242958: Add the wait6(2) system call. It takes POSIX waitid()-like process designator to select a process which is waited for. The system call optionally returns siginfo_t which would be otherwise provided to SIGCHLD handler, as well as extended structure accounting for child and cumulative grandchild resource usage. Allow to get the current rusage information for non-exited processes as well, similar to Solaris. The explicit WEXITED flag is required to wait for exited processes, allowing for more fine-grained control of the events the waiter is interested in. Fix the handling of siginfo for WNOWAIT option for all wait*(2) family, by not removing the queued signal state. PR: standards/170346 MFC r243133: Style fixes for r242958. MFC r243134: Alphabetically reorder the forward-declarations of the structures. Add the declaration for enum idtype, to be used later. MFC r243135: Move the definition of the idtype_t from sys/types.h to sys/wait.h. Fix the bug, use #if __BSD_VISIBLE instead of #if defined(__BSD_VISIBLE), since __BSD_VISIBLE is always defined. Reformat the comments from the Solaris style to KNF. MFC r243136: Restore the proper handling of the pid 0 for waitpid(2). Fix the style around. END