Searched refs:tempname (Results 1 - 25 of 32) sorted by relevance

12

/netbsd-6-1-5-RELEASE/usr.bin/mail/
H A Dedit.c65 char tempname[PATHSIZE]; local
68 (void)snprintf(tempname, sizeof(tempname),
70 if ((t = mkstemp(tempname)) == -1) {
71 warn("%s", tempname);
76 warn("%s", tempname);
77 (void)unlink(tempname);
82 warn("%s", tempname);
83 (void)unlink(tempname);
95 warn("%s", tempname);
[all...]
H A Dquit.c144 char tempname[PATHSIZE]; local
176 (void)snprintf(tempname, sizeof(tempname),
178 if ((fd = mkstemp(tempname)) == -1 ||
180 warn("%s", tempname);
189 (void)rm(tempname);
198 warn("%s", tempname);
201 (void)rm(tempname);
207 if ((ibuf = Fopen(tempname, "r")) == NULL) {
208 warn("%s", tempname);
274 char tempname[PATHSIZE]; local
[all...]
H A Dcollect.c160 char tempname[PATHSIZE]; local
165 (void)snprintf(tempname, sizeof(tempname),
167 if ((fd = mkstemp(tempname)) == -1 ||
171 warn("%s", tempname);
174 (void)unlink(tempname);
368 char tempname[PATHSIZE]; local
628 (void)snprintf(tempname, sizeof(tempname),
630 if ((fd = mkstemp(tempname))
[all...]
H A Dsend.c485 char tempname[PATHSIZE]; local
487 (void)snprintf(tempname, sizeof(tempname),
489 if ((fd = mkstemp(tempname)) == -1 ||
493 warn("%s", tempname);
496 if ((nfi = Fopen(tempname, "r")) == NULL) {
497 warn("%s", tempname);
499 (void)rm(tempname);
502 (void)rm(tempname);
522 warn("%s", tempname);
[all...]
H A Dnames.c255 char tempname[PATHSIZE]; local
278 (void)snprintf(tempname, sizeof(tempname),
280 if ((fd = mkstemp(tempname)) == -1 ||
284 warn("%s", tempname);
288 image = open(tempname, O_RDWR);
289 (void)unlink(tempname);
291 warn("%s", tempname);
309 warn("%s", tempname);
H A Dlex.c171 char tempname[PATHSIZE]; local
238 (void)snprintf(tempname, sizeof(tempname),
240 if ((fd = mkstemp(tempname)) == -1 ||
242 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname);
244 if ((itf = fopen(tempname, "r")) == NULL)
245 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname);
247 (void)rm(tempname);
H A Dmime_attach.c610 char tempname[PATHSIZE]; local
612 (void)snprintf(tempname, sizeof(tempname), "%s/%sXXXXXXXXXX",
614 if ((fd = mkstemp(tempname)) == -1 ||
618 warn("%s", tempname);
621 (void)rm(tempname);
624 warn("%s", tempname);
/netbsd-6-1-5-RELEASE/usr.sbin/acpitools/aml/
H A Daml_env.h44 struct aml_name tempname; member in struct:aml_environ
H A Daml_parse.c300 env->tempname.property = obj;
301 return (&env->tempname);
423 return (&env->tempname);
443 env->tempname.property = resobj;
462 return (&env->tempname);
483 env->tempname.property = resobj;
501 return (&env->tempname);
1298 aname = &env->tempname;
1323 aname = &env->tempname;
1330 aname = &env->tempname;
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/chpass/
H A Dchpass.c66 static char tempname[] = "/tmp/pw.XXXXXX"; variable
227 dfd = mkstemp(tempname);
229 (*Pw_error)(tempname, 1, 1);
234 if (stat(dirname(tempname), &sb) == -1)
235 err(1, "couldn't stat `%s'", dirname(tempname));
238 dirname(tempname));
240 display(tempname, dfd, pw);
241 edit(tempname, pw);
315 (void)unlink(tempname);
H A Dedit.c59 edit(char *tempname, struct passwd *pw) argument
64 if (stat(tempname, &begin))
65 (*Pw_error)(tempname, 1, 1);
66 pw_edit(1, tempname);
67 if (stat(tempname, &end))
68 (*Pw_error)(tempname, 1, 1);
73 if (verify(tempname, pw))
90 display(char *tempname, int fd, struct passwd *pw) argument
97 (*Pw_error)(tempname, 1, 1);
145 verify(char *tempname, struc argument
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/shlock/
H A Dshlock.c124 static char tempname[BUFSIZ]; local
127 if ((cp = strrchr(strcpy(tempname, file), '/')) != NULL) {
129 (void) strcat(tempname, buf);
131 (void) strcpy(tempname, buf);
132 dprintf("%s: temporary filename: %s\n", Pname, tempname);
137 if ((fd = open(tempname, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {
141 Pname, tempname);
142 if (unlink(tempname) < 0) {
144 Pname, tempname, strerror(errno));
153 Pname, tempname, strerro
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/rdist/
H A Dmain.c63 char *tempname; variable
106 if ((tempname = strrchr(tempfile, '/')) != 0)
107 tempname++;
109 tempname = tempfile;
H A Dserver.c758 extern char *tempname;
853 strlcpy(new, tempname, sizeof(new));
855 (void) snprintf(new, sizeof(new), "/%s", tempname);
858 (void) snprintf(new, sizeof(new), "%s/%s", target, tempname);
/netbsd-6-1-5-RELEASE/gnu/dist/diffutils/lib/
H A DMakefile.am23 realloc.c regex.c strcasecmp.c strtoimax.c strtol.c tempname.c waitpid.c \
H A DMakefile.in114 realloc.c regex.c strcasecmp.c strtoimax.c strtol.c tempname.c waitpid.c \
165 @AMDEP_TRUE@ $(DEPDIR)/strtoumax.Po $(DEPDIR)/tempname.Po \
192 strcasecmp.c strtoul.c strtoull.c strtoumax.c tempname.c \
233 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/tempname.Po@am__quote@
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/
H A Dmasterdump.c1623 char *tempname = NULL; local
1627 tempname = isc_mem_allocate(mctx, tempnamelen);
1628 if (tempname == NULL)
1631 result = isc_file_mktemplate(file, tempname, tempnamelen);
1636 result = isc_file_openunique(tempname, &f);
1638 result = isc_file_bopenunique(tempname, &f);
1643 tempname, isc_result_totext(result));
1646 *tempp = tempname;
1651 isc_mem_free(mctx, tempname);
1685 char *tempname local
1754 char *tempname; local
[all...]
/netbsd-6-1-5-RELEASE/libexec/makewhatis/
H A Dmakewhatis.c774 char tempname[MAXPATHLEN], buffer[65536], *data; local
786 (void)strlcpy(tempname, _PATH_TMP "makewhatis.XXXXXX",
787 sizeof(tempname));
788 if ((tempfd = mkstemp(tempname)) == -1)
799 (void)unlink(tempname);
804 (void)unlink(tempname);
809 (void)unlink(tempname);
818 (void)unlink(tempname);
850 (void)unlink(tempname);
866 (void)unlink(tempname);
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/dns/tests/
H A Ddbversion_test.c45 static char tempname[11] = "dtXXXXXXXX"; variable
52 if (strcmp(tempname, "dtXXXXXXXX"))
53 unlink(tempname);
471 result = isc_file_openunique(tempname, &f);
476 result = dns_db_dump(db1, VERSION(callback), tempname);
477 (void)unlink(tempname);
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Dlibcvs.mak86 -@erase "$(INTDIR)\tempname.obj"
194 "$(INTDIR)\tempname.obj" \
269 -@erase "$(INTDIR)\tempname.obj"
374 "$(INTDIR)\tempname.obj" \
634 SOURCE=.\tempname.c
636 "$(INTDIR)\tempname.obj" : $(SOURCE) "$(INTDIR)"
/netbsd-6-1-5-RELEASE/distrib/utils/sysinst/
H A Dutil.c1466 char *rcconf, *tempname, *bakname; local
1475 || asprintf(&tempname, "%s", target_expand("/etc/rc.conf.tmp.XXXXXX")) < 0
1479 if (tempname)
1480 free(tempname);
1493 if (!(fp = fopen(rcconf, "r+")) || (fd = mkstemp(tempname)) < 0) {
1536 if (rename(tempname, rcconf)) {
1550 (void)unlink(tempname);
1552 free(tempname);
/netbsd-6-1-5-RELEASE/gnu/dist/texinfo/lib/
H A DMakefile.in56 strerror.c strncasecmp.c tempname.c
286 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/tempname.Po@am__quote@
/netbsd-6-1-5-RELEASE/sbin/fsck_ext2fs/
H A Ddir.c402 char tempname[BUFSIZ]; local
473 (void)lftempname(tempname, orphan);
474 if (makeentry(lfdir, orphan, tempname) == 0) {
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/
H A Ddir.c514 char tempname[BUFSIZ]; local
608 (void)lftempname(tempname, orphan);
609 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {
/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/
H A Ddir.c403 char tempname[BUFSIZ]; local
477 (void) lftempname(tempname, orphan);
478 if (makeentry(lfdir, orphan, tempname) == 0) {

Completed in 176 milliseconds

12