Lines Matching refs:mode
222 chmod(const char* path, mode_t mode)
228 if ((r = _chmod(path, mode)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
231 return _chmod(buf, mode);
233 if (!(r = _chmod(path, mode)) &&
234 (mode & (S_IXUSR|S_IXGRP|S_IXOTH)) &&
351 runve(int mode, const char* path, char* const* argv, char* const* envv)
380 if (mode == _P_DETACH)
388 mode = _P_NOWAIT;
510 sfprintf(sfstderr, "%s %s [", mode == _P_OVERLAY ? "_execve" : "_spawnve", path);
524 if (mode != _P_OVERLAY)
526 pid = _spawnve(mode, path, argv, envv);
561 spawnve(int mode, const char* path, char* const* argv, char* const* envv)
563 return runve(mode, path, argv, envv);
664 int mode;
673 mode = (flags & O_CREAT) ? va_arg(ap, int) : 0;
675 fd = _open(path, flags, mode);
680 fd = _open(buf, flags, mode);
685 (flags & (O_CREAT|O_TRUNC)) == (O_CREAT|O_TRUNC) && (mode & 0111))