Home
last modified time | relevance | path

Searched refs:savedir (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/lib/libpkg/common/
H A Dgpkglist.c120 char *savedir, **nwpkg; in gpkglist() local
123 savedir = pkgdir; in gpkglist()
129 pkgdir = savedir; in gpkglist()
159 pkgdir = savedir; /* restore pkgdir to orig value */ in gpkglist()
167 pkgdir = savedir; in gpkglist()
184 pkgdir = savedir; in gpkglist()
246 pkgdir = savedir; /* restore pkgdir to orig value */ in gpkglist()
/titanic_41/usr/src/ucbcmd/chown/
H A Dchown.c172 char savedir[1024]; in chownr() local
175 if (getcwd(savedir, 1024) == NULL) in chownr()
176 fatal(255, "%s", savedir); in chownr()
211 if (chdir(savedir) < 0) in chownr()
212 fatal(255, "can't change back to %s", savedir); in chownr()
/titanic_41/usr/src/cmd/chgrp/
H A Dchgrp.c374 char savedir[1024]; in chgrpr() local
376 if (getcwd(savedir, 1024) == 0) { in chgrpr()
378 (void) fprintf(stderr, gettext("%s\n"), savedir); in chgrpr()
518 if (chdir(savedir) < 0) { in chgrpr()
521 savedir); in chgrpr()
/titanic_41/usr/src/cmd/savecore/
H A Dsavecore.c70 static char *savedir; /* savecore directory */ variable
440 savedir, spacefree >> 20, (minfree + dumpsize) >> 20); in check_space()
578 "Copying %s to %s/%s\n", dumpfile, savedir, corefile); in copy_crashfile()
1348 (void) printf("Constructing namelist %s/%s\n", savedir, namelist); in build_corefile()
1389 (void) printf("Constructing corefile %s/%s\n", savedir, corefile); in build_corefile()
1568 if (pl & SC_PAYLOAD_SAVEDIR && savedir != NULL) in raise_event()
1569 err |= nvlist_add_string(attr, "dumpdir", savedir); in raise_event()
1667 savedir = defread("DUMPADM_SAVDIR="); in main()
1668 if (savedir != NULL) in main()
1669 savedir = strdup(savedir); in main()
[all …]
/titanic_41/usr/src/cmd/chown/
H A Dchown.c381 char savedir[1024]; in chownr() local
383 if (getcwd(savedir, 1024) == (char *)0) { in chownr()
506 if (chdir(savedir) < 0) { in chownr()
508 "chown: can't change back to %s\n"), savedir); in chownr()
/titanic_41/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c440 char savedir[MAXPATHLEN]; in g_get_physical_name() local
577 if (getcwd(savedir, in g_get_physical_name()
578 sizeof (savedir)) == NULL) { in g_get_physical_name()
586 strcat(savedir, &s[1]); in g_get_physical_name()
588 strcat(savedir, "/"); in g_get_physical_name()
589 strcat(savedir, s); in g_get_physical_name()
591 result = g_alloc_string(savedir); in g_get_physical_name()
/titanic_41/usr/src/cmd/refer/
H A Dglue2.c24 savedir(void) in savedir() function
H A Dglue1.c53 extern void savedir();
77 savedir(); in huntmain()
/titanic_41/usr/src/cmd/chmod/
H A Dchmod.c335 char savedir[PATH_MAX]; /* dir name to restore */ in chmodr() local
342 if (getcwd(savedir, PATH_MAX) == 0) in chmodr()
344 savedir); in chmodr()
381 errmsg(2, 0, "%s/%s: %s\n", savedir, dir, strerror(errno)); in chmodr()
433 if (chdir(savedir) < 0) { in chmodr()
434 errmsg(2, 255, gettext("can't change back to %s\n"), savedir); in chmodr()
/titanic_41/usr/src/lib/libshell/common/fun/
H A Dpopd94 typeset savedir
H A Dpushd94 typeset savedir
/titanic_41/usr/src/cmd/rmformat/
H A Drmf_misc.c1880 char savedir[MAXPATHLEN]; in get_physical_name() local
1883 if (getcwd(savedir, sizeof (savedir)) == NULL) { in get_physical_name()
1982 if (chdir(savedir) == -1) { in get_physical_name()
1984 savedir, strerror(errno)); in get_physical_name()
/titanic_41/usr/src/cmd/luxadm/
H A Dhotplug.c1202 char savedir[MAXPATHLEN]; in h_get_physical_name() local
1223 if (getcwd(savedir, in h_get_physical_name()
1224 sizeof (savedir)) == NULL) { in h_get_physical_name()
1232 (void) strcat(savedir, &s[1]); in h_get_physical_name()
1234 (void) strcat(savedir, "/"); in h_get_physical_name()
1235 (void) strcat(savedir, s); in h_get_physical_name()
1238 result = g_alloc_string(savedir); in h_get_physical_name()
/titanic_41/usr/src/cmd/format/
H A Dstartup.c2731 char savedir[MAXPATHLEN]; in get_physical_name() local
2734 if (getcwd(savedir, sizeof (savedir)) == NULL) { in get_physical_name()
2833 if (chdir(savedir) == -1) { in get_physical_name()
2835 savedir, strerror(errno)); in get_physical_name()