/illumos-gate/usr/src/cmd/rexd/ |
H A D | under.c | 90 char *tmpdir, *subdir, *parsefs(); local 130 tmpdir = mktemp("/tmp/underXXXXXX"); 136 tmpdir, errno, strerror(errno)); 140 if (mkdir(tmpdir, 0777)) 142 perror(tmpdir); 148 tmpdir, errno, strerror(errno)); 156 if (mount_nfs(dir, tmpdir, error)) 160 strcpy(dirbuf, tmpdir); 164 if (umount_nfs(dir, tmpdir)) 166 rmdir(tmpdir); [all...] |
H A D | rpc.rexd.c | 100 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/lib/libast/common/path/ |
H A D | pathtemp.c | 97 char* tmpdir; member in struct:__anon2659 162 if (tmp.tmpdir) 163 free(tmp.tmpdir); 164 tmp.tmpdir = dir ? strdup(dir) : (char*)0; 216 if (((d = tmp.tmpdir) || (d = getenv(TMP_ENV))) && !VALID(d))
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioFile.cc | 55 static char *tmpdir = NULL; variable 111 if (tmpdir != NULL) 112 (void) free(tmpdir); 113 tmpdir = (char *)malloc(strlen(path) + 1); 114 (void) strcpy(tmpdir, path); 145 strlen((tmpdir == NULL) ? TMPDIR : tmpdir)); 147 (tmpdir == NULL) ? TMPDIR : tmpdir, TMPFILE);
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | main.c | 65 char *tmpdir; variable 531 tmpdir = getenv("TMPDIR"); 532 if ((tmpdir == (char *)NULL) || (*tmpdir == '\0')) 533 tmpdir = "/tmp"; 535 if (*tmpdir != '/') { 538 tmpdir); 543 * The actual use of tmpdir is in dirs.c, and is of the form 544 * tmpdir + "/rst" + type (three characters) + "%ld.XXXXXX" + 557 if (strlen(tmpdir) > (MAXPATHLE [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/ |
H A D | main.c | 120 *tmpdir, variable 402 tmpdir = NULL; 406 tmpdir = spooldir = qstrdup(tmpnam(NULL)); 595 if (tmpdir != NULL) { 596 (void) rrmdir(tmpdir); 597 free(tmpdir); 598 tmpdir = NULL;
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | main.c | 122 *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/tnf/prex/ |
H A D | main.c | 725 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/cmd/boot/bootadm/ |
H A D | bootadm_loader.c | 666 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/libzoneinfo/common/ |
H A D | libzone.c | 996 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/lib/libpkg/common/ |
H A D | pkgtrans.c | 97 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 D | pkgweb.c | 1817 * 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/svr4pkg/pkginstall/ |
H A D | main.c | 143 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);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | main.c | 186 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/svr4pkg/pkgrm/ |
H A D | main.c | 95 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/tools/cscope-fast/ |
H A D | main.c | 110 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/bin/ |
H A D | globals.cc | 162 const char *tmpdir = "/tmp"; variable
|
/illumos-gate/usr/src/cmd/beadm/ |
H A D | beadm.c | 1269 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/svr4pkg/pkgadd/ |
H A D | main.c | 119 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/cpio/ |
H A D | cpio.c | 8522 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/tar/ |
H A D | tar.c | 614 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...] |