Home
last modified time | relevance | path

Searched refs:path (Results 1 – 20 of 20) sorted by relevance

/coreutils/src/
Dselinux.c72 computecon (char const *path, mode_t mode, char **con) in computecon() argument
79 char *dir = dir_name (path); in computecon()
111 char const *path, mode_t mode) in defaultcon() argument
121 if (! IS_ABSOLUTE_FILE_NAME (path)) in defaultcon()
124 newpath = canonicalize_filename_mode (path, CAN_MISSING); in defaultcon()
127 path = newpath; in defaultcon()
130 if (selabel_lookup (selabel_handle, &scon, path, mode) < 0) in defaultcon()
141 if (computecon (path, mode, &tcon) < 0) in defaultcon()
178 restorecon_private (struct selabel_handle *selabel_handle, char const *path) in restorecon_private() argument
198 rc = lsetfilecon (path, tcon); in restorecon_private()
[all …]
Drealpath.c113 path_prefix (char const *prefix, char const *path) in path_prefix() argument
117 path++; in path_prefix()
122 return *path != '/'; in path_prefix()
126 return *path == '/'; in path_prefix()
129 while (*prefix && *path) in path_prefix()
131 if (*prefix != *path) in path_prefix()
134 path++; in path_prefix()
136 return (!*prefix && (*path == '/' || !*path)); in path_prefix()
140 isdir (char const *path) in isdir() argument
143 if (stat (path, &sb) != 0) in isdir()
[all …]
Dstdbuf.c144 char *path = xreadlink ("/proc/self/exe"); in set_program_path() local
145 if (path) in set_program_path()
146 program_path = dir_name (path); in set_program_path()
147 else if ((path = getenv ("PATH"))) in set_program_path()
150 path = xstrdup (path); in set_program_path()
151 for (dir = strtok (path, ":"); dir != nullptr; in set_program_path()
164 free (path); in set_program_path()
223 char const *const *path = search_path; in set_LD_PRELOAD() local
230 if (!**path) /* system default */ in set_LD_PRELOAD()
235 ret = asprintf (&libstdbuf, "%s/%s", *path, LIB_NAME); in set_LD_PRELOAD()
[all …]
Dselinux.h36 char const *path, bool recurse);
39 char const *path, mode_t mode);
45 char const *path, bool recurse) in restorecon() argument
50 char const *path, mode_t mode) in defaultcon() argument
Dls.c4746 file_escape (char const *str, bool path) in file_escape() argument
4752 if (path && ISSLASH (*str)) in file_escape()
/coreutils/tests/cp/
Dnfs-removal-race.sh50 __xstat (int ver, const char *path, struct stat *st)
52 static int (*real_stat)(int ver, const char *path, struct stat *st) = NULL;
58 return real_stat (ver, *path == 'd' && path[1] == 0 ? "d2" : path, st);
Dno-ctx.sh33 int getfilecon (const char *path, char **con)
42 int lgetfilecon (const char *path, char **con)
43 { return getfilecon (path, con); }
/coreutils/tests/du/
Dmove-dir-while-traversing.sh41 dest_parent = os.path.dirname(os.path.dirname(dir))
42 dest = os.path.join(dest_parent, os.path.basename(dir))
/coreutils/tests/df/
Dno-mtab-status.sh44 FILE* fopen(const char *path, const char *mode)
63 if (STREQ (path, "/proc/self/mountinfo"))
69 return fopen_func(path, mode);
Dskip-duplicates.sh55 FILE* fopen(const char *path, const char *mode)
74 if (STREQ (path, "/proc/self/mountinfo"))
80 return fopen_func(path, mode);
/coreutils/tests/ls/
Dgetxattr-speedup.sh44 ssize_t getxattr (const char *path, const char *name, void *value, size_t size)
46 ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
/coreutils/
D.gitmodules2 path = gnulib
DREADME-hacking46 $ export GNULIB_SRCDIR=/path/to/gnulib
Dbootstrap503 gnulib_path=$(git_modules_config submodule.gnulib.path)
1106 git config --file .gitmodules submodule.gnulib.path)
Dinit.cfg545 # Return nonzero if the specified path is on a file system for
DNEWS1783 the relative link on the dereferenced path of an existing link.
3127 file. Now, even on such a system, path resolution obeys the POSIX
5727 * pathchk now exits nonzero for a path with a directory component
/coreutils/man/
Drealpath.x2 realpath \- print the resolved path
/coreutils/doc/
Dlocal.mk62 sc-avoid-path \
87 sc-avoid-path:
Dcoreutils.texi13446 your shell's search path, and not a shell alias or a built-in function.
17807 possible path search result); if the command exists, the environment
18266 module search path environment variable (@samp{PYTHONPATH}):
/coreutils/tests/
Dd_type-check40 fname = os.path.basename(fname)