Home
last modified time | relevance | path

Searched refs:ret_path (Results 1 – 25 of 27) sorted by relevance

12

/systemd-251/src/basic/
Dchase-symlinks.c64 char **ret_path, in chase_symlinks() argument
143 …if (!original_root && !ret_path && !(flags & (CHASE_NONEXISTENT|CHASE_NO_AUTOFS|CHASE_SAFE|CHASE_S… in chase_symlinks()
369 if (ret_path) in chase_symlinks()
370 *ret_path = TAKE_PTR(done); in chase_symlinks()
386 if (ret_path) { in chase_symlinks()
394 *ret_path = TAKE_PTR(done); in chase_symlinks()
402 *ret_path = c; in chase_symlinks()
414 char **ret_path) { in chase_symlinks_and_open() argument
423 if (empty_or_root(root) && !ret_path && (chase_flags & (CHASE_NO_AUTOFS|CHASE_SAFE)) == 0) { in chase_symlinks_and_open()
432 r = chase_symlinks(path, root, chase_flags, ret_path ? &p : NULL, &path_fd); in chase_symlinks_and_open()
[all …]
Dos-util.c60 int open_extension_release(const char *root, const char *extension, char **ret_path, int *ret_fd) { in open_extension_release() argument
73 ret_path ? &q : NULL, in open_extension_release()
165 if (ret_path) { in open_extension_release()
176 ret_path ? &q : NULL, in open_extension_release()
181 ret_path ? &q : NULL, in open_extension_release()
202 if (ret_path) in open_extension_release()
203 *ret_path = TAKE_PTR(q); in open_extension_release()
208 int fopen_extension_release(const char *root, const char *extension, char **ret_path, FILE **ret_fi… in fopen_extension_release() argument
215 return open_extension_release(root, extension, ret_path, NULL); in fopen_extension_release()
217 r = open_extension_release(root, extension, ret_path ? &p : NULL, &fd); in fopen_extension_release()
[all …]
Dos-util.h16 int open_extension_release(const char *root, const char *extension, char **ret_path, int *ret_fd);
17 static inline int open_os_release(const char *root, char **ret_path, int *ret_fd) { in open_os_release() argument
18 return open_extension_release(root, NULL, ret_path, ret_fd); in open_os_release()
21 int fopen_extension_release(const char *root, const char *extension, char **ret_path, FILE **ret_fi…
22 static inline int fopen_os_release(const char *root, char **ret_path, FILE **ret_file) { in fopen_os_release() argument
23 return fopen_extension_release(root, NULL, ret_path, ret_file); in fopen_os_release()
Dchase-symlinks.h26 …*path_with_prefix, const char *root, ChaseSymlinksFlags chase_flags, char **ret_path, int *ret_fd);
28 …nst char *path, const char *root, ChaseSymlinksFlags chase_flags, int open_flags, char **ret_path);
29 …onst char *path, const char *root, ChaseSymlinksFlags chase_flags, char **ret_path, DIR **ret_dir);
30 …st char *path, const char *root, ChaseSymlinksFlags chase_flags, char **ret_path, struct stat *ret…
32 …r *root, ChaseSymlinksFlags chase_flags, const char *open_flags, char **ret_path, FILE **ret_file);
Dtmpfile-util.c243 int open_tmpfile_linkable(const char *target, int flags, char **ret_path) { in open_tmpfile_linkable() argument
248 assert(ret_path); in open_tmpfile_linkable()
259 *ret_path = NULL; in open_tmpfile_linkable()
273 *ret_path = TAKE_PTR(tmp); in open_tmpfile_linkable()
278 int fopen_tmpfile_linkable(const char *target, int flags, char **ret_path, FILE **ret_file) { in fopen_tmpfile_linkable() argument
285 assert(ret_path); in fopen_tmpfile_linkable()
295 *ret_path = TAKE_PTR(path); in fopen_tmpfile_linkable()
Dfileio.c1043 char **ret_path) { in search_and_fopen_internal() argument
1062 if (ret_path) in search_and_fopen_internal()
1063 *ret_path = path_simplify(TAKE_PTR(p)); in search_and_fopen_internal()
1082 char **ret_path) { in search_and_fopen() argument
1097 if (ret_path) { in search_and_fopen()
1104 *ret_path = path_simplify(p); in search_and_fopen()
1115 return search_and_fopen_internal(filename, mode, root, copy, ret, ret_path); in search_and_fopen()
1124 char **ret_path) { in search_and_fopen_nulstr() argument
1135 if (ret_path) { in search_and_fopen_nulstr()
1142 *ret_path = path_simplify(p); in search_and_fopen_nulstr()
[all …]
Dtmpfile-util.h15 int open_tmpfile_linkable(const char *target, int flags, char **ret_path);
16 int fopen_tmpfile_linkable(const char *target, int flags, char **ret_path, FILE **ret_file);
Dfs-util.c573 static int getenv_tmp_dir(const char **ret_path) { in getenv_tmp_dir() argument
576 assert(ret_path); in getenv_tmp_dir()
603 *ret_path = e; in getenv_tmp_dir()
615 *ret_path = NULL; in getenv_tmp_dir()
942 char **ret_path) { in parse_cifs_service() argument
1007 if (ret_path) in parse_cifs_service()
1008 *ret_path = TAKE_PTR(x); in parse_cifs_service()
Dfileio.h94 … char *path, const char *mode, const char *root, const char **search, FILE **ret, char **ret_path);
95 …t char *path, const char *mode, const char *root, const char *search, FILE **ret, char **ret_path);
Dcgroup-util.c691 int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) { in cg_pid_get_path() argument
697 assert(ret_path); in cg_pid_get_path()
770 *ret_path = path; in cg_pid_get_path()
938 int cg_split_spec(const char *spec, char **ret_controller, char **ret_path) { in cg_split_spec() argument
947 if (ret_path) { in cg_split_spec()
992 if (ret_path) in cg_split_spec()
993 *ret_path = TAKE_PTR(path); in cg_split_spec()
Dpath-lookup.h83 int find_portable_profile(const char *name, const char *unit, char **ret_path);
Dpath-lookup.c882 int find_portable_profile(const char *name, const char *unit, char **ret_path) { in find_portable_profile() argument
886 assert(ret_path); in find_portable_profile()
898 *ret_path = TAKE_PTR(joined); in find_portable_profile()
Dfs-util.h110 int parse_cifs_service(const char *s, char **ret_host, char **ret_service, char **ret_path);
Dcgroup-util.h198 int cg_split_spec(const char *spec, char **ret_controller, char **ret_path);
/systemd-251/src/shared/
Dfind-esp.h11 int find_esp_and_warn(const char *path, bool unprivileged_mode, char **ret_path, uint32_t *ret_part…
12 int find_xbootldr_and_warn(const char *path, bool unprivileged_mode, char **ret_path, sd_id128_t *r…
Defi-api.h16 int efi_get_boot_option(uint16_t nr, char **ret_title, sd_id128_t *ret_part_uuid, char **ret_path, …
39 …option(uint16_t nr, char **ret_title, sd_id128_t *ret_part_uuid, char **ret_path, bool *ret_active… in efi_get_boot_option() argument
Dfind-esp.c385 char **ret_path, in find_esp_and_warn() argument
454 if (ret_path) { in find_esp_and_warn()
461 *ret_path = c; in find_esp_and_warn()
652 char **ret_path, in find_xbootldr_and_warn() argument
701 if (ret_path) { in find_xbootldr_and_warn()
708 *ret_path = c; in find_xbootldr_and_warn()
Defi-api.c225 char **ret_path, in efi_get_boot_option() argument
301 if (dpath->sub_type == MEDIA_FILEPATH_DP && !p && ret_path) { in efi_get_boot_option()
316 if (ret_path) in efi_get_boot_option()
317 *ret_path = TAKE_PTR(p); in efi_get_boot_option()
Dbus-util.c401 …e(sd_bus *b, const char *prefix, const char *sender_id, const char *external_id, char **ret_path) { in bus_path_encode_unique() argument
408 assert_return(ret_path, -EINVAL); in bus_path_encode_unique()
433 *ret_path = p; in bus_path_encode_unique()
Dwatchdog.c43 static int get_watchdog_sysfs_path(const char *filename, char **ret_path) { in get_watchdog_sysfs_path() argument
55 …if (asprintf(ret_path, "/sys/dev/char/%d:%d/%s", major(st.st_rdev), minor(st.st_rdev), filename) <… in get_watchdog_sysfs_path()
Dbus-util.h51 …ue(sd_bus *b, const char *prefix, const char *sender_id, const char *external_id, char **ret_path);
/systemd-251/src/vconsole/
Dvconsole-setup.c344 static int find_source_vc(char **ret_path, unsigned *ret_idx) { in find_source_vc() argument
379 *ret_path = TAKE_PTR(path); in find_source_vc()
386 static int verify_source_vc(char **ret_path, const char *src_vc) { in verify_source_vc() argument
411 *ret_path = path; in verify_source_vc()
/systemd-251/src/systemctl/
Dsystemctl-edit.c210 char **ret_path) { in get_file_to_edit() argument
215 assert(ret_path); in get_file_to_edit()
233 *ret_path = TAKE_PTR(run); in get_file_to_edit()
235 *ret_path = TAKE_PTR(path); in get_file_to_edit()
/systemd-251/src/test/
Dtest-socket-bind.c15 static int find_netcat_executable(char **ret_path) { in find_netcat_executable() argument
20 r = find_executable(*c, ret_path); in find_netcat_executable()
/systemd-251/src/boot/
Dbless-boot.c211 char **ret_path, in acquire_boot_count_path() argument
265 if (ret_path) in acquire_boot_count_path()
266 *ret_path = TAKE_PTR(path); in acquire_boot_count_path()

12