/freebsd-10.1-release/tools/tools/sysdoc/ |
H A D | sysctl.sh | 29 read tmpname _junk; \ 30 if [ X"${tmpname}" = X"" ]; then \ 44 echo ".It Va ${tmpname}" ; \
|
/freebsd-10.1-release/contrib/binutils/binutils/ |
H A D | bucomm.c | 402 char *tmpname; 420 tmpname = xmalloc (len + sizeof (template) + 2); 421 memcpy (tmpname, path, len); 424 /* If tmpname is "X:", appending a slash will make it a root 427 if (len == 2 && tmpname[1] == ':') 428 tmpname[len++] = '.'; 430 tmpname[len++] = '/'; 434 tmpname = xmalloc (sizeof (template)); 438 memcpy (tmpname + len, template, sizeof (template)); 439 return tmpname; 398 char *tmpname; local 445 char *tmpname = template_in_dir (filename); local 468 char *tmpname = template_in_dir (filename); local [all...] |
H A D | objcopy.c | 2751 char *tmpname; 2765 tmpname = make_tempname (argv[i]); 2767 tmpname = output_file; 2769 if (tmpname == NULL) 2778 copy_file (argv[i], tmpname, input_target, output_target); 2782 set_times (tmpname, &statbuf); 2783 if (output_file != tmpname) 2784 smart_rename (tmpname, output_file ? output_file : argv[i], 2789 unlink_if_ordinary (tmpname); 2790 if (output_file != tmpname) 2749 char *tmpname; local 2801 char *tmpname; local [all...] |
/freebsd-10.1-release/libexec/ypxfr/ |
H A D | ypxfrd_getmap.c | 103 ypxfrd_get_map(char *host, char *map, char *domain, char *tmpname) argument 126 if ((fp = open(tmpname, O_RDWR|O_CREAT, PERM_SECURE)) == -1) { 128 yp_error("couldn't open %s: %s", tmpname, strerror(errno)); 138 unlink(tmpname);
|
/freebsd-10.1-release/crypto/openssh/openbsd-compat/ |
H A D | xmmap.c | 63 char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE; local 68 tmpfd = mkstemp(tmpname); 73 unlink(tmpname);
|
/freebsd-10.1-release/usr.bin/rwall/ |
H A D | rwall.c | 134 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; local 137 snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); 138 if ((fd = mkstemp(tmpname)) == -1 || (fp = fdopen(fd, "r+")) == NULL) 140 unlink(tmpname);
|
/freebsd-10.1-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | ctfconvert.c | 255 char *tmpname = mktmpname(infile, ".ctf"); local 256 write_ctf(mstrtd, infile, tmpname, dynsym | keep_stabs); 257 if (rename(tmpname, infile) != 0) 258 terminate("Couldn't rename temp file %s", tmpname); 259 free(tmpname);
|
H A D | ctfmerge.c | 212 static char *tmpname = NULL; variable 600 if (tmpname != NULL && dounlink) 601 unlink(tmpname); 622 tmpname = mktmpname(destfile, ".ctf"); 623 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | CTF_SWAP_BYTES | keep_stabs); 624 if (rename(tmpname, destfile) != 0) { 625 terminate("Couldn't rename temp file %s to %s", tmpname, 628 free(tmpname); 1016 tmpname = mktmpname(outfile, ".ctf"); 1017 write_ctf(savetd, outfile, tmpname, [all...] |
/freebsd-10.1-release/usr.bin/newkey/ |
H A D | update.c | 243 char *tmpname; local 262 tmpname = malloc(strlen(filename) + 4); 263 if (tmpname == NULL) { 266 sprintf(tmpname, "%s.tmp", filename); 271 wf = fopen(tmpname, "w"); 312 if (rename(tmpname, filename) < 0) { 316 if (unlink(tmpname) < 0) {
|
/freebsd-10.1-release/usr.sbin/rpc.ypupdated/ |
H A D | update.c | 240 char *tmpname; local 259 tmpname = malloc(strlen(filename) + 4); 260 if (tmpname == NULL) { 263 sprintf(tmpname, "%s.tmp", filename); 268 wf = fopen(tmpname, "w"); 309 if (rename(tmpname, filename) < 0) { 313 if (unlink(tmpname) < 0) {
|
/freebsd-10.1-release/usr.bin/wall/ |
H A D | wall.c | 197 char hostname[MAXHOSTNAMELEN], tmpname[64]; local 203 (void)snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); 204 if ((fd = mkstemp(tmpname)) == -1 || !(fp = fdopen(fd, "r+"))) 206 (void)unlink(tmpname);
|
/freebsd-10.1-release/bin/pax/ |
H A D | pat_rep.c | 705 char tmpname[PAXPATHLEN+2]; local 721 if (tty_read(tmpname, sizeof(tmpname)) < 0) 723 if (strcmp(tmpname, "..") == 0) { 727 if (strlen(tmpname) > PAXPATHLEN) { 737 if (tmpname[0] == '\0') { 741 if ((tmpname[0] == '.') && (tmpname[1] == '\0')) { 751 tty_prnt("Processing continues, name changed to: %s\n", tmpname); 752 res = add_name(arcn->name, arcn->nlen, tmpname); [all...] |
/freebsd-10.1-release/gnu/usr.bin/groff/src/libs/libgroff/ |
H A D | Makefile | 11 tmpfile.cpp tmpname.cpp unicode.cpp uniglyph.cpp uniuni.cpp version.cpp
|
/freebsd-10.1-release/contrib/diff/src/ |
H A D | sdiff.c | 48 static char * volatile tmpname; variable 237 if (tmpname) 238 unlink (tmpname); 726 if (tmpname) 728 unlink (tmpname); 729 tmpname = 0; 997 if (tmpname) 998 tmp = fopen (tmpname, "w"); 1007 perror_fatal (tmpname); 1065 + 1 + strlen (tmpname) [all...] |
/freebsd-10.1-release/crypto/openssl/crypto/asn1/ |
H A D | asn_mime.c | 803 char *tmpname, *tmpval, *p; local 806 if (!(tmpname = BUF_strdup(name))) 808 for (p = tmpname; *p; p++) { 816 tmpname = NULL; 832 mhdr->name = tmpname; 841 char *tmpname, *tmpval, *p; local 845 tmpname = BUF_strdup(name); 846 if (!tmpname) 848 for (p = tmpname; *p; p++) { 856 tmpname [all...] |
/freebsd-10.1-release/sys/kern/ |
H A D | kern_mib.c | 276 char tmpname[MAXHOSTNAMELEN]; local 285 KASSERT(len <= sizeof(tmpname), 296 bcopy((char *)pr + pr_offset, tmpname, len); 299 error = sysctl_handle_string(oidp, tmpname, len, req); 310 bcopy(tmpname, (char *)pr + pr_offset, len); 315 bcopy(tmpname, (char *)cpr + pr_offset, len);
|
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 408 char *fname = g_etcfile, *tmpname; local 451 tmpname = alloca(sz = strlen(fname) + 80); 452 (void) snprintf(tmpname, sz, "%s.dtrace.%d", fname, getpid()); 454 if ((fd = open(tmpname, 456 fatal("failed to create %s", tmpname); 459 (void) unlink(tmpname); 460 fatal("failed to write to %s", tmpname); 465 if (chown(tmpname, sbuf.st_uid, sbuf.st_gid) != 0) { 466 (void) unlink(tmpname); 467 fatal("failed to chown(2) %s to uid %d, gid %d", tmpname, [all...] |
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/ztest/ |
H A D | ztest.c | 6304 char tmpname[MAXNAMELEN]; local 6307 (void) snprintf(tmpname, sizeof (tmpname), "%s_tmp", 6309 (void) spa_rename(tmpname, ztest_opts.zo_pool);
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | spa.c | 4373 char *tmpname = kmem_alloc(MAXPATHLEN, KM_SLEEP); local 4380 spa->spa_bootfs, tmpname) == 0) { 4384 cp = strchr(tmpname, '/'); 4386 (void) strlcpy(dsname, tmpname, 4396 kmem_free(tmpname, MAXPATHLEN);
|