*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> wstat (5)              
Title
Content
Arch
Section
 

Contents


wstat(5)							      wstat(5)


NAME    [Toc]    [Back]

     wstat - wait status

SYNOPSIS    [Toc]    [Back]

     #include <sys/wait.h>

DESCRIPTION    [Toc]    [Back]

     When a process waits for status from its children via either the wait or
     waitpid function, the status returned may be evaluated with the following
     macros, defined in	sys/wait.h.  These macros evaluate to integral
     expressions.  The stat argument to	these macros is	the integer value
     returned from wait	or waitpid.

     WIFEXITED(stat<b>)	 Evaluates to a	non-zero value if status was returned
			 for a child process that terminated normally.

     WEXITSTATUS(stat<b>)	 If the	value of WIFEXITED(stat<b>) is non-zero, this
			 macro evaluates to the	exit code that the child
			 process passed	to _exit or exit, or the value that
			 the child process returned from main.

     WIFSIGNALED(stat<b>)	 Evaluates to a	non-zero value if status was returned
			 for a child process that terminated due to the
			 receipt of a signal.

     WTERMSIG(stat<b>)	 If the	value of WIFSIGNALED(stat<b>) is non-zero,	this
			 macro evaluates to the	number of the signal that
			 caused	the termination	of the child process.

     WIFSTOPPED(stat<b>)	 Evaluates to a	non-zero value if status was returned
			 for a child process that is currently stopped.

     WSTOPSIG(stat<b>)	 If the	value of WIFSTOPPED(stat<b>) is non-zero, this
			 macro evaluates to the	number of the signal that
			 caused	the child process to stop.

     WIFCONTINUED(stat<b>)	 Evaluates to a	non-zero value if status was returned
			 for a child process that has continued.

     WCOREDUMP(stat<b>)	 If the	value of WIFSIGNALED(stat<b>) is non-zero,	this
			 macro evaluates to a non-zero value if	a core image
			 of the	terminated child was created.

SEE ALSO    [Toc]    [Back]

      
      
     exit(2), wait(2), waitpid(2)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_exc_get_status_np Tru64 (Macro) Obtains a systemdefined error status from a DECthreads status exception object
msleep FreeBSD wait for events
wakeup_one FreeBSD wait for events
wakeup FreeBSD wait for events
tsleep FreeBSD wait for events
sigsuspend HP-UX wait for a signal
sleep FreeBSD wait for events
pause Linux wait for signal
pthread_cond_timedwait Tru64 Causes a thread to wait for the
wait4 OpenBSD wait for process termination
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service