/titanic_50/usr/src/lib/libadm/common/ |
H A D | putdev.c | 234 rmnewdevtab(char *tempname) /* Filename of new device table */ in rmnewdevtab() argument 239 noerr = (unlink(tempname) == 0); in rmnewdevtab() 242 free(tempname); in rmnewdevtab() 268 mknewdevtab(char *tempname) /* Ptr to name of temp dev tab */ in mknewdevtab() argument 280 noerr = (link(tempname, devtabname) == 0) ? TRUE : FALSE; in mknewdevtab() 283 if (noerr) (void) rmnewdevtab(tempname); in mknewdevtab() 1024 char *tempname; in _rmdevtabrec() local 1032 if (fd = opennewdevtab(&tempname)) { in _rmdevtabrec() 1041 noerr = mknewdevtab(tempname); in _rmdevtabrec() 1044 (void) rmnewdevtab(tempname); in _rmdevtabrec() [all …]
|
H A D | putdgrp.c | 100 static int mknewdgrptab(char *tempname); 101 static int rmnewdgrptab(char *tempname); 205 rmnewdgrptab(char *tempname) in rmnewdgrptab() argument 211 noerr = (unlink(tempname) == 0); in rmnewdgrptab() 212 free(tempname); in rmnewdgrptab() 239 mknewdgrptab(char *tempname) /* Ptr to name of temp dgrp tab */ in mknewdgrptab() argument 251 noerr = (link(tempname, dgrpname) == 0) ? TRUE : FALSE; in mknewdgrptab() 255 noerr = rmnewdgrptab(tempname); in mknewdgrptab()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | asppp2pppd | 1393 if ($tempname) { 1394 unlink($tempname) or 1395 die "Cannot remove temporary file $tempname: $!\n"; 1474 undef $tempname; 1477 $tempname = tmpnam(); 1478 } until sysopen(FH, $tempname, O_RDWR|O_CREAT|O_EXCL); 1479 next if !$tempname; 1482 system($PAGER, $tempname); 1483 unlink($tempname) || 1485 undef $tempname; [all …]
|
/titanic_50/usr/src/cmd/mailx/ |
H A D | fio.c | 495 char tempname[STSIZ], *id; in edstop() local 528 nstrcpy(tempname, STSIZ, "/tmp/mboxXXXXXX"); in edstop() 529 if ((tmpfd = mkstemp(tempname)) == -1) { in edstop() 530 perror(tempname); in edstop() 536 perror(tempname); in edstop() 538 removefile(tempname); in edstop() 547 if ((tbuf = fopen(tempname, "r")) == NULL) { in edstop() 548 perror(tempname); in edstop() 550 removefile(tempname); in edstop() 554 removefile(tempname); in edstop()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | uuxqt.c | 838 char file[MAXFULLNAME], tempname[NAMESIZE]; local 1036 gename(DATAPRE, sysout, 'O', tempname); 1038 tempname); 1055 gename(DATAPRE, syserr, 'E', tempname); 1057 WORKSPACE, tempname); 1211 gename(CMDPRE, sysout, dqueue, tempname); 1213 WORKSPACE, tempname); 1258 gename(CMDPRE, syserr, dqueue, tempname); 1260 WORKSPACE, tempname);
|
/titanic_50/usr/src/cmd/compress/ |
H A D | compress.c | 327 char tempname[MAXPATHLEN]; in main() local 571 if (strlcpy(tempname, *fileptr, in main() 572 sizeof (tempname)) >= in main() 573 sizeof (tempname)) { in main() 582 if (addDotZ(tempname, in main() 583 sizeof (tempname)) < 0) { in main() 588 *fileptr = tempname; in main()
|
/titanic_50/usr/src/cmd/vi/port/ |
H A D | ex_temp.c | 47 static unsigned char tempname[PATH_MAX+1]; variable 91 CP(tempname, tfname); in fileinit() 498 CP(rfname, tempname); in regio()
|
/titanic_50/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | dir.c | 1350 static char tempname[BUFSIZ]; in mkuniqname() local 1352 lftempname(tempname, inode); in mkuniqname() 1361 name = tempname; in mkuniqname()
|
/titanic_50/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 3286 create_sparc_archive(char *archive, char *tempname, char *bootblk, char *list) in create_sparc_archive() argument 3303 tempname, list); in create_sparc_archive() 3321 bootblk, tempname); in create_sparc_archive() 3332 if (check_archive(tempname) == BAM_ERROR) in create_sparc_archive() 3335 return (do_archive_copy(tempname, archive)); in create_sparc_archive() 3340 (void) unlink(tempname); in create_sparc_archive() 3369 extend_iso_archive(char *archive, char *tempname, char *update_dir) in extend_iso_archive() argument 3410 MKISO_PARAMS, tempname, update_dir); in extend_iso_archive() 3424 newfd = open(tempname, O_RDONLY); in extend_iso_archive() 3483 "seek=%d conv=sync 2>&1", DD_PATH_USR, tempname, archive, in extend_iso_archive() [all …]
|
/titanic_50/usr/src/cmd/tar/ |
H A D | tar.c | 3875 char tempname[NAMSIZ+1]; in xblocks() local 3939 (void) strlcpy(tempname, Xtarhdr.x_path, in xblocks() 3940 sizeof (tempname)); in xblocks() 3942 (void) sprintf(tempname, "%.*s", NAMSIZ, in xblocks() 3953 "%s: insufficient privileges\n"), tempname); in xblocks() 3960 tempname); in xblocks()
|
/titanic_50/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_libscf.c | 14366 char tempname[] = TEMP_FILE_PATTERN; in lscf_editprop() local 14380 tmpfd = mkstemp(tempname); in lscf_editprop() 14386 (void) strcpy(tempfilename, tempname); in lscf_editprop() 14409 bufsz = strlen(editor) + 1 + strlen(tempname) + 1; in lscf_editprop() 14412 if (snprintf(buf, bufsz, "%s %s", editor, tempname) < 0) in lscf_editprop() 14425 (void) engine_source(tempname, est->sc_cmd_flags & SC_CMD_IACTIVE); in lscf_editprop()
|