Lines Matching refs:dir
130 #define NOTIFY_DIR "/tmp/.removable" /* dir where filemgr looks */
147 static int pushdir(const char *dir);
985 pushdir(const char *dir)
988 * Change the current working directory to dir and
994 * If dir doesn't exist, leave the current working
997 * If dir isn't a directory, remove it, leave the
1001 * or the chdir operation fails on dir, leave the
1008 if (lstat(dir, &stat_buf) < 0) {
1010 __FILE__, __LINE__, dir);
1016 __FILE__, __LINE__, dir);
1017 (void) remove(dir);
1022 __FILE__, __LINE__, dir);
1025 if (chdir(dir) < 0) {
1028 __FILE__, __LINE__, dir);