Lines 1353-1359
Link Here
|
1353 |
before_syscall_open_char(const char *func, const char *file, const char *mode) |
1353 |
before_syscall_open_char(const char *func, const char *file, const char *mode) |
1354 |
{ |
1354 |
{ |
1355 |
if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0) |
1355 |
if ((strcmp(mode, "r") == 0) || (strcmp(mode, "rb") == 0) |
1356 |
|| (strcmp(mode, "rm") == 0)) { |
1356 |
|| (strcmp(mode, "rm") == 0) || (strcmp(mode, "rt") == 0)) { |
1357 |
return before_syscall("open_rd", file); |
1357 |
return before_syscall("open_rd", file); |
1358 |
} else { |
1358 |
} else { |
1359 |
return before_syscall("open_wr", file); |
1359 |
return before_syscall("open_wr", file); |