chiark / gitweb /
Replace mkostemp+unlink with open(O_TMPFILE)
[elogind.git] / src / shared / util.h
index d6d746bc6a506386b7a33f1902f07756a8356d78..630137a53ad755d8b036a2359156b85bbf1d5808 100644 (file)
@@ -849,3 +849,5 @@ bool pid_valid(pid_t pid);
 
 int getpeercred(int fd, struct ucred *ucred);
 int getpeersec(int fd, char **ret);
+
+int open_tmpfile(const char *path, int flags);