Searched defs:to (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
52 to = strjoin(arg_dest, "/", where, ".wants/", service, NULL);
53 if (!to)
56 mkdir_parents_label(to, 0755);
58 r = symlink(from, to);
63 return log_error_errno(errno, "Failed to create symlink %s: %m", to);
/systemd/src/getty-generator/
H A Dgetty-generator.c41 char *from, *to; local
48 to = strjoina(arg_dest, "/getty.target.wants/", tservice);
50 mkdir_parents_label(to, 0755);
52 r = symlink(from, to);
58 return log_error_errno(errno, "Failed to create symlink %s: %m", to);
74 return log_error_errno(r, "Failed to generate service name: %m");
89 return log_error_errno(r, "Failed to generate service name: %m");
99 * when you try to use them, such as classic ttyS0 and
105 /* O_NONBLOCK is essential here, to mak
[all...]
/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",
123 format_timestamp(b, sizeof(b), to),
124 format_timespan(c, sizeof(c), total > to ? total - to : 0, 0));
H A Djournal-file.c71 /* This is the default maximum number of journal files to keep around. */
77 /* How many entries to keep in the entry array chain cache at max */
80 /* How much to increase the journal file size at once each time we allocate something new. */
86 /* The mmap context to use for the header we pick as one above the last defined typed */
169 /* Be friendly to btrfs: turn COW back on again now,
170 * and defragment the file. We won't write to the file
265 /* Sync the online state to disk */
280 /* In both read and write mode we refuse to open files with
294 /* When open for writing we refuse to open files with
372 /* Refuse appending to file
3012 journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint64_t p, uint64_t *seqnum, Object **ret, uint64_t *offset) argument
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));
199 return log_error_errno(r, "Failed to add match: %m");
207 return log_error_errno(r, "Failed to stat() device node \"%s\": %m", devnode);
215 return log_error_errno(r, "Failed to add match: %m");
223 return log_error_errno(r, "Failed to add match for the current boot: %m");
301 " -e --pager-end Immediately jump to the end in the pager\n"
303 " -n --lines[=INTEGER] Number of journal entries to show\n"
334 " --sync Synchronize unwritten journal messages to disk\n"
508 log_error("Failed to parse lines '%s'", optarg);
517 * supposed to b
702 int from, to, i; local
[all...]
H A Dsd-journal.c86 * We return an error here only if we didn't manage to
309 /* Same field? Then let's add this to this OR term */
551 /* Always jump to the next matching entry and repeat
672 /* First jump to the last match, and then find the
764 /* If we hit EOF before, we don't need to look into this file again
774 * iteration and the current location already points to a
795 * looking at. This is necessary to handle entries which exist
1253 log_debug_errno(r, "Failed to open journal file %s: %m", path);
1332 /* Jump to the next unique_file or NULL if that one was last */
1391 r = log_debug_errno(errno, "Failed to ope
2287 sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from, uint64_t *to) argument
2328 sd_journal_get_cutoff_monotonic_usec(sd_journal *j, sd_id128_t boot_id, uint64_t *from, uint64_t *to) argument
[all...]
/systemd/src/libudev/
H A Dlibudev-util.c164 int util_replace_whitespace(const char *str, char *to, size_t len) argument
184 to[j++] = '_';
186 to[j++] = str[i++];
188 to[j] = '\0';
237 * @str: input string to be encoded
238 * @str_enc: output string to store the encoded input string
242 * Encode all potentially unsafe characters of a string to the
/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
124 rr->ptr.name = strdup(to);
274 /* Always map the IPv4 address 127.0.0.2 to the local
275 * hostname, in addition to "localhost": */
369 return log_error_errno(r, "Failed to synthesize localhost RRs: %m");
375 return log_error_errno(r, "Failed to synthesize system hostname RRs: %m");
381 return log_error_errno(r, "Failed to synthesize gateway RRs: %m");
388 return log_error_errno(r, "Failed to synthesize localhost PTR RRs: %m");
394 return log_error_errno(r, "Failed to synthesize system hostname PTR RR: %m");
398 return log_error_errno(r, "Failed to synthesiz
[all...]
H A Dresolved-dns-answer.c669 int dns_answer_move_by_key(DnsAnswer **to, DnsAnswer **from, const DnsResourceKey *key, DnsAnswerFlags or_flags) { argument
672 assert(to);
676 r = dns_answer_copy_by_key(to, *from, key, or_flags);
705 /* Order address records that are are not preferred to the end of the array */
708 /* Order all other records to the beginning of the array */
759 /* Tries to extend the DnsAnswer object. And if that's not
/systemd/src/cryptsetup/
H A Dcryptsetup-generator.c61 _cleanup_free_ char *p = NULL, *n = NULL, *d = NULL, *u = NULL, *to = NULL, *e = NULL, local
87 return log_error_errno(r, "Failed to generate unit name: %m");
99 return log_error_errno(r, "Failed to generate unit name: %m");
103 return log_error_errno(errno, "Failed to create unit file %s: %m", p);
139 return log_error_errno(r, "Failed to generate unit name: %m");
185 return log_error_errno(r, "Failed to write file %s: %m", p);
191 to = strjoin(arg_dest, "/", d, ".wants/", n, NULL);
192 if (!to)
195 mkdir_parents_label(to, 0755);
196 if (symlink(from, to) <
[all...]
/systemd/src/login/
H A Dlogind-seat-dbus.c253 unsigned int to; local
259 r = sd_bus_message_read(message, "u", &to);
263 if (to <= 0)
266 r = seat_switch_to(s, to);
/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
146 assert(to);
152 if (symlinkat(target, dt, to) < 0)
155 if (fchownat(dt, to, st->st_uid, st->st_gid, AT_SYMLINK_NOFOLLOW) < 0)
161 static int fd_copy_regular(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
168 assert(to);
174 fdt = openat(dt, to, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, st->st_mode & 07777);
180 unlinkat(dt, to, 0);
201 unlinkat(dt, to, 0);
207 static int fd_copy_fifo(int df, const char *from, const struct stat *st, int dt, const char *to) { argument
227 fd_copy_node(int df, const char *from, const struct stat *st, int dt, const char *to) argument
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
370 copy_directory_fd(int dirfd, const char *to, bool merge) 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.c115 * If it is not implemented, fallback to another method. */
273 * ownership to avoid a window where access is too open. */
291 * ownership to avoid a window where access is too open. */
377 int symlink_idempotent(const char *from, const char *to) { argument
382 assert(to);
384 if (symlink(from, to) < 0) {
388 r = readlink_malloc(to, &p);
399 int symlink_atomic(const char *from, const char *to) { argument
404 assert(to);
406 r = tempfn_random(to, NUL
[all...]
H A Dcalendarspec.c148 _pure_ static bool chain_valid(CalendarComponent *c, int from, int to) { argument
152 if (c->value < from || c->value > to)
155 if (c->value + c->repeat > to)
159 return chain_valid(c->next, from, to);
H A Dcgroup-util.c176 * is repeated until no further processes are added to the
177 * tasks list, to properly handle forking processes */
241 * no new pids need to be killed. */
466 /* Converts a controller name to the directory name below
467 * /sys/fs/cgroup/ we want to mount it to. Effectively, this
901 if (unified) /* doesn't apply to unified hierarchy */
952 if (unified) /* Doesn't apply to unified hierarchy */
1354 * Skip session-*.scope, but require it to be there.
1376 * names, hence we don't need to cal
1926 cg_migrate_everywhere(CGroupMask supported, const char *from, const char *to, cg_migrate_callback_t to_callback, void *userdata) argument
[all...]
H A Dhashmap.c45 * - uses less RAM compared to closed addressing (chaining), because
46 * our entries are small (especially in Sets, which tend to contain
49 * - tends to equalize displacement of entries from their optimal buckets.
66 * - Applies to Robin Hood with linear probing. Contains remarks on
72 * - Similar to Janson. Note that Viola writes about C_{m,n} (number of probes
86 * For unordered hashmaps, randomize iteration order, similarly to Perl:
94 /* Fields common to entries of all hashmap/set types */
116 /* In several functions it is advantageous to have the hash table extended
139 #define DIB_RAW_REHASH ((dib_raw_t)0xfeU) /* entry yet to be rehashed during in-place resize */
141 #define DIB_RAW_INIT ((char)DIB_RAW_FREE) /* a byte to memse
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
103 strscpy(to, len, type);
109 * buf points to an '=' followed by a quoted string ("foo") or a string ending
112 * Return a pointer to the NUL terminated string, returns NULL if no
158 * file that matches. Set argc and argv to match the OPTIONS string.
187 * keep it around to parse any options (any allocated newargv
336 * file) we have to reset this back to 1.
495 * scsi_id: try to get an id, if one is found, printf it to stdou
[all...]
/systemd/src/bus-proxyd/
H A Dproxy.c55 return log_error_errno(r, "Failed to allocate bus: %m");
59 return log_error_errno(r, "Failed to set bus name: %m");
63 return log_error_errno(r, "Failed to set address to connect to: %m");
67 return log_error_errno(r, "Failed to set FD negotiation: %m");
71 return log_error_errno(r, "Failed to set credential negotiation: %m");
98 return log_error_errno(r, "Failed to start bus client: %m");
112 return log_error_errno(r, "Failed to allocate bus: %m");
117 return log_error_errno(r, "Failed to se
450 process_policy_unlocked(sd_bus *from, sd_bus *to, sd_bus_message *m, Policy *policy, const struct ucred *our_ucred, Set *owned_names) argument
596 process_policy(sd_bus *from, sd_bus *to, sd_bus_message *m, SharedPolicy *sp, const struct ucred *our_ucred, Set *owned_names) argument
[all...]
/systemd/src/socket-proxy/
H A Dsocket-proxyd.c123 return log_error_errno(errno, "Failed to allocate pipe buffer: %m");
129 return log_error_errno(errno, "Failed to get pipe buffer size: %m");
139 int *from, int buffer[2], int *to,
150 assert(to);
161 if (*full < *sz && *from >= 0 && *to >= 0) {
170 return log_error_errno(errno, "Failed to splice: %m");
173 if (*full > 0 && *to >= 0) {
174 z = splice(buffer[0], NULL, *to, NULL, *full, SPLICE_F_MOVE|SPLICE_F_NONBLOCK);
180 *to = safe_close(*to);
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
[all...]
/systemd/src/udev/
H A Dudev-builtin-usb_id.c37 static void set_usb_iftype(char *to, int if_class_num, size_t len) { argument
83 strncpy(to, type, len);
84 to[len-1] = '\0';
87 static int set_usb_mass_storage_ifsubtype(char *to, const char *from, size_t len) { argument
114 strscpy(to, len, type);
118 static void set_scsi_type(char *to, const char *from, size_t len) { argument
145 strscpy(to, len, type);
270 log_debug("unable to access usb_interface device of '%s'",
301 log_debug("unable to find parent 'usb' device of '%s'",
318 log_debug("unable to fin
[all...]
/systemd/src/boot/
H A Dbootctl.c58 return log_error_errno(errno, "Failed to check file system type of \"%s\": %m", p);
66 return log_error_errno(errno, "Failed to determine block device node of \"%s\": %m", p);
76 return log_error_errno(errno, "Failed to determine block device node of parent of \"%s\": %m", p);
93 return log_error_errno(errno, "Failed to open file system \"%s\": %m", p);
111 return log_error_errno(r, "Failed to probe file system \"%s\": %m", p);
118 return log_error_errno(r, "Failed to probe file system type \"%s\": %m", p);
130 return log_error_errno(r, "Failed to probe partition scheme \"%s\": %m", p);
142 return log_error_errno(r, "Failed to probe partition type UUID \"%s\": %m", p);
154 return log_error_errno(r, "Failed to probe partition entry UUID \"%s\": %m", p);
167 return log_error_errno(r, "Failed to prob
399 version_check(int fd, const char *from, const char *to) argument
440 copy_file(const char *from, const char *to, bool force) argument
[all...]
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c58 _cleanup_free_ char *e = NULL, *n = NULL, *p = NULL, *d = NULL, *to = NULL; local
69 return log_error_errno(r, "Failed to generate unit name: %m");
77 return log_error_errno(r, "Failed to generate unit name: %m");
85 return log_error_errno(errno, "Failed to create unit file %s: %m", p);
110 return log_error_errno(r, "Failed to write file %s: %m", p);
114 to = strjoin(arg_dest, "/", d, ".wants/", n, NULL);
115 if (!to)
118 mkdir_parents_label(to, 0755);
119 if (symlink(from, to) < 0)
120 return log_error_errno(errno, "Failed to creat
[all...]
/systemd/src/nspawn/
H A Dnspawn-mount.c232 return log_error_errno(r, "Failed to determine filesystem type of %s: %m", top);
235 * don't have the right to do so, see https://github.com/systemd/systemd/issues/1555.
245 return log_error_errno(errno, "Failed to mount sysfs to %s: %m", full);
248 _cleanup_free_ char *from = NULL, *to = NULL; local
254 to = prefix_root(top, x);
255 if (!to)
258 (void) mkdir(to, 0755);
260 if (mount(from, to, NULL, MS_BIND, NULL) < 0)
261 return log_error_errno(errno, "Failed to moun
603 char *to; local
[all...]
/systemd/src/sysv-generator/
H A Dsysv-generator.c67 directories in this order, and we want to make sure that
119 const char *from, *to; local
126 to = strjoina(arg_dest, "/", where, ".wants/", service);
128 mkdir_parents_label(to, 0755);
130 r = symlink(from, to);
184 return log_error_errno(errno, "Failed to create unit file %s: %m", unit);
229 return log_error_errno(r, "Failed to write unit %s: %m", unit);
234 log_warning_errno(r, "Failed to create 'Wants' symlink to %s, ignoring: %m", *p);
269 /* We silently ignore the $ prefix here. According to th
[all...]
/systemd/src/sysusers/
H A Dsysusers.c224 log_warning_errno(errno, "Failed to change mode on %s: %m", backup);
227 log_warning_errno(errno, "Failed to change ownership of %s: %m", backup);
232 log_warning_errno(errno, "Failed to fix access and modification time of %s: %m", backup);
344 static int sync_rights(FILE *from, FILE *to) { argument
350 if (fchmod(fileno(to), st.st_mode & 07777) < 0)
353 if (fchown(fileno(to), st.st_uid, st.st_gid) < 0)
595 /* We default to the root directory as home */
598 /* Initialize the shell to nologin,
680 .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */
778 /* Try to avoi
[all...]

Completed in 112 milliseconds

12