]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/tmpfile-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 int fopen_temporary(const char *path
, FILE **_f
, char **_temp_path
);
7 int mkostemp_safe(char *pattern
);
8 int fmkostemp_safe(char *pattern
, const char *mode
, FILE**_f
);
10 int tempfn_xxxxxx(const char *p
, const char *extra
, char **ret
);
11 int tempfn_random(const char *p
, const char *extra
, char **ret
);
12 int tempfn_random_child(const char *p
, const char *extra
, char **ret
);
14 int open_tmpfile_unlinkable(const char *directory
, int flags
);
15 int open_tmpfile_linkable(const char *target
, int flags
, char **ret_path
);
17 int link_tmpfile(int fd
, const char *path
, const char *target
);
19 int mkdtemp_malloc(const char *template, char **ret
);