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

Comparing EV/EV.xs (file contents):
Revision 1.63 by root, Sat Nov 10 03:19:21 2007 UTC vs.
Revision 1.64 by root, Mon Nov 12 00:31:08 2007 UTC

9 9
10/* fix perl api breakage */ 10/* fix perl api breakage */
11#undef signal 11#undef signal
12#undef sigaction 12#undef sigaction
13 13
14#define EV_SELECT_USE_WIN32_HANDLES 0 14#define EV_SELECT_IS_WINSOCKET 0
15#ifdef _WIN32
15#define EV_SELECT_USE_FD_SET 0 16# define EV_SELECT_USE_FD_SET 0
17# define NFDBITS PERL_NFDBITS
18# define fd_mask Perl_fd_mask
19#endif
16/* due to bugs in OS X we have to use libev/ explicitly here */ 20/* due to bugs in OS X we have to use libev/ explicitly here */
17#include "libev/ev.c" 21#include "libev/ev.c"
18#include "event.c" 22#include "event.c"
19 23
20#ifndef WIN32 24#ifndef _WIN32
21#define DNS_USE_GETTIMEOFDAY_FOR_ID 1 25#define DNS_USE_GETTIMEOFDAY_FOR_ID 1
22#if !defined (WIN32) && !defined(__CYGWIN__) 26#if !defined (WIN32) && !defined(__CYGWIN__)
23# define HAVE_STRUCT_IN6_ADDR 1 27# define HAVE_STRUCT_IN6_ADDR 1
24#endif 28#endif
25#undef HAVE_STRTOK_R 29#undef HAVE_STRTOK_R
27#define strtok_r fake_strtok_r 31#define strtok_r fake_strtok_r
28#include "evdns.h" 32#include "evdns.h"
29#include "evdns.c" 33#include "evdns.c"
30#endif 34#endif
31 35
32#ifndef WIN32 36#ifndef _WIN32
33# include <pthread.h> 37# include <pthread.h>
34#endif 38#endif
35 39
36typedef int Signal; 40typedef int Signal;
37 41
228} 232}
229 233
230///////////////////////////////////////////////////////////////////////////// 234/////////////////////////////////////////////////////////////////////////////
231// DNS 235// DNS
232 236
233#ifndef WIN32 237#ifndef _WIN32
234static void 238static void
235dns_cb (int result, char type, int count, int ttl, void *addresses, void *arg) 239dns_cb (int result, char type, int count, int ttl, void *addresses, void *arg)
236{ 240{
237 dSP; 241 dSP;
238 SV *cb = (SV *)arg; 242 SV *cb = (SV *)arg;
376 evapi.child_stop = ev_child_stop; 380 evapi.child_stop = ev_child_stop;
377 381
378 sv_setiv (sv, (IV)&evapi); 382 sv_setiv (sv, (IV)&evapi);
379 SvREADONLY_on (sv); 383 SvREADONLY_on (sv);
380 } 384 }
381#ifndef WIN32 385#ifndef _WIN32
382 pthread_atfork (0, 0, ev_default_fork); 386 pthread_atfork (0, 0, ev_default_fork);
383#endif 387#endif
384} 388}
385 389
386NV ev_now () 390NV ev_now ()
797 CODE: 801 CODE:
798 RETVAL = ix ? w->rpid : w->rstatus; 802 RETVAL = ix ? w->rpid : w->rstatus;
799 OUTPUT: 803 OUTPUT:
800 RETVAL 804 RETVAL
801 805
802#ifndef WIN32 806#ifndef _WIN32
803 807
804MODULE = EV PACKAGE = EV::DNS PREFIX = evdns_ 808MODULE = EV PACKAGE = EV::DNS PREFIX = evdns_
805 809
806BOOT: 810BOOT:
807{ 811{
878 882
879int evdns_set_option (char *option, char *val, int flags) 883int evdns_set_option (char *option, char *val, int flags)
880 884
881int evdns_resolv_conf_parse (int flags, const char *filename) 885int evdns_resolv_conf_parse (int flags, const char *filename)
882 886
883#ifdef MS_WINDOWS 887#ifdef _WIN32
884 888
885int evdns_config_windows_nameservers () 889int evdns_config_windows_nameservers ()
886 890
887#endif 891#endif
888 892

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines