/systemd-251/src/shared/ |
D | bus-print-properties.c | 16 …value(const char *name, const char *expected_value, BusPrintPropertyFlags flags, const char *value… in bus_print_property_value() argument 22 if (!FLAGS_SET(flags, BUS_PRINT_PROPERTY_SHOW_EMPTY) && isempty(value)) in bus_print_property_value() 25 if (FLAGS_SET(flags, BUS_PRINT_PROPERTY_ONLY_VALUE)) in bus_print_property_value() 33 …aluef(const char *name, const char *expected_value, BusPrintPropertyFlags flags, const char *fmt, … in bus_print_property_valuef() argument 47 return bus_print_property_value(name, expected_value, flags, s); in bus_print_property_valuef() 50 …rty(const char *name, const char *expected_value, sd_bus_message *m, BusPrintPropertyFlags flags) { in bus_print_property() argument 71 if (FLAGS_SET(flags, BUS_PRINT_PROPERTY_SHOW_EMPTY) || !isempty(s)) { in bus_print_property() 77 … bus_print_property_value(name, expected_value, flags, good ? s : "[unprintable]"); in bus_print_property() 93 bus_print_property_value(name, NULL, flags, yes_no(b)); in bus_print_property() 110 bus_print_property_value(name, expected_value, flags, FORMAT_TIMESTAMP(u)); in bus_print_property() [all …]
|
D | userdb.c | 33 UserDBFlags flags; member 104 static UserDBIterator* userdb_iterator_new(LookupWhat what, UserDBFlags flags) { in userdb_iterator_new() argument 116 .flags = flags, in userdb_iterator_new() 117 .synthesize_root = !FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE), in userdb_iterator_new() 118 .synthesize_nobody = !FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE), in userdb_iterator_new() 153 VarlinkReplyFlags flags, in userdb_on_query_reply() argument 231 if (FLAGS_SET(flags, VARLINK_REPLY_CONTINUES)) in userdb_on_query_reply() 285 if (FLAGS_SET(flags, VARLINK_REPLY_CONTINUES)) in userdb_on_query_reply() 328 if (FLAGS_SET(flags, VARLINK_REPLY_CONTINUES)) in userdb_on_query_reply() 404 UserDBFlags flags) { in userdb_start_query() argument [all …]
|
D | user-record.c | 197 int json_dispatch_realm(const char *name, JsonVariant *variant, JsonDispatchFlags flags, void *user… in json_dispatch_realm() argument 208 …return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a string.", strna… in json_dispatch_realm() 213 …return json_log(variant, flags, r, "Failed to check if JSON field '%s' is a valid DNS domain.", st… in json_dispatch_realm() 215 …return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a valid DNS domai… in json_dispatch_realm() 219 return json_log(variant, flags, r, "Failed to allocate string: %m"); in json_dispatch_realm() 224 int json_dispatch_gecos(const char *name, JsonVariant *variant, JsonDispatchFlags flags, void *user… in json_dispatch_gecos() argument 234 …return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a string.", strna… in json_dispatch_gecos() 239 return json_log_oom(variant, flags); in json_dispatch_gecos() 243 …json_log(variant, flags|JSON_DEBUG, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a valid GECOS… in json_dispatch_gecos() 247 return json_log_oom(variant, flags); in json_dispatch_gecos() [all …]
|
D | ask-password-api.c | 85 static int add_to_keyring(const char *keyname, AskPasswordFlags flags, char **passwords) { in add_to_keyring() argument 94 if (!FLAGS_SET(flags, ASK_PASSWORD_PUSH_CACHE)) in add_to_keyring() 132 static int add_to_keyring_and_log(const char *keyname, AskPasswordFlags flags, char **passwords) { in add_to_keyring_and_log() argument 137 r = add_to_keyring(keyname, flags, passwords); in add_to_keyring_and_log() 144 static int ask_password_keyring(const char *keyname, AskPasswordFlags flags, char ***ret) { in ask_password_keyring() argument 152 if (!FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) in ask_password_keyring() 206 AskPasswordFlags flags, in ask_password_plymouth() argument 246 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) { in ask_password_plymouth() 309 if (FLAGS_SET(flags, ASK_PASSWORD_ACCEPT_CACHED)) { in ask_password_plymouth() 324 flags &= ~ASK_PASSWORD_ACCEPT_CACHED; in ask_password_plymouth() [all …]
|
D | rm-rf.c | 122 RemoveFlags flags, in rm_rf_inner_child() argument 134 (is_dir > 0 && (root_dev || (flags & REMOVE_SUBVOLUME)))) { in rm_rf_inner_child() 136 r = fstatat_harder(fd, fname, &st, AT_SYMLINK_NOFOLLOW, flags); in rm_rf_inner_child() 155 if ((flags & REMOVE_SUBVOLUME) && btrfs_might_be_subvol(&st)) { in rm_rf_inner_child() 178 q = rm_rf_children(subdir_fd, flags | REMOVE_PHYSICAL, root_dev); in rm_rf_inner_child() 180 } else if (flags & REMOVE_ONLY_DIRECTORIES) in rm_rf_inner_child() 183 r = unlinkat_harder(fd, fname, is_dir ? AT_REMOVEDIR : 0, flags); in rm_rf_inner_child() 207 RemoveFlags flags, in rm_rf_children() argument 225 … r = unlinkat_harder(dirfd(todos[n_todo-1].dir), dirname, AT_REMOVEDIR, flags); in rm_rf_children() 250 if (!(flags & REMOVE_PHYSICAL)) { in rm_rf_children() [all …]
|
D | cgroup-show.c | 39 OutputFlags flags) { in show_pid_array() argument 57 if (flags & OUTPUT_FULL_WIDTH) in show_pid_array() 86 OutputFlags flags) { in show_cgroup_one_by_path() argument 117 if (!(flags & OUTPUT_KERNEL_THREADS) && is_kernel_thread(pid) > 0) in show_cgroup_one_by_path() 126 show_pid_array(pids, n, prefix, n_columns, false, more, flags); in show_cgroup_one_by_path() 160 OutputFlags flags) { in show_cgroup_name() argument 168 if (FLAGS_SET(flags, OUTPUT_CGROUP_XATTRS) || FLAGS_SET(flags, OUTPUT_CGROUP_ID)) { in show_cgroup_name() 176 if (FLAGS_SET(flags, OUTPUT_CGROUP_ID)) { in show_cgroup_name() 212 if (FLAGS_SET(flags, OUTPUT_CGROUP_XATTRS) && fd >= 0) { in show_cgroup_name() 257 OutputFlags flags) { in show_cgroup_by_path() argument [all …]
|
/systemd-251/src/basic/ |
D | extract-word.c | 20 int extract_first_word(const char **p, char **ret, const char *separators, ExtractFlags flags) { in extract_first_word() argument 30 assert(!FLAGS_SET(flags, EXTRACT_KEEP_QUOTE | EXTRACT_UNQUOTE)); in extract_first_word() 45 if (flags & EXTRACT_DONT_COALESCE_SEPARATORS) in extract_first_word() 53 if (flags & EXTRACT_DONT_COALESCE_SEPARATORS) { in extract_first_word() 54 if (!(flags & EXTRACT_RETAIN_SEPARATORS)) in extract_first_word() 74 if ((flags & EXTRACT_UNESCAPE_RELAX) && in extract_first_word() 75 (quote == 0 || flags & EXTRACT_RELAX)) { in extract_first_word() 86 if (flags & EXTRACT_RELAX) in extract_first_word() 91 if (flags & (EXTRACT_CUNESCAPE|EXTRACT_UNESCAPE_SEPARATORS)) { in extract_first_word() 95 if ((flags & EXTRACT_CUNESCAPE) && in extract_first_word() [all …]
|
D | fileio.c | 133 WriteStringFileFlags flags, in write_string_stream_ts() argument 153 if (flags & WRITE_STRING_FILE_SUPPRESS_REDUNDANT_VIRTUAL) { in write_string_stream_ts() 177 needs_nl = !(flags & WRITE_STRING_FILE_AVOID_NEWLINE) && !endswith(line, "\n"); in write_string_stream_ts() 179 if (needs_nl && (flags & WRITE_STRING_FILE_DISABLE_BUFFER)) { in write_string_stream_ts() 194 if (flags & WRITE_STRING_FILE_SYNC) in write_string_stream_ts() 215 WriteStringFileFlags flags, in write_string_file_atomic() argument 232 r = write_string_stream_ts(f, line, flags, ts); in write_string_file_atomic() 236 r = fchmod_umask(fileno(f), FLAGS_SET(flags, WRITE_STRING_FILE_MODE_0600) ? 0600 : 0644); in write_string_file_atomic() 245 if (FLAGS_SET(flags, WRITE_STRING_FILE_SYNC)) { in write_string_file_atomic() 262 WriteStringFileFlags flags, in write_string_file_ts() argument [all …]
|
D | missing_syscall.h | 66 static inline int missing_memfd_create(const char *name, unsigned int flags) { in missing_memfd_create() argument 68 return syscall(__NR_memfd_create, name, flags); in missing_memfd_create() 82 static inline ssize_t missing_getrandom(void *buffer, size_t count, unsigned flags) { in missing_getrandom() argument 84 return syscall(__NR_getrandom, buffer, count, flags); in missing_getrandom() 118 …g_name_to_handle_at(int fd, const char *name, struct file_handle *handle, int *mnt_id, int flags) { in missing_name_to_handle_at() argument 120 return syscall(__NR_name_to_handle_at, fd, name, handle, mnt_id, flags); in missing_name_to_handle_at() 158 …missing_renameat2(int oldfd, const char *oldname, int newfd, const char *newname, unsigned flags) { in missing_renameat2() argument 160 return syscall(__NR_renameat2, oldfd, oldname, newfd, newname, flags); in missing_renameat2() 228 unsigned int flags) { in missing_copy_file_range() argument 230 return syscall(__NR_copy_file_range, fd_in, off_in, fd_out, off_out, len, flags); in missing_copy_file_range() [all …]
|
D | proc-cmdline.c | 42 static int proc_cmdline_extract_first(const char **p, char **ret_word, ProcCmdlineFlags flags) { in proc_cmdline_extract_first() argument 62 if (FLAGS_SET(flags, PROC_CMDLINE_STRIP_RD_PREFIX)) { in proc_cmdline_extract_first() 68 } else if (FLAGS_SET(flags, PROC_CMDLINE_RD_STRICT) && in_initrd()) in proc_cmdline_extract_first() 81 …arse_given(const char *line, proc_cmdline_parse_t parse_item, void *data, ProcCmdlineFlags flags) { in proc_cmdline_parse_given() argument 89 assert(!FLAGS_SET(flags, PROC_CMDLINE_VALUE_OPTIONAL)); in proc_cmdline_parse_given() 96 r = proc_cmdline_extract_first(&p, &word, flags); in proc_cmdline_parse_given() 114 int proc_cmdline_parse(proc_cmdline_parse_t parse_item, void *data, ProcCmdlineFlags flags) { in proc_cmdline_parse() argument 122 if (!FLAGS_SET(flags, PROC_CMDLINE_IGNORE_EFI_OPTIONS)) { in proc_cmdline_parse() 128 r = proc_cmdline_parse_given(line, parse_item, data, flags); in proc_cmdline_parse() 140 return proc_cmdline_parse_given(line, parse_item, data, flags); in proc_cmdline_parse() [all …]
|
D | chase-symlinks.c | 27 static int log_unsafe_transition(int a, int b, const char *path, ChaseSymlinksFlags flags) { in log_unsafe_transition() argument 31 if (!FLAGS_SET(flags, CHASE_WARN)) in log_unsafe_transition() 47 static int log_autofs_mount_point(int fd, const char *path, ChaseSymlinksFlags flags) { in log_autofs_mount_point() argument 50 if (!FLAGS_SET(flags, CHASE_WARN)) in log_autofs_mount_point() 63 ChaseSymlinksFlags flags, in chase_symlinks() argument 78 if ((flags & CHASE_NONEXISTENT) && ret_fd) in chase_symlinks() 81 if ((flags & CHASE_STEP) && ret_fd) in chase_symlinks() 88 if (FLAGS_SET(flags, CHASE_PREFIX_ROOT) && !path_is_absolute(path)) in chase_symlinks() 143 …if (!original_root && !ret_path && !(flags & (CHASE_NONEXISTENT|CHASE_NO_AUTOFS|CHASE_SAFE|CHASE_S… in chase_symlinks() 146 r = open(path, O_PATH|O_CLOEXEC|((flags & CHASE_NOFOLLOW) ? O_NOFOLLOW : 0)); in chase_symlinks() [all …]
|
D | xattr-util.c | 26 int flags, in getxattr_at_malloc() argument 36 assert((flags & ~(AT_SYMLINK_FOLLOW|AT_EMPTY_PATH)) == 0); in getxattr_at_malloc() 50 flags |= AT_EMPTY_PATH; in getxattr_at_malloc() 53 if (!FLAGS_SET(flags, AT_EMPTY_PATH)) in getxattr_at_malloc() 64 …opened_fd = openat(fd, path, O_PATH|O_CLOEXEC|(FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? 0 : O_NOFOLLO… in getxattr_at_malloc() 88 …n = FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? getxattr(path, name, v, l) : lgetxattr(path, name, v, l); in getxattr_at_malloc() 109 …n = FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? getxattr(path, name, NULL, 0) : lgetxattr(path, name, NU… in getxattr_at_malloc() 137 int flags, in fd_getcrtime_at() argument 146 assert((flags & ~(AT_SYMLINK_FOLLOW|AT_EMPTY_PATH)) == 0); in fd_getcrtime_at() 150 flags |= AT_EMPTY_PATH; in fd_getcrtime_at() [all …]
|
D | mountpoint-util.c | 38 int flags) { in name_to_handle_at_loop() argument 43 assert((flags & ~(AT_SYMLINK_FOLLOW|AT_EMPTY_PATH)) == 0); in name_to_handle_at_loop() 61 if (name_to_handle_at(fd, path, h, &mnt_id, flags) >= 0) { in name_to_handle_at_loop() 99 static int fd_fdinfo_mnt_id(int fd, const char *filename, int flags, int *ret_mnt_id) { in fd_fdinfo_mnt_id() argument 107 assert((flags & ~(AT_SYMLINK_FOLLOW|AT_EMPTY_PATH)) == 0); in fd_fdinfo_mnt_id() 109 if ((flags & AT_EMPTY_PATH) && isempty(filename)) in fd_fdinfo_mnt_id() 112 … subfd = openat(fd, filename, O_CLOEXEC|O_PATH|(flags & AT_SYMLINK_FOLLOW ? 0 : O_NOFOLLOW)); in fd_fdinfo_mnt_id() 176 int fd_is_mount_point(int fd, const char *filename, int flags) { in fd_is_mount_point() argument 186 assert((flags & ~(AT_SYMLINK_FOLLOW|AT_EMPTY_PATH)) == 0); in fd_is_mount_point() 212 if (statx(fd, filename, (FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? 0 : AT_SYMLINK_NOFOLLOW) | in fd_is_mount_point() [all …]
|
D | conf-files.c | 28 unsigned flags, in files_add() argument 36 assert((flags & CONF_FILES_FILTER_MASKED) == 0 || masked); in files_add() 64 if ((flags & CONF_FILES_FILTER_MASKED) && set_contains(masked, de->d_name)) { in files_add() 70 …if (flags & (CONF_FILES_FILTER_MASKED|CONF_FILES_REGULAR|CONF_FILES_DIRECTORY|CONF_FILES_EXECUTABL… in files_add() 77 if ((flags & CONF_FILES_FILTER_MASKED)) in files_add() 91 if (flags & (CONF_FILES_REGULAR|CONF_FILES_DIRECTORY)) in files_add() 92 if (!((flags & CONF_FILES_DIRECTORY) && S_ISDIR(st.st_mode)) && in files_add() 93 !((flags & CONF_FILES_REGULAR) && S_ISREG(st.st_mode))) { in files_add() 99 if (flags & CONF_FILES_EXECUTABLE) in files_add() 109 if (flags & CONF_FILES_BASENAME) { in files_add() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-oci.c | 81 static int oci_unexpected(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userdata… in oci_unexpected() argument 82 return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL), in oci_unexpected() 86 static int oci_unsupported(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userdat… in oci_unsupported() argument 87 return json_log(v, flags, SYNTHETIC_ERRNO(EOPNOTSUPP), in oci_unsupported() 91 static int oci_terminal(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userdata) { in oci_terminal() argument 100 static int oci_console_dimension(const char *name, JsonVariant *variant, JsonDispatchFlags flags, v… in oci_console_dimension() argument 108 return json_log(variant, flags, SYNTHETIC_ERRNO(ERANGE), in oci_console_dimension() 111 return json_log(variant, flags, SYNTHETIC_ERRNO(ERANGE), in oci_console_dimension() 118 static int oci_console_size(const char *name, JsonVariant *v, JsonDispatchFlags flags, void *userda… in oci_console_size() argument 126 return json_dispatch(v, table, oci_unexpected, flags, userdata); in oci_console_size() [all …]
|
/systemd-251/src/core/ |
D | dbus-socket.c | 169 UnitWriteFlags flags, in bus_socket_set_transient_property() argument 180 flags |= UNIT_PRIVATE; in bus_socket_set_transient_property() 183 return bus_set_transient_bool(u, name, &s->accept, message, flags, error); in bus_socket_set_transient_property() 186 return bus_set_transient_bool(u, name, &s->flush_pending, message, flags, error); in bus_socket_set_transient_property() 189 return bus_set_transient_bool(u, name, &s->writable, message, flags, error); in bus_socket_set_transient_property() 192 return bus_set_transient_bool(u, name, &s->keep_alive, message, flags, error); in bus_socket_set_transient_property() 195 return bus_set_transient_bool(u, name, &s->no_delay, message, flags, error); in bus_socket_set_transient_property() 198 return bus_set_transient_bool(u, name, &s->free_bind, message, flags, error); in bus_socket_set_transient_property() 201 return bus_set_transient_bool(u, name, &s->transparent, message, flags, error); in bus_socket_set_transient_property() 204 return bus_set_transient_bool(u, name, &s->broadcast, message, flags, error); in bus_socket_set_transient_property() [all …]
|
D | dbus-util.h | 17 UnitWriteFlags flags, \ 29 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { \ 31 unit_write_settingf(u, flags, name, \ 44 UnitWriteFlags flags, \ 60 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { \ 62 unit_write_settingf(u, flags, name, \ 75 UnitWriteFlags flags, \ 93 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { \ 95 unit_write_settingf(u, flags, name, \ 108 UnitWriteFlags flags, \ [all …]
|
D | dbus-cgroup.c | 511 UnitWriteFlags flags, in bus_cgroup_set_transient_property() argument 521 flags |= UNIT_PRIVATE; in bus_cgroup_set_transient_property() 533 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_cgroup_set_transient_property() 537 unit_write_settingf(u, flags, name, "Delegate=%s", yes_no(b)); in bus_cgroup_set_transient_property() 573 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_cgroup_set_transient_property() 588 unit_write_settingf(u, flags, name, "Delegate=%s", strempty(t)); in bus_cgroup_set_transient_property() 597 unit_write_settingf(u, flags, name, "%s=%s", name, strempty(t)); in bus_cgroup_set_transient_property() 623 if (!UNIT_WRITE_FLAGS_NOOP(flags) && !strv_contains(*filters, path)) { in bus_cgroup_set_transient_property() 634 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_cgroup_set_transient_property() 657 unit_write_setting(u, flags, name, buf); in bus_cgroup_set_transient_property() [all …]
|
D | dbus-execute.c | 1341 !!(c->flags & EXEC_COMMAND_IGNORE_FAILURE), in append_exec_command() 1377 r = exec_command_flags_to_strv(c->flags, &ex_opts); in append_exec_ex_command() 1481 static char *exec_command_flags_to_exec_chars(ExecCommandFlags flags) { in exec_command_flags_to_exec_chars() argument 1482 return strjoin(FLAGS_SET(flags, EXEC_COMMAND_IGNORE_FAILURE) ? "-" : "", in exec_command_flags_to_exec_chars() 1483 FLAGS_SET(flags, EXEC_COMMAND_NO_ENV_EXPAND) ? ":" : "", in exec_command_flags_to_exec_chars() 1484 FLAGS_SET(flags, EXEC_COMMAND_FULLY_PRIVILEGED) ? "+" : "", in exec_command_flags_to_exec_chars() 1485 FLAGS_SET(flags, EXEC_COMMAND_NO_SETUID) ? "!" : "", in exec_command_flags_to_exec_chars() 1486 FLAGS_SET(flags, EXEC_COMMAND_AMBIENT_MAGIC) ? "!!" : ""); in exec_command_flags_to_exec_chars() 1494 UnitWriteFlags flags, in bus_set_transient_exec_command() argument 1534 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_set_transient_exec_command() [all …]
|
D | dbus-service.c | 276 UnitWriteFlags flags, in bus_set_transient_exit_status() argument 302 if (n_status == 0 && n_signal == 0 && !UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_set_transient_exit_status() 304 unit_write_settingf(u, flags, name, "%s=", name); in bus_set_transient_exit_status() 312 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_set_transient_exit_status() 317 unit_write_settingf(u, flags, name, "%s=%"PRIi32, name, status[i]); in bus_set_transient_exit_status() 328 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_set_transient_exit_status() 333 unit_write_settingf(u, flags, name, "%s=%s", name, str); in bus_set_transient_exit_status() 346 UnitWriteFlags flags, in bus_set_transient_std_fd() argument 358 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in bus_set_transient_std_fd() 384 UnitWriteFlags flags, in bus_service_set_transient_property() argument [all …]
|
D | dbus-execute.h | 9 #define BUS_EXEC_STATUS_VTABLE(prefix, offset, flags) \ argument 10 …DUAL_TIMESTAMP(prefix "StartTimestamp", (offset) + offsetof(ExecStatus, start_timestamp), flags), \ 11 …Y_DUAL_TIMESTAMP(prefix "ExitTimestamp", (offset) + offsetof(ExecStatus, exit_timestamp), flags), \ 12 …S_PROPERTY(prefix "PID", "u", bus_property_get_pid, (offset) + offsetof(ExecStatus, pid), flags), \ 13 …PROPERTY(prefix "Code", "i", bus_property_get_int, (offset) + offsetof(ExecStatus, code), flags), \ 14 …ROPERTY(prefix "Status", "i", bus_property_get_int, (offset) + offsetof(ExecStatus, status), flags) 16 #define BUS_EXEC_COMMAND_VTABLE(name, offset, flags) \ argument 17 SD_BUS_PROPERTY(name, "a(sasbttttuii)", bus_property_get_exec_command, offset, flags) 19 #define BUS_EXEC_COMMAND_LIST_VTABLE(name, offset, flags) \ argument 20 SD_BUS_PROPERTY(name, "a(sasbttttuii)", bus_property_get_exec_command_list, offset, flags) [all …]
|
D | dbus-timer.c | 143 UnitWriteFlags flags, in timer_add_one_monotonic_spec() argument 147 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in timer_add_one_monotonic_spec() 150 unit_write_settingf(UNIT(t), flags|UNIT_ESCAPE_SPECIFIERS, name, in timer_add_one_monotonic_spec() 174 UnitWriteFlags flags, in timer_add_one_calendar_spec() argument 187 if (!UNIT_WRITE_FLAGS_NOOP(flags)) { in timer_add_one_calendar_spec() 188 unit_write_settingf(UNIT(t), flags|UNIT_ESCAPE_SPECIFIERS, name, in timer_add_one_calendar_spec() 210 UnitWriteFlags flags, in bus_timer_set_transient_property() argument 220 flags |= UNIT_PRIVATE; in bus_timer_set_transient_property() 223 return bus_set_transient_usec(u, name, &t->accuracy_usec, message, flags, error); in bus_timer_set_transient_property() 227 … return bus_set_transient_usec(u, "AccuracyUSec", &t->accuracy_usec, message, flags, error); in bus_timer_set_transient_property() [all …]
|
D | dbus-mount.c | 68 UnitWriteFlags flags, in bus_mount_set_transient_property() argument 77 flags |= UNIT_PRIVATE; in bus_mount_set_transient_property() 80 return bus_set_transient_path(u, name, &m->where, message, flags, error); in bus_mount_set_transient_property() 83 … return bus_set_transient_string(u, name, &m->parameters_fragment.what, message, flags, error); in bus_mount_set_transient_property() 86 … return bus_set_transient_string(u, name, &m->parameters_fragment.options, message, flags, error); in bus_mount_set_transient_property() 89 … return bus_set_transient_string(u, name, &m->parameters_fragment.fstype, message, flags, error); in bus_mount_set_transient_property() 92 … return bus_set_transient_usec_fix_0(u, name, &m->timeout_usec, message, flags, error); in bus_mount_set_transient_property() 95 return bus_set_transient_mode_t(u, name, &m->directory_mode, message, flags, error); in bus_mount_set_transient_property() 98 return bus_set_transient_bool(u, name, &m->sloppy_options, message, flags, error); in bus_mount_set_transient_property() 101 return bus_set_transient_bool(u, name, &m->lazy_unmount, message, flags, error); in bus_mount_set_transient_property() [all …]
|
/systemd-251/src/sysupdate/ |
D | sysupdate-update-set.c | 31 const char *update_set_flags_to_color(UpdateSetFlags flags) { in update_set_flags_to_color() argument 33 if (flags == 0 || (flags & UPDATE_OBSOLETE)) in update_set_flags_to_color() 34 return (flags & UPDATE_NEWEST) ? ansi_highlight_grey() : ansi_grey(); in update_set_flags_to_color() 36 if (FLAGS_SET(flags, UPDATE_INSTALLED|UPDATE_NEWEST)) in update_set_flags_to_color() 39 if (FLAGS_SET(flags, UPDATE_INSTALLED|UPDATE_PROTECTED)) in update_set_flags_to_color() 42 …if ((flags & (UPDATE_AVAILABLE|UPDATE_INSTALLED|UPDATE_NEWEST|UPDATE_OBSOLETE)) == (UPDATE_AVAILAB… in update_set_flags_to_color() 48 const char *update_set_flags_to_glyph(UpdateSetFlags flags) { in update_set_flags_to_glyph() argument 50 if (flags == 0 || (flags & UPDATE_OBSOLETE)) in update_set_flags_to_glyph() 53 if (FLAGS_SET(flags, UPDATE_INSTALLED|UPDATE_NEWEST)) in update_set_flags_to_glyph() 56 if (FLAGS_SET(flags, UPDATE_INSTALLED|UPDATE_PROTECTED)) in update_set_flags_to_glyph() [all …]
|
D | sysupdate-partition.c | 26 uint64_t flags = 0; in fdisk_partition_get_attrs_as_uint64() local 51 flags |= GPT_FLAG_REQUIRED_PARTITION; in fdisk_partition_get_attrs_as_uint64() 53 flags |= GPT_FLAG_NO_BLOCK_IO_PROTOCOL; in fdisk_partition_get_attrs_as_uint64() 55 flags |= GPT_FLAG_LEGACY_BIOS_BOOTABLE; in fdisk_partition_get_attrs_as_uint64() 68 … if (u >= sizeof(flags)*8) { /* partition flags on GPT are 64bit. Let's ignore any further in fdisk_partition_get_attrs_as_uint64() 74 flags |= UINT64_C(1) << u; in fdisk_partition_get_attrs_as_uint64() 78 *ret = flags; in fdisk_partition_get_attrs_as_uint64() 84 uint64_t flags) { in fdisk_partition_set_attrs_as_uint64() argument 91 for (unsigned i = 0; i < sizeof(flags) * 8; i++) { in fdisk_partition_set_attrs_as_uint64() 92 if (!FLAGS_SET(flags, UINT64_C(1) << i)) in fdisk_partition_set_attrs_as_uint64() [all …]
|