| 955 | #endif |
| 956 | |
| 957 | static int |
| 958 | prof_dump_open_impl(bool propagate_err, const char *filename) { |
| 959 | int fd; |
| 960 | |
| 961 | fd = creat(filename, 0644); |
| 962 | if (fd == -1 && !propagate_err) { |
| 963 | malloc_printf("<jemalloc>: creat(\"%s\"), 0644) failed\n", |
| 964 | filename); |
| 965 | if (opt_abort) { |
| 966 | abort(); |
| 967 | } |
| 968 | } |
| 969 | |
| 970 | return fd; |
| 971 | } |
| 972 | prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl; |
| 973 | |
| 974 | static bool |
nothing calls this directly
no test coverage detected