We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f333c commit 81d12ceCopy full SHA for 81d12ce
src/common/FileSystem.cpp
@@ -194,11 +194,9 @@ inline int my_open(Str::StringRef path, openMode_t mode)
194
CloseHandle(h);
195
#elif defined(__linux__) && defined(__GLIBC__)
196
int fd = open64(path.c_str(), modes[mode_] | O_CLOEXEC | O_LARGEFILE, 0666);
197
-#elif defined(__native_client__)
198
- // This doesn't actually work, but it's not used anyways
199
- int fd = open(path.c_str(), modes[mode_], 0666);
200
#else
201
- // O_CLOEXEC is supported in macOS from 10.7 onwards
+ // This doesn't actually work in Native Client, but it's not used anyways.
+ // O_CLOEXEC is supported in macOS from 10.7 onwards.
202
int fd = open(path.c_str(), modes[mode_] | O_CLOEXEC, 0666);
203
#endif
204
0 commit comments