Changeset 1229
- Timestamp:
- 29/12/2006 17:18:17 (5 years ago)
- Location:
- box/chris/merge
- Files:
-
- 3 edited
-
lib/common/BoxPlatform.h (modified) (1 diff)
-
lib/intercept/intercept.h (modified) (2 diffs)
-
test/bbackupd/testbbackupd.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/common/BoxPlatform.h
r1087 r1229 51 51 #define PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 52 52 #endif 53 54 #define PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 53 55 54 56 // Disable memory testing under Darwin, it just doesn't like it very much. -
box/chris/merge/lib/intercept/intercept.h
r1187 r1229 10 10 #ifndef INTERCEPT_H 11 11 #define INTERCEPT_H 12 #ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 12 13 13 14 #include <dirent.h> … … 36 37 void intercept_setup_error(const char *filename, unsigned int errorafter, 37 38 int errortoreturn, int syscalltoerror); 39 void intercept_setup_delay(const char *filename, unsigned int delay_after, 40 int delay_ms, int syscall_to_delay, int num_delays); 41 bool intercept_triggered(); 38 42 39 43 void intercept_setup_readdir_hook(const char *dirname, readdir_t hookfn); 40 44 void intercept_setup_lstat_hook (const char *filename, lstat_t hookfn); 41 45 46 #endif // !PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 42 47 #endif // !INTERCEPT_H -
box/chris/merge/test/bbackupd/testbbackupd.cpp
r1190 r1229 10 10 #include "Box.h" 11 11 12 #include <dirent.h> 12 13 #include <stdio.h> 13 14 #include <sys/types.h> … … 510 511 } 511 512 512 void intercept_setup_delay(const char *filename, unsigned int delay_after,513 int delay_ms, int syscall_to_delay, int num_delays);514 515 bool intercept_triggered();516 517 513 int start_internal_daemon() 518 514 { … … 599 595 struct dirent *readdir_test_hook_1(DIR *dir) 600 596 { 597 #ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 601 598 intercept_setup_readdir_hook(NULL, readdir_test_hook_2); 599 #endif 602 600 return NULL; 603 601 } … … 610 608 if (time(NULL) >= readdir_stop_time) 611 609 { 610 #ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 612 611 intercept_setup_readdir_hook(NULL, NULL); 613 612 intercept_setup_lstat_hook (NULL, NULL); 613 #endif 614 614 // we will not be called again. 615 615 } … … 627 627 "testfiles/TestDir1/spacetest/d1/test.%d", 628 628 readdir_test_counter); 629 #ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE 629 630 intercept_setup_lstat_hook(stat_hook_filename, lstat_test_hook); 631 #endif 630 632 631 633 return &readdir_test_dirent;
Note: See TracChangeset
for help on using the changeset viewer.
