File: www_wait.h

package info (click to toggle)
lynx 2.9.0dev.6-3~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,516 kB
  • sloc: ansic: 135,095; sh: 3,641; makefile: 1,149; perl: 1,130; yacc: 782
file content (34 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef WWW_WAIT_H
#define WWW_WAIT_H 1

#include <HTUtils.h>

#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif

#ifndef WEXITSTATUS
# ifdef HAVE_TYPE_UNIONWAIT
#  define	WEXITSTATUS(status)	(status.w_retcode)
# else
#  define	WEXITSTATUS(status)	(((status) & 0xff00) >> 8)
# endif
#endif

#ifndef WTERMSIG
# ifdef HAVE_TYPE_UNIONWAIT
#  define	WTERMSIG(status)	(status.w_termsig)
# else
#  define	WTERMSIG(status)	((status) & 0x7f)
# endif
#endif

#ifndef WSTOPSIG
# ifdef HAVE_TYPE_UNIONWAIT
#  define	WSTOPSIG(status)	(status.w_stopsig)
# else
#  define	WSTOPSIG(status)	WEXITSTATUS(status)
# endif
#endif

#endif /* WWW_WAIT_H */