|
|
1 | #define _REENTRANT 1 |
|
|
2 | #include <errno.h> |
|
|
3 | |
1 | #include "EXTERN.h" |
4 | #include "EXTERN.h" |
2 | #include "perl.h" |
5 | #include "perl.h" |
3 | #include "XSUB.h" |
6 | #include "XSUB.h" |
4 | |
7 | |
5 | #include "autoconf/config.h" |
8 | #include "autoconf/config.h" |
… | |
… | |
9 | |
12 | |
10 | #include <unistd.h> |
13 | #include <unistd.h> |
11 | #include <fcntl.h> |
14 | #include <fcntl.h> |
12 | #include <signal.h> |
15 | #include <signal.h> |
13 | #include <sched.h> |
16 | #include <sched.h> |
14 | |
|
|
15 | #ifndef _REENTRANT |
|
|
16 | # define _REENTRANT 1 |
|
|
17 | #endif |
|
|
18 | #include <errno.h> |
|
|
19 | |
17 | |
20 | #include <pthread.h> |
18 | #include <pthread.h> |
21 | |
19 | |
22 | typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */ |
20 | typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */ |
23 | typedef void *OutputStream; /* hack, but 5.6.1 is simply toooo old ;) */ |
21 | typedef void *OutputStream; /* hack, but 5.6.1 is simply toooo old ;) */ |
… | |
… | |
510 | PROTOTYPE: $$$$$;$ |
508 | PROTOTYPE: $$$$$;$ |
511 | CODE: |
509 | CODE: |
512 | { |
510 | { |
513 | aio_req req; |
511 | aio_req req; |
514 | STRLEN svlen; |
512 | STRLEN svlen; |
515 | char *svptr = SvPV (data, svlen); |
513 | char *svptr = SvPVbyte (data, svlen); |
516 | |
514 | |
517 | SvUPGRADE (data, SVt_PV); |
515 | SvUPGRADE (data, SVt_PV); |
518 | SvPOK_on (data); |
516 | SvPOK_on (data); |
519 | |
517 | |
520 | if (dataoffset < 0) |
518 | if (dataoffset < 0) |