Lines Matching defs:dirfd

238 // the cwd, or, for the ...at variants, dirfd. In the absolute path
240 static fdio_t* fdio_iodir(const char** path, int dirfd) {
254 } else if (dirfd == AT_FDCWD) {
256 } else if ((dirfd >= 0) && (dirfd < FDIO_MAX_FD)) {
257 iodir = fdio_fdtab[dirfd];
364 zx_status_t __fdio_open_at(fdio_t** io, int dirfd, const char* path, int flags, uint32_t mode) {
371 fdio_t* iodir = fdio_iodir(&path, dirfd);
462 static zx_status_t __fdio_opendir_containing_at(fdio_t** io, int dirfd, const char* path,
468 fdio_t* iodir = fdio_iodir(&path, dirfd);
961 int unlinkat(int dirfd, const char* path, int flags) {
965 if ((r = __fdio_opendir_containing_at(&io, dirfd, path, name)) < 0) {
1322 static int truncateat(int dirfd, const char* path, off_t len) {
1326 if ((r = __fdio_open_at(&io, dirfd, path, O_WRONLY, 0)) < 0) {
1429 static int vopenat(int dirfd, const char* path, int flags, va_list args) {
1444 if ((r = __fdio_open_at(&io, dirfd, path, flags, mode)) < 0) {
1468 int openat(int dirfd, const char* path, int flags, ...) {
1471 int ret = vopenat(dirfd, path, flags, ap);
1482 int mkdirat(int dirfd, const char* path, mode_t mode) {
1488 if ((r = __fdio_open_at(&io, dirfd, path, O_RDONLY | O_CREAT | O_EXCL, mode)) < 0) {
1535 int fstatat(int dirfd, const char* fn, struct stat* s, int flags) {
1539 LOG(1,"fdio: fstatat(%d, '%s',...)\n", dirfd, fn);
1540 if ((r = __fdio_open_at(&io, dirfd, fn, O_PATH, 0)) < 0) {
1629 int utimensat(int dirfd, const char *fn,
1640 if ((r = __fdio_open_at(&io, dirfd, fn, 0, 0)) < 0) {
1714 int faccessat(int dirfd, const char* filename, int amode, int flag) {
1733 if ((status = __fdio_open_at(&io, dirfd, filename, 0, 0)) < 0) {
1916 int dirfd(DIR* dir) {