Searched refs:copy (Results 1 - 24 of 24) sorted by relevance

/systemd/src/basic/
H A Dconf-files.c16 You should have received a copy of the GNU Lesser General Public License
126 _cleanup_strv_free_ char **copy = NULL; local
131 copy = strv_copy((char**) dirs);
132 if (!copy)
135 return conf_files_list_strv_internal(strv, suffix, root, copy);
H A Dfdset.c16 You should have received a copy of the GNU Lesser General Public License
111 int copy, r; local
116 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3);
117 if (copy < 0)
120 r = fdset_put(s, copy);
122 safe_close(copy);
126 return copy;
H A Dtime-util.c16 You should have received a copy of the GNU Lesser General Public License
465 struct tm tm, copy; local
574 copy = tm;
583 tm = copy;
592 tm = copy;
599 tm = copy;
606 tm = copy;
613 tm = copy;
620 tm = copy;
629 tm = copy;
[all...]
H A Dhashmap.c17 You should have received a copy of the GNU Lesser General Public License
1700 HashmapBase *copy; local
1705 copy = hashmap_base_new(h->hash_ops, h->type HASHMAP_DEBUG_SRC_ARGS);
1706 if (!copy)
1712 r = hashmap_merge((Hashmap*)copy, (Hashmap*)h);
1715 r = set_merge((Set*)copy, (Set*)h);
1722 internal_hashmap_free(copy);
1726 return copy;
/systemd/src/shared/
H A Dcgroup-show.c16 You should have received a copy of the GNU Lesser General Public License
219 _cleanup_free_ pid_t *copy = NULL; local
233 copy = new(pid_t, n_pids);
234 if (!copy)
247 copy[j++] = pids[i];
250 show_pid_array(copy, j, prefix, n_columns, true, false, false, flags);
/systemd/src/resolve/
H A Dresolved-dns-answer.c16 You should have received a copy of the GNU Lesser General Public License
499 _cleanup_(dns_answer_unrefp) DnsAnswer *copy = NULL;
503 copy = dns_answer_new((*a)->n_rrs);
504 if (!copy)
514 r = dns_answer_add_raw(copy, rr, ifindex, flags);
520 *a = copy;
521 copy = NULL;
585 _cleanup_(dns_answer_unrefp) DnsAnswer *copy = NULL;
589 copy = dns_answer_new((*a)->n_rrs);
590 if (!copy)
[all...]
H A Dresolved-dns-packet.c16 You should have received a copy of the GNU Lesser General Public License
470 /* Otherwise, just copy the string unaltered. This is
1171 void *copy; local
1173 copy = memdup(src, size);
1174 if (!copy)
1177 *ret = copy;
2198 * in questions, never in replies. Crappy Belkin routers copy the OPT data for
/systemd/src/core/
H A Ddbus-service.c16 You should have received a copy of the GNU Lesser General Public License
153 int copy; local
155 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3);
156 if (copy < 0)
161 s->stdin_fd = copy;
164 s->stdout_fd = copy;
167 s->stderr_fd = copy;
H A Ddevice.c16 You should have received a copy of the GNU Lesser General Public License
71 char *copy; local
83 copy = strdup(sysfs);
84 if (!copy)
92 r = hashmap_replace(UNIT(d)->manager->devices_by_sysfs, copy, first);
95 free(copy);
99 d->sysfs = copy;
H A Dexecute.c16 You should have received a copy of the GNU Lesser General Public License
3001 int copy; local
3003 copy = fdset_put_dup(fds, rt->netns_storage_socket[0]);
3004 if (copy < 0)
3005 return copy;
3007 unit_serialize_item_format(u, f, "netns-socket-0", "%i", copy);
3011 int copy; local
3013 copy = fdset_put_dup(fds, rt->netns_storage_socket[1]);
3014 if (copy < 0)
3015 return copy;
3031 char *copy; local
3045 char *copy; local
[all...]
H A Dmanager.c16 You should have received a copy of the GNU Lesser General Public License
2270 int copy; local
2272 copy = fdset_put_dup(fds, m->notify_fd);
2273 if (copy < 0)
2274 return copy;
2276 fprintf(f, "notify-fd=%i\n", copy);
2281 int copy; local
2283 copy = fdset_put_dup(fds, m->kdbus_fd);
2284 if (copy < 0)
2285 return copy;
[all...]
H A Dsocket.c16 You should have received a copy of the GNU Lesser General Public License
35 #include "copy.h"
2148 int copy; local
2153 copy = fdset_put_dup(fds, p->fd);
2154 if (copy < 0)
2155 return copy;
2165 unit_serialize_item_format(u, f, "netlink", "%i %s", copy, t);
2167 unit_serialize_item_format(u, f, "socket", "%i %i %s", copy, p->address.type, t);
2170 unit_serialize_item_format(u, f, "special", "%i %s", copy, p->path);
2172 unit_serialize_item_format(u, f, "mqueue", "%i %s", copy,
[all...]
H A Dservice.c16 You should have received a copy of the GNU Lesser General Public License
2135 int copy; local
2137 copy = fdset_put_dup(fds, fs->fd);
2138 if (copy < 0)
2139 return copy;
2143 unit_serialize_item_format(u, f, "fd-store-fd", "%i %s", copy, strempty(c));
2588 * main process got started and hence we copy
H A Dunit.c16 You should have received a copy of the GNU Lesser General Public License
2647 int copy; local
2656 copy = fdset_put_dup(fds, fd);
2657 if (copy < 0)
2658 return copy;
2660 fprintf(f, "%s=%i\n", key, copy);
/systemd/test/
H A Dsysv-generator-test.py16 # You should have received a copy of the GNU Lesser General Public License
68 env = os.environ.copy()
381 shutil.copy(script, script + '.dpkg-new')
382 shutil.copy(script, script + '.dpkg-dist')
383 shutil.copy(script, script + '.swp')
384 shutil.copy(script, script + '.rpmsave')
396 shutil.copy(script, script + '.bak')
397 shutil.copy(script, script + '.old')
/systemd/src/libsystemd/sd-path/
H A Dsd-path.c16 You should have received a copy of the GNU Lesser General Public License
168 char *copy; local
170 copy = strdup(p);
171 if (!copy)
174 *buffer = copy;
175 *ret = copy;
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-marshal.c16 You should have received a copy of the GNU Lesser General Public License
124 _cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL, *copy = NULL;
353 r = sd_bus_message_new_method_call(bus, &copy, "foobar.waldo", "/", "foobar.waldo", "Piep");
359 r = sd_bus_message_copy(copy, m, true);
362 r = bus_message_seal(copy, 4712, 0);
367 bus_message_dump(copy, ms, 0);
H A Dbus-message.c16 You should have received a copy of the GNU Lesser General Public License
1440 int *f, copy; local
1450 copy = fcntl(fd, F_DUPFD_CLOEXEC, 3);
1451 if (copy < 0)
1457 safe_close(copy);
1462 m->fds[m->n_fds] = copy;
1465 return copy;
/systemd/src/test/
H A Dtest-hashmap-plain.c16 You should have received a copy of the GNU Lesser General Public License
67 Hashmap *m, *copy; local
86 copy = hashmap_copy(m);
88 r = hashmap_get(copy, "key 1");
90 r = hashmap_get(copy, "key 2");
92 r = hashmap_get(copy, "key 3");
94 r = hashmap_get(copy, "key 4");
97 hashmap_free_free(copy);
/systemd/src/machine/
H A Dmachined-dbus.c16 You should have received a copy of the GNU Lesser General Public License
1356 char *copy; local
1362 copy = strdup(j);
1363 if (!copy)
1366 *job = copy;
1404 char *copy; local
1410 copy = strdup(j);
1411 if (!copy)
1414 *job = copy;
/systemd/src/udev/
H A Dudev-event.c14 * You should have received a copy of the GNU General Public License
143 goto copy;
159 goto copy;
170 copy:
171 /* copy char */
/systemd/tools/
H A Dmake-directive-index.py17 # You should have received a copy of the GNU Lesser General Public License
24 from copy import deepcopy
/systemd/src/journal/
H A Dsd-journal.c16 You should have received a copy of the GNU Lesser General Public License
75 char *copy; local
97 copy = strdup(path);
98 if (!copy)
101 copy = NULL;
103 k = hashmap_put(j->errors, INT_TO_PTR(r), copy);
105 free(copy);
/systemd/src/login/
H A Dlogind-dbus.c16 You should have received a copy of the GNU Lesser General Public License
2753 char *copy; local
2760 copy = strdup(j);
2761 if (!copy)
2764 *job = copy;

Completed in 585 milliseconds