AT_FDCWD
if (fchmodat(AT_FDCWD, p->fts_accpath, newmode, atflag) == -1
linkat(AT_FDCWD, source, AT_FDCWD, target,
r = fchmodat(AT_FDCWD, name,
r = utimensat(AT_FDCWD, name,
r = fchownat(AT_FDCWD, name, a.uid, a.gid,
if (fd != AT_FDCWD) {
if (fd != AT_FDCWD) {
if (fd != AT_FDCWD) {
error = kern_openat(td, AT_FDCWD, path, UIO_SYSSPACE, O_CREAT | O_RDWR, 0666);
} else if (fd == AT_FDCWD) {
tests[1].tests[4].params[0].i = AT_FDCWD;
tests[2].tests[4].params[0].i = AT_FDCWD;
tests[3].tests[3].params[0].i = AT_FDCWD;
tests[5].tests[0].params[2].i = AT_FDCWD;
tests[5].tests[1].params[0].i = AT_FDCWD;
tests[5].tests[2].params[2].i = AT_FDCWD;
tests[5].tests[3].params[2].i = AT_FDCWD;
tests[5].tests[5].params[0].i = AT_FDCWD;
tests[5].tests[6].params[0].i = AT_FDCWD;
tests[10].tests[2].params[0].i = AT_FDCWD;
tests[11].tests[4].params[2].i = AT_FDCWD;
tests[13].tests[4].params[0].i = AT_FDCWD;
tests[13].tests[6].params[0].i = AT_FDCWD;
if (chflagsat(AT_FDCWD, p->fts_accpath, newflags,
if (utimensat(AT_FDCWD, *path, ts, AT_SYMLINK_NOFOLLOW) != 0)
if (fchownat(AT_FDCWD, p->fts_accpath, uid, gid, atflag)