| OLD | NEW |
| 1 #include <stdio.h> | 1 #include <stdio.h> |
| 2 #include <fcntl.h> | 2 #include <fcntl.h> |
| 3 #include "stdio_impl.h" | 3 #include "stdio_impl.h" |
| 4 | 4 |
| 5 #define MAXTRIES 100 | 5 #define MAXTRIES 100 |
| 6 | 6 |
| 7 char* __randname(char*); | 7 char* __randname(char*); |
| 8 | 8 |
| 9 FILE* tmpfile(void) { | 9 FILE* tmpfile(void) { |
| 10 char s[] = "/tmp/tmpfile_XXXXXX"; | 10 char s[] = "/tmp/tmpfile_XXXXXX"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 __syscall(SYS_unlinkat, AT_FDCWD, s, 0); | 22 __syscall(SYS_unlinkat, AT_FDCWD, s, 0); |
| 23 #endif | 23 #endif |
| 24 f = __fdopen(fd, "w+"); | 24 f = __fdopen(fd, "w+"); |
| 25 if (!f) | 25 if (!f) |
| 26 __syscall(SYS_close, fd); | 26 __syscall(SYS_close, fd); |
| 27 return f; | 27 return f; |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 return 0; | 30 return 0; |
| 31 } | 31 } |
| 32 | |
| 33 LFS64(tmpfile); | |
| OLD | NEW |