| 14 | #define THREAD_COUNT 256 |
| 15 | |
| 16 | void* thread(void*) |
| 17 | { |
| 18 | int fd; |
| 19 | |
| 20 | /* Happens with any file, not just /dev/null */ |
| 21 | fd = open("/dev/null", O_RDONLY); |
| 22 | if (fd >= 0) |
| 23 | close(fd); |
| 24 | else |
| 25 | fprintf(stderr, "Failed to open /dev/null\n"); |
| 26 | return 0; |
| 27 | } |
| 28 | |
| 29 | int main() |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected