Changeset 412 for trunk/include
- Timestamp:
- Sep 1, 2012, 4:25:30 PM (12 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r411 r412 458 458 459 459 #if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK) 460 #ifdef USE_SUID 460 461 #define MLOCK(a, b) \ 461 462 if ((skey != NULL) && skey->mlock_failed == SL_FALSE){ \ 462 463 (void) sl_set_suid(); \ 463 464 if (sh_unix_mlock(FIL__, __LINE__, a, b) < 0) skey->mlock_failed = SL_TRUE; \ 464 (void) sl_unset_suid(); } 465 (void) sl_unset_suid(); } 466 #else 467 #define MLOCK(a, b) \ 468 if ((skey != NULL) && skey->mlock_failed == SL_FALSE){ \ 469 if (sh_unix_mlock(FIL__, __LINE__, a, b) < 0) skey->mlock_failed = SL_TRUE; } 470 #endif 465 471 #else 466 472 #define MLOCK(a, b) \ … … 469 475 470 476 #if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK) 477 #ifdef USE_SUID 471 478 #define MUNLOCK(a, b) \ 472 479 if ((skey != NULL) && skey->mlock_failed == SL_FALSE){ \ 473 480 (void) sl_set_suid(); \ 474 481 (void) sh_unix_munlock( a, b );\ 475 (void) sl_unset_suid(); } 482 (void) sl_unset_suid(); } 483 #else 484 #define MUNLOCK(a, b) \ 485 if ((skey != NULL) && skey->mlock_failed == SL_FALSE){ \ 486 (void) sh_unix_munlock( a, b ); } 487 #endif 476 488 #else 477 489 #define MUNLOCK(a, b) \ -
trunk/include/slib.h
r272 r412 39 39 40 40 *****************/ 41 41 42 42 43 /* --------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.