Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/test/ !
Dtest-os-util.c28 _cleanup_(unlink_tempfilep) char tmpfile[] = "/tmp/test-os-util.XXXXXX"; in TEST()
29 assert_se(write_tmpfile(tmpfile, in TEST()
33 assert_se(setenv("SYSTEMD_OS_RELEASE", tmpfile, 1) == 0); in TEST()
59 _cleanup_(unlink_tempfilep) char tmpfile[] = "/tmp/test-os-util.XXXXXX"; in TEST()
60 assert_se(write_tmpfile(tmpfile, in TEST()
65 assert_se(setenv("SYSTEMD_OS_RELEASE", tmpfile, 1) == 0); in TEST()
Dtest-socket-util.c238 char tmpfile[] = "/tmp/test-socket-util-passfd-read-XXXXXX"; in TEST() local
239 assert_se(write_tmpfile(tmpfile, file_contents) == 0); in TEST()
241 _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY); in TEST()
243 assert_se(unlink(tmpfile) == 0); in TEST()
279 char tmpfile[] = "/tmp/test-socket-util-passfd-contents-read-XXXXXX"; in TEST() local
283 assert_se(write_tmpfile(tmpfile, file_contents) == 0); in TEST()
285 _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY); in TEST()
287 assert_se(unlink(tmpfile) == 0); in TEST()
Dmeson.build454 [files('test-tmpfile-util.c')],
/systemd-251/src/sysusers/ !
Dsysusers.c397 static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_passwd() argument
514 *tmpfile = TAKE_PTR(passwd); in write_temporary_passwd()
520 static int write_temporary_shadow(const char *shadow_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_shadow() argument
652 *tmpfile = TAKE_PTR(shadow); in write_temporary_shadow()
658 static int write_temporary_group(const char *group_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_group() argument
758 *tmpfile = TAKE_PTR(group); in write_temporary_group()
764 static int write_temporary_gshadow(const char * gshadow_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_gshadow() argument
837 *tmpfile = TAKE_PTR(gshadow); in write_temporary_gshadow()
/systemd-251/src/basic/ !
Dmeson.build242 'tmpfile-util.c',
243 'tmpfile-util.h',
/systemd-251/src/shared/ !
Dmeson.build299 'tmpfile-util-label.c',
300 'tmpfile-util-label.h',
/systemd-251/docs/ !
DTEMPORARY_DIRECTORIES.md50 [`tmpfile()`](http://man7.org/linux/man-pages/man3/tmpfile.3.html) (C89)