Changes in uspace/lib/bithenge/src/failure.c [39330200:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/failure.c
r39330200 r8d2dd7f2 85 85 { 86 86 g_initialized = 1; 87 errno_t rc = atexit(atexit_handler);87 int rc = atexit(atexit_handler); 88 88 if (rc) 89 89 exit(127); … … 96 96 /* Record a hit for a backtrace address and return whether this is the first 97 97 * hit. */ 98 static inline errno_t backtrace_item_hit(void *addr)98 static inline int backtrace_item_hit(void *addr) 99 99 { 100 100 backtrace_item_t **bip; … … 120 120 } 121 121 122 errno_t bithenge_should_fail(void)122 int bithenge_should_fail(void) 123 123 { 124 124 g_failure_index++; … … 202 202 } 203 203 204 errno_t bithenge_failure_ferror(FILE *stream)204 int bithenge_failure_ferror(FILE *stream) 205 205 { 206 206 if (bithenge_should_fail()) … … 216 216 } 217 217 218 errno_t bithenge_failure_open(const char *pathname, int flags)218 int bithenge_failure_open(const char *pathname, int flags) 219 219 { 220 220 if (bithenge_should_fail()) { … … 225 225 } 226 226 227 errno_t bithenge_failure_fstat(int fd, vfs_stat_t *buf)227 int bithenge_failure_fstat(int fd, struct stat *buf) 228 228 { 229 229 if (bithenge_should_fail()) {
Note:
See TracChangeset
for help on using the changeset viewer.