Home
last modified time | relevance | path

Searched refs:wd (Results 1 – 5 of 5) sorted by relevance

/coreutils/src/
Dpwd.c302 char *wd = getenv ("PWD"); in logical_getcwd() local
306 if (!wd || wd[0] != '/') in logical_getcwd()
308 p = wd; in logical_getcwd()
318 if (stat (wd, &st1) == 0 && stat (".", &st2) == 0 && psame_inode (&st1, &st2)) in logical_getcwd()
319 return wd; in logical_getcwd()
327 char *wd; in main() local
369 wd = logical_getcwd (); in main()
370 if (wd) in main()
372 puts (wd); in main()
377 wd = xgetcwd (); in main()
[all …]
Dtail.c149 int wd; member
1383 return spec->wd % tabsize; in wd_hasher()
1391 return spec1->wd == spec2->wd; in wd_comparator()
1448 tail_forever_inotify (int wd, struct File_spec *f, size_t n_files, in tail_forever_inotify() argument
1497 f[i].wd = -1; in tail_forever_inotify()
1509 f[i].parent_wd = inotify_add_watch (wd, dirlen ? f[i].name : ".", in tail_forever_inotify()
1530 f[i].wd = inotify_add_watch (wd, f[i].name, inotify_wd_mask); in tail_forever_inotify()
1532 if (f[i].wd < 0) in tail_forever_inotify()
1649 pfd[0].fd = wd; in tail_forever_inotify()
1663 len = safe_read (wd, evbuf, evlen); in tail_forever_inotify()
[all …]
Dinstall.c385 process_dir (char *dir, struct savewd *wd, void *options) in process_dir() argument
389 int ret = (make_dir_parents (dir, wd, make_ancestor, options, in process_dir()
692 struct savewd wd; in mkancesdirs_safe_wd() local
693 savewd_init (&wd); in mkancesdirs_safe_wd()
695 savewd_finish (&wd); in mkancesdirs_safe_wd()
697 if (mkancesdirs (to, &wd, make_ancestor, x) == -1) in mkancesdirs_safe_wd()
705 int restore_result = savewd_restore (&wd, status); in mkancesdirs_safe_wd()
707 savewd_finish (&wd); in mkancesdirs_safe_wd()
Dmkdir.c153 process_dir (char *dir, struct savewd *wd, void *options) in process_dir() argument
167 int ret = (make_dir_parents (dir, wd, o->make_ancestor_function, options, in process_dir()
/coreutils/tests/
Dlocal.mk583 tests/du/restore-wd.sh \