MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / creat

Method creat

fs/extfs/extfs.cpp:1327–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325 return open(path, flags, 0666);
1326 }
1327 photon::fs::IFile *creat(const char *path, mode_t mode) override {
1328 return open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
1329 }
1330 int mkdir(const char *path, mode_t mode) override {
1331 DO_EXT2FS(do_ext2fs_mkdir(fs, path, mode))
1332 }

Callers 2

TESTFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
TEST_FFunction · 0.36