Searched refs:tmpname (Results 1 - 24 of 24) sorted by relevance

/freebsd-11-stable/tools/tools/sysdoc/
H A Dsysctl.sh29 read tmpname _junk; \
30 if [ X"${tmpname}" = X"" ]; then \
44 echo ".It Va ${tmpname}" ; \
/freebsd-11-stable/contrib/dtc/
H A Dfstree.c40 char *tmpname; local
46 tmpname = join_path(dirname, de->d_name);
48 if (lstat(tmpname, &st) < 0)
49 die("stat(%s): %s\n", tmpname, strerror(errno));
55 pfile = fopen(tmpname, "rb");
59 tmpname, strerror(errno));
70 newchild = read_fstree(tmpname);
75 free(tmpname);
/freebsd-11-stable/contrib/binutils/binutils/
H A Dbucomm.c402 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 Dobjcopy.c2751 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-11-stable/libexec/ypxfr/
H A Dypxfrd_getmap.c103 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-11-stable/usr.bin/rwall/
H A Drwall.c134 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-11-stable/usr.bin/newkey/
H A Dupdate.c243 char *tmpname; local
262 tmpname = malloc(strlen(filename) + 4);
263 if (tmpname == NULL) {
266 sprintf(tmpname, "%s.tmp", filename);
272 wf = fopen(tmpname, "w");
315 if (rename(tmpname, filename) < 0) {
320 if (unlink(tmpname) < 0) {
327 free(tmpname);
/freebsd-11-stable/usr.sbin/rpc.ypupdated/
H A Dupdate.c240 char *tmpname; local
259 tmpname = malloc(strlen(filename) + 4);
260 if (tmpname == NULL) {
263 sprintf(tmpname, "%s.tmp", filename);
269 wf = fopen(tmpname, "w");
312 if (rename(tmpname, filename) < 0) {
317 if (unlink(tmpname) < 0) {
323 free(tmpname);
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctfconvert.c255 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 Dctfmerge.c212 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-11-stable/usr.bin/wall/
H A Dwall.c197 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-11-stable/bin/pax/
H A Dpat_rep.c703 char tmpname[PAXPATHLEN+2]; local
719 if (tty_read(tmpname, sizeof(tmpname)) < 0)
721 if (strcmp(tmpname, "..") == 0) {
725 if (strlen(tmpname) > PAXPATHLEN) {
735 if (tmpname[0] == '\0') {
739 if ((tmpname[0] == '.') && (tmpname[1] == '\0')) {
749 tty_prnt("Processing continues, name changed to: %s\n", tmpname);
750 res = add_name(arcn->name, arcn->nlen, tmpname);
[all...]
/freebsd-11-stable/gnu/usr.bin/groff/src/libs/libgroff/
H A DMakefile11 tmpfile.cpp tmpname.cpp unicode.cpp uniglyph.cpp uniuni.cpp version.cpp
/freebsd-11-stable/contrib/diff/src/
H A Dsdiff.c48 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-11-stable/contrib/groff/src/libs/libgroff/
H A DMakefile.sub46 tmpname.$(OBJEXT) \
88 $(srcdir)/tmpname.cpp \
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Dasn_mime.c806 char *tmpname, *tmpval, *p; local
809 if (!(tmpname = BUF_strdup(name)))
811 for (p = tmpname; *p; p++) {
819 tmpname = NULL;
835 mhdr->name = tmpname;
844 char *tmpname, *tmpval, *p; local
848 tmpname = BUF_strdup(name);
849 if (!tmpname)
851 for (p = tmpname; *p; p++) {
859 tmpname
[all...]
/freebsd-11-stable/lib/libmt/
H A Dmtlib.c287 char *tmpname = NULL, *tmpname2 = NULL, *tmpstr = NULL; local
289 tmpname = strdup(name);
290 if (tmpname == NULL)
294 tmpname2 = tmpname;
296 tmpstr = strsep(&tmpname, ".");
303 if (tmpname == NULL) {
314 * entry, below. Use tmpname, which will contain
317 name = tmpname;
/freebsd-11-stable/sys/kern/
H A Dkern_mib.c301 char tmpname[MAXHOSTNAMELEN]; local
310 KASSERT(len <= sizeof(tmpname),
321 bcopy((char *)pr + pr_offset, tmpname, len);
324 error = sysctl_handle_string(oidp, tmpname, len, req);
335 bcopy(tmpname, (char *)pr + pr_offset, len);
340 bcopy(tmpname, (char *)cpr + pr_offset, len);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/
H A Ddtrace.c448 char *fname = g_etcfile, *tmpname; local
491 tmpname = alloca(sz = strlen(fname) + 80);
492 (void) snprintf(tmpname, sz, "%s.dtrace.%d", fname, getpid());
494 if ((fd = open(tmpname,
496 fatal("failed to create %s", tmpname);
499 (void) unlink(tmpname);
500 fatal("failed to write to %s", tmpname);
505 if (chown(tmpname, sbuf.st_uid, sbuf.st_gid) != 0) {
506 (void) unlink(tmpname);
507 fatal("failed to chown(2) %s to uid %d, gid %d", tmpname,
[all...]
/freebsd-11-stable/usr.bin/ar/
H A Dwrite.c129 char *tmpname; local
143 tmpname = strdup(name);
144 if (tmpname == NULL)
146 if ((bname = basename(tmpname)) == NULL)
156 free(tmpname);
/freebsd-11-stable/contrib/elftoolchain/ar/
H A Dwrite.c81 char *tmpname; local
99 tmpname = strdup(name);
100 if ((bname = basename(tmpname)) == NULL)
110 free(tmpname);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c256 char *tmpname; /* Temporary name * */ member in struct:archive_write_disk
257 struct archive_string _tmpname_data; /* backing store for 'tmpname' */
420 a->tmpname = a->_tmpname_data.s;
422 fd = __archive_mkstemp(a->tmpname);
1868 if (a->tmpname) {
1869 if (rename(a->tmpname, a->name) == -1) {
1873 unlink(a->tmpname);
1875 a->tmpname = NULL;
2372 a->tmpname = NULL;
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa.c5650 char *tmpname = kmem_alloc(MAXPATHLEN, KM_SLEEP); local
5657 spa->spa_bootfs, tmpname) == 0) {
5661 cp = strchr(tmpname, '/');
5663 (void) strlcpy(dsname, tmpname,
5673 kmem_free(tmpname, MAXPATHLEN);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c6719 char tmpname[ZFS_MAX_DATASET_NAME_LEN]; local
6722 (void) snprintf(tmpname, sizeof (tmpname), "%s_tmp",
6724 (void) spa_rename(tmpname, ztest_opts.zo_pool);

Completed in 223 milliseconds