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

Comparing IO-AIO/schmorp.h (file contents):
Revision 1.18 by root, Tue Feb 20 06:05:19 2018 UTC vs.
Revision 1.20 by root, Fri Sep 6 13:51:16 2019 UTC

55/* use NV for 32 bit perls as it allows larger offsets */ 55/* use NV for 32 bit perls as it allows larger offsets */
56#if IVSIZE >= 8 56#if IVSIZE >= 8
57typedef IV VAL64; 57typedef IV VAL64;
58# define SvVAL64(sv) SvIV (sv) 58# define SvVAL64(sv) SvIV (sv)
59# define newSVval64(i64) newSViv (i64) 59# define newSVval64(i64) newSViv (i64)
60# define sv_setval64(sv,i64) sv_setiv ((sv), (i64))
60#else 61#else
61typedef NV VAL64; 62typedef NV VAL64;
62# define SvVAL64(sv) SvNV (sv) 63# define SvVAL64(sv) SvNV (sv)
63# define newSVval64(i64) newSVnv (i64) 64# define newSVval64(i64) newSVnv (i64)
65# define sv_setval64(sv,i64) sv_setnv ((sv), (i64))
64#endif 66#endif
65 67
66/* typemap for the above */ 68/* typemap for the above */
67/* 69/*
68VAL64 T_VAL64 70VAL64 T_VAL64
440 * incompetent windows programmers - is this redundant? 442 * incompetent windows programmers - is this redundant?
441 */ 443 */
442 DWORD dummy; 444 DWORD dummy;
443 WriteFile (S_TO_HANDLE (epp->fd [1]), (LPCVOID)&dummy, 1, &dummy, 0); 445 WriteFile (S_TO_HANDLE (epp->fd [1]), (LPCVOID)&dummy, 1, &dummy, 0);
444#else 446#else
445# if SCHMORP_H_HAVE_EVENTFD
446 static uint64_t counter = 1; 447 static uint64_t counter = 1;
447# else
448 static char counter [8];
449# endif
450 /* some modules accept fd's from outside, support eventfd here */ 448 /* some modules accept fd's from outside, support eventfd here */
451 if (write (epp->fd [1], &counter, epp->len) < 0 449 if (write (epp->fd [1], &counter, epp->len) < 0
452 && errno == EINVAL 450 && errno == EINVAL
453 && epp->len != 8) 451 && epp->len != 8)
454 write (epp->fd [1], &counter, (epp->len = 8)); 452 write (epp->fd [1], &counter, (epp->len = 8));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines