Searched refs:curdir (Results 1 – 3 of 3) sorted by relevance
242 int curdir; in runsvdir_main() local301 curdir = open(".", O_RDONLY|O_NDELAY); in runsvdir_main()302 if (curdir == -1) in runsvdir_main()304 close_on_exec_on(curdir); in runsvdir_main()348 while (fchdir(curdir) == -1) { in runsvdir_main()
508 int curdir; in sv() local528 curdir = open(".", O_RDONLY|O_NDELAY); in sv()529 if (curdir == -1) in sv()642 if (fchdir(curdir) == -1) in sv()681 if (fchdir(curdir) == -1) in sv()
403 char *curdir; // = nullstr; /* current working directory */ member488 #define curdir (G_misc.curdir ) macro509 curdir = nullstr; \2800 if (curdir == nullstr) in updatepwd()2802 new = stack_putstr(curdir, new); in updatepwd()2863 oldcur = dir = curdir; in setpwd()2884 curdir = dir; in setpwd()2981 out1fmt("%s\n", curdir); in cdcmd()2989 const char *dir = curdir; in pwdcmd()