ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.18 by root, Sun Jul 31 19:00:31 2005 UTC vs.
Revision 1.21 by root, Sun Aug 7 03:26:10 2005 UTC

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
22typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */ 20typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */
23typedef void *OutputStream; /* hack, but 5.6.1 is simply toooo old ;) */ 21typedef 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines