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.22 by root, Fri Dec 7 13:14:54 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)
1809 CODE: 1813 CODE:
1810 RETVAL = env->set_lg_max (env, max); 1814 RETVAL = env->set_lg_max (env, max);
1811 OUTPUT: 1815 OUTPUT:
1812 RETVAL 1816 RETVAL
1813 1817
1818int mutex_set_max (DB_ENV *env, U32 max)
1819 CODE:
1820 RETVAL = env->mutex_set_max (env, max);
1821 OUTPUT:
1822 RETVAL
1823
1824int mutex_set_increment (DB_ENV *env, U32 increment)
1825 CODE:
1826 RETVAL = env->mutex_set_increment (env, increment);
1827 OUTPUT:
1828 RETVAL
1829
1830int mutex_set_tas_spins (DB_ENV *env, U32 tas_spins)
1831 CODE:
1832 RETVAL = env->mutex_set_tas_spins (env, tas_spins);
1833 OUTPUT:
1834 RETVAL
1835
1836int mutex_set_align (DB_ENV *env, U32 align)
1837 CODE:
1838 RETVAL = env->mutex_set_align (env, align);
1839 OUTPUT:
1840 RETVAL
1841
1814DB_TXN * 1842DB_TXN *
1815txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0) 1843txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0)
1816 CODE: 1844 CODE:
1817 errno = env->txn_begin (env, parent, &RETVAL, flags); 1845 errno = env->txn_begin (env, parent, &RETVAL, flags);
1818 if (errno) 1846 if (errno)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines