/netbsd-current/external/gpl2/dtc/dist/ |
H A D | fstree.c | 27 char *tmpname; local 33 tmpname = join_path(dirname, de->d_name); 35 if (lstat(tmpname, &st) < 0) 36 die("stat(%s): %s\n", tmpname, strerror(errno)); 42 pfile = fopen(tmpname, "rb"); 46 tmpname, strerror(errno)); 58 newchild = read_fstree(tmpname); 63 free(tmpname);
|
/netbsd-current/external/bsd/am-utils/dist/conf/mtab/ |
H A D | mtab_file.c | 249 char tmpname[64]; local 258 memmove(tmpname, mcp, cp - mcp); 259 tmpname[cp - mcp] = '\0'; 262 tmpname[0] = '.'; 263 tmpname[1] = '\0'; 265 xstrlcat(tmpname, "/mtabXXXXXX", sizeof(tmpname)); 269 tmpfd = mkstemp(tmpname); 272 mktemp(tmpname); 273 tmpfd = open(tmpname, O_RDW [all...] |
H A D | mtab_linux.c | 344 char tmpname[64]; local 361 memmove(tmpname, mcp, cp - mcp); 362 tmpname[cp - mcp] = '\0'; 365 tmpname[0] = '.'; 366 tmpname[1] = '\0'; 368 xstrlcat(tmpname, "/mtabXXXXXX", sizeof(tmpname)); 372 tmpfd = mkstemp(tmpname); 375 mktemp(tmpname); 376 tmpfd = open(tmpname, O_RDW [all...] |
H A D | mtab_mach3.c | 314 char tmpname[64]; local 322 memmove(tmpname, mcp, cp - mcp); 323 tmpname[cp - mcp] = '\0'; 326 tmpname[0] = '.'; 327 tmpname[1] = '\0'; 329 xstrlcat(tmpname, "/mtabXXXXXX", sizeof(tmpname)); 333 tmpfd = mkstemp(tmpname); 336 mktemp(tmpname); 337 tmpfd = open(tmpname, O_RDW [all...] |
/netbsd-current/external/bsd/pkg_install/dist/lib/ |
H A D | var.c | 193 char *tmpname; local 215 tmpname = xasprintf("%s.XXXXXX", fname); 216 if ((fd = mkstemp(tmpname)) < 0) { 217 free(tmpname); 224 if (chmod(tmpname, 0644) < 0) { 228 free(tmpname); 235 remove(tmpname); 236 free(tmpname); 264 free(tmpname); 269 if (stat(tmpname, [all...] |
/netbsd-current/external/gpl3/binutils.old/dist/binutils/ |
H A D | bucomm.c | 494 char *tmpname; 512 tmpname = (char *) xmalloc (len + sizeof (template) + 2); 513 memcpy (tmpname, path, len); 516 /* If tmpname is "X:", appending a slash will make it a root 519 if (len == 2 && tmpname[1] == ':') 520 tmpname[len++] = '.'; 522 tmpname[len++] = '/'; 526 tmpname = (char *) xmalloc (sizeof (template)); 530 memcpy (tmpname + len, template, sizeof (template)); 531 return tmpname; 490 char *tmpname; local 537 char *tmpname = template_in_dir (filename); local 563 char *tmpname = template_in_dir (filename); local [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/binutils/ |
H A D | bucomm.c | 494 char *tmpname; 512 tmpname = (char *) xmalloc (len + sizeof (template) + 2); 513 memcpy (tmpname, path, len); 516 /* If tmpname is "X:", appending a slash will make it a root 519 if (len == 2 && tmpname[1] == ':') 520 tmpname[len++] = '.'; 522 tmpname[len++] = '/'; 526 tmpname = (char *) xmalloc (sizeof (template)); 530 memcpy (tmpname + len, template, sizeof (template)); 531 return tmpname; 490 char *tmpname; local 537 char *tmpname = template_in_dir (filename); local 563 char *tmpname = template_in_dir (filename); local [all...] |
/netbsd-current/external/gpl3/binutils/dist/binutils/ |
H A D | bucomm.c | 502 char *tmpname; 520 tmpname = (char *) xmalloc (len + sizeof (template) + 2); 521 memcpy (tmpname, path, len); 524 /* If tmpname is "X:", appending a slash will make it a root 527 if (len == 2 && tmpname[1] == ':') 528 tmpname[len++] = '.'; 530 tmpname[len++] = '/'; 534 tmpname = (char *) xmalloc (sizeof (template)); 538 memcpy (tmpname + len, template, sizeof (template)); 539 return tmpname; 498 char *tmpname; local 545 char *tmpname = template_in_dir (filename); local 572 char *tmpname = template_in_dir (filename); local [all...] |
/netbsd-current/usr.bin/rwall/ |
H A D | rwall.c | 162 char tmpname[MAXPATHLEN], lbuf[BUFSIZ], hostname[MAXHOSTNAMELEN + 1]; local 164 (void)snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); 165 if ((fd = mkstemp(tmpname)) == -1 || (fp = fdopen(fd, "r+")) == NULL) 167 (void)unlink(tmpname);
|
/netbsd-current/external/cddl/osnet/dist/tools/ctf/cvt/ |
H A D | ctfconvert.c | 259 char *tmpname = mktmpname(infile, ".ctf"); local 260 write_ctf(mstrtd, infile, tmpname, dynsym | keep_stabs); 261 if (rename(tmpname, infile) != 0) 262 terminate("Couldn't rename temp file %s", tmpname); 263 free(tmpname);
|
H A D | ctfmerge.c | 222 static char *tmpname = NULL; variable 679 if (tmpname != NULL && dounlink) 680 unlink(tmpname); 701 tmpname = mktmpname(destfile, ".ctf"); 702 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | CTF_SWAP_BYTES | keep_stabs); 703 if (rename(tmpname, destfile) != 0) { 704 terminate("Couldn't rename temp file %s to %s", tmpname, 707 free(tmpname); 1128 tmpname = mktmpname(outfile, ".ctf"); 1129 write_ctf(savetd, outfile, tmpname, [all...] |
/netbsd-current/share/examples/refuse/ian/ian/ |
H A D | ian.c | 65 char tmpname[BUFSIZ]; local 103 (void) snprintf(tmpname, sizeof(tmpname), "%s/fetch.XXXXXX", cachedir); 104 fd = mkstemp(tmpname); 106 warnx("can't create output file `%s'", tmpname); 119 virtdir_add(&ian, newurl, strlen(newurl), 'f', tmpname, strlen(tmpname));
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/dh/ |
H A D | dh_meth.c | 65 char *tmpname = OPENSSL_strdup(name); local 67 if (tmpname == NULL) { 73 dhm->name = tmpname;
|
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dh/ |
H A D | dh_meth.c | 71 char *tmpname = OPENSSL_strdup(name); local 73 if (tmpname == NULL) { 79 dhm->name = tmpname;
|
/netbsd-current/usr.bin/wall/ |
H A D | wall.c | 229 char *p, tmpname[MAXPATHLEN], lbuf[100]; local 233 (void)snprintf(tmpname, sizeof tmpname, "%s/wall.XXXXXX", _PATH_TMP); 234 if ((fd = mkstemp(tmpname)) == -1) 236 (void)unlink(tmpname);
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/dsa/ |
H A D | dsa_meth.c | 73 char *tmpname = OPENSSL_strdup(name); local 75 if (tmpname == NULL) { 81 dsam->name = tmpname;
|
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/dsa/ |
H A D | dsa_meth.c | 72 char *tmpname = OPENSSL_strdup(name); local 74 if (tmpname == NULL) { 80 dsam->name = tmpname;
|
/netbsd-current/bin/pax/ |
H A D | pat_rep.c | 752 char tmpname[PAXPATHLEN+2]; local 768 if (tty_read(tmpname, sizeof(tmpname)) < 0) 770 if (strcmp(tmpname, "..") == 0) { 774 if (strlen(tmpname) > PAXPATHLEN) { 784 if (tmpname[0] == '\0') { 788 if ((tmpname[0] == '.') && (tmpname[1] == '\0')) { 798 tty_prnt("Processing continues, name changed to: %s\n", tmpname); 799 res = add_name(arcn->name, arcn->nlen, tmpname); [all...] |
/netbsd-current/sys/arch/sparc/sparc/ |
H A D | autoconf.c | 684 char tmpname[8]; local 697 snprintf(tmpname, sizeof(tmpname), "x%cc", cp[1]); 698 BP_APPEND(bp, tmpname, -1, v0val[0], 0); 700 snprintf(tmpname, sizeof(tmpname), "x%c", cp[1]); 701 BP_APPEND(bp, tmpname, v0val[1], v0val[2], 0); 711 snprintf(tmpname, sizeof(tmpname), "%c%c", cp[0], cp[1]); 712 BP_APPEND(bp, tmpname, 806 char tmpname[8]; local [all...] |
/netbsd-current/external/gpl2/diffutils/dist/src/ |
H A D | sdiff.c | 52 static char * volatile tmpname; variable 235 if (tmpname) 236 unlink (tmpname); 724 if (tmpname) 726 unlink (tmpname); 727 tmpname = 0; 996 if (tmpname) 997 tmp = fopen (tmpname, "w"); 1006 perror_fatal (tmpname); 1062 + 1 + strlen (tmpname) [all...] |
/netbsd-current/external/gpl2/groff/dist/src/libs/libgroff/ |
H A D | Makefile.sub | 46 tmpname.$(OBJEXT) \ 88 $(srcdir)/tmpname.cpp \
|
/netbsd-current/external/gpl2/groff/lib/libgroff/ |
H A D | Makefile | 19 strsave.cpp symbol.cpp tmpfile.cpp tmpname.cpp \
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/rsa/ |
H A D | rsa_meth.c | 65 char *tmpname = OPENSSL_strdup(name); local 67 if (tmpname == NULL) { 73 meth->name = tmpname;
|
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/rsa/ |
H A D | rsa_meth.c | 71 char *tmpname = OPENSSL_strdup(name); local 73 if (tmpname == NULL) { 79 meth->name = tmpname;
|
/netbsd-current/external/mpl/bind/dist/lib/dns/ |
H A D | dst_internal.h | 248 dst_key_open(char *tmpname, mode_t mode); 250 dst_key_close(char *tmpname, FILE *fp, char *filename); 252 dst_key_cleanup(char *tmpname, FILE *fp);
|