MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_dump_open_impl

Function prof_dump_open_impl

deps/jemalloc/src/prof.c:1227–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1225#endif
1226
1227static int
1228prof_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}
1242prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl;
1243
1244static bool

Callers

nothing calls this directly

Calls 1

malloc_printfFunction · 0.70

Tested by

no test coverage detected