Debian Codegraph @

rpython/translator/c/src/cygwin_wait.h

raw symbols SCIP
1 /*
2 Work around compile error:
3 [translation:ERROR] implement_4.c: In function 'pypy_g_ccall_waitpid__Signed_arrayPtr_Signed':
4 [translation:ERROR] implement_4.c:150095:2: error: incompatible type for argument 2 of 'waitpid'
5 [translation:ERROR] /usr/include/sys/wait.h:43:7: note: expected '__wait_status_ptr_t' but argument is of type 'long int *'
6 */
7
8 #ifdef __CYGWIN__
9
10 #ifndef _PYPY_WAIT_H
11 #define _PYPY_WAIT_H
12
13 #ifndef _SYS_WAIT_H
14 #include <sys/wait.h>
15 #endif
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /*
22 typedef int *__wait_status_ptr_t;
23 */
24
25 /*
26 pid_t wait (__wait_status_ptr_t __status);
27 pid_t waitpid (pid_t __pid, __wait_status_ptr_t __status, int __options);
28 pid_t wait3 (__wait_status_ptr_t __status, int __options, struct rusage *__rusage);
29 pid_t wait4 (pid_t __pid, __wait_status_ptr_t __status, int __options, struct rusage *__rusage);
30 */
31
32 pid_t cygwin_wait (int * __status);
33 pid_t cygwin_waitpid (pid_t __pid, int * __status, int __options);
34 pid_t cygwin_wait3 (int * __status, int __options, struct rusage *__rusage);
35 pid_t cygwin_wait4 (pid_t __pid, int * __status, int __options, struct rusage *__rusage);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
42
43 #endif