Searched refs:filename_tmp (Results 1 - 2 of 2) sorted by relevance

/systemd/src/hwdb/
H A Dhwdb.c366 _cleanup_free_ char *filename_tmp = NULL; local
384 err = fopen_temporary(filename , &t.f, &filename_tmp);
393 unlink_noerrno(filename_tmp);
411 unlink_noerrno(filename_tmp);
419 if (err < 0 || rename(filename_tmp, filename) < 0) {
420 unlink_noerrno(filename_tmp);
/systemd/src/udev/
H A Dudevadm-hwdb.c347 _cleanup_free_ char *filename_tmp = NULL; local
365 err = fopen_temporary(filename , &t.f, &filename_tmp);
374 unlink_noerrno(filename_tmp);
392 unlink_noerrno(filename_tmp);
400 if (err < 0 || rename(filename_tmp, filename) < 0) {
401 unlink_noerrno(filename_tmp);

Completed in 1042 milliseconds