AT_FDCWD
#ifndef AT_FDCWD
info->number = AT_FDCWD;
fBaseDirectory(AT_FDCWD),
_parentFD = AT_FDCWD;
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
if (fd >= 0 && fd != AT_FDCWD && get_descriptor(fd) == NULL)
return _haiku_build_openat(AT_FDCWD, path, openMode, permissions);
if ((fromFD >= 0 && fromFD != AT_FDCWD && get_descriptor(fromFD) == NULL)
|| (toFD >= 0 && toFD != AT_FDCWD && get_descriptor(toFD) == NULL)) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (oldFD == AT_FDCWD || (oldPath != NULL && oldPath[0] == '/'))
if (newFD == AT_FDCWD || (newPath != NULL && newPath[0] == '/'))
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (fd == AT_FDCWD || (newPath != NULL && newPath[0] == '/')) {
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
if (oldFD == AT_FDCWD || (oldPath != NULL && oldPath[0] == '/'))
if (newFD == AT_FDCWD || (newPath != NULL && newPath[0] == '/'))
if (fd == AT_FDCWD || (path != NULL && path[0] == '/')) {
_UpdateCheckEntryCollisions(fRootAttribute, AT_FDCWD, entry,
_AddEntry(AT_FDCWD, entry, entry->Name(), pathBuffer);
dirFD = _kern_open_dir(AT_FDCWD, ".");
dirFD = _kern_open_dir(AT_FDCWD, cwd);
dirFD = _kern_open_dir(AT_FDCWD, path);
int fd = _kern_open(AT_FDCWD, path, openMode, DEFFILEMODE & ~__gUmask);
path = p->fts_accpath, dfd = AT_FDCWD;
if (fd == AT_FDCWD || fd == -1 || *path == '/')
if ((fd == AT_FDCWD || fd == -1) || (path != NULL && path[0] == '/')) {
return open_attr_dir(AT_FDCWD, path, true);
return open_attr_dir(AT_FDCWD, path, false);
status_t status = _kern_open_attr(AT_FDCWD, path, attribute, type, openMode);
int status = _kern_read_stat(AT_FDCWD, path, true, &stat, sizeof(struct stat));
int fd = _kern_open_dir(AT_FDCWD, path);
_kern_open(AT_FDCWD, path, O_CREAT | O_TRUNC | O_WRONLY, mode & ~__gUmask));
RETURN_AND_SET_ERRNO_TEST_CANCEL(_kern_open(AT_FDCWD, path, openMode, perms));
int status = _kern_unlink(AT_FDCWD, path);
status = _kern_remove_dir(AT_FDCWD, path);
return renameat(AT_FDCWD, from, AT_FDCWD, to);
return (_gettemp(AT_FDCWD, path, &fd, 0, slen, 0) ? fd : -1);
return (_gettemp(AT_FDCWD, path, &fd, 0, 0, oflags) ? fd : -1);
return (_gettemp(AT_FDCWD, path, &fd, 0, 0, 0) ? fd : -1);
return (_gettemp(AT_FDCWD, path, (int *)NULL, 1, 0, 0) ? path : (char *)NULL);
return (_gettemp(AT_FDCWD, path, (int *)NULL, 0, 0, 0) ? path : (char *)NULL);
status = _kern_write_stat(AT_FDCWD, path, true, &stat, sizeof(struct stat),
return mkdirat(AT_FDCWD, path, mode);
return mkfifoat(AT_FDCWD, path, mode);
return mknodat(AT_FDCWD, path, mode, dev);
RETURN_AND_SET_ERRNO(_kern_read_stat(AT_FDCWD, path, true,
RETURN_AND_SET_ERRNO(_kern_read_stat(AT_FDCWD, path, false,
status = _kern_write_stat(AT_FDCWD, path, traverseLink, &stat,
return faccessat(AT_FDCWD, path, accessMode, 0);
return common_chown(AT_FDCWD, path, true, owner, group);
return common_chown(AT_FDCWD, path, false, owner, group);
RETURN_AND_SET_ERRNO(_kern_setcwd(AT_FDCWD, path));
RETURN_AND_SET_ERRNO(_kern_remove_dir(AT_FDCWD, path));
return readlinkat(AT_FDCWD, path, buffer, bufferSize);
return symlinkat(toPath, AT_FDCWD, symlinkPath);
return unlinkat(AT_FDCWD, path, 0);
return linkat(AT_FDCWD, toPath, AT_FDCWD, linkPath, 0);
status = _kern_write_stat(AT_FDCWD, path, true, &stat, sizeof(struct stat),
status = _kern_write_stat(AT_FDCWD, path, true, &stat, sizeof(struct stat),
status = _kern_read_stat(AT_FDCWD, path, false, &stat, sizeof(struct stat));
status = _kern_read_link(AT_FDCWD, path, buffer, &length);
return _kern_open(AT_FDCWD, path, O_RDONLY, 0);
fd = _kern_open(AT_FDCWD, name, O_RDONLY, 0);
status = _kern_access(AT_FDCWD, path, X_OK, false);
int fd = _kern_open(AT_FDCWD, path, O_RDONLY, 0);