Searched refs:filename_tmp (Results 1 – 3 of 3) sorted by relevance
/third_party/eudev/src/libudev/ |
D | libudev-device-private.c | 109 char filename_tmp[UTIL_PATH_SIZE]; in udev_device_update_db() local 129 strscpyl(filename_tmp, sizeof(filename_tmp), filename, ".tmp", NULL); in udev_device_update_db() 130 mkdir_parents(filename_tmp, 0755); in udev_device_update_db() 131 f = fopen(filename_tmp, "we"); in udev_device_update_db() 133 … return log_debug_errno(errno, "unable to create temporary db file '%s': %m", filename_tmp); in udev_device_update_db() 170 r = rename(filename_tmp, filename); in udev_device_update_db()
|
/third_party/mesa3d/src/util/ |
D | disk_cache_os.c | 672 char *filename_tmp = NULL; in disk_cache_write_item_to_disk() local 673 if (asprintf(&filename_tmp, "%s.tmp", filename) == -1) in disk_cache_write_item_to_disk() 676 fd = open(filename_tmp, O_WRONLY | O_CLOEXEC | O_CREAT, 0644); in disk_cache_write_item_to_disk() 685 fd = open(filename_tmp, O_WRONLY | O_CLOEXEC | O_CREAT, 0644); in disk_cache_write_item_to_disk() 717 unlink(filename_tmp); in disk_cache_write_item_to_disk() 726 unlink(filename_tmp); in disk_cache_write_item_to_disk() 736 unlink(filename_tmp); in disk_cache_write_item_to_disk() 740 ret = rename(filename_tmp, filename); in disk_cache_write_item_to_disk() 742 unlink(filename_tmp); in disk_cache_write_item_to_disk() 763 free(filename_tmp); in disk_cache_write_item_to_disk()
|
/third_party/eudev/src/udev/ |
D | udevadm-hwdb.c | 351 _cleanup_free_ char *filename_tmp = NULL; in trie_store() local 369 err = fopen_temporary(filename , &t.f, &filename_tmp); in trie_store() 378 unlink_noerrno(filename_tmp); in trie_store() 396 unlink_noerrno(filename_tmp); in trie_store() 404 if (err < 0 || rename(filename_tmp, filename) < 0) { in trie_store() 405 unlink_noerrno(filename_tmp); in trie_store()
|