MCPcopy Create free account
hub / github.com/Genivia/ugrep / OutFile_Open

Function OutFile_Open

lzma/C/7zFile.c:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86WRes InFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 0); }
87
88WRes OutFile_Open(CSzFile *p, const char *name)
89{
90 #if defined(USE_WINDOWS_FILE) || defined(USE_FOPEN)
91 return File_Open(p, name, 1);
92 #else
93 p->fd = creat(name, 0666);
94 return (p->fd != -1) ? 0 : errno;
95 #endif
96}
97
98#endif
99

Callers

nothing calls this directly

Calls 1

File_OpenFunction · 0.85

Tested by

no test coverage detected