Searched refs:tmpdir (Results 26 - 50 of 51) sorted by relevance

123

/illumos-gate/usr/src/cmd/rexd/
H A Drpc.rexd.c100 char *tmpdir; /* where above is mounted, NULL if none */ variable
789 if (tmpdir) {
800 if (nfsdir[0] && umount_nfs(nfsdir, tmpdir))
803 tmpdir);
804 if (rmdir(tmpdir) < 0)
807 tmpdir = NULL;
915 tmpdir = mktemp(TempName);
923 if (mkdir(tmpdir, 0777)) {
934 tmpdir, errno);
938 if (mount_nfs(wanted, tmpdir, erro
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c122 *tmpdir; /* location to place temporary files */ variable
565 tmpdir = getenv("TMPDIR");
566 if (tmpdir == NULL) {
567 tmpdir = P_tmpdir;
570 echoDebug(DBG_PKGREMOVE_TMPDIR, tmpdir);
789 /* establish path and tmpdir */
798 putparam("TMPDIR", tmpdir);
1040 putparam("TMPDIR", tmpdir);
1153 tmpdir);
/illumos-gate/usr/src/cmd/abi/appcert/scripts/
H A Dsymprof.pl1391 my ($tmpdir, $outfile, $errfile);
1398 $tmpdir = $tmp_prof_dir;
1400 # Clean out the tmpdir.
1401 if ($tmpdir !~ m,^/*$,) {
1402 unlink(<$tmpdir/*>);
1411 $errfile = "$tmpdir/stderr";
1412 $outfile = "$tmpdir/stdout";
1448 $ENV{'LD_DEBUG_OUTPUT'} = "$tmpdir/bind";
1510 if (-f "$tmpdir/stdout") {
1512 if (! open($out_fh, "<$tmpdir/stdou
[all...]
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dmain.c725 char *tmpdir; local
750 tmpdir = getenv("TMPDIR");
751 if (!tmpdir || *tmpdir == '\0') {
752 tmpdir = "/tmp";
758 if ((strlen(tmpdir) + 1 + 20) > (size_t)MAXPATHLEN) {
763 (void) sprintf(path, "%s/trace-%ld", tmpdir, g_targetpid);
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c996 char *tmpdir, *tmp; /* Temp file name and location */ local
1031 if ((tmpdir = strdup(tdb)) == NULL) {
1035 remove_component(tmpdir);
1036 if ((len = strlen(tmpdir)) == 0) {
1037 (void) strcpy(tmpdir, ".");
1042 free(tmpdir);
1046 (void) strcpy(tmp, tmpdir);
1048 free(tmpdir);
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dmain.c143 char tmpdir[PATH_MAX]; variable
1028 (void) snprintf(tmpdir, sizeof (tmpdir), "%s/installXXXXXX",
1031 echoDebug(DBG_PKGINSTALL_TMPDIR, tmpdir);
1033 if ((mktemp(tmpdir) == NULL) || mkdir(tmpdir, 0771)) {
1034 progerr(ERR_MKDIR, tmpdir);
1073 pkgdev.dirname, (int *)NULL, &idsName, tmpdir, &pkgdev,
2133 putparam("TMPDIR", tmpdir);
H A Dinstvol.c82 extern char tmpdir[];
222 putparam("TMPDIR", tmpdir);
223 listfile = tempnam(tmpdir, "list");
H A Dcheck.c55 tmpdir[], pkgloc[], pkgloc_sav[], pkgbin[], pkgsav[],
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/
H A Dmain.c95 char *tmpdir = NULL; /* location to place temporary files */ variable
603 tmpdir = getenv("TMPDIR");
604 if (tmpdir == NULL) {
605 tmpdir = P_tmpdir;
608 echoDebug(DBG_PKGRM_TMPDIR, tmpdir);
1277 fd = openLocal(a_adminFile, O_RDONLY, tmpdir);
1506 fd = openLocal(a_adminFile, O_RDONLY, tmpdir);
1909 create_zone_tempdir(&zoneTempDir, tmpdir);
2226 create_zone_tempdir(&zoneTempDir, tmpdir);
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/
H A Dmain.c119 char *tmpdir = NULL; /* location to place temporary files */ variable
1119 if ((tmpdir = getenv("TMPDIR")) == NULL) {
1121 tmpdir = P_tmpdir;
1124 echoDebug(DBG_PKGADD_TMPDIR, tmpdir);
1179 b = setup_temporary_directory(&dwnld_dir, tmpdir, "dwnld");
1181 progerr(ERR_DWNLDTEMPDIR, tmpdir, strerror(errno));
1220 progerr(ERR_DIR_CONST, tmpdir);
1279 &repeat, &ids_name, tmpdir,
1325 &repeat, &ids_name, tmpdir,
1604 fd = openLocal(a_adminFile, O_RDONLY, tmpdir);
[all...]
/illumos-gate/usr/src/cmd/make/bin/
H A Dglobals.cc162 const char *tmpdir = "/tmp"; variable
H A Dstate.cc165 (void) sprintf(buffer, "%s/.make.state.%d.XXXXXX", tmpdir, getpid());
214 (void) sprintf(buffer, "%s/.make.state.%d.XXXXXX", tmpdir, getpid());
H A Dparallel.cc325 sprintf(m2_file, "%s/dmake.m2.%d.XXXXXX", tmpdir, getpid());
638 tmpdir,
650 tmpdir,
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dmain.c186 char *pt, *value, *pkginst, *tmpdir, *abi_sym_ptr, local
315 tmpdir = getenv("TMPDIR");
316 if (tmpdir == NULL)
317 tmpdir = P_tmpdir;
362 t_pkgmap = tempnam(tmpdir, "tmpmap");
599 t_pkginfo = tempnam(tmpdir, "pkginfo");
/illumos-gate/usr/src/cmd/backup/restore/
H A Drestore.h81 extern char *tmpdir; /* where to put the rst{dir,mode}... files */
H A Ddirs.c62 if (tmpdir == (char *)NULL) /* can't happen; be paranoid */ \
63 tmpdir = "/tmp"; \
65 "%s/rst" type "%ld.XXXXXX", tmpdir, dumpdate); \
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmain.c110 static char *tmpdir; /* temporary directory */ variable
170 tmpdir = mygetenv("TMPDIR", TMPDIR);
194 (void) sprintf(temp1, "%s/cscope%d.1", tmpdir, (int)pid);
195 (void) sprintf(temp2, "%s/cscope%d.2", tmpdir, (int)pid);
1239 * (void) sprintf(sortcommand, "sort -y -T %s %s", tmpdir, temp1);
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dreport.cc36 #include <mk/defs.h> /* for tmpdir */
210 "%s/%s.%d.XXXXXX", tmpdir, NSE_DEPINFO, getpid());
/illumos-gate/usr/src/cmd/beadm/
H A Dbeadm.c1269 const char *tmpdir = getenv("TMPDIR"); local
1273 if (tmpdir == NULL)
1274 tmpdir = "/tmp";
1276 sz = asprintf(&tmp_mp, "%s/%s", tmpdir, tmpname);
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_loader.c666 const char *tmpdir = getenv("TMPDIR"); local
672 if (tmpdir == NULL)
673 tmpdir = "/tmp";
675 ret = asprintf(dir, "%s/%s", tmpdir, tmpname);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c97 static char *tmpdir; variable
463 tmpdir = srcdev.dirname = strdup(srcdev.dirname);
1822 if (tmpdir) {
1823 (void) rrmdir(tmpdir);
1824 free(tmpdir);
1825 tmpdir = NULL;
H A Dpkgweb.c1817 * tmpdir - Directory to write certificate file in
1825 *write_ca_file(PKG_ERR *err, char *tmpdir, STACK_OF(X509) *cacerts, argument
1835 if (!path_valid(tmpdir)) {
1836 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTEMP), tmpdir);
1841 if (((len = snprintf(tmp_file, PATH_MAX, "%s/%sXXXXXX", tmpdir,
1844 pkgerr_add(err, PKGERR_WEB, gettext(MSG_NOTEMP), tmpdir);
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c614 static char *tmpdir; variable
1056 tmpdir = getenv("TMPDIR");
1062 if (tmpdir == NULL || *tmpdir == '\0' ||
1063 (strlen(tmpdir) + strlen(tmp_suffix)) > PATH_MAX) {
1064 tmpdir = "/tmp";
1065 } else if (stat(tmpdir, &sbuf) < 0 ||
1068 tmpdir = "/tmp";
1071 if ((tname = calloc(1, strlen(tmpdir) +
1076 (void) strcpy(tname, tmpdir);
8364 char tmpdir[PATH_MAX + 1]; local
[all...]
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c8522 char tmpdir[PATH_MAX + 1]; local
8527 (void) strcpy(tmpdir, path);
8528 chop_endslashes(tmpdir);
8530 if ((s = strrchr(tmpdir, '/')) == NULL) {
8533 s = skipslashes(s, tmpdir);
8535 if (s == tmpdir)
8538 (void) strcpy(dir, tmpdir);
9428 char *tmpdir = getenv("TMPDIR"); local
9433 if (tmpdir == NULL || *tmpdir
[all...]
/illumos-gate/usr/src/cmd/make/include/mk/
H A Ddefs.h278 extern const char *tmpdir;

Completed in 184 milliseconds

123