Home
last modified time | relevance | path

Searched refs:tfn (Results 1 – 9 of 9) sorted by relevance

/freebsd/usr.bin/chpass/
H A Dedit.c61 static int display(const char *tfn, struct passwd *pw);
62 static struct passwd *verify(const char *tfn, struct passwd *pw);
65 edit(const char *tfn, struct passwd *pw) in edit() argument
71 if (display(tfn, pw) == -1) in edit()
82 if ((npw = verify(tfn, pw)) != NULL) in edit()
102 display(const char *tfn, struct passwd *pw) in display() argument
107 if ((fp = fopen(tfn, "w")) == NULL) { in display()
108 warn("%s", tfn); in display()
192 verify(const char *tfn, struct passwd *pw) in verify() argument
204 if ((fp = fopen(tfn, "r")) == NULL || in verify()
[all …]
/freebsd/contrib/mandoc/
H A Dterm_tag.c108 (void)strlcpy(tag_files.tfn, "/tmp/man.XXXXXXXXXX", in term_tag_init()
109 sizeof(tag_files.tfn)); in term_tag_init()
110 if ((tfd = mkstemp(tag_files.tfn)) == -1) { in term_tag_init()
112 "%s: %s", tag_files.tfn, strerror(errno)); in term_tag_init()
116 (void)strlcpy(tag_files.tfn, tagfilename, in term_tag_init()
117 sizeof(tag_files.tfn)); in term_tag_init()
208 if (strncmp(tag_files.tfn, "/tmp/man.", 9) == 0) { in term_tag_unlink()
209 unlink(tag_files.tfn); in term_tag_unlink()
210 *tag_files.tfn = '\0'; in term_tag_unlink()
H A Dmandocdb.c2226 char tfn[33], *cp1, *cp2; in dbwrite() local
2261 (void)strlcpy(tfn, "/tmp/mandocdb.XXXXXXXX", sizeof(tfn)); in dbwrite()
2262 if (mkdtemp(tfn) == NULL) { in dbwrite()
2264 say("", "&%s", tfn); in dbwrite()
2269 (void)strlcat(tfn, "/" MANDOC_DB, sizeof(tfn)); in dbwrite()
2270 if (dba_write(tfn, dba) == -1) { in dbwrite()
2271 say(tfn, "&dba_write"); in dbwrite()
2278 if ((fd2 = open(tfn, O_RDONLY)) == -1) { in dbwrite()
2279 say(tfn, "&open"); in dbwrite()
2287 say(tfn, "&fstat"); in dbwrite()
[all …]
H A Dterm_tag.h23 char tfn[80]; /* Tag file name. */ member
H A Dmain.c1327 if (*outst->tag_files->tfn != '\0' && in spawn_pager()
1332 argv[argc++] = mandoc_strdup(outst->tag_files->tfn); in spawn_pager()
/freebsd/tools/tools/ansify/
H A Dansify.pl118 my $tfn = "$fn.ansify";
123 if (open(OUT, ">", $tfn)) {
125 if (!rename($tfn, $fn)) {
127 unlink($tfn);
/freebsd/lib/libc/tests/stdtime/
H A Ddetect_tz_changes_test.c71 static const char *tfn = "root" TZDEFAULT ".tmp"; in change_tz()
78 ATF_REQUIRE((dfd = open(tfn, O_CREAT | O_TRUNC | O_WRONLY, 0644)) >= 0); in change_tz()
87 ATF_REQUIRE_EQ(0, rename(tfn, dfn));
68 static const char *tfn = "root" TZDEFAULT ".tmp"; change_tz() local
/freebsd/stand/libsa/
H A Dpkgfs.c133 struct tarfile *tf, *tfn; in pkgfs_cleanup() local
141 tfn = tf->tf_next; in pkgfs_cleanup()
145 tf = tfn; in pkgfs_cleanup()
/freebsd/contrib/sendmail/
H A DPGPKEYS465 tfn+RY04Ie3gmLPj7m7oIxwtpf0xAhNWw9WsrC/dqRk+Z71m9ZAWgLSUQOEdVjFe