/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | udpublickey.c | 62 char *tmpname; local 70 tmpname = malloc(strlen(fname) + 4); 71 if (tmpname == NULL) { 74 sprintf(tmpname, "%s.tmp", fname); 120 wf = fopen(tmpname, "w"); 161 if (rename(tmpname, fname) < 0) { 165 if (unlink(tmpname) < 0) {
|
H A D | ypserv_proc.c | 861 datum tmpname; local 865 tmpname.dsize = req.keydat.dsize + 9; 866 tmpname.dptr = name; 867 resp->valdat = dbm_fetch(fdb, tmpname); 1462 datum tmpname; local 1467 tmpname.dsize = req.ypmatch_req_keysize + 9; 1468 tmpname.dptr = name; 1469 resp->ypmatch_resp_valdat = dbm_fetch(fdb, tmpname);
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | wrap.c | 97 char *tmpname; local 124 wsnp->wsn_wrapname = tmpname = (char *)(wsnp + 1); 125 (void) snprintf(tmpname, wrapname_len, MSG_ORIG(MSG_FMT_STRCAT),
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | lock.c | 83 char tmpname[MAXPATHLEN]; local 118 (void) sprintf(tmpname, "%s.XXXXXX", lockname); 119 (void) mktemp(tmpname); 120 fd = creat(tmpname, 0666); 125 (const char *)"creat(%s)", tmpname); 128 if (stat(tmpname, &fs_statb) == -1) { 130 (const char *)"stat(%s)", tmpname); 133 (void) unlink(tmpname);
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 96 char tmpname[MAXPATHLEN]; local 132 (void) snprintf(tmpname, MAXPATHLEN, "%s.XXXXXX", 134 (void) mktemp(tmpname); 135 fd = creat(tmpname, 0666); 140 (const char *)"creat(%s)", tmpname, 0, 144 if (stat(tmpname, &fs_statb) == -1) { 146 (const char *)"stat(%s)", tmpname, 0, 150 (void) unlink(tmpname);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | ser_princ.c | 147 char *tmpname; 164 tmpname = (char *) MALLOC(tmpsize); 165 if ((tmpname) && 166 !(kret = krb5_ser_unpack_bytes((krb5_octet *) tmpname, 169 tmpname[ibuf] = '\0'; 173 kret = krb5_parse_name(kcontext, tmpname, &principal); 187 FREE(tmpname,tmpsize); 144 char *tmpname; local
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | inetboot.c | 95 char tmpname[MAXPATHLEN]; local 106 (void) strncpy(tmpname, fn, strlen(fn)+1); 107 fn = tmpname; 112 (void) strncpy(tmpname, ctmpname, 114 fn = tmpname; 127 (void) strncpy(tmpname, cmd_line_boot_archive, 129 fn = tmpname; 132 (void) strncpy(tmpname, def_boot_archive, 134 fn = tmpname; 136 (void) strncpy(tmpname, def_miniroo [all...] |
H A D | boot_plat.c | 171 char tmpname[MAXPATHLEN]; local 174 (void) cons_gets(tmpname, sizeof (tmpname)); 175 if (tmpname[0] != '\0') 176 (void) strcpy(bootfile, tmpname);
|
/illumos-gate/usr/src/lib/pam_modules/krb5/ |
H A D | krb5_setcred.c | 477 char *tmpname = NULL; local 487 if ((tmpname = strchr(username, '@'))) 488 *tmpname = '\0';
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 173 char tmpname[TMPNM_SIZE]; local 177 (void) strlcpy(tmpname, "/var/run/dm_lu_XXXXXX", TMPNM_SIZE); 178 if ((fd = mkstemp(tmpname)) != -1) { 179 (void) unlink(tmpname); 268 char tmpname[TMPNM_SIZE]; local 287 (void) strlcpy(tmpname, "/var/run/dm_lu_XXXXXX", TMPNM_SIZE); 288 if ((ffd = mkstemp(tmpname)) != -1) { 289 (void) unlink(tmpname);
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | rules.c | 290 char tmpname[ MAX_PATH ]; local 297 sprintf(tmpname, "%s-TMP", name); 300 newfile = fopen(tmpname, "w+"); 317 tmpname); 323 tmpname); 329 if (rename(tmpname, name) != 0) { 331 gettext(TXT_rules), tmpname, name);
|
H A D | base.c | 668 char tmpname[ MAX_PATH ]; local 678 sprintf(tmpname, "%s-TMP", name); 681 newfile = fopen(tmpname, "w+"); 684 tmpname); 694 tmpname); 700 tmpname); 706 if (rename(tmpname, name) != 0) { 708 gettext(TXT_base), tmpname, name);
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | update.c | 236 char tmpname[80]; local 253 (void) memset(tmpname, 0, 80); 254 (void) sprintf(tmpname, "%s.tmp", filename); 267 wfd = open(tmpname, O_CREAT|O_RDWR|O_TRUNC, 271 program_name, tmpname); 278 program_name, tmpname); 321 if (rename(tmpname, filename) < 0) { 324 program_name, tmpname, filename); 328 if (unlink(tmpname) < 0) { 331 program_name, tmpname); [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | reqexec.c | 92 static char *tmpname = "checkinstallXXXXXX"; local 96 dstpathLen = strlen(tmpdir) + strlen(tmpname) + 3; 107 (void) snprintf(dstpath, dstpathLen, "%s/%s", tmpdir, tmpname);
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | ctfconvert.c | 236 char *tmpname = mktmpname(infile, ".ctf"); local 238 write_ctf(mstrtd, infile, tmpname, dynsym); 239 if (rename(tmpname, infile) != 0) 240 terminate("Couldn't rename temp file %s", tmpname); 241 free(tmpname);
|
H A D | ctfmerge.c | 204 static char *tmpname = NULL; variable 590 if (tmpname != NULL && dounlink) 591 unlink(tmpname); 610 tmpname = mktmpname(destfile, ".ctf"); 611 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS); 612 if (rename(tmpname, destfile) != 0) { 613 terminate("Couldn't rename temp file %s to %s", tmpname, 616 free(tmpname); 991 tmpname = mktmpname(outfile, ".ctf"); 992 write_ctf(savetd, outfile, tmpname, [all...] |
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packer.c | 84 char tmpname[sizeof (FNAME_TEMPLATE)]; local 93 (void) strcpy(tmpname, FNAME_TEMPLATE); 94 if ((fd = mkstemp(tmpname)) == -1) { 99 (void) unlink(tmpname);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | suid_exec.c | 86 static char tmpname[] = "/tmp/SUIDXXXXXX"; variable 115 maketemp(tmpname); 116 if(strcmp(p,tmpname)==0) 138 if(stat(tmpname,&statb) < 0 || statb.st_nlink != 1 || 377 * linked a valuable file to tmpname? 379 unlink(tmpname); /* should normally fail */ 381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 || 382 unlink(tmpname) < 0) 384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) < [all...] |
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioFile.cc | 56 static const char *tmpname = "(temporary file)"; variable 70 AudioUnixfile(tmpname, tmpmode), 142 if (strcmp(path, tmpname) == 0) {
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 98 char *tmpname = "/etc/mnttab.temp"; local
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | main.c | 35 char *tmpname = &Tmpfile[5]; variable
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_loader.c | 667 const char *tmpname = "bam.XXXXXX"; local 675 ret = asprintf(dir, "%s/%s", tmpdir, tmpname);
|
/illumos-gate/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 464 char *buff, *endbuff, *tmpname=0; local 474 tmpname = (char*)malloc(strlen(name)+14); 478 pathtmp(tmpname,name,"hist",NIL(int*)); 482 pathtmp(tmpname,".","hist",NIL(int*)); 483 if(rename(name,tmpname) < 0) 484 tmpname = name; 485 fd = open(tmpname,O_RDONLY); 487 if(tmpname==name) 488 tmpname = 0; 543 if(tmpname) [all...] |
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 1621 char *slash, *tmpname; local 1632 tmpname = malloc(prefix_cnt + MSG_STR_MKTEMP_SIZE + 1); 1633 if (tmpname == NULL) { 1640 (void) strncpy(tmpname, filename, prefix_cnt); 1641 (void) strcpy(tmpname + prefix_cnt, MSG_ORIG(MSG_STR_MKTEMP)); 1642 (void) mktemp(tmpname); 1644 return (tmpname);
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | nvfile.c | 439 char *tmpname; local 448 rval = nvlist_lookup_string(nvf_list, id, &tmpname); 453 if (strlen(tmpname) < nsize) { 454 (void) strcpy(name, tmpname); 459 tmpname, nsize, id);
|