Searched refs:temp_path (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddryrun.c708 char temp_path[PATH_MAX]; local
709 char *dot_pos = (temp_path+strlen(dr_dir)+7);
716 (void) snprintf(temp_path, sizeof (temp_path), "%s/dryrun", dr_dir);
720 if (!init_drfile(&dryrun_sumasc, temp_path))
725 if (!init_drfile(&dryrun_fsasc, temp_path))
730 if (!init_drfile(&dryrun_poasc, temp_path))
735 if (!init_drfile(&dryrun_bin, temp_path))
744 char temp_path[PATH_MAX]; local
750 (void) snprintf(temp_path, sizeo
[all...]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dmon.c3268 char temp_path[MAXPATHLEN]; local
3295 (void) strcpy(temp_path, path);
3296 if ((char_ptr = strrchr(temp_path, '/')) == NULL) {
3301 (void) strcat(temp_path, SLSH_DRV_NAME_SSD);
3335 (void) strcat(temp_path, sbuf);
3373 (void) strcpy(temp_path, wwnlp->physical_path);
3396 (void) strcat(temp_path, sbuf);
3402 if (stat(temp_path, &stat_buf) == -1) {
3410 temp_path);
3427 if (err = l_get_disk_status(temp_path, stat
[all...]
/systemd/src/import/
H A Dexport-tar.c42 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 Dimport-raw.c59 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 Dimport-tar.c59 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 Dpull-raw.c79 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 Dpull-tar.c78 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/journal/
H A Djournald-stream.c133 _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 Djournal-upload.c102 _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 Dsd-dhcp-lease.c727 _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 Dsd-lldp.c452 _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/locale/
H A Dlocaled.c437 _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/login/
H A Dlogind-dbus.c1829 _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);
H A Dlogind-inhibit.c86 _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 Dlogind-seat.c90 _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 Dlogind-session.c160 _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 Dlogind-user.c136 _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);
/systemd/src/machine/
H A Dmachine.c120 _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/network/
H A Dnetworkd-link.c2693 _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);
H A Dnetworkd-manager.c833 _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);
/systemd/src/resolve/
H A Dresolved-resolv-conf.c228 _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/sysusers/
H A Dsysusers.c359 static int rename_and_apply_smack(const char *temp_path, const char *dest_path) { argument
361 if (rename(temp_path, dest_path) < 0)
/systemd/src/basic/
H A Dfileio-label.c56 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
H A Dfileio-label.h30 const char *path, FILE **f, char **temp_path);

Completed in 245 milliseconds