Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Duser-util.c263 r = errno_or_else(ESRCH); in get_user_creds()
357 return errno_or_else(ESRCH); in get_group_creds()
602 return errno_or_else(ESRCH); in get_home_dir()
659 return errno_or_else(ESRCH); in get_shell()
968 return errno_or_else(EIO); in putpwent_sane()
979 return errno_or_else(EIO); in putspent_sane()
990 return errno_or_else(EIO); in putgrent_sane()
1002 return errno_or_else(EIO); in putsgent_sane()
1017 return errno_or_else(EIO); in fgetpwent_sane()
1032 return errno_or_else(EIO); in fgetspent_sane()
[all …]
Derrno-util.h62 static inline int errno_or_else(int fallback) { in errno_or_else() function
Dglob-util.c43 return errno_or_else(EIO); in safe_glob()
Dfileio.c393 return errno_or_else(EIO); in verify_file()
678 r = errno_or_else(EIO); in read_full_stream_full()
1163 return errno_or_else(EIO); in fflush_and_check()
1414 return errno_or_else(EIO); in safe_fgetc()
Din-addr-util.c448 return errno_or_else(EINVAL); in in_addr_to_string()
478 return errno_or_else(EINVAL); in in_addr_prefix_to_string()
552 return errno_or_else(EINVAL); in in_addr_from_string()
Dfd-util.c117 return errno_or_else(EIO); in fclose_nointr()
Dvirt.c812 return log_debug_errno(errno_or_else(EIO), "Failed to read %s: %m", name); in userns_has_mapping()
Dcgroup-util.c79 return errno_or_else(EIO); in cg_read_pid()
2057 return errno_or_else(EIO); in cg_kernel_controllers()
/systemd-251/src/udev/
Dudev-builtin-blkid.c130 return errno_or_else(ENOMEM); in find_gpt_root()
254 … return log_device_debug_errno(dev, errno_or_else(ENOMEM), "Failed to create blkid prober: %m"); in builtin_blkid()
269 …return log_device_error_errno(dev, errno_or_else(ENOMEM), "Failed to use '%s' probing hint: %m", o… in builtin_blkid()
316 …return log_device_debug_errno(dev, errno_or_else(ENOMEM), "Failed to set device to blkid prober: %… in builtin_blkid()
330 …return log_device_debug_errno(dev, errno_or_else(ENOMEM), "Failed to get number of probed values: … in builtin_blkid()
/systemd-251/src/machine/
Dmachine.c685 return errno_or_else(EIO); in machine_get_uid_shift()
716 return errno_or_else(EIO); in machine_get_uid_shift()
777 return errno_or_else(EIO); in machine_owns_uid_internal()
849 return errno_or_else(EIO); in machine_translate_uid_internal()
Dmachined-dbus.c629 return ret < 0 ? ret : errno_or_else(EIO); in clean_pool_done()
673 return errno_or_else(EIO); in clean_pool_done()
/systemd-251/src/shared/
Ddissect-image.c89 return errno_or_else(ENOMEM); in probe_filesystem()
102 … return log_debug_errno(errno_or_else(EIO), "Failed to probe partition %s: %m", node); in probe_filesystem()
312 return errno_or_else(ENOMEM); in dissect_image()
328 return errno_or_else(EIO); in dissect_image()
455 return errno_or_else(ENOMEM); in dissect_image()
460 return errno_or_else(EIO); in dissect_image()
472 return errno_or_else(EIO); in dissect_image()
479 return errno_or_else(EIO); in dissect_image()
484 return errno_or_else(EIO); in dissect_image()
491 return errno_or_else(EIO); in dissect_image()
[all …]
Dlibcrypt-util.c155 return log_debug_errno(errno_or_else(SYNTHETIC_ERRNO(EINVAL)), in hash_password_full()
Duid-range.c229 return errno_or_else(EIO); in uid_range_load_userns()
Dtests.c153 return errno_or_else(EIO); in write_tmpfile()
/systemd-251/src/home/
Dhomectl-recovery-key.c118 return log_error_errno(errno_or_else(EINVAL), "Failed to UNIX hash secret key: %m"); in identity_add_recovery_key()
Dhomectl-fido2.c86 return log_error_errno(errno_or_else(EINVAL), "Failed to UNIX hash secret key: %m"); in add_fido2_salt()
Dhomectl-pkcs11.c39 return log_error_errno(errno_or_else(EINVAL), "Failed to UNIX hash secret key: %m"); in add_pkcs11_encrypted_key()
/systemd-251/src/getty-generator/
Dgetty-generator.c100 return errno_or_else(EIO); in verify_tty()
/systemd-251/src/core/
Dselinux-access.c275 r = errno_or_else(EPERM); in mac_selinux_access_check_internal()
Ddynamic-user.c497 return errno_or_else(ESRCH); in dynamic_user_realize()
Dexecute.c1030 return errno_or_else(EOPNOTSUPP); in get_supplementary_groups()
/systemd-251/src/firstboot/
Dfirstboot.c896 … return log_error_errno(errno_or_else(EIO), "Failed to find passwd entry for root: %m"); in process_root_args()
913 … return log_error_errno(errno_or_else(EIO), "Failed to find shadow entry for root: %m"); in process_root_args()
/systemd-251/src/partition/
Drepart.c3697 … return log_error_errno(errno_or_else(ENOMEM), "Failed to open block device '%s': %m", p); in resolve_copy_blocks_auto_candidate()
3709 … return log_error_errno(errno_or_else(EIO), "Unable to probe for partition table of '%s': %m", p); in resolve_copy_blocks_auto_candidate()
3720 … return log_error_errno(errno_or_else(EIO), "Unable read partition table of '%s': %m", p); in resolve_copy_blocks_auto_candidate()
/systemd-251/src/login/
Dlogind-dbus.c1273 return errno_or_else(ENOENT); in method_set_user_linger()