Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / talloc / libreplace / system / wait.h
blob79583ad2abcd17d48612ed8f628160c776b62597
1 #ifndef _system_wait_h
2 #define _system_wait_h
3 /*
4 Unix SMB/CIFS implementation.
6 waitpid system include wrappers
8 Copyright (C) Andrew Tridgell 2004
10 ** NOTE! The following LGPL license applies to the replace
11 ** library. This does NOT imply that all of Samba is released
12 ** under the LGPL
14 This library is free software; you can redistribute it and/or
15 modify it under the terms of the GNU Lesser General Public
16 License as published by the Free Software Foundation; either
17 version 3 of the License, or (at your option) any later version.
19 This library is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 Lesser General Public License for more details.
24 You should have received a copy of the GNU Lesser General Public
25 License along with this library; if not, see <http://www.gnu.org/licenses/>.
29 #ifdef HAVE_SYS_WAIT_H
30 #include <sys/wait.h>
31 #endif
33 #include <signal.h>
35 #ifndef SIGCLD
36 #define SIGCLD SIGCHLD
37 #endif
39 #ifndef SIGNAL_CAST
40 #define SIGNAL_CAST (RETSIGTYPE (*)(int))
41 #endif
43 #ifdef HAVE_SETJMP_H
44 #include <setjmp.h>
45 #endif
47 #ifndef SA_RESETHAND
48 #define SA_RESETHAND SA_ONESHOT
49 #endif
51 #if !defined(HAVE_SIG_ATOMIC_T_TYPE)
52 typedef int sig_atomic_t;
53 #endif
55 #if !defined(HAVE_WAITPID) && defined(HAVE_WAIT4)
56 int rep_waitpid(pid_t pid,int *status,int options)
57 #endif
59 #endif