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

/systemd/tmpfiles.d/
H A Dtmp.conf10 # Clear tmp directories separately, to make them easier to override
11 q /tmp 1777 root root 10d
12 q /var/tmp 1777 root root 30d
15 x /tmp/systemd-private-%b-*
16 X /tmp/systemd-private-%b-*/tmp
17 x /var/tmp/systemd-private-%b-*
18 X /var/tmp/systemd-private-%b-*/tmp
H A Dx11.conf11 d /tmp/.X11-unix 1777 root root 10d
12 d /tmp/.ICE-unix 1777 root root 10d
13 d /tmp/.XIM-unix 1777 root root 10d
14 d /tmp/.font-unix 1777 root root 10d
15 d /tmp/.Test-unix 1777 root root 10d
18 r! /tmp/.X[0-9]*-lock
/systemd/src/libudev/
H A Dlibudev-private.h105 #define udev_list_node_foreach_safe(node, tmp, list) \
106 for (node = (list)->next, tmp = (node)->next; \
108 node = tmp, tmp = (tmp)->next)
116 #define udev_list_entry_foreach_safe(entry, tmp, first) \
117 for (entry = first, tmp = udev_list_entry_get_next(entry); \
119 entry = tmp, tmp = udev_list_entry_get_next(tmp))
[all...]
/systemd/src/test/
H A Dtest-path.c42 Manager *tmp = NULL; local
47 r = manager_new(MANAGER_USER, true, &tmp);
53 assert_se(manager_startup(tmp, NULL, NULL) >= 0);
58 p = strjoin("/tmp/test-path_", *test_path, NULL);
64 *m = tmp;
76 _cleanup_free_ char *tmp = NULL; local
87 assert_se(tmp = strreplace(unit->id, ".path", ".service"));
88 service_unit = manager_get_unit(m, tmp);
122 const char *test_path = "/tmp/test-path_exists";
136 const char *test_path = "/tmp/tes
[all...]
/systemd/src/shared/
H A Dmachine-pool.c75 _cleanup_free_ char *tmp = NULL; local
99 r = tempfn_xxxxxx("/var/lib/machines.raw", NULL, &tmp);
104 fd = open(tmp, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0600);
139 execlp("mkfs.btrfs", "-Lvar-lib-machines", tmp, NULL);
167 r = rename_noreplace(AT_FDCWD, tmp, AT_FDCWD, "/var/lib/machines.raw");
179 unlink_noerrno(tmp);
194 char tmpdir[] = "/tmp/machine-pool.XXXXXX", *mntdir = NULL;
285 * below /tmp first, fix the access mode, and move it to the
H A Dpath-lookup.c134 char **tmp; local
218 tmp = res;
220 return tmp;
/systemd/src/journal-remote/
H A Djournal-gatewayd.c62 FILE *tmp; member in struct:RequestMeta
109 safe_fclose(m->tmp);
125 if (m->tmp)
126 rewind(m->tmp);
130 fd = open_tmpfile("/tmp", O_RDWR|O_CLOEXEC);
134 m->tmp = fdopen(fd, "w+");
135 if (!m->tmp) {
225 r = output_journal(m->tmp, m->journal, m->mode, 0, OUTPUT_FULL_WIDTH, NULL);
231 sz = ftello(m->tmp);
240 if (fseeko(m->tmp, po
[all...]
H A Djournal-remote-parse.c491 char *tmp; local
493 tmp = realloc(source->buf, target);
494 if (!tmp)
500 source->buf = tmp;
/systemd/src/cryptsetup/
H A Dcryptsetup-generator.c47 static const char *arg_dest = "/tmp";
64 bool noauto, nofail, tmp, swap; local
73 tmp = fstab_test_option(options, "tmp\0");
76 if (tmp && swap) {
77 log_error("Device '%s' cannot be both 'tmp' and 'swap'. Ignoring.", name);
173 if (tmp)
/systemd/src/basic/
H A Dparse-util.c168 unsigned long long l, tmp; local
215 tmp = l * table[i].factor + (unsigned long long) (frac * table[i].factor);
216 if (tmp > ULLONG_MAX - r)
219 r += tmp;
H A Dfileio.c1100 p = strjoina(path, "/systemd-tmp-XXXXXX");
H A Dterminal-util.c699 char *tmp; local
702 if (read_one_line_file("/sys/class/tty/tty0/active", &tmp) >= 0) {
704 tty = *active = tmp;
/systemd/src/coredump/
H A Dcoredump.c305 _cleanup_free_ char *fn = NULL, *tmp = NULL; local
338 r = tempfn_random(fn, NULL, &tmp);
344 fd = open(tmp, O_CREAT|O_EXCL|O_RDWR|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0640);
346 return log_error_errno(errno, "Failed to create coredump file %s: %m", tmp);
361 log_error_errno(errno, "Failed to fstat coredump %s: %m", tmp);
366 log_error_errno(errno, "Failed to seek on %s: %m", tmp);
407 unlink_noerrno(tmp);
426 r = fix_permissions(fd, tmp, fn, context, uid);
441 (void) unlink(tmp);
H A Dcoredumpctl.c64 char *tmp; local
73 tmp = strdup("MESSAGE_ID=fc2e22bc6ee647b6b90729ab34a250b1");
74 if (!tmp) {
80 r = set_consume(set, tmp);
612 temp = strdup("/var/tmp/coredump-XXXXXX");
/systemd/src/core/
H A Dpath.c87 char tmp; local
91 tmp = *cut;
102 *cut = tmp;
108 *cut = tmp;
129 *cut = tmp;
H A Djob.c352 JobType tmp = a; local
354 b = tmp;
H A Dexecute.c1768 char *tmp = NULL, *var = NULL; local
1771 * of the private /tmp, which is
1773 * there's a /tmp that is sticky, and that's
1778 tmp = strjoina(runtime->tmp_dir, "/tmp");
1780 var = strjoina(runtime->var_tmp_dir, "/tmp");
1788 tmp,
2995 unit_serialize_item(u, f, "tmp-dir", rt->tmp_dir);
2998 unit_serialize_item(u, f, "var-tmp-dir", rt->var_tmp_dir);
3030 if (streq(key, "tmp
[all...]
/systemd/src/udev/
H A Dudev-event.c258 char tmp[UTIL_PATH_SIZE]; local
275 strscpy(tmp, sizeof(tmp), cpos);
278 cpos = strchr(tmp, ' ');
282 l = strpcpy(&s, l, tmp);
H A Dudev-rules.c1044 _cleanup_free_ char *tmp; local
1046 tmp = cescape(buf);
1048 filename, lineno, linepos - line + 1, tmp);
2051 char tmp[UTIL_PATH_SIZE]; local
2053 strscpy(tmp, sizeof(tmp), filename);
2055 udev_device_get_syspath(event->dev), "/", tmp, NULL);
H A Dudevd.c828 struct udev_list_node *loop, *tmp; local
830 udev_list_node_foreach_safe(loop, tmp, &manager->events) {
/systemd/src/journal/
H A Djournal-vacuum.c237 unsigned long long tmp; local
258 if (sscanf(de->d_name + q-1-8-16-1-16, "%16llx-%16llx.journal~", &realtime, &tmp) != 2) {
/systemd/src/udev/collect/
H A Dcollect.c261 struct udev_list_node *tmp; local
263 udev_list_node_foreach_safe(him_node, tmp, &bunch) {
/systemd/src/resolve/
H A Dresolved-dns-dnssec.c1218 uint8_t tmp[hash_size]; local
1219 memcpy(tmp, result, hash_size);
1222 gcry_md_write(md, tmp, hash_size);
/systemd/test/
H A Dtest-functions441 for d in usr/bin usr/sbin bin etc lib "$libdir" sbin tmp usr var var/log dev proc sys sysroot root run run/lock run/initramfs; do
482 TESTDIR=$(mktemp --tmpdir=/var/tmp -d -t systemd-test.XXXXXX)
/systemd/src/systemctl/
H A Dsystemctl.c817 unsigned tmp = 0; local
826 tmp += strlen(*a) + 2*(a != s->triggered);
827 servlen = MAX(servlen, tmp);
6105 char **original, **tmp; local
6138 STRV_FOREACH_PAIR(original, tmp, paths) {
6142 if (null_or_empty_path(*tmp)) {
6147 r = rename(*tmp, *original);
6149 r = log_error_errno(errno, "Failed to rename \"%s\" to \"%s\": %m", *tmp, *original);
6160 STRV_FOREACH_PAIR(original, tmp, paths)
6161 (void) unlink(*tmp);
[all...]

Completed in 95 milliseconds