| /systemd/src/basic/ |
| H A D | mkdir-label.c | 28 int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid) { argument 29 return mkdir_safe_internal(path, mode, uid, gid, mkdir_label); 32 int mkdir_parents_label(const char *path, mode_t mode) { argument 33 return mkdir_parents_internal(NULL, path, mode, mkdir_label); 36 int mkdir_p_label(const char *path, mode_t mode) { argument 37 return mkdir_p_internal(NULL, path, mode, mkdir_label);
|
| H A D | mkdir.h | 25 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid); 26 int mkdir_parents(const char *path, mode_t mode); 27 int mkdir_p(const char *path, mode_t mode); 30 int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid); 31 int mkdir_parents_label(const char *path, mode_t mode); 32 int mkdir_p_label(const char *path, mode_t mode); 35 typedef int (*mkdir_func_t)(const char *pathname, mode_t mode); 36 int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir); 37 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir); 38 int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_ [all...] |
| H A D | mkdir.c | 32 int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir) { argument 35 if (_mkdir(path, mode) >= 0) 36 if (chmod_and_chown(path, mode, uid, gid) < 0) 42 if ((st.st_mode & 0007) > (mode & 0007) || 43 (st.st_mode & 0070) > (mode & 0070) || 44 (st.st_mode & 0700) > (mode & 0700) || 53 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid) { argument 54 return mkdir_safe_internal(path, mode, uid, gid, mkdir); 57 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) { argument 100 r = _mkdir(t, mode); 106 mkdir_parents(const char *path, mode_t mode) argument 110 mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) argument 126 mkdir_p(const char *path, mode_t mode) argument [all...] |
| H A D | fs-util.h | 45 int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); 46 int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid); 48 int fchmod_umask(int fd, mode_t mode); 52 #define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW) 54 int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); 60 int mknod_atomic(const char *path, mode_t mode, dev_t dev); 61 int mkfifo_atomic(const char *path, mode_t mode);
|
| H A D | label.h | 27 int mkdir_label(const char *path, mode_t mode);
|
| H A D | copy.h | 28 int copy_file(const char *from, const char *to, int flags, mode_t mode, unsigned chattr_flags); 29 int copy_file_atomic(const char *from, const char *to, mode_t mode, bool replace, unsigned chattr_flags);
|
| H A D | label.c | 43 int mkdir_label(const char *path, mode_t mode) { argument 52 if (mkdir(path, mode) < 0)
|
| /systemd/src/core/ |
| H A D | dbus-cgroup.h | 28 int bus_cgroup_set_property(Unit *u, CGroupContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-kill.h | 29 int bus_kill_context_set_transient_property(Unit *u, KillContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-mount.h | 28 int bus_mount_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-service.h | 28 int bus_service_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-slice.h | 28 int bus_slice_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-socket.h | 28 int bus_socket_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-swap.h | 29 int bus_swap_set_property(Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-timer.h | 28 int bus_timer_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-kill.c | 41 UnitSetPropertiesMode mode, 63 if (mode != UNIT_CHECK) { 66 unit_write_drop_in_private_format(u, mode, name, "KillMode=%s\n", kill_mode_to_string(k)); 81 if (mode != UNIT_CHECK) { 84 unit_write_drop_in_private_format(u, mode, name, "KillSignal=%s\n", signal_to_string(sig)); 96 if (mode != UNIT_CHECK) { 99 unit_write_drop_in_private_format(u, mode, name, "SendSIGHUP=%s\n", yes_no(b)); 111 if (mode != UNIT_CHECK) { 114 unit_write_drop_in_private_format(u, mode, name, "SendSIGKILL=%s\n", yes_no(b)); 36 bus_kill_context_set_transient_property( Unit *u, KillContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
| H A D | dbus-scope.h | 28 int bus_scope_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
|
| H A D | dbus-slice.c | 34 UnitSetPropertiesMode mode, 42 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 30 bus_slice_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
| H A D | dbus-cgroup.c | 164 UnitSetPropertiesMode mode, 181 if (mode != UNIT_CHECK) { 183 unit_write_drop_in_private(u, mode, name, b ? "Delegate=yes" : "Delegate=no"); 197 UnitSetPropertiesMode mode, 214 if (mode != UNIT_CHECK) { 217 unit_write_drop_in_private(u, mode, name, b ? "CPUAccounting=yes" : "CPUAccounting=no"); 232 if (mode != UNIT_CHECK) { 237 unit_write_drop_in_private(u, mode, name, "CPUShares="); 239 unit_write_drop_in_private_format(u, mode, name, "CPUShares=%" PRIu64, shares); 254 if (mode ! 159 bus_cgroup_set_transient_property( Unit *u, CGroupContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 192 bus_cgroup_set_property( Unit *u, CGroupContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument [all...] |
| H A D | dbus-scope.c | 75 UnitSetPropertiesMode mode, 97 if (mode != UNIT_CHECK) { 128 if (mode != UNIT_CHECK) { 145 if (mode != UNIT_CHECK) { 150 unit_write_drop_in_format(UNIT(s), mode, name, "[Scope]\nTimeoutStopSec="USEC_FMT"us\n", s->timeout_stop_usec); 167 UnitSetPropertiesMode mode, 177 r = bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 184 r = bus_scope_set_transient_property(s, name, message, mode, error); 188 r = bus_kill_context_set_transient_property(u, &s->kill_context, name, message, mode, error); 71 bus_scope_set_transient_property( Scope *s, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 163 bus_scope_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
| H A D | dbus-service.c | 87 UnitSetPropertiesMode mode, 103 if (mode != UNIT_CHECK) { 105 unit_write_drop_in_private_format(UNIT(s), mode, name, "RemainAfterExit=%s\n", yes_no(b)); local 122 if (mode != UNIT_CHECK) { 124 unit_write_drop_in_private_format(UNIT(s), mode, name, "Type=%s\n", service_type_to_string(s->type)); local 135 if (mode != UNIT_CHECK) { 137 unit_write_drop_in_private_format(UNIT(s), mode, name, "RuntimeMaxSec=" USEC_FMT "us\n", u); local 152 if (mode != UNIT_CHECK) { 206 if (mode != UNIT_CHECK) { 238 if (mode ! 83 bus_service_set_transient_property( Service *s, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 278 bus_service_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument [all...] |
| H A D | dbus-unit.h | 36 int bus_unit_queue_job(sd_bus_message *message, Unit *u, JobType type, JobMode mode, bool reload_if_possible, sd_bus_error *error); 37 int bus_unit_set_properties(Unit *u, sd_bus_message *message, UnitSetPropertiesMode mode, bool commit, sd_bus_error *error);
|
| /systemd/src/network/ |
| H A D | networkd-netdev-ipvlan.c | 32 DEFINE_CONFIG_PARSE_ENUM(config_parse_ipvlan_mode, ipvlan_mode, IPVlanMode, "Failed to parse ipvlan mode"); 46 if (m->mode != _NETDEV_IPVLAN_MODE_INVALID) { 47 r = sd_netlink_message_append_u16(req, IFLA_IPVLAN_MODE, m->mode); 64 m->mode = _NETDEV_IPVLAN_MODE_INVALID;
|
| H A D | networkd-netdev-ipvlan.h | 37 IPVlanMode mode; member in struct:IPVlan
|
| /systemd/src/login/ |
| H A D | test-inhibit.c | 32 const char *who = "Test Tool", *reason = "Just because!", *mode = "block"; local 43 "ssss", what, who, reason, mode); 56 const char *what, *who, *why, *mode; local 74 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 75 printf("what=<%s> who=<%s> why=<%s> mode=<%s> uid=<%"PRIu32"> pid=<%"PRIu32">\n", 76 what, who, why, mode, uid, pid);
|