Searched refs:to (Results 1 - 25 of 40) sorted by relevance

12

/systemd/src/basic/
H A Dcopy.h27 int copy_file_fd(const char *from, int to, bool try_reflink);
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);
30 int copy_tree(const char *from, const char *to, bool merge);
31 int copy_tree_at(int fdf, const char *from, int fdt, const char *to, bool merge);
32 int copy_directory_fd(int dirfd, const char *to, bool merge);
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 Dfs-util.h57 int symlink_idempotent(const char *from, const char *to);
59 int symlink_atomic(const char *from, const char *to);
/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/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/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.h41 uint64_t max_use; /* how much disk space to use in total at max, keep_free permitting */
42 uint64_t min_use; /* how much disk space to use in total at least, even if keep_free says not to */
43 uint64_t keep_free; /* how much to keep free on disk */
44 uint64_t n_max_files; /* how many files to keep around at max */
57 /* We already read the entry we currently point to, and the
58 * next one to read should probably not be this one again. */
61 /* We should seek to the precise location specified, and
159 /* Use six characters to cover the offsets common in smallish journal
221 int journal_file_copy_entry(JournalFile *from, JournalFile *to, Objec
[all...]
/systemd/test/bus-policy/
H A Dtest.conf4 <!-- The following demonstrates how to punch holes in a default deny-all
15 <!-- Allow any connection to receive the message, but
/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/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/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...]
H A Dudev-event.c299 /* try to read the value specified by "[dmi/id]product_name" */
303 /* try to read the attribute the device */
307 /* try to read the attribute of the parent device, other matches have selected */
396 /* discard child output or connect to pipe */
417 /* connect pipes to std{out,err} */
443 return log_error_errno(errno, "failed to execute '%s' '%s': %m", argv[0], cmd);
476 log_error_errno(errno, "fail to add stdout fd to epoll: %m");
484 log_error_errno(errno, "fail to add stderr fd to epol
[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/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...]
H A Dnspawn.c207 " Assign an existing network interface to the\n"
211 " existing network interface to the container\n"
214 " existing network interface to the container\n"
222 " and container and add it to an existing bridge on\n"
227 " Set the SELinux security context to be used by\n"
230 " Set the SELinux security context to be used by\n"
232 " --capability=CAP In addition to the default, retain specified\n"
235 " --kill-signal=SIGNAL Select signal to use for shutting down PID 1\n"
238 " -j Equivalent to --link-journal=try-guest\n"
245 " --tmpfs=PATH:[OPTIONS] Mount an empty tmpfs to th
1133 const char *from, *to; local
1190 _cleanup_free_ char *from = NULL, *to = NULL; local
1278 const char *to; local
1306 const char *from, *to; local
[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/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/tools/
H A Dmake-man-index.py69 This index contains {count} entries, referring to {pages} individual manual pages.'
/systemd/src/systemd/
H A Dsd-journal.h37 /* Write to daemon */
44 /* Used by the macros below. You probably don't want to call this directly. */
51 /* implicitly add code location to messages sent, if this is enabled */
121 int sd_journal_get_cutoff_realtime_usec(sd_journal *j, uint64_t *from, uint64_t *to);
122 int sd_journal_get_cutoff_monotonic_usec(sd_journal *j, const sd_id128_t boot_id, uint64_t *from, uint64_t *to);
/systemd/src/core/
H A Dorg.freedesktop.systemd1.conf31 <!-- Completely open to anyone -->
/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...]
/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...]

Completed in 82 milliseconds

12