// /* O_CLOEXEC is available since Linux 2.6.23. Linux 2.6.18 silently ignore it. */
// flags |= O_CLOEXEC;
// #elif defined O_NOINHERIT
// flags |= O_NOINHERIT;
// #endif
PosixShim shim = new PosixShim(runtime.getPosix());
ret = shim.open(runtime.getCurrentDirectory(), data.fname, ModeFlags.createModeFlags(data.oflags), data.perm);
if (ret == null) {
data.errno = shim.errno;
return null;
}
// TODO, if we need it?