/systemd/src/basic/ |
H A D | fileio-label.c | 56 const char *path, FILE **f, char **temp_path) { 63 r = fopen_temporary(path, f, temp_path); 55 fopen_temporary_label(const char *target, const char *path, FILE **f, char **temp_path) argument
|
/systemd/src/resolve/ |
H A D | resolved-resolv-conf.c | 228 _cleanup_free_ char *temp_path = NULL; local 246 r = fopen_temporary_label(PRIVATE_RESOLV_CONF, PRIVATE_RESOLV_CONF, &f, &temp_path); 256 if (rename(temp_path, PRIVATE_RESOLV_CONF) < 0) { 265 (void) unlink(temp_path);
|
/systemd/src/import/ |
H A D | export-tar.c | 42 char *temp_path; member in struct:TarExport 81 if (e->temp_path) { 82 (void) btrfs_subvol_remove(e->temp_path, BTRFS_REMOVE_QUOTA); 83 free(e->temp_path); 291 e->temp_path = mfree(e->temp_path); 293 r = tempfn_random(path, NULL, &e->temp_path); 298 r = btrfs_subvol_snapshot_fd(sfd, e->temp_path, BTRFS_SNAPSHOT_READ_ONLY|BTRFS_SNAPSHOT_RECURSIVE); 300 log_debug_errno(r, "Couldn't create snapshot %s of %s, not exporting atomically: %m", e->temp_path, path); 301 e->temp_path [all...] |
H A D | import-raw.c | 59 char *temp_path; member in struct:RawImport 89 if (i->temp_path) { 90 (void) unlink(i->temp_path); 91 free(i->temp_path); 210 (void) unlink(i->temp_path); 211 free(i->temp_path); 212 i->temp_path = t; 227 assert(i->temp_path); 254 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path); 258 i->temp_path [all...] |
H A D | import-tar.c | 59 char *temp_path; member in struct:TarImport 96 if (i->temp_path) { 97 (void) rm_rf(i->temp_path, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME); 98 free(i->temp_path); 188 assert(i->temp_path); 201 r = import_make_read_only(i->temp_path); 209 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path); 213 i->temp_path = mfree(i->temp_path); 224 assert(!i->temp_path); [all...] |
H A D | pull-raw.c | 79 char *temp_path; member in struct:RawPull 99 if (i->temp_path) { 100 (void) unlink(i->temp_path); 101 free(i->temp_path); 255 (void) unlink(i->temp_path); 256 free(i->temp_path); 257 i->temp_path = t; 441 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path); 447 i->temp_path = mfree(i->temp_path); [all...] |
H A D | pull-tar.c | 78 char *temp_path; member in struct:TarPull 103 if (i->temp_path) { 104 (void) rm_rf(i->temp_path, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME); 105 free(i->temp_path); 336 r = import_make_read_only(i->temp_path); 340 r = rename_noreplace(AT_FDCWD, i->temp_path, AT_FDCWD, i->final_path); 346 i->temp_path = mfree(i->temp_path); 399 assert(!i->temp_path); 406 r = tempfn_random(i->final_path, NULL, &i->temp_path); [all...] |
/systemd/src/login/ |
H A D | logind-inhibit.c | 86 _cleanup_free_ char *temp_path = NULL; local 96 r = fopen_temporary(i->state_file, &f, &temp_path); 144 if (rename(temp_path, i->state_file) < 0) { 154 if (temp_path) 155 (void) unlink(temp_path);
|
H A D | logind-seat.c | 90 _cleanup_free_ char *temp_path = NULL; local 103 r = fopen_temporary(s->state_file, &f, &temp_path); 153 if (rename(temp_path, s->state_file) < 0) { 163 if (temp_path) 164 (void) unlink(temp_path);
|
H A D | logind-user.c | 136 _cleanup_free_ char *temp_path = NULL; local 147 r = fopen_temporary(u->state_file, &f, &temp_path); 271 if (rename(temp_path, u->state_file) < 0) { 281 if (temp_path) 282 (void) unlink(temp_path);
|
H A D | logind-session.c | 160 _cleanup_free_ char *temp_path = NULL; local 176 r = fopen_temporary(s->state_file, &f, &temp_path); 295 if (rename(temp_path, s->state_file) < 0) { 305 if (temp_path) 306 (void) unlink(temp_path);
|
H A D | logind-dbus.c | 1829 _cleanup_free_ char *temp_path = NULL; local 1839 r = fopen_temporary("/run/systemd/shutdown/scheduled", &f, &temp_path); 1869 if (rename(temp_path, "/run/systemd/shutdown/scheduled") < 0) { 1877 (void) unlink(temp_path);
|
/systemd/src/machine/ |
H A D | machine.c | 120 _cleanup_free_ char *temp_path = NULL; local 136 r = fopen_temporary(m->state_file, &f, &temp_path); 219 if (rename(temp_path, m->state_file) < 0) { 239 if (temp_path) 240 (void) unlink(temp_path);
|
/systemd/src/journal/ |
H A D | journald-stream.c | 133 _cleanup_free_ char *temp_path = NULL; local 156 r = fopen_temporary(s->state_file, &f, &temp_path); 201 if (rename(temp_path, s->state_file) < 0) { 222 if (temp_path) 223 (void) unlink(temp_path);
|
/systemd/src/journal-remote/ |
H A D | journal-upload.c | 102 _cleanup_free_ char *temp_path = NULL; local 114 r = fopen_temporary(u->state_file, &f, &temp_path); 118 unlink(temp_path); 124 _cleanup_free_ char *temp_path = NULL; local 131 r = fopen_temporary(u->state_file, &f, &temp_path); 144 if (rename(temp_path, u->state_file) < 0) { 152 if (temp_path) 153 (void) unlink(temp_path);
|
/systemd/src/libsystemd-network/ |
H A D | sd-dhcp-lease.c | 727 _cleanup_free_ char *temp_path = NULL; local 743 r = fopen_temporary(lease_file, &f, &temp_path); 863 if (rename(temp_path, lease_file) < 0) { 871 if (temp_path) 872 (void) unlink(temp_path);
|
H A D | sd-lldp.c | 452 _cleanup_free_ char *temp_path = NULL; local 466 r = fopen_temporary(lldp_file, &f, &temp_path); 578 if (rename(temp_path, lldp_file) < 0) { 586 if (temp_path) 587 (void) unlink(temp_path);
|
/systemd/src/network/ |
H A D | networkd-manager.c | 833 _cleanup_free_ char *temp_path = NULL; local 935 r = fopen_temporary(m->state_file, &f, &temp_path); 954 if (rename(temp_path, m->state_file) < 0) { 972 (void) unlink(temp_path);
|
H A D | networkd-link.c | 2693 _cleanup_free_ char *temp_path = NULL; local 2717 r = fopen_temporary(link->state_file, &f, &temp_path); 2967 if (rename(temp_path, link->state_file) < 0) { 2976 if (temp_path) 2977 (void) unlink(temp_path);
|
/systemd/src/locale/ |
H A D | localed.c | 437 _cleanup_free_ char *temp_path = NULL; local 453 r = fopen_temporary("/etc/X11/xorg.conf.d/00-keyboard.conf", &f, &temp_path); 483 if (rename(temp_path, "/etc/X11/xorg.conf.d/00-keyboard.conf") < 0) { 493 if (temp_path) 494 (void) unlink(temp_path);
|
/systemd/src/sysusers/ |
H A D | sysusers.c | 359 static int rename_and_apply_smack(const char *temp_path, const char *dest_path) { argument 361 if (rename(temp_path, dest_path) < 0)
|