Searched defs:from (Results 1 - 25 of 27) sorted by relevance

12

/systemd/src/rc-local-generator/
H A Drc-local-generator.c42 _cleanup_free_ char *from = NULL, *to = NULL; local
48 from = strjoin(SYSTEM_DATA_UNIT_PATH, "/", service, NULL);
49 if (!from)
58 r = symlink(from, to);
/systemd/src/getty-generator/
H A Dgetty-generator.c41 char *from, *to; local
47 from = strjoina(SYSTEM_DATA_UNIT_PATH "/", fservice);
52 r = symlink(from, to);
/systemd/src/journal/
H A Dtest-journal-verify.c73 usec_t from = 0, to = 0, total = 0; local
118 assert_se(journal_file_verify(f, verification_key, &from, &to, &total, true) >= 0);
121 log_info("=> Validated from %s to %s, %s missing",
122 format_timestamp(a, sizeof(a), from),
H A Djournal-file.c53 * from the file system size */
60 /* This is the upper bound if we deduce max_size from max_use */
63 /* This is the upper bound if we deduce the keep_free value from the
1420 /* inotify() does not receive IN_MODIFY events from file
2185 /* If this is from the same seqnum source, compare
3012 int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint64_t p, uint64_t *seqnum, Object **ret, uint64_t *offset) { argument
3019 assert(from);
3044 r = journal_file_move_to_object(from, OBJECT_DATA, q, &o);
3063 o->data.payload, l, &from->compress_buffer, &from
3203 journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *to) argument
3225 journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot_id, usec_t *from, usec_t *to) argument
[all...]
H A Djournalctl.c175 return log_error_errno(errno, "Failed to get udev device from devnum %u:%u: %m", major(st.st_rdev), minor(st.st_rdev));
296 " -k --dmesg Show kernel message log from the current boot\n"
297 " -u --unit=UNIT Show logs from the specified unit\n"
298 " --user-unit=UNIT Show logs from the specified user unit\n"
315 " -m --merge Show entries from all available journals\n"
316 " -D --directory=PATH Show journal files from directory\n"
335 " --flush Flush all journal data from /run into /var\n"
702 int from, to, i; local
709 from = log_level_from_string(a);
713 if (from <
[all...]
H A Dsd-journal.c79 * file/directory it was generated from. Note that we store
794 * that is actually different from what we were previously
2287 _public_ int sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from, uint64_t *to) { argument
2296 assert_return(from || to, -EINVAL);
2297 assert_return(from != to, -EINVAL);
2320 if (from)
2321 *from = fmin;
2328 _public_ int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, sd_id128_t boot_id, uint64_t *from, uint64_t *to) { argument
2336 assert_return(from || to, -EINVAL);
2337 assert_return(from !
[all...]
/systemd/src/resolve/
H A Dresolved-dns-synthesize.c117 static int answer_add_ptr(DnsAnswer **answer, const char *from, const char *to, int ifindex, DnsAnswerFlags flags) { argument
120 rr = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_PTR, from);
H A Dresolved-dns-answer.c475 /* Remove all entries matching the specified key from *a */
561 /* Remove all entries matching the specified RR from *a */
646 /* Copy all RRs matching the specified key from source into *a */
669 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFlags or_flags) { argument
673 assert(from);
676 r = dns_answer_copy_by_key(to, *from, key, or_flags);
680 return dns_answer_remove_by_key(from, key);
830 * synthesized from it */
/systemd/src/core/
H A Dtransaction.c36 /* Deletes one job from the transaction */
46 /* Deletes all jobs associated with a certain unit from the
341 static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsigned generation, sd_bus_error *e) { argument
358 * decided the job was loop-free from here. Hence
374 for (k = from; k; k = ((k->generation == generation && k->marker != k) ? k->marker : NULL)) {
414 /* Make the marker point to where we come from, so that we can
418 j->marker = from ? from : j;
651 * looks at installed jobs. If they had a non-zero generation from some previous
854 /* log_debug("Pulling in %s/%s from
[all...]
/systemd/src/cryptsetup/
H A Dcryptsetup-generator.c65 char *from; local
187 from = strjoina("../", n);
196 if (symlink(from, to) < 0)
208 if (symlink(from, to) < 0)
218 if (symlink(from, to) < 0)
/systemd/src/basic/
H A Dcopy.c140 static int fd_copy_symlink(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
144 assert(from);
148 r = readlinkat_malloc(df, from, &target);
161 static int fd_copy_regular(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
166 assert(from);
170 fdf = openat(df, from, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
207 static int fd_copy_fifo(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
210 assert(from);
227 static int fd_copy_node(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
230 assert(from);
247 fd_copy_directory( int df, const char *from, const struct stat *st, int dt, const char *to, dev_t original_device, bool merge) argument
343 copy_tree_at(int fdf, const char *from, int fdt, const char *to, bool merge) argument
366 copy_tree(const char *from, const char *to, bool merge) argument
386 copy_file_fd(const char *from, int fdt, bool try_reflink) argument
405 copy_file(const char *from, const char *to, int flags, mode_t mode, unsigned chattr_flags) argument
435 copy_file_atomic(const char *from, const char *to, mode_t mode, bool replace, unsigned chattr_flags) argument
[all...]
H A Dfs-util.c377 int symlink_idempotent(const char *from, const char *to) { argument
381 assert(from);
384 if (symlink(from, to) < 0) {
392 if (!streq(p, from))
399 int symlink_atomic(const char *from, const char *to) { argument
403 assert(from);
410 if (symlink(from, t) < 0)
H A Dcalendarspec.c148 _pure_ static bool chain_valid(CalendarComponent *c, int from, int to) { argument
152 if (c->value < from || c->value > to)
159 return chain_valid(c->next, from, to);
H A Dcgroup-util.c1201 * let's determine it from PID 1 */
1455 /* And from here on it looks pretty much the same as for a
1456 * system unit, hence let's use the same parser from here
1588 /* Finds the right-most slice unit from the beginning, but
1641 * slice, so let's just use the same parser from here on. */
1926 int cg_migrate_everywhere(CGroupMask supported, const char *from, const char *to, cg_migrate_callback_t to_callback, void *userdata) { argument
1930 if (!path_equal(from, to)) {
1931 r = cg_migrate_recursive(SYSTEMD_CGROUP_CONTROLLER, from, SYSTEMD_CGROUP_CONTROLLER, to, false, true);
2003 * and accessible controllers from a the top-level
H A Dhashmap.c49 * - tends to equalize displacement of entries from their optimal buckets.
136 /* Distance from Initial Bucket */
157 unsigned rem_count; /* counts removals from hashmap */
161 /* Tracks all existing hashmaps. Get at it from gdb. See sd_dump_hashmaps.py */
228 bool from_pool:1; /* whether was allocated from mempool */
387 static unsigned bucket_distance(HashmapBase *h, unsigned idx, unsigned from) { argument
388 return idx >= from ? idx - from
389 : n_buckets(h) + idx - from;
437 unsigned from, unsigne
436 bucket_move_entry(HashmapBase *h, struct swap_entries *swap, unsigned from, unsigned to) argument
[all...]
/systemd/src/udev/scsi_id/
H A Dscsi_id.c69 static void set_type(const char *from, char *to, size_t len) argument
75 type_num = strtoul(from, &eptr, 0);
76 if (eptr != from) {
170 char *vendor_in, *model_in, *options_in; /* read in from file */
510 /* get per device (vendor + model) options from the config file */
517 /* read serial number from mode pages (no values for optical drives) */
/systemd/src/bus-proxyd/
H A Dproxy.c450 static int process_policy_unlocked(sd_bus *from, sd_bus *to, sd_bus_message *m, Policy *policy, const struct ucred *our_ucred, Set *owned_names) { argument
453 assert(from);
476 if (from->is_kernel) {
485 /* The message came from the kernel, and is sent to our legacy client. */
494 /* If the message came from another legacy
501 r = bus_get_name_creds_kdbus(from, m->sender, SD_BUS_CREDS_EUID|SD_BUS_CREDS_EGID, true, &sender_creds);
534 /* The message came from the legacy client, and is sent to kdbus. */
555 /* If we forward a signal from dbus-1 to kdbus, we have
596 static int process_policy(sd_bus *from, sd_bus *to, sd_bus_message *m, SharedPolicy *sp, const struct ucred *our_ucred, Set *owned_names) { argument
603 r = process_policy_unlocked(from, t
[all...]
/systemd/src/socket-proxy/
H A Dsocket-proxyd.c139 int *from, int buffer[2], int *to,
146 assert(from);
161 if (*full < *sz && *from >= 0 && *to >= 0) {
162 z = splice(*from, NULL, buffer[1], NULL, *sz - *full, SPLICE_F_MOVE|SPLICE_F_NONBLOCK);
168 *from = safe_close(*from);
507 log_debug("New connection from %s", strna(peer));
663 log_error("Failed to receive sockets from parent.");
137 connection_shovel( Connection *c, int *from, int buffer[2], int *to, size_t *full, size_t *sz, sd_event_source **from_source, sd_event_source **to_source) argument
/systemd/src/udev/
H A Dudev-builtin-usb_id.c87 static int set_usb_mass_storage_ifsubtype(char *to, const char *from, size_t len) { argument
92 type_num = strtoul(from, &eptr, 0);
93 if (eptr != from) {
118 static void set_scsi_type(char *to, const char *from, size_t len) { argument
123 type_num = strtoul(from, &eptr, 0);
124 if (eptr != from) {
220 * 1.) Get the USB device type from InterfaceClass and InterfaceSubClass
H A Dudev-event.c121 const char *from; local
127 from = src;
136 while (from[0] != '\0') {
137 if (from[0] == '$') {
141 if (from[1] == '$') {
142 from++;
147 if (startswith(&from[1], map[i].name)) {
149 from += strlen(map[i].name)+1;
153 } else if (from[0] == '%') {
157 if (from[
[all...]
/systemd/src/boot/
H A Dbootctl.c399 static int version_check(int fd, const char *from, const char *to) { argument
405 assert(from);
412 log_error("Source file \"%s\" does not carry version information!", from);
440 static int copy_file(const char *from, const char *to, bool force) { argument
447 assert(from);
450 f = fopen(from, "re");
452 return log_error_errno(errno, "Failed to open \"%s\" for reading: %m", from);
456 r = version_check(fileno(f), from, to);
478 r = log_error_errno(EIO, "Failed to read \"%s\": %m", from);
500 r = log_error_errno(errno, "Failed to get file timestamps of \"%s\": %m", from);
[all...]
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c60 char *from, *ret; local
112 from = strjoina("../", n);
119 if (symlink(from, to) < 0)
128 if (symlink(from, to) < 0)
137 if (symlink(from, to) < 0)
475 /* We create an .automount which is not overridden by the .mount from the fstab generator. */
534 log_debug("Partition for /boot does not appear to be the partition we are booted from.");
749 * hide it from Windows. */
/systemd/src/nspawn/
H A Dnspawn-mount.c248 _cleanup_free_ char *from = NULL, *to = NULL; local
250 from = prefix_root(full, x);
251 if (!from)
260 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
/systemd/src/sysv-generator/
H A Dsysv-generator.c69 unit. And that value we only know from S links. Hence
119 const char *from, *to; local
125 from = strjoina(arg_dest, "/", service);
130 r = symlink(from, to);
174 /* We might already have a symlink with the same name from a Provides:,
175 * or from backup files like /etc/init.d/foo.bak. Real scripts always win,
324 /* Strip ".sh" suffix from file name for comparison */
357 return log_error_errno(r, "Failed to parse word from provides string: %m");
423 return log_error_errno(r, "Failed to parse word from provides string: %m");
/systemd/src/sysusers/
H A Dsysusers.c344 static int sync_rights(FILE *from, FILE *to) { argument
347 if (fstat(fileno(from), &st) < 0)
645 * safely remove the item from the todo set */
845 /* If we need the gid, but had no success yet, also derive it from the uid path */
928 /* If that didn't work, try to read it from the specified path */
1083 /* If that didn't work, try to read it from the specified path */
1721 log_error_errno(errno, "Failed to read from file %s: %m", fn);

Completed in 82 milliseconds

12