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

Comparing BDB/BDB.xs (file contents):
Revision 1.19 by root, Mon Sep 24 18:14:11 2007 UTC vs.
Revision 1.21 by root, Thu Dec 6 02:44:48 2007 UTC

344 344
345 case REQ_SEQ_GET: 345 case REQ_SEQ_GET:
346 SvREADONLY_off (req->sv1); 346 SvREADONLY_off (req->sv1);
347 347
348 if (sizeof (IV) > 4) 348 if (sizeof (IV) > 4)
349 sv_setiv_mg (req->sv1, req->seq_t); 349 sv_setiv_mg (req->sv1, (IV)req->seq_t);
350 else 350 else
351 sv_setnv_mg (req->sv1, req->seq_t); 351 sv_setnv_mg (req->sv1, (NV)req->seq_t);
352 352
353 SvREFCNT_dec (req->sv1); 353 SvREFCNT_dec (req->sv1);
354 break; 354 break;
355 } 355 }
356 356
381#endif 381#endif
382 382
383static void 383static void
384create_respipe () 384create_respipe ()
385{ 385{
386#ifdef _WIN32
387 int arg; /* argg */
388#endif
386 int old_readfd = respipe [0]; 389 int old_readfd = respipe [0];
387 390
388 if (respipe [1] >= 0) 391 if (respipe [1] >= 0)
389 respipe_close (TO_SOCKET (respipe [1])); 392 respipe_close (TO_SOCKET (respipe [1]));
390 393
403 respipe_close (respipe [0]); 406 respipe_close (respipe [0]);
404 respipe [0] = old_readfd; 407 respipe [0] = old_readfd;
405 } 408 }
406 409
407#ifdef _WIN32 410#ifdef _WIN32
408 int arg = 1; 411 arg = 1;
409 if (ioctlsocket (TO_SOCKET (respipe [0]), FIONBIO, &arg) 412 if (ioctlsocket (TO_SOCKET (respipe [0]), FIONBIO, &arg)
410 || ioctlsocket (TO_SOCKET (respipe [1]), FIONBIO, &arg)) 413 || ioctlsocket (TO_SOCKET (respipe [1]), FIONBIO, &arg))
411#else 414#else
412 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK) 415 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK)
413 || fcntl (respipe [1], F_SETFL, O_NONBLOCK)) 416 || fcntl (respipe [1], F_SETFL, O_NONBLOCK))
960 const_iv (INIT_TXN) 963 const_iv (INIT_TXN)
961 const_iv (RECOVER) 964 const_iv (RECOVER)
962 const_iv (INIT_TXN) 965 const_iv (INIT_TXN)
963 const_iv (RECOVER_FATAL) 966 const_iv (RECOVER_FATAL)
964 const_iv (CREATE) 967 const_iv (CREATE)
968 const_iv (RDONLY)
965 const_iv (USE_ENVIRON) 969 const_iv (USE_ENVIRON)
966 const_iv (USE_ENVIRON_ROOT) 970 const_iv (USE_ENVIRON_ROOT)
967 const_iv (LOCKDOWN) 971 const_iv (LOCKDOWN)
968 const_iv (PRIVATE) 972 const_iv (PRIVATE)
969 const_iv (REGISTER) 973 const_iv (REGISTER)
982 const_iv (OVERWRITE) 986 const_iv (OVERWRITE)
983 const_iv (PANIC_ENVIRONMENT) 987 const_iv (PANIC_ENVIRONMENT)
984 const_iv (REGION_INIT) 988 const_iv (REGION_INIT)
985 const_iv (TIME_NOTGRANTED) 989 const_iv (TIME_NOTGRANTED)
986 const_iv (TXN_NOSYNC) 990 const_iv (TXN_NOSYNC)
991 const_iv (TXN_NOT_DURABLE)
987 const_iv (TXN_WRITE_NOSYNC) 992 const_iv (TXN_WRITE_NOSYNC)
988 const_iv (WRITECURSOR) 993 const_iv (WRITECURSOR)
989 const_iv (YIELDCPU) 994 const_iv (YIELDCPU)
990 const_iv (ENCRYPT_AES) 995 const_iv (ENCRYPT_AES)
991 const_iv (XA_CREATE) 996 const_iv (XA_CREATE)
999 const_iv (READ_UNCOMMITTED) 1004 const_iv (READ_UNCOMMITTED)
1000 const_iv (TRUNCATE) 1005 const_iv (TRUNCATE)
1001 const_iv (NOSYNC) 1006 const_iv (NOSYNC)
1002 const_iv (CHKSUM) 1007 const_iv (CHKSUM)
1003 const_iv (ENCRYPT) 1008 const_iv (ENCRYPT)
1004 const_iv (TXN_NOT_DURABLE)
1005 const_iv (DUP) 1009 const_iv (DUP)
1006 const_iv (DUPSORT) 1010 const_iv (DUPSORT)
1007 const_iv (RECNUM) 1011 const_iv (RECNUM)
1008 const_iv (RENUMBER) 1012 const_iv (RENUMBER)
1009 const_iv (REVSPLITOFF) 1013 const_iv (REVSPLITOFF)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines