Debian Codegraph @

rpython/translator/c/src/cygwin_wait.c

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 #include "wait.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /*
17 typedef int *__wait_status_ptr_t;
18 */
19
20 /*
21 pid_t wait (__wait_status_ptr_t __status);
22 pid_t waitpid (pid_t __pid, __wait_status_ptr_t __status, int __options);
23 pid_t wait3 (__wait_status_ptr_t __status, int __options, struct rusage *__rusage);
24 pid_t wait4 (pid_t __pid, __wait_status_ptr_t __status, int __options, struct rusage *__rusage);
25 */
26
27 pid_t cygwin_wait (int * __status){
28 return wait ((__wait_status_ptr_t) __status);
29 }
30
31 pid_t cygwin_waitpid (pid_t __pid, int * __status, int __options){
32 return waitpid (__pid, (__wait_status_ptr_t) __status, __options);
33 }
34
35 pid_t cygwin_wait3 (int * __status, int __options, struct rusage *__rusage){
36 return wait3 ((__wait_status_ptr_t) __status, __options, __rusage);
37 }
38
39 pid_t cygwin_wait4 (pid_t __pid, int * __status, int __options, struct rusage *__rusage){
40 return wait4 (__pid, (__wait_status_ptr_t) __status, __options, __rusage);
41 }
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif