Home
last modified time | relevance | path

Searched full:tmpname (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/usr.bin/mktemp/tests/
H A Dmktemp_test.sh80 atf_check -o save:tmpname \
84 atf_check -o match:"^$tmpdir/foo\..+$" cat tmpname
85 cdir=$(cat tmpname)
101 atf_check -o save:tmpname \
103 atf_check -o match:"^$tmpdir/foo\..+$" cat tmpname
106 atf_check -o save:tmpname \
108 atf_check -o match:"^$tmpdir/foo\..+$" cat tmpname
119 atf_check -o save:tmpname \
121 atf_check -o match:"^$tmpdir/foo\..+$" cat tmpname
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dser_princ.c96 char *tmpname = NULL; in k5_internalize_principal() local
110 tmpname = malloc(ibuf + 1); in k5_internalize_principal()
111 kret = krb5_ser_unpack_bytes((krb5_octet *) tmpname, (size_t) ibuf, in k5_internalize_principal()
115 tmpname[ibuf] = '\0'; in k5_internalize_principal()
118 kret = krb5_parse_name_flags(NULL, tmpname, in k5_internalize_principal()
136 free(tmpname); in k5_internalize_principal()
/freebsd/lib/libc/gen/
H A Dgetlogin.c60 char tmpname[MAXLOGNAME]; in __ssp_real() local
67 if (_getlogin(tmpname, sizeof(tmpname)) < 0) in __ssp_real()
69 len = strlen(tmpname) + 1; in __ssp_real()
72 strlcpy(logname, tmpname, len); in __ssp_real()
/freebsd/usr.bin/rwall/
H A Drwall.c123 char *tty, hostname[MAXHOSTNAMELEN], lbuf[256], tmpname[64]; in makemsg() local
126 snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); in makemsg()
127 if ((fd = mkstemp(tmpname)) == -1 || (fp = fdopen(fd, "r+")) == NULL) in makemsg()
129 unlink(tmpname); in makemsg()
/freebsd/sbin/restore/
H A Dutilities.c84 if (ep->e_flags & TMPNAME) in mktempname()
85 badentry(ep, "mktempname: called with TMPNAME"); in mktempname()
86 ep->e_flags |= TMPNAME; in mktempname()
159 ep->e_flags &= ~TMPNAME; in removenode()
179 ep->e_flags &= ~TMPNAME; in removeleaf()
264 ep->e_flags &= ~TMPNAME; in delwhiteout()
347 if (ep->e_flags & TMPNAME) in flagvalues()
348 (void) strcat(flagbuf, "|TMPNAME"); in flagvalues()
/freebsd/tools/tools/sysdoc/
H A Dsysctl.sh28 read tmpname _junk; \
29 if [ X"${tmpname}" = X"" ]; then \
43 echo ".It Va ${tmpname}" ; \
/freebsd/contrib/llvm-project/lld/Common/
H A DFilesystem.cpp70 SmallString<128> tmpName; in unlinkAsync()
71 if (!sys::fs::createUniqueFile(path + "%%%%%%%%.tmp", tmpName)) { in unlinkAsync()
72 if (!sys::fs::rename(path, tmpName)) in unlinkAsync()
73 path = tmpName; in unlinkAsync()
75 sys::fs::remove(tmpName); in unlinkAsync()
68 SmallString<128> tmpName; unlinkAsync() local
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctfconvert.c252 char *tmpname = mktmpname(infile, ".ctf"); in main() local
253 write_ctf(mstrtd, infile, tmpname, dynsym | keep_stabs); in main()
254 if (rename(tmpname, infile) != 0) in main()
255 terminate("Couldn't rename temp file %s", tmpname); in main()
256 free(tmpname); in main()
H A Dctfmerge.c212 static char *tmpname = NULL; variable
600 if (tmpname != NULL && dounlink) in terminate_cleanup()
601 unlink(tmpname); in terminate_cleanup()
622 tmpname = mktmpname(destfile, ".ctf"); in copy_ctf_data()
623 write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | CTF_SWAP_BYTES | keep_stabs); in copy_ctf_data()
624 if (rename(tmpname, destfile) != 0) { in copy_ctf_data()
625 terminate("Couldn't rename temp file %s to %s", tmpname, in copy_ctf_data()
628 free(tmpname); in copy_ctf_data()
1011 tmpname = mktmpname(outfile, ".ctf"); in main()
1012 write_ctf(savetd, outfile, tmpname, in main()
[all …]
/freebsd/libexec/ypxfr/
H A Dypxfrd_getmap.c103 ypxfrd_get_map(char *host, char *map, char *domain, char *tmpname) in ypxfrd_get_map() argument
126 if ((fp = open(tmpname, O_RDWR|O_CREAT, PERM_SECURE)) == -1) { in ypxfrd_get_map()
128 yp_error("couldn't open %s: %s", tmpname, strerror(errno)); in ypxfrd_get_map()
138 unlink(tmpname); in ypxfrd_get_map()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Ddraid.c185 char *tmpname = calloc(1, MAXPATHLEN); in write_map() local
186 if (tmpname == NULL) { in write_map()
191 snprintf(tmpname, MAXPATHLEN - 1, "%s.XXXXXX", filename); in write_map()
193 int fd = mkstemp(tmpname); in write_map()
197 free(tmpname); in write_map()
202 gzFile fp = gzopen(tmpname, "w9b"); in write_map()
206 free(tmpname); in write_map()
218 (void) unlink(tmpname); in write_map()
219 free(tmpname); in write_map()
232 (void) unlink(tmpname); in write_map()
[all …]
/freebsd/contrib/diff/src/
H A Dsdiff.c48 static char * volatile tmpname; variable
237 if (tmpname) in cleanup()
238 unlink (tmpname); in cleanup()
724 if (tmpname) in main()
726 unlink (tmpname); in main()
727 tmpname = 0; in main()
993 if (tmpname) in edit()
994 tmp = fopen (tmpname, "w"); in edit()
1003 perror_fatal (tmpname); in edit()
1061 + 1 + strlen (tmpname) + 1); in edit()
[all …]
/freebsd/usr.bin/wall/
H A Dwall.c185 char hostname[MAXHOSTNAMELEN], tmpname[64]; in makemsg() local
191 (void)snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); in makemsg()
192 if ((fd = mkstemp(tmpname)) == -1 || !(fp = fdopen(fd, "r+"))) in makemsg()
194 (void)unlink(tmpname); in makemsg()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DPath.cpp1211 : TmpName(std::string(Name)), FD(FD) {} in TempFile()
1214 TmpName = std::move(Other.TmpName); in operator =()
1244 if (Remove && !TmpName.empty()) { in discard()
1245 RemoveEC = fs::remove(TmpName); in discard()
1246 sys::DontRemoveFileOnSignal(TmpName); in discard()
1248 TmpName = ""; in discard()
1250 TmpName = ""; in discard()
1270 RenameEC = copy_file(TmpName, Name); in keep()
1282 remove(TmpName); in keep()
1285 std::error_code RenameEC = fs::rename(TmpName, Name); in keep()
[all …]
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_meth.c69 char *tmpname = OPENSSL_strdup(name); in DH_meth_set1_name() local
71 if (tmpname == NULL) in DH_meth_set1_name()
75 dhm->name = tmpname; in DH_meth_set1_name()
/freebsd/crypto/openssl/crypto/asn1/
H A Dasn_mime.c874 char *tmpname = NULL, *tmpval = NULL, *p; in mime_hdr_new() local
877 if ((tmpname = OPENSSL_strdup(name)) == NULL) in mime_hdr_new()
879 for (p = tmpname; *p; p++) in mime_hdr_new()
891 mhdr->name = tmpname; in mime_hdr_new()
898 OPENSSL_free(tmpname); in mime_hdr_new()
906 char *tmpname = NULL, *tmpval = NULL, *p; in mime_hdr_addparam() local
910 tmpname = OPENSSL_strdup(name); in mime_hdr_addparam()
911 if (!tmpname) in mime_hdr_addparam()
913 for (p = tmpname; *p; p++) in mime_hdr_addparam()
925 mparam->param_name = tmpname; in mime_hdr_addparam()
[all …]
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_meth.c70 char *tmpname = OPENSSL_strdup(name); in DSA_meth_set1_name() local
72 if (tmpname == NULL) in DSA_meth_set1_name()
76 dsam->name = tmpname; in DSA_meth_set1_name()
/freebsd/contrib/pam-krb5/module/
H A Dsetcred.c178 const char *tmpname; in create_session_context() local
201 tmpname = pamk5_get_krb5ccname(args, "PAM_KRB5CCNAME"); in create_session_context()
202 if (tmpname == NULL) { in create_session_context()
208 putil_debug(args, "found initial ticket cache at %s", tmpname); in create_session_context()
209 status = krb5_cc_resolve(ctx->context, tmpname, &ctx->cache); in create_session_context()
211 putil_err_krb5(args, status, "cannot resolve cache %s", tmpname); in create_session_context()
/freebsd/bin/pax/
H A Dpat_rep.c675 char tmpname[PAXPATHLEN+2]; in tty_rename() local
691 if (tty_read(tmpname, sizeof(tmpname)) < 0) in tty_rename()
693 if (strcmp(tmpname, "..") == 0) { in tty_rename()
697 if (strlen(tmpname) > PAXPATHLEN) { in tty_rename()
707 if (tmpname[0] == '\0') { in tty_rename()
711 if ((tmpname[0] == '.') && (tmpname[1] == '\0')) { in tty_rename()
721 tty_prnt("Processing continues, name changed to: %s\n", tmpname); in tty_rename()
722 res = add_name(arcn->name, arcn->nlen, tmpname); in tty_rename()
723 arcn->nlen = l_strncpy(arcn->name, tmpname, sizeof(arcn->name) - 1); in tty_rename()
/freebsd/lib/libmt/
H A Dmtlib.c284 char *tmpname = NULL, *tmpname2 = NULL, *tmpstr = NULL; in mt_entry_find() local
286 tmpname = strdup(name); in mt_entry_find()
287 if (tmpname == NULL) in mt_entry_find()
291 tmpname2 = tmpname; in mt_entry_find()
293 tmpstr = strsep(&tmpname, "."); in mt_entry_find()
300 if (tmpname == NULL) { in mt_entry_find()
311 * entry, below. Use tmpname, which will contain in mt_entry_find()
314 name = tmpname; in mt_entry_find()
/freebsd/crypto/openssl/crypto/
H A Dcore_namemap.c219 char *tmpname; in numname_insert() local
234 if ((tmpname = OPENSSL_strdup(name)) == NULL) in numname_insert()
237 if (!sk_OPENSSL_STRING_push(names, tmpname)) in numname_insert()
239 tmpname = NULL; in numname_insert()
251 OPENSSL_free(tmpname); in numname_insert()
/freebsd/lib/libifconfig/
H A Dlibifconfig.c274 char *tmpname; in ifconfig_set_name() local
277 tmpname = strdup(newname); in ifconfig_set_name()
278 if (tmpname == NULL) { in ifconfig_set_name()
285 ifr.ifr_data = tmpname; in ifconfig_set_name()
287 free(tmpname); in ifconfig_set_name()
291 free(tmpname); in ifconfig_set_name()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_meth.c69 char *tmpname = OPENSSL_strdup(name); in RSA_meth_set1_name() local
71 if (tmpname == NULL) in RSA_meth_set1_name()
75 meth->name = tmpname; in RSA_meth_set1_name()
/freebsd/sys/kern/
H A Dkern_mib.c352 char tmpname[MAXHOSTNAMELEN]; in sysctl_hostname() local
361 KASSERT(len <= sizeof(tmpname), in sysctl_hostname()
370 bcopy((char *)pr + pr_offset, tmpname, len); in sysctl_hostname()
373 error = sysctl_handle_string(oidp, tmpname, len, req); in sysctl_hostname()
388 bcopy(tmpname, (char *)pr + pr_offset, len); in sysctl_hostname()
393 bcopy(tmpname, (char *)cpr + pr_offset, len); in sysctl_hostname()
/freebsd/contrib/pam-krb5/tests/tap/perl/Test/
H A DRRA.pm87 my $tmpname = $tmp->filename;
88 print {$tmp} $got or BAIL_OUT("Cannot write to $tmpname: $!\n");
89 my @command = ('diff', '-u', $expected, $tmpname);

123