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.23 by root, Fri Dec 7 13:38:54 2007 UTC

326 dbt_to_sv (req->sv1, &req->dbt1); 326 dbt_to_sv (req->sv1, &req->dbt1);
327 dbt_to_sv (req->sv2, &req->dbt2); 327 dbt_to_sv (req->sv2, &req->dbt2);
328 dbt_to_sv (req->sv3, &req->dbt3); 328 dbt_to_sv (req->sv3, &req->dbt3);
329 break; 329 break;
330 330
331 case REQ_DB_PUT:
332 case REQ_C_PUT:
333 dbt_to_sv (0, &req->dbt1);
334 dbt_to_sv (0, &req->dbt2);
335 break;
336
331 case REQ_DB_KEY_RANGE: 337 case REQ_DB_KEY_RANGE:
332 { 338 {
333 AV *av = newAV (); 339 AV *av = newAV ();
334 340
335 av_push (av, newSVnv (req->key_range.less)); 341 av_push (av, newSVnv (req->key_range.less));
344 350
345 case REQ_SEQ_GET: 351 case REQ_SEQ_GET:
346 SvREADONLY_off (req->sv1); 352 SvREADONLY_off (req->sv1);
347 353
348 if (sizeof (IV) > 4) 354 if (sizeof (IV) > 4)
349 sv_setiv_mg (req->sv1, req->seq_t); 355 sv_setiv_mg (req->sv1, (IV)req->seq_t);
350 else 356 else
351 sv_setnv_mg (req->sv1, req->seq_t); 357 sv_setnv_mg (req->sv1, (NV)req->seq_t);
352 358
353 SvREFCNT_dec (req->sv1); 359 SvREFCNT_dec (req->sv1);
354 break; 360 break;
355 } 361 }
356 362
381#endif 387#endif
382 388
383static void 389static void
384create_respipe () 390create_respipe ()
385{ 391{
392#ifdef _WIN32
393 int arg; /* argg */
394#endif
386 int old_readfd = respipe [0]; 395 int old_readfd = respipe [0];
387 396
388 if (respipe [1] >= 0) 397 if (respipe [1] >= 0)
389 respipe_close (TO_SOCKET (respipe [1])); 398 respipe_close (TO_SOCKET (respipe [1]));
390 399
403 respipe_close (respipe [0]); 412 respipe_close (respipe [0]);
404 respipe [0] = old_readfd; 413 respipe [0] = old_readfd;
405 } 414 }
406 415
407#ifdef _WIN32 416#ifdef _WIN32
408 int arg = 1; 417 arg = 1;
409 if (ioctlsocket (TO_SOCKET (respipe [0]), FIONBIO, &arg) 418 if (ioctlsocket (TO_SOCKET (respipe [0]), FIONBIO, &arg)
410 || ioctlsocket (TO_SOCKET (respipe [1]), FIONBIO, &arg)) 419 || ioctlsocket (TO_SOCKET (respipe [1]), FIONBIO, &arg))
411#else 420#else
412 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK) 421 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK)
413 || fcntl (respipe [1], F_SETFL, O_NONBLOCK)) 422 || fcntl (respipe [1], F_SETFL, O_NONBLOCK))
960 const_iv (INIT_TXN) 969 const_iv (INIT_TXN)
961 const_iv (RECOVER) 970 const_iv (RECOVER)
962 const_iv (INIT_TXN) 971 const_iv (INIT_TXN)
963 const_iv (RECOVER_FATAL) 972 const_iv (RECOVER_FATAL)
964 const_iv (CREATE) 973 const_iv (CREATE)
974 const_iv (RDONLY)
965 const_iv (USE_ENVIRON) 975 const_iv (USE_ENVIRON)
966 const_iv (USE_ENVIRON_ROOT) 976 const_iv (USE_ENVIRON_ROOT)
967 const_iv (LOCKDOWN) 977 const_iv (LOCKDOWN)
968 const_iv (PRIVATE) 978 const_iv (PRIVATE)
969 const_iv (REGISTER) 979 const_iv (REGISTER)
982 const_iv (OVERWRITE) 992 const_iv (OVERWRITE)
983 const_iv (PANIC_ENVIRONMENT) 993 const_iv (PANIC_ENVIRONMENT)
984 const_iv (REGION_INIT) 994 const_iv (REGION_INIT)
985 const_iv (TIME_NOTGRANTED) 995 const_iv (TIME_NOTGRANTED)
986 const_iv (TXN_NOSYNC) 996 const_iv (TXN_NOSYNC)
997 const_iv (TXN_NOT_DURABLE)
987 const_iv (TXN_WRITE_NOSYNC) 998 const_iv (TXN_WRITE_NOSYNC)
988 const_iv (WRITECURSOR) 999 const_iv (WRITECURSOR)
989 const_iv (YIELDCPU) 1000 const_iv (YIELDCPU)
990 const_iv (ENCRYPT_AES) 1001 const_iv (ENCRYPT_AES)
991 const_iv (XA_CREATE) 1002 const_iv (XA_CREATE)
999 const_iv (READ_UNCOMMITTED) 1010 const_iv (READ_UNCOMMITTED)
1000 const_iv (TRUNCATE) 1011 const_iv (TRUNCATE)
1001 const_iv (NOSYNC) 1012 const_iv (NOSYNC)
1002 const_iv (CHKSUM) 1013 const_iv (CHKSUM)
1003 const_iv (ENCRYPT) 1014 const_iv (ENCRYPT)
1004 const_iv (TXN_NOT_DURABLE)
1005 const_iv (DUP) 1015 const_iv (DUP)
1006 const_iv (DUPSORT) 1016 const_iv (DUPSORT)
1007 const_iv (RECNUM) 1017 const_iv (RECNUM)
1008 const_iv (RENUMBER) 1018 const_iv (RENUMBER)
1009 const_iv (REVSPLITOFF) 1019 const_iv (REVSPLITOFF)
1809 CODE: 1819 CODE:
1810 RETVAL = env->set_lg_max (env, max); 1820 RETVAL = env->set_lg_max (env, max);
1811 OUTPUT: 1821 OUTPUT:
1812 RETVAL 1822 RETVAL
1813 1823
1824int mutex_set_max (DB_ENV *env, U32 max)
1825 CODE:
1826 RETVAL = env->mutex_set_max (env, max);
1827 OUTPUT:
1828 RETVAL
1829
1830int mutex_set_increment (DB_ENV *env, U32 increment)
1831 CODE:
1832 RETVAL = env->mutex_set_increment (env, increment);
1833 OUTPUT:
1834 RETVAL
1835
1836int mutex_set_tas_spins (DB_ENV *env, U32 tas_spins)
1837 CODE:
1838 RETVAL = env->mutex_set_tas_spins (env, tas_spins);
1839 OUTPUT:
1840 RETVAL
1841
1842int mutex_set_align (DB_ENV *env, U32 align)
1843 CODE:
1844 RETVAL = env->mutex_set_align (env, align);
1845 OUTPUT:
1846 RETVAL
1847
1814DB_TXN * 1848DB_TXN *
1815txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0) 1849txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0)
1816 CODE: 1850 CODE:
1817 errno = env->txn_begin (env, parent, &RETVAL, flags); 1851 errno = env->txn_begin (env, parent, &RETVAL, flags);
1818 if (errno) 1852 if (errno)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines