/src/usr.sbin/npf/npftest/ |
npftest.c | 134 char sfn[32]; local in function:generate_test_cdb 141 strlcpy(sfn, "/tmp/npftest_cdb.XXXXXX", sizeof(sfn)); 142 if ((fd = mkstemp(sfn)) == -1) { 145 unlink(sfn);
|
/src/bin/ed/ |
buf.c | 202 char *sfn = NULL; /* scratch file name */ variable in typeref:typename:char * 220 (void)asprintf(&sfn, "%sed.XXXXXX", tmp); 222 (void)asprintf(&sfn, "%s/ed.XXXXXX", tmp); 223 if (sfn == NULL) { 231 if ((fd = mkstemp(sfn)) == -1 || (sfp = fdopen(fd, "w+")) == NULL) { 234 warn("%s", sfn); 250 fprintf(stderr, "%s: %s\n", sfn, strerror(errno)); 255 if (sfn) { 256 unlink(sfn); 257 free(sfn); [all...] |
/src/sys/lib/libsa/ |
dosfs.c | 518 u_char sfn[13]; local in function:lookup 587 cp_sfn(sfn, &dir[ent].de); 588 ok = !strcasecmp(name, (const char *)sfn); 651 cp_sfn(u_char *sfn, struct direntry *de) 656 p = sfn; 669 if (*sfn == 5) 670 *sfn = 0xe5;
|
/src/lib/libnpf/ |
npf.c | 1186 char sfn[32]; local in function:_npf_table_build_const 1222 strncpy(sfn, "/tmp/npfcdb.XXXXXX", sizeof(sfn)); 1223 sfn[sizeof(sfn) - 1] = '\0'; 1225 if ((fd = mkstemp(sfn)) == -1) { 1229 unlink(sfn);
|