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

Function prof_dump_open_impl

deps/memkind/src/jemalloc/src/prof.c:957–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

955#endif
956
957static int
958prof_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}
972prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl;
973
974static bool

Callers

nothing calls this directly

Calls 1

malloc_printfFunction · 0.70

Tested by

no test coverage detected