/systemd-251/src/basic/ |
D | sync-util.c | 69 return RET_NERRNO(fsync(dfd)); in fsync_directory_of_file() 77 r = RET_NERRNO(fsync(fd)); in fsync_full() 109 return RET_NERRNO(fsync(fd)); in fsync_path_at() 123 return RET_NERRNO(fsync(opened_fd)); in fsync_parent_at() 154 return RET_NERRNO(syncfs(at_fd)); in syncfs_path() 162 return RET_NERRNO(syncfs(fd)); in syncfs_path()
|
D | memfd-util.c | 52 return RET_NERRNO(memfd_create(name, MFD_ALLOW_SEALING | MFD_CLOEXEC)); in memfd_new() 81 …return RET_NERRNO(fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW | F_SEAL_WRITE | F_SEAL_SEAL)… in memfd_set_sealed() 112 return RET_NERRNO(ftruncate(fd, sz)); in memfd_set_size()
|
D | fs-util.c | 39 return RET_NERRNO(unlink(path)); in unlink_noerrno() 95 r = RET_NERRNO(unlinkat(olddirfd, oldpath, 0)); in rename_noreplace() 115 return RET_NERRNO(renameat(olddirfd, oldpath, newdirfd, newpath)); in rename_noreplace() 284 return RET_NERRNO(fchmod(fd, m & (~u))); in fchmod_umask() 825 return RET_NERRNO(open(parent, flags, mode)); in open_parent() 1056 r = RET_NERRNO(mkdirat(dirfd, path, mode)); in open_mkdir_at() 1067 fd = RET_NERRNO(openat(dirfd, path, (flags & ~O_EXCL)|O_DIRECTORY|O_NOFOLLOW)); in open_mkdir_at() 1096 return RET_NERRNO(openat(dirfd, pathname, flags, mode)); in openat_report_new()
|
D | signal-util.c | 43 return RET_NERRNO(sigprocmask(SIG_SETMASK, &ss, NULL)); in reset_signal_mask() 248 return RET_NERRNO(sigismember(&ss, sig)); in signal_is_blocked()
|
D | terminal-util.c | 78 return RET_NERRNO(ioctl(fd, VT_ACTIVATE, vt)); in chvt() 410 …r = RET_NERRNO(ioctl(fd, TIOCSCTTY, (flags & ~ACQUIRE_TERMINAL_PERMISSIVE) == ACQUIRE_TERMINAL_FOR… in acquire_terminal() 499 r = RET_NERRNO(ioctl(fd, TIOCNOTTY)); in release_terminal() 508 return RET_NERRNO(ioctl(fd, TIOCVHANGUP)); in terminal_vhangup_fd() 1370 return RET_NERRNO(ioctl(fd, KDSKBMODE, kb)); in vt_reset_keyboard()
|
D | fd-util.c | 157 return RET_NERRNO(fcntl(fd, F_SETFL, nflags)); in fd_nonblock() 173 return RET_NERRNO(fcntl(fd, F_SETFD, nflags)); in fd_cloexec() 791 return RET_NERRNO(ioctl(fd, BTRFS_IOC_DEFRAG, NULL)); in btrfs_defrag_fd()
|
D | tmpfile-util.c | 70 return RET_NERRNO(mkostemp(pattern, O_CLOEXEC)); in mkostemp_safe() 314 … return RET_NERRNO(linkat(AT_FDCWD, FORMAT_PROC_FD_PATH(fd), AT_FDCWD, target, AT_SYMLINK_FOLLOW)); in link_tmpfile()
|
D | env-util.c | 783 return RET_NERRNO(setenv(name, value, overwrite)); in set_unset_env() 785 return RET_NERRNO(unsetenv(name)); in set_unset_env() 798 return RET_NERRNO(setenv(n, e + 1, override)); in putenv_dup()
|
D | errno-util.h | 34 static inline int RET_NERRNO(int ret) { in RET_NERRNO() function
|
D | socket-util.c | 1267 return RET_NERRNO(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen_ptr(ifname))); in socket_bind_to_ifname() 1278 return RET_NERRNO(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, NULL, 0)); in socket_bind_to_ifindex() 1366 … return RET_NERRNO(setsockopt(fd, IPPROTO_IP, IP_UNICAST_IF, &ifindex_be, sizeof(ifindex_be))); in socket_set_unicast_if() 1369 … return RET_NERRNO(setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_IF, &ifindex_be, sizeof(ifindex_be))); in socket_set_unicast_if()
|
D | chattr-util.c | 148 return RET_NERRNO(ioctl(fd, FS_IOC_GETFLAGS, ret)); in read_attr_fd()
|
D | fs-util.h | 50 RET_NERRNO(faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW))
|
/systemd-251/src/shared/ |
D | selinux-util.c | 379 return RET_NERRNO(security_compute_create_raw(mycon, fcon, sclass, label)); in mac_selinux_get_create_label_from_exe() 392 return RET_NERRNO(getcon_raw(label)); in mac_selinux_get_our_label() 454 return RET_NERRNO(security_compute_create_raw(mycon, fcon, sclass, label)); in mac_selinux_get_child_mls_label() 657 r = RET_NERRNO(bind(fd, addr, addrlen)); in mac_selinux_bind() 666 return RET_NERRNO(bind(fd, addr, addrlen)); in mac_selinux_bind()
|
D | bpf-program.c | 79 return RET_NERRNO(bpf(BPF_OBJ_GET_INFO_BY_FD, &attr, sizeof(attr))); in bpf_program_get_info_by_fd() 313 return RET_NERRNO(bpf(BPF_MAP_CREATE, &attr, sizeof(attr))); in bpf_map_new() 324 return RET_NERRNO(bpf(BPF_MAP_UPDATE_ELEM, &attr, sizeof(attr))); in bpf_map_update_element() 335 return RET_NERRNO(bpf(BPF_MAP_LOOKUP_ELEM, &attr, sizeof(attr))); in bpf_map_lookup_element() 345 return RET_NERRNO(bpf(BPF_OBJ_PIN, &attr, sizeof(attr))); in bpf_program_pin()
|
D | label.c | 38 r = RET_NERRNO(symlink(old_path, new_path)); in symlink_label() 75 r = RET_NERRNO(mknod(pathname, mode, dev)); in mknod_label()
|
D | clock-util.c | 51 return RET_NERRNO(ioctl(fd, RTC_SET_TIME, tm)); in clock_set_hwclock() 131 return RET_NERRNO(settimeofday(NULL, &tz)); in clock_reset_timewarp()
|
D | ethtool-util.c | 475 r = RET_NERRNO(ioctl(*ethtool_fd, SIOCETHTOOL, &ifr)); in ethtool_set_wol() 526 return RET_NERRNO(ioctl(*ethtool_fd, SIOCETHTOOL, &ifr)); in ethtool_set_nic_buffer_size() 887 return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr)); in set_slinksettings() 918 return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr)); in set_sset() 1064 return RET_NERRNO(ioctl(*fd, SIOCETHTOOL, &ifr)); in ethtool_set_channels() 1105 return RET_NERRNO(ioctl(*fd, SIOCETHTOOL, &ifr)); in ethtool_set_flow_control() 1225 return RET_NERRNO(ioctl(*ethtool_fd, SIOCETHTOOL, &ifr)); in ethtool_set_nic_coalesce_settings()
|
D | loop-util.c | 904 return RET_NERRNO(ioctl(whole_fd, BLKPG, &ba)); in resize_partition() 941 return RET_NERRNO(ioctl(d->fd, LOOP_SET_STATUS64, &info)); in loop_device_refresh_size() 950 return RET_NERRNO(flock(d->fd, operation)); in loop_device_flock() 962 return RET_NERRNO(fsync(d->fd)); in loop_device_sync()
|
D | elf-util.c | 702 r = RET_NERRNO(pipe2(error_pipe, O_CLOEXEC|O_NONBLOCK)); in parse_elf_object() 707 r = RET_NERRNO(pipe2(return_pipe, O_CLOEXEC)); in parse_elf_object() 713 r = RET_NERRNO(pipe2(json_pipe, O_CLOEXEC)); in parse_elf_object() 747 r = RET_NERRNO(prctl(PR_SET_DUMPABLE, 0)); in parse_elf_object()
|
D | btrfs-util.c | 127 return RET_NERRNO(ioctl(fd, BTRFS_IOC_SUBVOL_CREATE, &args)); in btrfs_subvol_make_fd() 192 return RET_NERRNO(ioctl(fd, BTRFS_IOC_SUBVOL_SETFLAGS, &nflags)); in btrfs_subvol_set_read_only_fd() 235 return RET_NERRNO(ioctl(outfd, BTRFS_IOC_CLONE, infd)); in btrfs_reflink() 255 return RET_NERRNO(ioctl(outfd, BTRFS_IOC_CLONE_RANGE, &args)); in btrfs_clone_range() 766 return RET_NERRNO(ioctl(fd, BTRFS_IOC_QUOTA_CTL, &args)); in btrfs_quota_enable_fd() 970 return RET_NERRNO(ioctl(fd, BTRFS_IOC_QUOTA_RESCAN, &args)); in btrfs_quota_scan_start() 976 return RET_NERRNO(ioctl(fd, BTRFS_IOC_QUOTA_RESCAN_WAIT)); in btrfs_quota_scan_wait()
|
D | rm-rf.c | 354 q = RET_NERRNO(rmdir(path)); in rm_rf() 377 q = RET_NERRNO(unlink(path)); in rm_rf()
|
D | socket-label.c | 54 fd = RET_NERRNO(socket(socket_address_family(a), a->type | flags, a->protocol)); in socket_address_listen()
|
/systemd-251/src/vconsole/ |
D | vconsole-setup.c | 44 return RET_NERRNO(ioctl(fd, TIOCLINUX, data)); in verify_vc_device() 52 return RET_NERRNO(access(vcname, F_OK)); in verify_vc_allocation()
|
/systemd-251/src/login/ |
D | logind-session-device.c | 108 return RET_NERRNO(ioctl(fd, DRM_IOCTL_SET_MASTER, 0)); in sd_drmsetmaster() 113 return RET_NERRNO(ioctl(fd, DRM_IOCTL_DROP_MASTER, 0)); in sd_drmdropmaster()
|
/systemd-251/src/analyze/ |
D | analyze-inspect-elf.c | 29 fd = RET_NERRNO(open(abspath, O_RDONLY|O_CLOEXEC)); in analyze_elf()
|