⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣷⣼⣿⠀⣴⠾⠷⠶⠦⡄⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⢠⡤⢶⣦⣾⣿⣿⣿⣿⣿⣿⣿⠀⣿⣶⣶⣦⣄⠳⣤⣤⠄⠀⠀⠀ ⠀⠀⠀⢀⣼⣳⡿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣗⠈⠙⠻⣶⣄⡀⠀⠀⠀ ⠀⠀⠀⣰⠿⠁⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠈⠳⣤⠀⠀ ⠀⠀⢀⡟⠀⢰⣿⠟⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠉⠁⠈⠻⣶⣄⠀⠀⠈⠛⢦ ⠀⣀⡼⠃⠀⣼⡟⠀⠀⢸⣿⡿⠉⣿⡿⠿⠛⣿⡄⠀⠀⠀⠙⠿⣆⠀⠀⠀⠈ ⠈⠁⠀⠀⢸⡟⠀⠀⠀⢸⣿⠀⠀⣿⠁⠀⠀⠈⠃⠀⠀⠀⠀⠀⠘⢷⡄⠀⠀ ⠀⠀⠀⠀⣼⠃⠀⠀⠀⢸⡟⠀⠀⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀ ⠀⠀⠀⣠⡏⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠻⠃⠀⠀⠀⠀⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Current Dir: /usr/include/bits/ [FILE] a.out.h [ edit | delete | rename | download ] [FILE] byteswap-16.h [ edit | delete | rename | download ] [FILE] byteswap.h [ edit | delete | rename | download ] [FILE] cmathcalls.h [ edit | delete | rename | download ] [FILE] confname.h [ edit | delete | rename | download ] [FILE] dirent.h [ edit | delete | rename | download ] [FILE] dlfcn.h [ edit | delete | rename | download ] [FILE] elfclass.h [ edit | delete | rename | download ] [FILE] endian.h [ edit | delete | rename | download ] [FILE] environments.h [ edit | delete | rename | download ] [FILE] epoll.h [ edit | delete | rename | download ] [FILE] errno.h [ edit | delete | rename | download ] [FILE] error.h [ edit | delete | rename | download ] [FILE] eventfd.h [ edit | delete | rename | download ] [FILE] fcntl-linux.h [ edit | delete | rename | download ] [FILE] fcntl.h [ edit | delete | rename | download ] [FILE] fcntl2.h [ edit | delete | rename | download ] [FILE] fenv.h [ edit | delete | rename | download ] [FILE] fenvinline.h [ edit | delete | rename | download ] [FILE] huge_val.h [ edit | delete | rename | download ] [FILE] huge_valf.h [ edit | delete | rename | download ] [FILE] huge_vall.h [ edit | delete | rename | download ] [FILE] hwcap.h [ edit | delete | rename | download ] [FILE] in.h [ edit | delete | rename | download ] [FILE] inf.h [ edit | delete | rename | download ] [FILE] initspin.h [ edit | delete | rename | download ] [FILE] inotify.h [ edit | delete | rename | download ] [FILE] ioctl-types.h [ edit | delete | rename | download ] [FILE] ioctls.h [ edit | delete | rename | download ] [FILE] ipc.h [ edit | delete | rename | download ] [FILE] ipctypes.h [ edit | delete | rename | download ] [FILE] libc-lock.h [ edit | delete | rename | download ] [FILE] libio-ldbl.h [ edit | delete | rename | download ] [FILE] link.h [ edit | delete | rename | download ] [FILE] local_lim.h [ edit | delete | rename | download ] [FILE] locale.h [ edit | delete | rename | download ] [FILE] math-finite.h [ edit | delete | rename | download ] [FILE] mathcalls.h [ edit | delete | rename | download ] [FILE] mathdef.h [ edit | delete | rename | download ] [FILE] mathinline.h [ edit | delete | rename | download ] [FILE] mman.h [ edit | delete | rename | download ] [FILE] monetary-ldbl.h [ edit | delete | rename | download ] [FILE] mqueue.h [ edit | delete | rename | download ] [FILE] mqueue2.h [ edit | delete | rename | download ] [FILE] msq.h [ edit | delete | rename | download ] [FILE] nan.h [ edit | delete | rename | download ] [FILE] netdb.h [ edit | delete | rename | download ] [FILE] param.h [ edit | delete | rename | download ] [FILE] poll.h [ edit | delete | rename | download ] [FILE] poll2.h [ edit | delete | rename | download ] [FILE] posix1_lim.h [ edit | delete | rename | download ] [FILE] posix2_lim.h [ edit | delete | rename | download ] [FILE] posix_opt.h [ edit | delete | rename | download ] [FILE] printf-ldbl.h [ edit | delete | rename | download ] [FILE] pthreadtypes.h [ edit | delete | rename | download ] [FILE] resource.h [ edit | delete | rename | download ] [FILE] sched.h [ edit | delete | rename | download ] [FILE] select.h [ edit | delete | rename | download ] [FILE] select2.h [ edit | delete | rename | download ] [FILE] sem.h [ edit | delete | rename | download ] [FILE] semaphore.h [ edit | delete | rename | download ] [FILE] setjmp.h [ edit | delete | rename | download ] [FILE] setjmp2.h [ edit | delete | rename | download ] [FILE] shm.h [ edit | delete | rename | download ] [FILE] sigaction.h [ edit | delete | rename | download ] [FILE] sigcontext.h [ edit | delete | rename | download ] [FILE] siginfo.h [ edit | delete | rename | download ] [FILE] signalfd.h [ edit | delete | rename | download ] [FILE] signum.h [ edit | delete | rename | download ] [FILE] sigset.h [ edit | delete | rename | download ] [FILE] sigstack.h [ edit | delete | rename | download ] [FILE] sigthread.h [ edit | delete | rename | download ] [FILE] sockaddr.h [ edit | delete | rename | download ] [FILE] socket.h [ edit | delete | rename | download ] [FILE] socket2.h [ edit | delete | rename | download ] [FILE] socket_type.h [ edit | delete | rename | download ] [FILE] stab.def [ edit | delete | rename | download ] [FILE] stat.h [ edit | delete | rename | download ] [FILE] statfs.h [ edit | delete | rename | download ] [FILE] statvfs.h [ edit | delete | rename | download ] [FILE] stdio-ldbl.h [ edit | delete | rename | download ] [FILE] stdio-lock.h [ edit | delete | rename | download ] [FILE] stdio.h [ edit | delete | rename | download ] [FILE] stdio2.h [ edit | delete | rename | download ] [FILE] stdio_lim.h [ edit | delete | rename | download ] [FILE] stdlib-float.h [ edit | delete | rename | download ] [FILE] stdlib-ldbl.h [ edit | delete | rename | download ] [FILE] stdlib.h [ edit | delete | rename | download ] [FILE] string.h [ edit | delete | rename | download ] [FILE] string2.h [ edit | delete | rename | download ] [FILE] string3.h [ edit | delete | rename | download ] [FILE] sys_errlist.h [ edit | delete | rename | download ] [FILE] syscall.h [ edit | delete | rename | download ] [FILE] sysctl.h [ edit | delete | rename | download ] [FILE] syslog-ldbl.h [ edit | delete | rename | download ] [FILE] syslog-path.h [ edit | delete | rename | download ] [FILE] syslog.h [ edit | delete | rename | download ] [FILE] termios.h [ edit | delete | rename | download ] [FILE] time.h [ edit | delete | rename | download ] [FILE] timerfd.h [ edit | delete | rename | download ] [FILE] timex.h [ edit | delete | rename | download ] [FILE] types.h [ edit | delete | rename | download ] [FILE] typesizes.h [ edit | delete | rename | download ] [FILE] uio.h [ edit | delete | rename | download ] [FILE] unistd.h [ edit | delete | rename | download ] [FILE] ustat.h [ edit | delete | rename | download ] [FILE] utmp.h [ edit | delete | rename | download ] [FILE] utmpx.h [ edit | delete | rename | download ] [FILE] utsname.h [ edit | delete | rename | download ] [FILE] waitflags.h [ edit | delete | rename | download ] [FILE] waitstatus.h [ edit | delete | rename | download ] [FILE] wchar-ldbl.h [ edit | delete | rename | download ] [FILE] wchar.h [ edit | delete | rename | download ] [FILE] wchar2.h [ edit | delete | rename | download ] [FILE] wordsize.h [ edit | delete | rename | download ] [FILE] xopen_lim.h [ edit | delete | rename | download ] Viewing: /usr/include/bits/waitstatus.h /* Definitions of status bits for `wait' et al. Copyright (C) 1992,1994,1996,1997,2000,2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ #if !defined _SYS_WAIT_H && !defined _STDLIB_H # error "Never include <bits/waitstatus.h> directly; use <sys/wait.h> instead." #endif /* Everything extant so far uses these same bits. */ /* If WIFEXITED(STATUS), the low-order 8 bits of the status. */ #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) /* If WIFSIGNALED(STATUS), the terminating signal. */ #define __WTERMSIG(status) ((status) & 0x7f) /* If WIFSTOPPED(STATUS), the signal that stopped the child. */ #define __WSTOPSIG(status) __WEXITSTATUS(status) /* Nonzero if STATUS indicates normal termination. */ #define __WIFEXITED(status) (__WTERMSIG(status) == 0) /* Nonzero if STATUS indicates termination by a signal. */ #define __WIFSIGNALED(status) \ (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) /* Nonzero if STATUS indicates the child is stopped. */ #define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) /* Nonzero if STATUS indicates the child continued after a stop. We only define this if <bits/waitflags.h> provides the WCONTINUED flag bit. */ #ifdef WCONTINUED # define __WIFCONTINUED(status) ((status) == __W_CONTINUED) #endif /* Nonzero if STATUS indicates the child dumped core. */ #define __WCOREDUMP(status) ((status) & __WCOREFLAG) /* Macros for constructing status values. */ #define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) #define __W_STOPCODE(sig) ((sig) << 8 | 0x7f) #define __W_CONTINUED 0xffff #define __WCOREFLAG 0x80 #ifdef __USE_BSD # include <endian.h> union wait { int w_status; struct { # if __BYTE_ORDER == __LITTLE_ENDIAN unsigned int __w_termsig:7; /* Terminating signal. */ unsigned int __w_coredump:1; /* Set if dumped core. */ unsigned int __w_retcode:8; /* Return code if exited normally. */ unsigned int:16; # endif /* Little endian. */ # if __BYTE_ORDER == __BIG_ENDIAN unsigned int:16; unsigned int __w_retcode:8; unsigned int __w_coredump:1; unsigned int __w_termsig:7; # endif /* Big endian. */ } __wait_terminated; struct { # if __BYTE_ORDER == __LITTLE_ENDIAN unsigned int __w_stopval:8; /* W_STOPPED if stopped. */ unsigned int __w_stopsig:8; /* Stopping signal. */ unsigned int:16; # endif /* Little endian. */ # if __BYTE_ORDER == __BIG_ENDIAN unsigned int:16; unsigned int __w_stopsig:8; /* Stopping signal. */ unsigned int __w_stopval:8; /* W_STOPPED if stopped. */ # endif /* Big endian. */ } __wait_stopped; }; # define w_termsig __wait_terminated.__w_termsig # define w_coredump __wait_terminated.__w_coredump # define w_retcode __wait_terminated.__w_retcode # define w_stopsig __wait_stopped.__w_stopsig # define w_stopval __wait_stopped.__w_stopval #endif /* Use BSD. */