| 1225 | #endif |
| 1226 | |
| 1227 | static int |
| 1228 | prof_dump_open_impl(bool propagate_err, const char *filename) { |
| 1229 | int fd; |
| 1230 | |
| 1231 | fd = creat(filename, 0644); |
| 1232 | if (fd == -1 && !propagate_err) { |
| 1233 | malloc_printf("<jemalloc>: creat(\"%s\"), 0644) failed\n", |
| 1234 | filename); |
| 1235 | if (opt_abort) { |
| 1236 | abort(); |
| 1237 | } |
| 1238 | } |
| 1239 | |
| 1240 | return fd; |
| 1241 | } |
| 1242 | prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl; |
| 1243 | |
| 1244 | static bool |
nothing calls this directly
no test coverage detected