Lines Matching defs:cwd
377 * @note Supports *at semantics, therfor switches back and forth between sfd and cwd
382 int cwd = -1;
388 if ((cwd = open(".", O_RDONLY)) == -1) {
389 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant open cwd: %s",
427 if (fchdir(cwd) == -1) {
428 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
471 if (fchdir(cwd) == -1) {
472 LOG(log_error, logtype_afpd, "sys_ea_copyfile: cant chdir to cwd: %s",
499 if (cwd != -1)
500 close(cwd);