Searched refs:from (Results 1 - 25 of 34) 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);
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.h57 int symlink_idempotent(const char *from, const char *to);
59 int symlink_atomic(const char *from, const char *to);
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 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/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/udev/
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...]
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
/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.h221 int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint64_t p, uint64_t *seqnum, Object **ret, uint64_t *offset);
234 int journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *to);
235 int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot, usec_t *from, usec_t *to);
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/test/bus-policy/
H A Dtest.conf6 connections can get messages from it -->
/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/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/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/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/systemd/
H A Dsd-journal.h121 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/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.c190 " --template=PATH Initialize root directory from template directory,\n"
234 " --drop-capability=CAP Drop the specified capability from the default set\n"
241 " Bind mount a file or directory from the host into\n"
247 " Create an overlay mount from the host to \n"
257 " --settings=BOOLEAN Load additional settings from .nspawn file\n"
289 return log_error_errno(r, "Failed to generate work directory from %s: %m", m->source);
310 /* Otherwise inherit the default from the host system */
901 log_error("--keep-unit may not be used when invoked from a user session.");
946 /* Load all settings from .nspawn files */
950 /* Don't load any settings from
1133 const char *from, *to; local
1190 _cleanup_free_ char *from = NULL, *to = NULL; local
1306 const char *from, *to; local
[all...]
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/resolve/
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 */
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);
/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/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...]

Completed in 61 milliseconds

12