Symbol: filename
bin/cat/cat.c
244
filename = "stdin";
bin/cat/cat.c
247
filename = path;
bin/cat/cat.c
275
err(1, "%s", filename);
bin/cat/cat.c
372
warn("%s", filename);
bin/cat/cat.c
430
warn("%s", filename);
bin/cat/cat.c
63
static const char *filename;
bin/setfacl/file.c
42
get_acl_from_file(const char *filename)
bin/setfacl/file.c
48
if (filename == NULL)
bin/setfacl/file.c
51
if (strcmp(filename, "-") == 0) {
bin/setfacl/file.c
57
file = fopen(filename, "r");
bin/setfacl/file.c
59
err(1, "fopen() %s failed", filename);
bin/setfacl/file.c
66
err(1, "error reading from %s", filename);
bin/setfacl/file.c
69
errx(1, "line too long in %s", filename);
bin/setfacl/mask.c
100
warnx("%s: warning: no mask entry", filename);
bin/setfacl/mask.c
39
set_acl_mask(acl_t *prev_acl, const char *filename)
bin/setfacl/mask.c
58
err(1, "%s: acl_dup() failed", filename);
bin/setfacl/mask.c
69
warn("%s: acl_calc_mask() failed", filename);
bin/setfacl/mask.c
86
filename);
bin/setfacl/merge.c
103
"entry to be merged is %s", filename,
bin/setfacl/merge.c
110
err(1, "%s: acl_dup() failed", filename);
bin/setfacl/merge.c
122
"invalid ACL entry", filename);
bin/setfacl/merge.c
133
filename);
bin/setfacl/merge.c
136
filename);
bin/setfacl/merge.c
147
"failed", filename);
bin/setfacl/merge.c
150
"failed", filename);
bin/setfacl/merge.c
170
filename);
bin/setfacl/merge.c
173
filename);
bin/setfacl/merge.c
178
filename);
bin/setfacl/merge.c
181
filename);
bin/setfacl/merge.c
184
filename);
bin/setfacl/merge.c
187
filename);
bin/setfacl/merge.c
193
errx(1, "%s: invalid tag type: %i", filename, tag);
bin/setfacl/merge.c
208
warn("%s: acl_create_entry_np() failed", filename);
bin/setfacl/merge.c
221
warn("%s: acl_create_entry() failed", filename);
bin/setfacl/merge.c
227
err(1, "%s: acl_copy_entry() failed", filename);
bin/setfacl/merge.c
238
add_acl(acl_t acl, uint entry_number, acl_t *prev_acl, const char *filename)
bin/setfacl/merge.c
249
filename);
bin/setfacl/merge.c
255
"entry to be added is %s", filename,
bin/setfacl/merge.c
262
err(1, "%s: acl_dup() failed", filename);
bin/setfacl/merge.c
270
warn("%s: acl_create_entry_np() failed", filename);
bin/setfacl/merge.c
284
err(1, "%s: acl_copy_entry() failed", filename);
bin/setfacl/merge.c
87
merge_acl(acl_t acl, acl_t *prev_acl, const char *filename)
bin/setfacl/remove.c
105
err(1, "%s: acl_dup() failed", filename);
bin/setfacl/remove.c
122
err(1, "%s: acl_get_tag_type() failed", filename);
bin/setfacl/remove.c
129
warn("%s: acl_delete_entry_np() failed", filename);
bin/setfacl/remove.c
145
remove_default(acl_t *prev_acl, const char *filename)
bin/setfacl/remove.c
151
err(1, "%s: acl_init() failed", filename);
bin/setfacl/remove.c
160
remove_ext(acl_t *prev_acl, const char *filename)
bin/setfacl/remove.c
166
err(1, "%s: acl_strip_np() failed", filename);
bin/setfacl/remove.c
41
remove_acl(acl_t acl, acl_t *prev_acl, const char *filename)
bin/setfacl/remove.c
55
"entry to be removed is %s", filename,
bin/setfacl/remove.c
64
err(1, "%s: acl_dup() failed", filename);
bin/setfacl/remove.c
73
err(1, "%s: acl_get_tag_type() failed", filename);
bin/setfacl/remove.c
79
filename);
bin/setfacl/remove.c
93
remove_by_number(uint entry_number, acl_t *prev_acl, const char *filename)
bin/setfacl/setfacl.c
103
while (fgets(filename, (int)sizeof(filename), stdin)) {
bin/setfacl/setfacl.c
105
filename[strlen(filename) - 1] = '\0';
bin/setfacl/setfacl.c
106
files_list[i] = strdup(filename);
bin/setfacl/setfacl.c
91
char filename[PATH_MAX];
bin/setfacl/setfacl.c
99
bzero(&filename, sizeof(filename));
bin/setfacl/setfacl.h
39
acl_t get_acl_from_file(const char *filename);
bin/setfacl/setfacl.h
41
int merge_acl(acl_t acl, acl_t *prev_acl, const char *filename);
bin/setfacl/setfacl.h
43
const char *filename);
bin/setfacl/setfacl.h
45
int remove_acl(acl_t acl, acl_t *prev_acl, const char *filename);
bin/setfacl/setfacl.h
47
const char *filename);
bin/setfacl/setfacl.h
48
int remove_default(acl_t *prev_acl, const char *filename);
bin/setfacl/setfacl.h
49
void remove_ext(acl_t *prev_acl, const char *filename);
bin/setfacl/setfacl.h
51
int set_acl_mask(acl_t *prev_acl, const char *filename);
bin/sh/main.c
336
char *filename, *fullname;
bin/sh/main.c
347
filename = argc > 2 && strcmp(argv[1], "--") == 0 ? argv[2] : argv[1];
bin/sh/main.c
349
fullname = find_dot_file(filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3489
sizecmd(char *filename)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3495
if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3496
reply(550, "%s: not a plain file.", filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3506
fin = fopen(filename, "r");
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3508
perror_reply(550, filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3512
reply(550, "%s: not a plain file.", filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1436
sizecmd(char *filename)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1442
if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1443
reply(550, "%s: not a plain file.", filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1453
fin = fopen(filename, "r");
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1455
perror_reply(550, filename);
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1459
reply(550, "%s: not a plain file.", filename);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1075
filename_check(char *filename)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1079
p = strrchr(filename, '/');
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1081
filename = p + 1;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1083
p = filename;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1092
lreply(553, "\"%s\" is not an acceptable filename.", filename);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1566
statfilecmd(char *filename)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1572
snprintf(line, sizeof(line), "/bin/ls -la -- %s", filename);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1574
lreply(211, "status of %s:", filename);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1584
perror_reply(551, filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
150
make_fileinfo(FILE *out, const char *filename, struct fileinfo *file, int flags)
crypto/heimdal/appl/ftp/ftpd/ls.c
283
const char *p = strrchr(filename, '/');
crypto/heimdal/appl/ftp/ftpd/ls.c
287
p = filename;
crypto/heimdal/appl/ftp/ftpd/ls.c
289
if (asprintf(&file->filename, "%s%c", p, file_type) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
290
file->filename = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
292
file->filename = strdup(p);
crypto/heimdal/appl/ftp/ftpd/ls.c
293
if (file->filename == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
300
n = readlink((char *)filename, buf, sizeof(buf) - 1);
crypto/heimdal/appl/ftp/ftpd/ls.c
309
sec_fprintf2(out, "readlink(%s): %s", filename, strerror(errno));
crypto/heimdal/appl/ftp/ftpd/ls.c
328
if(f->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
354
sec_fprintf2(out, "%s", f->filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
363
if(a->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
365
if(b->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
367
return strcmp(a->filename, b->filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
373
if(a->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
375
if(b->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
383
if(a->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
385
if(b->filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
528
fi[i].filename = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
577
if(fi[i].filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
644
if(fi[i].filename == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
648
if(strlen(fi[i].filename) > max_len)
crypto/heimdal/appl/ftp/ftpd/ls.c
649
max_len = strlen(fi[i].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
667
if(fi[i].filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
671
max_len, fi[i].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
673
sec_fprintf2(out, "%-*s", max_len, fi[i].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
687
while(j < n_files && fi[j].filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
691
max_len, fi[j].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
693
sec_fprintf2(out, "%-*s", max_len, fi[j].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
701
if(fi[i].filename == NULL)
crypto/heimdal/appl/ftp/ftpd/ls.c
703
sec_fprintf2(out, "%s\r\n", fi[i].filename);
crypto/heimdal/appl/ftp/ftpd/ls.c
746
hide_file(const char *filename, int flags)
crypto/heimdal/appl/ftp/ftpd/ls.c
748
if(filename[0] != '.')
crypto/heimdal/appl/ftp/ftpd/ls.c
752
if(filename[1] == '\0' || (filename[1] == '.' && filename[2] == '\0')) {
crypto/heimdal/appl/ftp/ftpd/ls.c
83
char *filename;
crypto/heimdal/appl/ftp/ftpd/ls.c
96
free(f->filename);
crypto/heimdal/appl/push/push.c
518
const char *filename,
crypto/heimdal/appl/push/push.c
563
return doit (s, host, user, filename, header_str, leavep, verbose, forkp);
crypto/heimdal/appl/push/push.c
701
const char *host, *user, *filename = NULL;
crypto/heimdal/appl/push/push.c
745
filename = argv[0];
crypto/heimdal/appl/push/push.c
748
filename = argv[1];
crypto/heimdal/appl/push/push.c
780
ret = do_v5 (host, port, user, filename, header_str,
crypto/heimdal/kadmin/add-random-users.c
109
add_users (const char *filename, unsigned n)
crypto/heimdal/kadmin/add-random-users.c
130
nwords = read_words (filename, &words);
crypto/heimdal/kadmin/add-random-users.c
161
const char *filename = WORDS_FILENAME;
crypto/heimdal/kadmin/add-random-users.c
179
filename = argv[0];
crypto/heimdal/kadmin/add-random-users.c
182
add_users (filename, n);
crypto/heimdal/kadmin/add-random-users.c
43
read_words (const char *filename, char ***ret_w)
crypto/heimdal/kadmin/add-random-users.c
51
f = fopen (filename, "r");
crypto/heimdal/kadmin/add-random-users.c
53
err (1, "cannot open %s", filename);
crypto/heimdal/kadmin/add-random-users.c
73
errx(1, "%s is an empty file, no words to try", filename);
crypto/heimdal/kadmin/load.c
363
doit(const char *filename, int mergep)
crypto/heimdal/kadmin/load.c
375
f = fopen(filename, "r");
crypto/heimdal/kadmin/load.c
377
krb5_warn(context, errno, "fopen(%s)", filename);
crypto/heimdal/kadmin/load.c
453
filename, line, msg, e.principal);
crypto/heimdal/kadmin/load.c
460
filename, line, e.key);
crypto/heimdal/kadmin/load.c
467
filename, line, e.created);
crypto/heimdal/kadmin/load.c
473
filename, line, e.modified);
crypto/heimdal/kadmin/load.c
479
filename, line, e.valid_start);
crypto/heimdal/kadmin/load.c
485
filename, line, e.valid_end);
crypto/heimdal/kadmin/load.c
491
filename, line, e.pw_end);
crypto/heimdal/kadmin/load.c
498
filename, line, e.max_life);
crypto/heimdal/kadmin/load.c
505
filename, line, e.max_renew);
crypto/heimdal/kadmin/load.c
512
filename, line, e.flags);
crypto/heimdal/kadmin/load.c
519
filename, line, e.generation);
crypto/heimdal/kadmin/load.c
526
filename, line, e.extensions);
crypto/heimdal/kpasswd/kpasswd-generator.c
39
read_words (const char *filename, char ***ret_w)
crypto/heimdal/kpasswd/kpasswd-generator.c
46
f = fopen (filename, "r");
crypto/heimdal/kpasswd/kpasswd-generator.c
48
err (1, "cannot open %s", filename);
crypto/heimdal/kpasswd/kpasswd-generator.c
60
errx(1, "%s is an empty file, no words to try", filename);
crypto/heimdal/kpasswd/kpasswd-generator.c
77
generate_requests (const char *filename, unsigned nreq)
crypto/heimdal/kpasswd/kpasswd-generator.c
89
nwords = read_words (filename, &words);
crypto/heimdal/kuser/generate-requests.c
37
read_words (const char *filename, char ***ret_w)
crypto/heimdal/kuser/generate-requests.c
44
f = fopen (filename, "r");
crypto/heimdal/kuser/generate-requests.c
46
err (1, "cannot open %s", filename);
crypto/heimdal/kuser/generate-requests.c
58
errx(1, "%s is an empty file, no words to try", filename);
crypto/heimdal/kuser/generate-requests.c
64
generate_requests (const char *filename, unsigned nreq)
crypto/heimdal/kuser/generate-requests.c
78
nwords = read_words (filename, &words);
crypto/heimdal/lib/asn1/asn1_print.c
292
doit (const char *filename)
crypto/heimdal/lib/asn1/asn1_print.c
294
int fd = open (filename, O_RDONLY);
crypto/heimdal/lib/asn1/asn1_print.c
301
err (1, "opening %s for read", filename);
crypto/heimdal/lib/asn1/asn1_print.c
303
err (1, "stat %s", filename);
crypto/heimdal/lib/asn1/gen.c
117
init_generate (const char *filename, const char *base)
crypto/heimdal/lib/asn1/gen.c
121
orig_filename = filename;
crypto/heimdal/lib/asn1/gen.c
156
filename);
crypto/heimdal/lib/asn1/gen.c
269
filename);
crypto/heimdal/lib/asn1/gen.c
343
char *filename = NULL;
crypto/heimdal/lib/asn1/gen.c
348
if (asprintf (&filename, "%s_%s.x", STEM, name) < 0 || filename == NULL)
crypto/heimdal/lib/asn1/gen.c
350
codefile = fopen (filename, "w");
crypto/heimdal/lib/asn1/gen.c
352
err (1, "fopen %s", filename);
crypto/heimdal/lib/asn1/gen.c
353
fprintf(logfile, "%s ", filename);
crypto/heimdal/lib/asn1/gen.c
354
free(filename);
crypto/heimdal/lib/asn1/gen.c
355
filename = NULL;
crypto/heimdal/lib/com_err/compile_et.c
143
fprintf(h_file, "/* Generated from %s */\n", filename);
crypto/heimdal/lib/com_err/compile_et.c
219
filename = argv[optidx];
crypto/heimdal/lib/com_err/compile_et.c
220
yyin = fopen(filename, "r");
crypto/heimdal/lib/com_err/compile_et.c
222
err(1, "%s", filename);
crypto/heimdal/lib/com_err/compile_et.c
225
p = strrchr(filename, rk_PATH_DELIM);
crypto/heimdal/lib/com_err/compile_et.c
229
p = filename;
crypto/heimdal/lib/com_err/compile_et.c
62
char *filename;
crypto/heimdal/lib/com_err/compile_et.c
78
fprintf(c_file, "/* Generated from %s */\n", filename);
crypto/heimdal/lib/com_err/compile_et.h
54
extern char *filename;
crypto/heimdal/lib/com_err/lex.c
1886
fprintf (stderr, "%s:%d:", filename, lineno);
crypto/heimdal/lib/hdb/db.c
300
const char *filename)
crypto/heimdal/lib/hdb/db.c
309
(*db)->hdb_name = strdup(filename);
crypto/heimdal/lib/hdb/db3.c
330
const char *filename)
crypto/heimdal/lib/hdb/db3.c
339
(*db)->hdb_name = strdup(filename);
crypto/heimdal/lib/hdb/hdb-mitdb.c
889
const char *filename)
crypto/heimdal/lib/hdb/hdb-mitdb.c
898
(*db)->hdb_name = strdup(filename);
crypto/heimdal/lib/hdb/hdb-sqlite.c
279
hdb_sqlite_make_database(krb5_context context, HDB *db, const char *filename)
crypto/heimdal/lib/hdb/hdb-sqlite.c
285
hsdb->db_file = strdup(filename);
crypto/heimdal/lib/hdb/hdb.c
278
const char *filename,
crypto/heimdal/lib/hdb/hdb.c
288
p = strchr(filename, ':');
crypto/heimdal/lib/hdb/hdb.c
294
len = p - filename;
crypto/heimdal/lib/hdb/hdb.c
295
*rest = filename + len + 1;
crypto/heimdal/lib/hdb/hdb.c
300
strlcpy(prefix, filename, len + 1);
crypto/heimdal/lib/hdb/hdb.c
370
find_method (const char *filename, const char **rest)
crypto/heimdal/lib/hdb/hdb.c
375
if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0) {
crypto/heimdal/lib/hdb/hdb.c
376
*rest = filename + strlen(h->prefix);
crypto/heimdal/lib/hdb/hdb.c
381
if (strncmp(filename, "/", 1) == 0
crypto/heimdal/lib/hdb/hdb.c
382
|| strncmp(filename, "./", 2) == 0
crypto/heimdal/lib/hdb/hdb.c
383
|| strncmp(filename, "../", 3) == 0)
crypto/heimdal/lib/hdb/hdb.c
385
*rest = filename;
crypto/heimdal/lib/hdb/hdb.c
453
hdb_create(krb5_context context, HDB **db, const char *filename)
crypto/heimdal/lib/hdb/hdb.c
460
if(filename == NULL)
crypto/heimdal/lib/hdb/hdb.c
461
filename = HDB_DEFAULT_DB;
crypto/heimdal/lib/hdb/hdb.c
463
h = find_method (filename, &residual);
crypto/heimdal/lib/hdb/hdb.c
470
if (strncmp (filename, h->prefix, strlen(h->prefix)) == 0
crypto/heimdal/lib/hdb/hdb.c
472
residual = filename + strlen(h->prefix);
crypto/heimdal/lib/hdb/hdb.c
485
h = find_dynamic_method (context, filename, &residual);
crypto/heimdal/lib/hdb/hdb.c
488
krb5_errx(context, 1, "No database support for %s", filename);
crypto/heimdal/lib/hdb/hdb.h
268
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
crypto/heimdal/lib/hdb/hdb.h
289
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
crypto/heimdal/lib/hdb/mkey.c
114
read_master_keytab(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
123
ret = krb5_kt_resolve(context, filename, &id);
crypto/heimdal/lib/hdb/mkey.c
151
read_master_mit(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
160
fd = open(filename, O_RDONLY | O_BINARY);
crypto/heimdal/lib/hdb/mkey.c
164
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
197
read_master_encryptionkey(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
207
fd = open(filename, O_RDONLY | O_BINARY);
crypto/heimdal/lib/hdb/mkey.c
211
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
220
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
244
read_master_krb4(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
253
fd = open(filename, O_RDONLY | O_BINARY);
crypto/heimdal/lib/hdb/mkey.c
257
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
266
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
271
"bad contents of %s", filename);
crypto/heimdal/lib/hdb/mkey.c
288
hdb_read_master_key(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
299
if(filename == NULL)
crypto/heimdal/lib/hdb/mkey.c
300
filename = HDB_DB_DIR "/m-key";
crypto/heimdal/lib/hdb/mkey.c
302
f = fopen(filename, "r");
crypto/heimdal/lib/hdb/mkey.c
306
filename, strerror(save_errno));
crypto/heimdal/lib/hdb/mkey.c
312
krb5_set_error_message(context, HEIM_ERR_EOF, "end of file reading %s", filename);
crypto/heimdal/lib/hdb/mkey.c
326
ret = read_master_krb4(context, filename, mkey);
crypto/heimdal/lib/hdb/mkey.c
328
ret = read_master_encryptionkey(context, filename, mkey);
crypto/heimdal/lib/hdb/mkey.c
330
ret = read_master_keytab(context, filename, mkey);
crypto/heimdal/lib/hdb/mkey.c
337
ret = read_master_mit(context, filename, KRB5_STORAGE_BYTEORDER_LE, mkey);
crypto/heimdal/lib/hdb/mkey.c
339
ret = read_master_mit(context, filename, KRB5_STORAGE_BYTEORDER_BE, mkey);
crypto/heimdal/lib/hdb/mkey.c
345
hdb_write_master_key(krb5_context context, const char *filename,
crypto/heimdal/lib/hdb/mkey.c
352
if(filename == NULL)
crypto/heimdal/lib/hdb/mkey.c
353
filename = HDB_DB_DIR "/m-key";
crypto/heimdal/lib/hdb/mkey.c
355
ret = krb5_kt_resolve(context, filename, &kt);
crypto/heimdal/lib/hdb/ndbm.c
352
const char *filename)
crypto/heimdal/lib/hdb/ndbm.c
361
(*db)->hdb_name = strdup(filename);
crypto/heimdal/lib/krb5/fcache.c
101
filename);
crypto/heimdal/lib/krb5/fcache.c
108
"file, error"), filename, buf);
crypto/heimdal/lib/krb5/fcache.c
196
f->filename = strdup(res);
crypto/heimdal/lib/krb5/fcache.c
197
if(f->filename == NULL){
crypto/heimdal/lib/krb5/fcache.c
248
_krb5_erase_file(krb5_context context, const char *filename)
crypto/heimdal/lib/krb5/fcache.c
254
ret = lstat (filename, &sb1);
crypto/heimdal/lib/krb5/fcache.c
258
fd = open(filename, O_RDWR | O_BINARY);
crypto/heimdal/lib/krb5/fcache.c
266
ret = _krb5_xlock(context, fd, 1, filename);
crypto/heimdal/lib/krb5/fcache.c
271
if (unlink(filename) < 0) {
crypto/heimdal/lib/krb5/fcache.c
347
f->filename = exp_file;
crypto/heimdal/lib/krb5/fcache.c
389
const char *filename;
crypto/heimdal/lib/krb5/fcache.c
39
char *filename;
crypto/heimdal/lib/krb5/fcache.c
395
filename = FILENAME(id);
crypto/heimdal/lib/krb5/fcache.c
397
fd = open(filename, flags, mode);
crypto/heimdal/lib/krb5/fcache.c
403
filename, buf);
crypto/heimdal/lib/krb5/fcache.c
428
unlink (f->filename);
crypto/heimdal/lib/krb5/fcache.c
57
#define FILENAME(X) (FCACHE(X)->filename)
crypto/heimdal/lib/krb5/fcache.c
73
const char *filename)
crypto/heimdal/lib/krb5/keytab_file.c
143
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
151
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
167
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
174
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
202
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
212
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
219
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
235
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
249
fkt->filename);
crypto/heimdal/lib/krb5/keytab_file.c
299
d->filename = strdup(name);
crypto/heimdal/lib/krb5/keytab_file.c
300
if(d->filename == NULL) {
crypto/heimdal/lib/krb5/keytab_file.c
327
free(d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
336
_krb5_erase_file(context, d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
348
strlcpy(name, d->filename, namesize);
crypto/heimdal/lib/krb5/keytab_file.c
382
c->fd = open (d->filename, flags);
crypto/heimdal/lib/krb5/keytab_file.c
387
d->filename, strerror(ret));
crypto/heimdal/lib/krb5/keytab_file.c
391
ret = _krb5_xlock(context, c->fd, exclusive, d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
46
char *filename;
crypto/heimdal/lib/krb5/keytab_file.c
552
fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/heimdal/lib/krb5/keytab_file.c
554
fd = open (d->filename, O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_file.c
558
N_("open(%s): %s", ""), d->filename,
crypto/heimdal/lib/krb5/keytab_file.c
564
ret = _krb5_xlock(context, fd, 1, d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
581
ret = _krb5_xlock(context, fd, 1, d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
596
d->filename, strerror(ret));
crypto/heimdal/lib/krb5/keytab_file.c
605
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
613
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
635
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
644
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
653
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
668
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
677
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
689
d->filename);
crypto/heimdal/lib/krb5/keytab_file.c
715
d->filename, strerror(ret));
crypto/heimdal/lib/krb5/keytab_keyfile.c
149
d->filename = strdup (name);
crypto/heimdal/lib/krb5/keytab_keyfile.c
150
if (d->filename == NULL) {
crypto/heimdal/lib/krb5/keytab_keyfile.c
172
free (d->filename);
crypto/heimdal/lib/krb5/keytab_keyfile.c
190
strlcpy (name, d->filename, name_sz);
crypto/heimdal/lib/krb5/keytab_keyfile.c
206
c->fd = open (d->filename, O_RDONLY | O_BINARY | O_CLOEXEC, 0600);
crypto/heimdal/lib/krb5/keytab_keyfile.c
211
d->filename, strerror(ret));
crypto/heimdal/lib/krb5/keytab_keyfile.c
333
fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/heimdal/lib/krb5/keytab_keyfile.c
335
fd = open (d->filename,
crypto/heimdal/lib/krb5/keytab_keyfile.c
341
d->filename,
crypto/heimdal/lib/krb5/keytab_keyfile.c
56
char *filename;
crypto/heimdal/lib/krb5/kuserok.c
117
char filename[MAXPATHLEN];
crypto/heimdal/lib/krb5/kuserok.c
158
snprintf(filename, sizeof(filename), "%s/%s", dirname, dent->d_name);
crypto/heimdal/lib/krb5/kuserok.c
159
ret = check_one_file(context, filename, pwd, principal, result);
crypto/heimdal/lib/krb5/kuserok.c
44
const char *filename,
crypto/heimdal/lib/krb5/kuserok.c
56
f = fopen (filename, "r");
crypto/heimdal/lib/krb5/log.c
212
const char *filename;
crypto/heimdal/lib/krb5/log.c
227
f->fd = fopen(f->filename, f->mode);
crypto/heimdal/lib/krb5/log.c
248
if(f->keep_open && f->filename)
crypto/heimdal/lib/krb5/log.c
255
const char *filename, const char *mode, FILE *f, int keep_open)
crypto/heimdal/lib/krb5/log.c
263
fd->filename = filename;
crypto/heimdal/lib/roken/dumpdata.c
43
rk_dumpdata (const char *filename, const void *buf, size_t size)
crypto/heimdal/lib/roken/dumpdata.c
47
fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0640);
crypto/heimdal/lib/roken/dumpdata.c
59
rk_undumpdata(const char *filename, void **buf, size_t *size)
crypto/heimdal/lib/roken/dumpdata.c
67
fd = open(filename, O_RDONLY, 0);
crypto/heimdal/lib/roken/write_pid.c
57
pid_file_delete (char **filename)
crypto/heimdal/lib/roken/write_pid.c
59
if (*filename != NULL) {
crypto/heimdal/lib/roken/write_pid.c
60
unlink (*filename);
crypto/heimdal/lib/roken/write_pid.c
61
free (*filename);
crypto/heimdal/lib/roken/write_pid.c
62
*filename = NULL;
crypto/heimdal/lib/sl/slc-gram.c
1615
char *filename;
crypto/heimdal/lib/sl/slc-gram.c
2264
filename = argv[optidx];
crypto/heimdal/lib/sl/slc-gram.c
2265
yyin = fopen(filename, "r");
crypto/heimdal/lib/sl/slc-gram.c
2267
err(1, "%s", filename);
crypto/heimdal/lib/sl/slc-gram.c
2268
p = strrchr(filename, '/');
crypto/heimdal/lib/sl/slc-gram.c
2272
strlcpy(cname, filename, sizeof(cname));
crypto/heimdal/lib/sl/slc-gram.y
106
char *filename;
crypto/heimdal/lib/sl/slc-gram.y
755
filename = argv[optidx];
crypto/heimdal/lib/sl/slc-gram.y
756
yyin = fopen(filename, "r");
crypto/heimdal/lib/sl/slc-gram.y
758
err(1, "%s", filename);
crypto/heimdal/lib/sl/slc-gram.y
759
p = strrchr(filename, '/');
crypto/heimdal/lib/sl/slc-gram.y
763
strlcpy(cname, filename, sizeof(cname));
crypto/heimdal/lib/sl/slc-lex.c
1782
fprintf (stderr, "%s:%d: ", filename, lineno);
crypto/heimdal/lib/sl/slc.h
50
extern char *filename;
crypto/heimdal/lib/wind/test-normalize.c
145
char filename[256] = "NormalizationTest.txt";
crypto/heimdal/lib/wind/test-normalize.c
152
strlcpy(filename, argv[1], sizeof(filename));
crypto/heimdal/lib/wind/test-normalize.c
154
f = fopen(filename, "r");
crypto/heimdal/lib/wind/test-normalize.c
159
snprintf(longname, sizeof(longname), "%s/%s", srcdir, filename);
crypto/heimdal/lib/wind/test-normalize.c
163
err(1, "open %s", filename);
crypto/krb5/src/kprop/kproplog.c
403
map_ulog(const char *filename, int *fd_out)
crypto/krb5/src/kprop/kproplog.c
411
fd = open(filename, O_RDONLY);
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
444
check_link_mtime(const char *filename, time_t *mtime_out)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
448
if (lstat(filename, &st1) != 0)
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
452
if (stat(filename, &st2) != 0)
crypto/krb5/src/lib/kdb/t_ulog.c
59
const char *filename;
crypto/krb5/src/lib/kdb/t_ulog.c
65
filename = argv[1];
crypto/krb5/src/lib/kdb/t_ulog.c
66
unlink(filename);
crypto/krb5/src/lib/kdb/t_ulog.c
68
if (ulog_map(context, filename, 10) != 0)
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
111
char *dirname, *filename;
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
115
ret = k5_path_split(path, &dirname, &filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
125
if (!filename_is_cache(filename)) {
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
134
*filename_out = filename;
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
139
free(filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
336
char *primary_path = NULL, *sresidual = NULL, *dirname, *filename;
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
342
ret = split_path(context, residual + 1, &dirname, &filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
348
free(filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
723
char *primary_path = NULL, *dirname = NULL, *filename = NULL;
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
726
ret = split_path(context, data->residual + 1, &dirname, &filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
734
ret = write_primary_file(primary_path, filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
739
free(filename);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
74
filename_is_cache(const char *filename)
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
76
return (strncmp(filename, "tkt", 3) == 0);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
89
subsidiary_residual(const char *dirname, const char *filename, char **out)
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
95
ret = k5_path_join(dirname, filename, &path);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1000
ret = open_cache_file(context, data->filename, TRUE, &fp);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1025
return set_errmsg_filename(context, ret ? ret : ret2, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1079
fd = open(data->filename, O_RDWR | O_BINARY | O_CLOEXEC);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1286
if (asprintf(&tmpname, "%s.XXXXXX", data->filename) < 0)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1313
st = rename(tmpname, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1318
if (ReplaceFile(data->filename, tmpname, NULL, 0, NULL, NULL))
crypto/krb5/src/lib/krb5/ccache/cc_file.c
332
open_cache_file(krb5_context context, const char *filename,
crypto/krb5/src/lib/krb5/ccache/cc_file.c
342
fd = open(filename, flags | O_BINARY | O_CLOEXEC, 0600);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
481
unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
483
fd = open(data->filename, flags, 0600);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
494
st = chmod(data->filename, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
529
return set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
537
free(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
565
fd = open(data->filename, O_RDWR | O_BINARY | O_CLOEXEC, 0);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
602
st = unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
610
st = unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
650
(void)set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
672
data->filename = strdup(residual);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
673
if (data->filename == NULL) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
679
free(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
720
ret = open_cache_file(context, data->filename, FALSE, &fp);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
745
return set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
810
return set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
851
data->filename = strdup(template);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
852
if (data->filename == NULL) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
861
free(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
872
chmod(data->filename, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
882
(void)unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
892
(void)unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
899
(void)unlink(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
922
(void)set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
925
free(data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
948
return ((fcc_data *)id->data)->filename;
crypto/krb5/src/lib/krb5/ccache/cc_file.c
961
ret = open_cache_file(context, data->filename, FALSE, &fp);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
972
return set_errmsg_filename(context, ret, data->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
983
return set_errmsg_filename(context, ret, ((fcc_data *)id->data)->filename);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
99
char *filename;
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
156
char *filename, *homedir;
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
167
ret = k5_path_join(homedir, ".k5identity", &filename);
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
171
fp = fopen(filename, "r");
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
172
free(filename);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
273
const char *filename;
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
282
filename = argv[1];
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
283
if (asprintf(&ccname, "FILE:%s", filename) == -1)
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
352
fd = open(filename, O_RDONLY);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
374
fd = open(filename, O_CREAT|O_TRUNC|O_RDWR, 0700);
crypto/krb5/src/lib/krb5/ccache/t_marshal.c
416
(void)unlink(filename);
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
400
char *name, *filename;
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
402
if (asprintf(&filename, "/tmp/kttest.%ld", (long) getpid()) < 0) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
406
if (asprintf(&name, "%s%s", prefix, filename) < 0) {
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
414
unlink(filename);
crypto/krb5/src/lib/krb5/keytab/t_keytab.c
415
free(filename);
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
106
ret = get_k5login_filename(context, lname, pwd->pw_dir, &filename);
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
110
if (access(filename, F_OK) != 0) {
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
119
fp = fopen(filename, "r");
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
156
free(filename);
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
56
char *dir, *filename;
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
66
if (asprintf(&filename, "%s/.k5login", homedir) < 0)
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
70
if (asprintf(&filename, "%s/%s", dir, lname) < 0)
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
76
*filename_out = filename;
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
88
char *filename = NULL, *princname = NULL;
crypto/krb5/src/lib/krb5/os/trace.c
387
const char *filename;
crypto/krb5/src/lib/krb5/os/trace.c
389
filename = secure_getenv("KRB5_TRACE");
crypto/krb5/src/lib/krb5/os/trace.c
390
if (filename)
crypto/krb5/src/lib/krb5/os/trace.c
391
(void) krb5_set_trace_filename(context, filename);
crypto/krb5/src/lib/krb5/os/trace.c
450
krb5_set_trace_filename(krb5_context context, const char *filename)
crypto/krb5/src/lib/krb5/os/trace.c
458
*fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, 0600);
crypto/krb5/src/lib/krb5/os/trace.c
479
krb5_set_trace_filename(krb5_context context, const char *filename)
crypto/krb5/src/lib/krb5/rcache/rc_file2.c
245
const char *filename = rcdata;
crypto/krb5/src/lib/krb5/rcache/rc_file2.c
248
fd = open(filename, O_CREAT | O_RDWR | O_BINARY, 0600);
crypto/krb5/src/lib/krb5/rcache/rc_file2.c
252
filename);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
101
store_records(const char *filename, int id, int reps, int expect_fail)
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
110
ret = test_store(filename, tag, 1000, 100);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
122
concurrency_test(const char *filename, int nchildren, int reps)
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
133
store_records(filename, i, reps, 0);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
142
store_records(filename, i, reps, 1);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
151
race_test(const char *filename, int nchildren, int reps)
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
163
_exit(test_store(filename, tag, 1000, 100) != 0);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
180
const char *filename, *cmd;
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
189
filename = *argv++;
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
190
unlink(filename);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
196
expiry_test(filename, atoi(argv[0]));
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
199
concurrency_test(filename, atoi(argv[0]), atoi(argv[1]));
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
202
race_test(filename, atoi(argv[0]), atoi(argv[1]));
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
58
test_store(const char *filename, uint8_t *tag, krb5_timestamp timestamp,
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
65
return file2_store(ctx, (void *)filename, &tag_data);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
71
expiry_test(const char *filename, int reps)
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
87
ret = test_store(filename, tag, timestamp, clockskew);
crypto/krb5/src/lib/krb5/rcache/t_rcfile2.c
92
st = stat(filename, &statbuf);
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
104
fp = filename;
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
89
_ucopenfile(char *paths, char *filename, char *mode)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
94
if (filename == 0 || *filename == 0)
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
121
if (strcmp(lockp->lockinfo.filename, lockfilename) == 0)
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
134
lockp->lockinfo.filename = strdup(lockfilename);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
135
if (lockp->lockinfo.filename == NULL) {
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
175
db->filename = strdup(filename);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
210
free(db->filename);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
22
osa_adb_create_db(char *filename, char *lockfilename, int magic)
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
256
if (access(db->lock->filename, F_OK) < 0) {
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
266
if (unlink(db->lock->filename) < 0) {
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
301
fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL,
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
329
db->db = dbopen(db->filename, O_RDWR, 0600, DB_BTREE, &db->btinfo);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
331
db->db = dbopen(db->filename, O_RDWR, 0600, DB_HASH, &db->info);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
36
db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
52
osa_adb_destroy_db(char *filename, char *lockfilename, int magic)
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
55
if (unlink(filename) < 0 ||
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
62
osa_adb_init_db(osa_adb_db_t *dbp, char *filename, char *lockfilename,
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
70
if (dbp == NULL || filename == NULL)
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
619
destroy_file(char *filename)
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
626
fd = open(filename, O_RDWR, 0);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
674
if (unlink(filename))
crypto/krb5/src/plugins/kdb/db2/policy_db.h
58
char *filename;
crypto/krb5/src/plugins/kdb/db2/policy_db.h
68
char *filename;
crypto/krb5/src/plugins/kdb/db2/policy_db.h
83
krb5_error_code osa_adb_create_db(char *filename, char *lockfile, int magic);
crypto/krb5/src/plugins/kdb/db2/policy_db.h
84
krb5_error_code osa_adb_destroy_db(char *filename, char *lockfile, int magic);
crypto/krb5/src/plugins/kdb/db2/policy_db.h
85
krb5_error_code osa_adb_init_db(osa_adb_db_t *dbp, char *filename,
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
109
name, filename);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
64
krb5_ldap_readpassword(krb5_context context, const char *filename,
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
75
fp = fopen(filename, "r");
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
79
filename, error_message(ret));
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.h
37
krb5_ldap_readpassword(krb5_context context, const char *filename,
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
427
destroy_file(const char *filename)
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
436
fd = open(filename, O_RDWR | O_CLOEXEC, 0);
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
461
if (unlink(filename) != 0)
crypto/krb5/src/plugins/preauth/otp/otp_state.c
102
com_err("otp", retval, "Unable to open secret file '%s'", filename);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
110
com_err("otp", retval, "Unable to read secret file '%s'", filename);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
127
free(filename);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
87
char *filename = NULL;
crypto/krb5/src/plugins/preauth/otp/otp_state.c
93
retval = k5_path_join(KDC_DIR, secret_file, &filename);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
95
com_err("otp", retval, "Unable to resolve secret file '%s'", filename);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
99
file = fopen(filename, "r");
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1311
get_cert(char *filename, X509 **retcert)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1318
if (filename == NULL || retcert == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1327
code = BIO_read_filename(tmp, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1336
pkiDebug("failed to read certificate from %s\n", filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1351
char *filename;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1377
data->filename) < 0)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1408
char *filename, const char *fsname, EVP_PKEY **retkey,
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1417
if (filename == NULL || retkey == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1424
code = BIO_read_filename(tmp, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1431
cb_data.filename = filename;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
1437
pkiDebug("failed to read private key from %s\n", filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4049
reassemble_pkcs12_name(const char *filename)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4053
if (asprintf(&ret, "PKCS12:%s", filename) < 0)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5002
char *filename)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5045
if (!(in = BIO_new_file(filename, "r"))) {
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5046
retval = oerr(context, 0, _("Cannot open file '%s'"), filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5052
pkiDebug("%s: error reading file '%s'\n", __FUNCTION__, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5053
retval = oerr(context, 0, _("Cannot read file '%s'"), filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5108
TRACE_PKINIT_NO_CA_ANCHOR(context, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5118
TRACE_PKINIT_NO_CA_INTERMEDIATE(context, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5128
TRACE_PKINIT_NO_CRL(context, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5163
char **fnames = NULL, *filename;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5178
retval = k5_path_join(dirname, fnames[i], &filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5183
id_cryptoctx, catype, filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
5184
free(filename);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_lib.c
282
print_buffer_bin(unsigned char *buf, unsigned int len, char *filename)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_lib.c
287
if (len <= 0 || filename == NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_lib.c
290
if ((f = fopen(filename, "w")) == NULL)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
372
char filename[1024];
crypto/krb5/src/plugins/tls/k5tls/openssl.c
380
snprintf(filename, sizeof(filename), "%s/%s",
crypto/krb5/src/plugins/tls/k5tls/openssl.c
382
if (load_anchor_file(store, filename) == 0)
crypto/krb5/src/util/profile/prof_file.c
139
profile_make_prf_data(const char *filename)
crypto/krb5/src/util/profile/prof_file.c
145
flen = strlen(filename);
crypto/krb5/src/util/profile/prof_file.c
156
strlcpy(fcopy, filename, flen + 1);
crypto/krb5/src/util/profile/prof_parse.c
215
static errcode_t parse_include_file(const char *filename,
crypto/krb5/src/util/profile/prof_parse.c
229
fp = fopen(filename, "r");
crypto/krb5/src/util/profile/prof_parse.c
239
static int valid_name(const char *filename)
crypto/krb5/src/util/profile/prof_parse.c
242
size_t len = strlen(filename);
crypto/krb5/src/util/profile/prof_parse.c
245
if (*filename == '.')
crypto/krb5/src/util/profile/prof_parse.c
248
if (len >= 5 && !strcmp(filename + len - 5, ".conf"))
crypto/krb5/src/util/profile/prof_parse.c
251
for (p = filename; *p != '\0'; p++) {
crypto/krb5/src/util/support/plugins.c
136
open_plugin_win32(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
139
h->module = LoadLibrary(filename);
crypto/krb5/src/util/support/plugins.c
141
Tprintf("Unable to load dll: %s\n", filename);
crypto/krb5/src/util/support/plugins.c
142
k5_set_error(ep, ENOENT, _("unable to load DLL [%s]"), filename);
crypto/krb5/src/util/support/plugins.c
187
open_plugin_dummy(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
212
krb5int_open_plugin(const char *filename,
crypto/krb5/src/util/support/plugins.c
224
ret = open_plugin(h, filename, ep);
crypto/krb5/src/util/support/plugins.c
85
open_plugin_dlfcn(struct plugin_file_handle *h, const char *filename,
crypto/krb5/src/util/support/plugins.c
90
h->dlhandle = dlopen(filename, PLUGIN_DLOPEN_FLAGS);
crypto/krb5/src/util/support/plugins.c
95
Tprintf("dlopen(%s): %s\n", filename, e);
crypto/krb5/src/util/support/plugins.c
97
filename, e);
crypto/krb5/src/util/verto/module.c
36
module_get_filename_for_symbol(void *addr, char **filename)
crypto/krb5/src/util/verto/module.c
47
module_load(const char *filename, const char *symbname,
crypto/krb5/src/util/verto/module.h
44
module_get_filename_for_symbol(void *addr, char **filename);
crypto/krb5/src/util/verto/module.h
82
module_load(const char *filename, const char *symbname,
crypto/krb5/src/util/verto/verto.c
198
int_get_table_name_from_filename(const char *filename)
crypto/krb5/src/util/verto/verto.c
202
if (!filename)
crypto/krb5/src/util/verto/verto.c
205
tmp = strdup(filename);
crypto/krb5/src/util/verto/verto.c
267
do_load_file(const char *filename, int reqsym, verto_ev_type reqtypes,
crypto/krb5/src/util/verto/verto.c
277
if (!strcmp((*record)->filename, filename)) {
crypto/krb5/src/util/verto/verto.c
289
tmp->filename = strdup(filename);
crypto/krb5/src/util/verto/verto.c
290
if (!tmp->filename) {
crypto/krb5/src/util/verto/verto.c
296
tblname = int_get_table_name_from_filename(filename);
crypto/krb5/src/util/verto/verto.c
299
free(tmp->filename);
crypto/krb5/src/util/verto/verto.c
305
error = module_load(filename, tblname, shouldload, &data, &tmp->dll,
crypto/krb5/src/util/verto/verto.c
313
free(tmp->filename);
crypto/krb5/src/util/verto/verto.c
390
if ((strchr(impl, '/') && !strcmp(impl, (*record)->filename))
crypto/krb5/src/util/verto/verto.c
613
free(record->filename);
crypto/krb5/src/util/verto/verto.c
95
char *filename;
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1013
KFW_copy_file_cache_to_default_cache(char * filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1023
if (!pkrb5_init_context || !filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1026
if ( strlen(filename) + sizeof("FILE:") > sizeof(cachename) )
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1032
strcat(cachename, filename);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1074
DeleteFile(filename);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1089
KFW_copy_file_cache_to_api_cache(char * filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1100
if (!pkrb5_init_context || !filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1103
if ( strlen(filename) + sizeof("FILE:") > sizeof(cachename) )
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1109
strcat(cachename, filename);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
1162
DeleteFile(filename);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
724
int KFW_set_ccache_dacl(char *filename, HANDLE hUserToken)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
736
if (!filename) {
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
791
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
802
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
814
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
837
int KFW_set_ccache_dacl_with_user_sid(char *filename, PSID pUserSID)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
847
if (!filename) {
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
888
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
899
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
911
if (!SetNamedSecurityInfo( filename, SE_FILE_OBJECT,
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
954
KFW_copy_cache_to_system_file(const char * user, const char * filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
964
if (!pkrb5_init_context || !user || !filename)
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
967
strncat(cachename, filename, sizeof(cachename));
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
972
DeleteFile(filename);
crypto/krb5/src/windows/kfwlogon/kfwcommon.c
989
code = KFW_set_ccache_dacl(filename, NULL);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
142
ConfigureLogonScript(LPWSTR *lpLogonScript, char * filename) {
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
151
if (!filename)
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
154
dwLogonScriptLen = strlen(RUNDLL32_CMDLINE) + strlen(filename) + 2;
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
159
_snprintf(lpTemp, dwLogonScriptLen, "%s%s", RUNDLL32_CMDLINE, filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
285
char filename[MAX_PATH+1] = "";
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
297
count = GetTempPath(sizeof(filename), filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
298
if (count == 0 || count > (sizeof(filename)-1)) {
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
303
if (_snprintf(filename, sizeof(filename), "%s\\kfwlogon-%x.%x",
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
304
filename, lpLogonId->HighPart, lpLogonId->LowPart) < 0)
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
310
KFW_copy_cache_to_system_file(uname, filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
342
code = KFW_set_ccache_dacl_with_user_sid(filename, pUserSid);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
349
ConfigureLogonScript(lpLogonScript, filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
356
ConfigureLogonScript(lpLogonScript, filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
364
DeleteFile(filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
465
char filename[MAX_PATH] = "";
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
492
count = GetEnvironmentVariable("TEMP", filename, sizeof(filename));
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
493
if ( count > sizeof(filename) || count == 0 ) {
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
494
GetWindowsDirectory(filename, sizeof(filename));
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
497
if ( strlen(filename) + strlen(szLogonId) + 2 > sizeof(filename) ) {
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
502
strcat(filename, "\\");
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
503
strcat(filename, szLogonId);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
505
hf = CreateFile(filename, FILE_ALL_ACCESS, 0, NULL, OPEN_EXISTING,
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
513
if (KFW_set_ccache_dacl(filename, pInfo->hToken)) {
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
515
DeleteFile(filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.c
532
if (!MoveFileEx(filename, newfilename,
crypto/krb5/src/windows/kfwlogon/kfwlogon.h
204
void KFW_copy_cache_to_system_file(const char * user, const char * filename);
crypto/krb5/src/windows/kfwlogon/kfwlogon.h
206
int KFW_set_ccache_dacl(char *filename, HANDLE hUserToken);
crypto/krb5/src/windows/kfwlogon/kfwlogon.h
207
int KFW_set_ccache_dacl_with_user_sid(char *filename, PSID pUserSID);
crypto/krb5/src/windows/leash/LeashAboutBox.cpp
173
TCHAR filename[1024];
crypto/krb5/src/windows/leash/LeashAboutBox.cpp
188
if (!GetModuleFileName(NULL, filename, sizeof(filename)))
crypto/krb5/src/windows/leash/LeashAboutBox.cpp
191
DWORD size = GetFileVersionInfoSize(filename, &dwVersionHandle);
crypto/krb5/src/windows/leash/LeashAboutBox.cpp
200
if (!GetFileVersionInfo(filename, dwVersionHandle, size, pVersionInfo))
crypto/openssh/auth-rhosts.c
108
auth_debug_add("Found empty line in %.100s.", filename);
crypto/openssh/auth-rhosts.c
118
auth_debug_add("Found garbage in %.100s.", filename);
crypto/openssh/auth-rhosts.c
146
"in %.100s.", filename);
crypto/openssh/auth-rhosts.c
171
filename);
crypto/openssh/auth-rhosts.c
55
check_rhosts_file(const char *filename, const char *hostname,
crypto/openssh/auth-rhosts.c
66
if ((fd = open(filename, O_RDONLY|O_NONBLOCK)) == -1)
crypto/openssh/auth-rhosts.c
74
server_user, filename);
crypto/openssh/auth.c
387
expand_authorized_keys(const char *filename, struct passwd *pw)
crypto/openssh/auth.c
394
file = percent_expand(filename, "h", pw->pw_dir,
crypto/openssh/authfile.c
101
(u_int)st.st_mode & 0777, filename);
crypto/openssh/authfile.c
110
sshkey_load_private_type(int type, const char *filename, const char *passphrase,
crypto/openssh/authfile.c
120
if ((fd = open(filename, O_RDONLY)) == -1)
crypto/openssh/authfile.c
123
r = sshkey_perm_ok(fd, filename);
crypto/openssh/authfile.c
134
sshkey_load_private(const char *filename, const char *passphrase,
crypto/openssh/authfile.c
137
return sshkey_load_private_type(KEY_UNSPEC, filename, passphrase,
crypto/openssh/authfile.c
164
sshkey_load_pubkey_from_private(const char *filename, struct sshkey **pubkeyp)
crypto/openssh/authfile.c
173
if ((fd = open(filename, O_RDONLY)) == -1)
crypto/openssh/authfile.c
193
sshkey_try_load_public(struct sshkey **kp, const char *filename,
crypto/openssh/authfile.c
208
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/authfile.c
210
if (stat(filename, &st) == 0 && S_ISREG(st.st_mode) &&
crypto/openssh/authfile.c
239
cp : filename);
crypto/openssh/authfile.c
259
sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp)
crypto/openssh/authfile.c
269
if ((r = sshkey_try_load_public(keyp, filename, commentp)) == 0)
crypto/openssh/authfile.c
273
if (asprintf(&pubfile, "%s.pub", filename) == -1)
crypto/openssh/authfile.c
279
if ((r = sshkey_load_pubkey_from_private(filename, keyp)) == 0)
crypto/openssh/authfile.c
295
sshkey_load_cert(const char *filename, struct sshkey **keyp)
crypto/openssh/authfile.c
304
if (asprintf(&file, "%s-cert.pub", filename) == -1)
crypto/openssh/authfile.c
315
sshkey_load_private_cert(int type, const char *filename, const char *passphrase,
crypto/openssh/authfile.c
337
if ((r = sshkey_load_private_type(type, filename,
crypto/openssh/authfile.c
339
(r = sshkey_load_cert(filename, &cert)) != 0)
crypto/openssh/authfile.c
371
sshkey_in_file(struct sshkey *key, const char *filename, int strict_type,
crypto/openssh/authfile.c
383
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/authfile.c
48
sshkey_save_private_blob(struct sshbuf *keybuf, const char *filename)
crypto/openssh/authfile.c
54
r = sshbuf_write_file(filename, keybuf);
crypto/openssh/authfile.c
60
sshkey_save_private(struct sshkey *key, const char *filename,
crypto/openssh/authfile.c
72
if ((r = sshkey_save_private_blob(keyblob, filename)) != 0)
crypto/openssh/authfile.c
82
sshkey_perm_ok(int fd, const char *filename)
crypto/openssh/authfile.c
94
if (check_ntsec(filename))
crypto/openssh/dh.c
49
void dh_set_moduli_file(const char *filename)
crypto/openssh/dh.c
51
moduli_filename = filename;
crypto/openssh/gss-serv-krb5.c
183
client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache));
crypto/openssh/gss-serv-krb5.c
185
len = strlen(client->store.filename) + 6;
crypto/openssh/gss-serv-krb5.c
187
snprintf(client->store.envval, len, "FILE:%s", client->store.filename);
crypto/openssh/gss-serv.c
324
if (gssapi_client.store.filename != NULL) {
crypto/openssh/gss-serv.c
327
gssapi_client.store.filename);
crypto/openssh/gss-serv.c
328
unlink(gssapi_client.store.filename);
crypto/openssh/hostfile.c
504
hostfile_create_user_ssh_dir(const char *filename, int notify)
crypto/openssh/hostfile.c
510
if ((p = strrchr(filename, '/')) == NULL)
crypto/openssh/hostfile.c
512
len = p - filename;
crypto/openssh/hostfile.c
514
if (strlen(dotsshdir) > len || strncmp(filename, dotsshdir, len) != 0)
crypto/openssh/hostfile.c
542
add_host_to_hostfile(const char *filename, const char *host,
crypto/openssh/hostfile.c
550
hostfile_create_user_ssh_dir(filename, 0);
crypto/openssh/hostfile.c
551
if ((f = fopen(filename, "a+")) == NULL)
crypto/openssh/hostfile.c
559
filename, strerror(errno));
crypto/openssh/hostfile.c
623
hostfile_replace_entries(const char *filename, const char *host, const char *ip,
crypto/openssh/hostfile.c
651
if ((r = asprintf(&temp, "%s.XXXXXXXXXXX", filename)) == -1 ||
crypto/openssh/hostfile.c
652
(r = asprintf(&back, "%s.old", filename)) == -1) {
crypto/openssh/hostfile.c
672
if ((r = hostkeys_foreach(filename, host_delete, &ctx, host, ip,
crypto/openssh/hostfile.c
715
host, ip == NULL ? "" : ",", ip == NULL ? "" : ip, filename,
crypto/openssh/hostfile.c
732
if (link(filename, back) == -1) {
crypto/openssh/hostfile.c
734
error_f("link %.100s to %.100s: %s", filename,
crypto/openssh/hostfile.c
739
if (rename(temp, filename) == -1) {
crypto/openssh/hostfile.c
742
filename, strerror(errno));
crypto/openssh/hostfile.h
55
int hostfile_replace_entries(const char *filename,
crypto/openssh/misc.c
1263
tilde_expand(const char *filename, uid_t uid, char **retp)
crypto/openssh/misc.c
1272
if (*filename != '~') {
crypto/openssh/misc.c
1273
*retp = xstrdup(filename);
crypto/openssh/misc.c
1276
ocopy = copy = xstrdup(filename + 1);
crypto/openssh/misc.c
1331
tilde_expand_filename(const char *filename, uid_t uid)
crypto/openssh/misc.c
1335
if (tilde_expand(filename, uid, &ret) != 0)
crypto/openssh/openbsd-compat/bsd-cygwin_util.c
47
binary_open(const char *filename, int flags, ...)
crypto/openssh/openbsd-compat/bsd-cygwin_util.c
55
return (open(filename, flags | O_BINARY, mode));
crypto/openssh/openbsd-compat/bsd-cygwin_util.c
59
check_ntsec(const char *filename)
crypto/openssh/openbsd-compat/bsd-cygwin_util.c
61
return (pathconf(filename, _PC_POSIX_PERMISSIONS));
crypto/openssh/openbsd-compat/bsd-misc.c
109
int utimes(const char *filename, struct timeval *tvp)
crypto/openssh/openbsd-compat/bsd-misc.c
116
return (utime(filename, &ub));
crypto/openssh/readconf.c
1103
parse_multistate_value(const char *arg, const char *filename, int linenum,
crypto/openssh/readconf.c
1109
error("%s line %d: missing argument.", filename, linenum);
crypto/openssh/readconf.c
1126
const char *filename, int linenum, int *activep, int flags)
crypto/openssh/readconf.c
1129
remote_command, line, filename, linenum, activep, flags, NULL, 0);
crypto/openssh/readconf.c
1136
const char *filename, int linenum, int *activep, int flags,
crypto/openssh/readconf.c
1191
filename, linenum, keyword);
crypto/openssh/readconf.c
1194
opcode = parse_token(keyword, filename, linenum,
crypto/openssh/readconf.c
1197
error("%s line %d: invalid quotes", filename, linenum);
crypto/openssh/readconf.c
1212
filename, linenum, keyword);
crypto/openssh/readconf.c
122
static int read_config_file_depth(const char *filename, struct passwd *pw,
crypto/openssh/readconf.c
1221
filename, linenum);
crypto/openssh/readconf.c
1228
filename, linenum);
crypto/openssh/readconf.c
1241
filename, linenum);
crypto/openssh/readconf.c
127
char *line, const char *filename, int linenum, int *activep, int flags,
crypto/openssh/readconf.c
1271
if ((value = parse_multistate_value(arg, filename, linenum,
crypto/openssh/readconf.c
1274
filename, linenum, arg);
crypto/openssh/readconf.c
1364
error("%.200s line %d: Missing argument.", filename,
crypto/openssh/readconf.c
1373
filename, linenum, arg, strerror(errno));
crypto/openssh/readconf.c
1378
filename, linenum);
crypto/openssh/readconf.c
1398
filename, linenum);
crypto/openssh/readconf.c
1405
"specified (max %d).", filename, linenum,
crypto/openssh/readconf.c
1418
filename, linenum);
crypto/openssh/readconf.c
1426
filename, linenum,
crypto/openssh/readconf.c
1445
filename, linenum);
crypto/openssh/readconf.c
1462
filename, linenum, keyword);
crypto/openssh/readconf.c
1470
filename, linenum, keyword);
crypto/openssh/readconf.c
1478
"entries.", filename, linenum,
crypto/openssh/readconf.c
1534
filename, linenum);
crypto/openssh/readconf.c
1546
filename, linenum);
crypto/openssh/readconf.c
1553
filename, linenum, str + len);
crypto/openssh/readconf.c
1563
filename, linenum);
crypto/openssh/readconf.c
1569
filename, linenum, arg);
crypto/openssh/readconf.c
1582
filename, linenum, errstr);
crypto/openssh/readconf.c
1593
filename, linenum);
crypto/openssh/readconf.c
1599
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1610
filename, linenum);
crypto/openssh/readconf.c
1616
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1627
filename, linenum);
crypto/openssh/readconf.c
1634
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1648
filename, linenum);
crypto/openssh/readconf.c
1655
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1673
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1686
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/readconf.c
1700
filename, linenum, keyword);
crypto/openssh/readconf.c
1708
filename, linenum, keyword);
crypto/openssh/readconf.c
1727
filename, linenum);
crypto/openssh/readconf.c
1741
"argument.", filename, linenum);
crypto/openssh/readconf.c
1755
filename, linenum);
crypto/openssh/readconf.c
1780
filename, linenum, keyword, arg);
crypto/openssh/readconf.c
1788
filename, linenum,
crypto/openssh/readconf.c
1799
"in %s", filename, linenum,
crypto/openssh/readconf.c
1803
opt_array_append(filename, linenum,
crypto/openssh/readconf.c
1810
filename, linenum, lookup_opcode_name(opcode));
crypto/openssh/readconf.c
1834
filename, linenum, keyword);
crypto/openssh/readconf.c
1848
"for %.100s", filename, linenum,
crypto/openssh/readconf.c
1861
filename, linenum, arg2);
crypto/openssh/readconf.c
1872
want_final_pass, filename, linenum);
crypto/openssh/readconf.c
1874
error("%.200s line %d: Bad Match condition", filename,
crypto/openssh/readconf.c
1886
filename, linenum);
crypto/openssh/readconf.c
1898
filename, linenum);
crypto/openssh/readconf.c
1931
filename, linenum);
crypto/openssh/readconf.c
1939
rm_env(options, arg, filename, linenum);
crypto/openssh/readconf.c
1942
opt_array_append(filename, linenum,
crypto/openssh/readconf.c
1948
filename, linenum, keyword);
crypto/openssh/readconf.c
1957
filename, linenum);
crypto/openssh/readconf.c
1962
"name \"%.64s\"", filename, linenum, arg);
crypto/openssh/readconf.c
1965
opt_array_append(filename, linenum,
crypto/openssh/readconf.c
1971
filename, linenum, keyword);
crypto/openssh/readconf.c
1996
" argument.", filename, linenum);
crypto/openssh/readconf.c
2009
filename, linenum);
crypto/openssh/readconf.c
2031
filename, linenum);
crypto/openssh/readconf.c
2037
filename, linenum);
crypto/openssh/readconf.c
2072
filename, linenum, keyword);
crypto/openssh/readconf.c
2081
filename, linenum, arg);
crypto/openssh/readconf.c
2093
filename, linenum, p);
crypto/openssh/readconf.c
2108
"files",filename, linenum, arg2);
crypto/openssh/readconf.c
2113
filename, linenum, arg2);
crypto/openssh/readconf.c
2120
"depth %d%s", filename, linenum,
crypto/openssh/readconf.c
2131
filename, linenum, gl.gl_pathv[i],
crypto/openssh/readconf.c
2154
filename, linenum, arg);
crypto/openssh/readconf.c
2160
" using DSCP values.", filename, linenum, arg);
crypto/openssh/readconf.c
2168
filename, linenum, arg);
crypto/openssh/readconf.c
2174
" using DSCP values.", filename, linenum, arg);
crypto/openssh/readconf.c
2217
filename, linenum, keyword);
crypto/openssh/readconf.c
2222
error("%s line %d: %s", filename, linenum,
crypto/openssh/readconf.c
2226
opt_array_append(filename, linenum, keyword,
crypto/openssh/readconf.c
2231
filename, linenum, keyword);
crypto/openssh/readconf.c
2252
filename, linenum, keyword);
crypto/openssh/readconf.c
2264
filename, linenum, arg);
crypto/openssh/readconf.c
2278
filename, linenum, keyword);
crypto/openssh/readconf.c
2306
"argument.", filename, linenum);
crypto/openssh/readconf.c
2312
error("%.200s line %d: Bad mask.", filename, linenum);
crypto/openssh/readconf.c
2329
filename, linenum, keyword);
crypto/openssh/readconf.c
2337
filename, linenum, keyword);
crypto/openssh/readconf.c
2341
opt_array_append(filename, linenum, keyword,
crypto/openssh/readconf.c
2346
filename, linenum, keyword);
crypto/openssh/readconf.c
2361
filename, linenum);
crypto/openssh/readconf.c
2366
filename, linenum, arg);
crypto/openssh/readconf.c
2391
value = parse_multistate_value(arg, filename, linenum,
crypto/openssh/readconf.c
2398
filename, linenum);
crypto/openssh/readconf.c
2404
filename, linenum);
crypto/openssh/readconf.c
2410
filename, linenum);
crypto/openssh/readconf.c
2424
filename, linenum);
crypto/openssh/readconf.c
2431
"%s.", filename, linenum, arg);
crypto/openssh/readconf.c
2439
filename, linenum, arg);
crypto/openssh/readconf.c
2464
filename, linenum);
crypto/openssh/readconf.c
2477
filename, linenum, errstr);
crypto/openssh/readconf.c
2482
filename, linenum);
crypto/openssh/readconf.c
2487
filename, linenum, arg);
crypto/openssh/readconf.c
2493
filename, linenum);
crypto/openssh/readconf.c
2509
filename, linenum, keyword);
crypto/openssh/readconf.c
2515
filename, linenum, arg);
crypto/openssh/readconf.c
2517
opt_array_append(filename, linenum, keyword,
crypto/openssh/readconf.c
2522
filename, linenum, keyword);
crypto/openssh/readconf.c
2535
filename, linenum, keyword);
crypto/openssh/readconf.c
2539
filename, linenum, keyword);
crypto/openssh/readconf.c
2558
filename, linenum);
crypto/openssh/readconf.c
2563
filename, linenum, arg);
crypto/openssh/readconf.c
2569
filename, linenum, keyword);
crypto/openssh/readconf.c
2575
filename, linenum, keyword);
crypto/openssh/readconf.c
2581
filename, linenum, opcode);
crypto/openssh/readconf.c
2588
"at end of line", filename, linenum, keyword);
crypto/openssh/readconf.c
2607
read_config_file(const char *filename, struct passwd *pw, const char *host,
crypto/openssh/readconf.c
2613
return read_config_file_depth(filename, pw, host, original_host,
crypto/openssh/readconf.c
2619
read_config_file_depth(const char *filename, struct passwd *pw,
crypto/openssh/readconf.c
2632
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/readconf.c
2639
fatal("fstat %s: %s", filename, strerror(errno));
crypto/openssh/readconf.c
2642
fatal("Bad owner or permissions on %s", filename);
crypto/openssh/readconf.c
2645
debug("Reading configuration data %.200s", filename);
crypto/openssh/readconf.c
2661
remote_command, line, filename, linenum, activep, flags,
crypto/openssh/readconf.c
2669
filename, bad_options);
crypto/openssh/readconf.c
478
add_identity_file(Options *options, const char *dir, const char *filename,
crypto/openssh/readconf.c
489
path = xstrdup(filename);
crypto/openssh/readconf.c
490
else if (xasprintf(&path, "%s%s", dir, filename) >= PATH_MAX)
crypto/openssh/readconf.c
703
const char *filename, int linenum)
crypto/openssh/readconf.c
744
filename, linenum, oattrib);
crypto/openssh/readconf.c
770
filename, linenum,
crypto/openssh/readconf.c
789
filename, linenum, oattrib);
crypto/openssh/readconf.c
876
"exec '%.100s'", filename, linenum, arg);
crypto/openssh/readconf.c
881
"\"%.100s\"", filename, linenum, cmd);
crypto/openssh/readconf.c
888
"'%.100s' error", filename,
crypto/openssh/readconf.c
903
filename, linenum, this_result ? "": "not ", oattrib,
crypto/openssh/readconf.c
927
rm_env(Options *options, const char *arg, const char *filename, int linenum)
crypto/openssh/readconf.c
938
filename, linenum, options->send_env[i]);
crypto/openssh/readconf.c
959
parse_token(const char *cp, const char *filename, int linenum,
crypto/openssh/readconf.c
971
filename, linenum, cp);
crypto/openssh/scp.c
1326
char *target = NULL, *filename = NULL, *abs_dst = NULL;
crypto/openssh/scp.c
1335
if ((filename = basename(src)) == NULL)
crypto/openssh/scp.c
1339
if (strcmp(filename, "..") == 0)
crypto/openssh/scp.c
1340
filename = "."; /* Upload to dest, not dest/.. */
crypto/openssh/scp.c
1358
abs_dst = sftp_path_append(target, filename);
crypto/openssh/scp.c
1547
char *filename, *tmp = NULL;
crypto/openssh/scp.c
1609
if ((filename = basename(tmp)) == NULL) {
crypto/openssh/scp.c
1616
if (strcmp(filename, "..") == 0)
crypto/openssh/scp.c
1617
filename = "."; /* Download to dest, not dest/.. */
crypto/openssh/scp.c
1620
abs_dst = sftp_path_append(dst, filename);
crypto/openssh/scp.c
1989
char *target = NULL, *filename = NULL, *abs_dst = NULL;
crypto/openssh/scp.c
1994
if ((filename = basename(src)) == NULL)
crypto/openssh/scp.c
2036
if ((filename = basename(tmp)) == NULL) {
crypto/openssh/scp.c
2043
if (strcmp(filename, "..") == 0)
crypto/openssh/scp.c
2044
filename = "."; /* Download to dest, not dest/.. */
crypto/openssh/scp.c
2047
abs_dst = sftp_path_append(target, filename);
crypto/openssh/servconf.c
1106
const char *filename, int linenum, int *activep,
crypto/openssh/servconf.c
1149
filename, linenum, keyword);
crypto/openssh/servconf.c
1154
opcode = parse_token(keyword, filename, linenum, &flags);
crypto/openssh/servconf.c
1157
error("%s line %d: invalid quotes", filename, linenum);
crypto/openssh/servconf.c
1168
debug3("%s:%d setting %s %s", filename, linenum, keyword, str);
crypto/openssh/servconf.c
1172
"within a Match block", filename, linenum, keyword);
crypto/openssh/servconf.c
1190
filename, linenum);
crypto/openssh/servconf.c
1208
filename, linenum);
crypto/openssh/servconf.c
1212
filename, linenum);
crypto/openssh/servconf.c
1216
filename, linenum);
crypto/openssh/servconf.c
1225
filename, linenum);
crypto/openssh/servconf.c
1228
filename, linenum);
crypto/openssh/servconf.c
1237
filename, linenum);
crypto/openssh/servconf.c
1248
filename, linenum);
crypto/openssh/servconf.c
1254
filename, linenum);
crypto/openssh/servconf.c
1262
filename, linenum);
crypto/openssh/servconf.c
1265
filename, linenum);
crypto/openssh/servconf.c
1278
filename, linenum);
crypto/openssh/servconf.c
1288
filename, linenum, arg);
crypto/openssh/servconf.c
1297
filename, linenum);
crypto/openssh/servconf.c
1299
servconf_add_hostkey(filename, linenum,
crypto/openssh/servconf.c
1309
filename, linenum);
crypto/openssh/servconf.c
1319
filename, linenum);
crypto/openssh/servconf.c
1321
servconf_add_hostcert(filename, linenum, options, arg);
crypto/openssh/servconf.c
1330
filename, linenum);
crypto/openssh/servconf.c
1374
filename, linenum);
crypto/openssh/servconf.c
1379
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1416
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
1489
filename, linenum, keyword, errstr);
crypto/openssh/servconf.c
1528
filename, linenum, keyword);
crypto/openssh/servconf.c
1557
filename, linenum, keyword);
crypto/openssh/servconf.c
1563
filename, linenum, keyword,
crypto/openssh/servconf.c
1567
filename, linenum, keyword);
crypto/openssh/servconf.c
1596
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1607
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1617
filename, linenum, keyword);
crypto/openssh/servconf.c
1625
filename, linenum, keyword);
crypto/openssh/servconf.c
1629
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
1634
filename, linenum, keyword);
crypto/openssh/servconf.c
1671
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
1675
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
1680
filename, linenum, keyword);
crypto/openssh/servconf.c
1697
filename, linenum, keyword);
crypto/openssh/servconf.c
1701
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
1706
filename, linenum, keyword);
crypto/openssh/servconf.c
1719
filename, linenum, keyword);
crypto/openssh/servconf.c
1723
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1732
filename, linenum, keyword);
crypto/openssh/servconf.c
1736
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1745
filename, linenum, keyword);
crypto/openssh/servconf.c
1750
filename, linenum, arg ? arg : "<NONE>");
crypto/openssh/servconf.c
1759
filename, linenum, keyword);
crypto/openssh/servconf.c
1773
filename, linenum, arg);
crypto/openssh/servconf.c
1807
filename, linenum, keyword);
crypto/openssh/servconf.c
1813
filename, linenum, keyword);
crypto/openssh/servconf.c
1819
filename, linenum, keyword);
crypto/openssh/servconf.c
1823
filename, linenum, keyword);
crypto/openssh/servconf.c
1835
filename, linenum, keyword);
crypto/openssh/servconf.c
1847
filename, linenum, keyword);
crypto/openssh/servconf.c
1859
filename, linenum, keyword);
crypto/openssh/servconf.c
1865
filename, linenum, keyword, errstr);
crypto/openssh/servconf.c
1876
filename, linenum);
crypto/openssh/servconf.c
1880
filename, linenum, keyword);
crypto/openssh/servconf.c
1901
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
1927
filename, linenum, keyword, errstr);
crypto/openssh/servconf.c
1932
filename, linenum, keyword, errstr);
crypto/openssh/servconf.c
1947
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
1953
filename, linenum, keyword);
crypto/openssh/servconf.c
1966
filename, linenum);
crypto/openssh/servconf.c
1971
filename, linenum, keyword);
crypto/openssh/servconf.c
2001
filename, linenum, keyword);
crypto/openssh/servconf.c
2009
filename, linenum, keyword);
crypto/openssh/servconf.c
2014
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2020
filename, linenum, keyword);
crypto/openssh/servconf.c
2035
filename, linenum, keyword);
crypto/openssh/servconf.c
2057
filename, linenum);
crypto/openssh/servconf.c
2061
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2067
filename, linenum, keyword);
crypto/openssh/servconf.c
2076
filename, linenum);
crypto/openssh/servconf.c
2079
"name \"%.64s\"", filename, linenum, arg);
crypto/openssh/servconf.c
2082
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2087
filename, linenum, keyword);
crypto/openssh/servconf.c
2102
filename, linenum, keyword);
crypto/openssh/servconf.c
2111
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
2125
filename, linenum, keyword);
crypto/openssh/servconf.c
2145
if (item->filename != NULL) {
crypto/openssh/servconf.c
2147
item->filename, item->contents,
crypto/openssh/servconf.c
2164
filename, linenum, arg);
crypto/openssh/servconf.c
2168
"failed", filename, linenum, arg);
crypto/openssh/servconf.c
2175
filename, linenum, arg);
crypto/openssh/servconf.c
2185
filename, linenum, gbuf.gl_pathv[n]);
crypto/openssh/servconf.c
2188
item->filename = xstrdup(gbuf.gl_pathv[n]);
crypto/openssh/servconf.c
2191
load_server_config(item->filename,
crypto/openssh/servconf.c
2194
item->filename, item->contents,
crypto/openssh/servconf.c
2208
filename, linenum, keyword);
crypto/openssh/servconf.c
2219
fatal("%s line %d: Bad Match condition", filename,
crypto/openssh/servconf.c
2245
filename, linenum, arg, keyword);
crypto/openssh/servconf.c
2247
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2264
filename, linenum, keyword);
crypto/openssh/servconf.c
2271
filename, linenum, keyword);
crypto/openssh/servconf.c
2273
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2279
filename, linenum, keyword);
crypto/openssh/servconf.c
2292
filename, linenum, keyword);
crypto/openssh/servconf.c
2305
filename, linenum, keyword);
crypto/openssh/servconf.c
2324
filename, linenum, keyword);
crypto/openssh/servconf.c
2338
filename, linenum, keyword);
crypto/openssh/servconf.c
2341
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
2345
" using DSCP values.", filename, linenum, arg);
crypto/openssh/servconf.c
2353
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
2357
" using DSCP values.", filename, linenum, arg);
crypto/openssh/servconf.c
2369
filename, linenum, keyword);
crypto/openssh/servconf.c
2373
filename, linenum, keyword);
crypto/openssh/servconf.c
2394
filename, linenum, keyword);
crypto/openssh/servconf.c
2407
filename, linenum, keyword);
crypto/openssh/servconf.c
2429
filename, linenum, keyword);
crypto/openssh/servconf.c
2434
"alone in %s", filename, linenum, keyword);
crypto/openssh/servconf.c
2437
filename, linenum, keyword);
crypto/openssh/servconf.c
2439
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2444
filename, linenum, keyword);
crypto/openssh/servconf.c
2458
filename, linenum, keyword);
crypto/openssh/servconf.c
2463
filename, linenum, keyword);
crypto/openssh/servconf.c
2476
filename, linenum, keyword);
crypto/openssh/servconf.c
2479
filename, linenum, keyword, arg);
crypto/openssh/servconf.c
2491
"platform.", filename, linenum);
crypto/openssh/servconf.c
2497
filename, linenum, keyword);
crypto/openssh/servconf.c
2501
filename, linenum);
crypto/openssh/servconf.c
2518
filename, linenum, keyword);
crypto/openssh/servconf.c
2524
filename, linenum, arg);
crypto/openssh/servconf.c
2526
opt_array_append(filename, linenum, keyword,
crypto/openssh/servconf.c
2531
filename, linenum, keyword);
crypto/openssh/servconf.c
2574
"%s line %d: %s option %s", filename, linenum,
crypto/openssh/servconf.c
2582
filename, linenum, keyword, opcode);
crypto/openssh/servconf.c
2587
"at end of line", filename, linenum, keyword);
crypto/openssh/servconf.c
2601
const char *filename, int linenum, int *activep,
crypto/openssh/servconf.c
2606
return process_server_config_line_depth(options, line, filename,
crypto/openssh/servconf.c
2614
load_server_config(const char *filename, struct sshbuf *conf)
crypto/openssh/servconf.c
2622
debug2_f("filename %s", filename);
crypto/openssh/servconf.c
2623
if ((f = fopen(filename, "r")) == NULL) {
crypto/openssh/servconf.c
2624
perror(filename);
crypto/openssh/servconf.c
3993
parse_server_config_depth(ServerOptions *options, const char *filename,
crypto/openssh/servconf.c
4003
debug2_f("config %s len %zu%s", filename, sshbuf_len(conf),
crypto/openssh/servconf.c
4011
filename, linenum++, activep, connectinfo, &flags,
crypto/openssh/servconf.c
4018
filename, bad_options);
crypto/openssh/servconf.c
4022
parse_server_config(ServerOptions *options, const char *filename,
crypto/openssh/servconf.c
4027
parse_server_config_depth(options, filename, conf, includes,
crypto/openssh/servconf.c
574
parse_token(const char *cp, const char *filename,
crypto/openssh/servconf.c
586
filename, linenum, cp);
crypto/openssh/servconf.c
77
const char *filename, struct sshbuf *conf, struct include_list *includes,
crypto/openssh/servconf.h
424
char *filename;
crypto/openssh/session.c
797
const char *filename, const char *allowlist)
crypto/openssh/session.c
804
f = fopen(filename, "r");
crypto/openssh/session.c
810
fatal("Too many lines in environment file %s", filename);
crypto/openssh/session.c
821
filename);
crypto/openssh/sftp-client.c
1051
if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 ||
crypto/openssh/sftp-client.c
1056
debug3("%s %s -> %s", what, path, filename);
crypto/openssh/sftp-client.c
1062
return(filename);
crypto/openssh/sftp-client.c
1359
char *filename, *longname;
crypto/openssh/sftp-client.c
1397
if ((r = sshbuf_get_cstring(msg, &filename, NULL)) != 0 ||
crypto/openssh/sftp-client.c
1402
debug3("SSH_FXP_READLINK %s -> %s", path, filename);
crypto/openssh/sftp-client.c
1408
return filename;
crypto/openssh/sftp-client.c
1887
char *filename, *new_src = NULL, *new_dst = NULL;
crypto/openssh/sftp-client.c
1934
filename = dir_entries[i]->filename;
crypto/openssh/sftp-client.c
1935
new_dst = sftp_path_append(dst, filename);
crypto/openssh/sftp-client.c
1936
new_src = sftp_path_append(src, filename);
crypto/openssh/sftp-client.c
1955
if (strcmp(filename, ".") == 0 ||
crypto/openssh/sftp-client.c
1956
strcmp(filename, "..") == 0)
crypto/openssh/sftp-client.c
2250
char *filename, *new_src = NULL, *new_dst = NULL;
crypto/openssh/sftp-client.c
2310
filename = dp->d_name;
crypto/openssh/sftp-client.c
2311
new_dst = sftp_path_append(dst, filename);
crypto/openssh/sftp-client.c
2312
new_src = sftp_path_append(src, filename);
crypto/openssh/sftp-client.c
2314
if (strcmp(filename, ".") == 0 || strcmp(filename, "..") == 0)
crypto/openssh/sftp-client.c
2317
logit("local lstat \"%s\": %s", filename,
crypto/openssh/sftp-client.c
2324
logit("%s: not a regular file", filename);
crypto/openssh/sftp-client.c
2329
logit("local stat \"%s\": %s", filename,
crypto/openssh/sftp-client.c
2349
logit("%s: not a regular file", filename);
crypto/openssh/sftp-client.c
2708
char *filename, *new_from_path = NULL, *new_to_path = NULL;
crypto/openssh/sftp-client.c
2773
filename = dir_entries[i]->filename;
crypto/openssh/sftp-client.c
2774
new_from_path = sftp_path_append(from_path, filename);
crypto/openssh/sftp-client.c
2775
new_to_path = sftp_path_append(to_path, filename);
crypto/openssh/sftp-client.c
2780
logit("%s: not a regular file", filename);
crypto/openssh/sftp-client.c
2793
if (strcmp(filename, ".") == 0 ||
crypto/openssh/sftp-client.c
2794
strcmp(filename, "..") == 0)
crypto/openssh/sftp-client.c
771
char *filename, *longname;
crypto/openssh/sftp-client.c
774
if ((r = sshbuf_get_cstring(msg, &filename,
crypto/openssh/sftp-client.c
781
free(filename);
crypto/openssh/sftp-client.c
794
if (strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) {
crypto/openssh/sftp-client.c
796
"during readdir of \"%s\"", filename, path);
crypto/openssh/sftp-client.c
800
(*dir)[ents]->filename = xstrdup(filename);
crypto/openssh/sftp-client.c
805
free(filename);
crypto/openssh/sftp-client.c
843
free(s[i]->filename);
crypto/openssh/sftp-client.c
995
char *filename, *longname;
crypto/openssh/sftp-client.h
27
char *filename;
crypto/openssh/sftp-glob.c
83
strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN);
crypto/openssh/sftp-glob.c
85
strlcpy(ret->d_name, od->dir[od->offset++]->filename,
crypto/openssh/sftp.c
640
char *filename, *abs_src = NULL, *abs_dst = NULL, *tmp = NULL;
crypto/openssh/sftp.c
671
if ((filename = basename(tmp)) == NULL) {
crypto/openssh/sftp.c
679
if (strcmp(filename, "..") == 0)
crypto/openssh/sftp.c
680
filename = "."; /* Download to dest, not dest/.. */
crypto/openssh/sftp.c
684
abs_dst = sftp_path_append(dst, filename);
crypto/openssh/sftp.c
689
abs_dst = sftp_path_append(dst, filename);
crypto/openssh/sftp.c
691
abs_dst = xstrdup(filename);
crypto/openssh/sftp.c
731
char *tmp = NULL, *filename = NULL;
crypto/openssh/sftp.c
770
if ((filename = basename(tmp)) == NULL) {
crypto/openssh/sftp.c
777
if (strcmp(filename, "..") == 0)
crypto/openssh/sftp.c
778
filename = "."; /* Upload to dest, not dest/.. */
crypto/openssh/sftp.c
785
abs_dst = sftp_path_append(tmp_dst, filename);
crypto/openssh/sftp.c
789
abs_dst = sftp_path_append(tmp_dst, filename);
crypto/openssh/sftp.c
791
abs_dst = sftp_make_absolute(xstrdup(filename), pwd);
crypto/openssh/sftp.c
833
return (rmul * strcmp(a->filename, b->filename));
crypto/openssh/sftp.c
861
if (d[n]->filename[0] != '.' || (lflag & LS_SHOW_ALL))
crypto/openssh/sftp.c
862
m = MAXIMUM(m, strlen(d[n]->filename));
crypto/openssh/sftp.c
890
if (d[n]->filename[0] == '.' && !(lflag & LS_SHOW_ALL))
crypto/openssh/sftp.c
893
tmp = sftp_path_append(path, d[n]->filename);
crypto/openssh/ssh-add.c
166
delete_file(int agent_fd, const char *filename, int key_only,
crypto/openssh/ssh-add.c
173
if (strcmp(filename, "-") == 0)
crypto/openssh/ssh-add.c
176
if ((r = sshkey_load_public(filename, &public, &comment)) != 0) {
crypto/openssh/ssh-add.c
177
printf("Bad key file %s: %s\n", filename, ssh_err(r));
crypto/openssh/ssh-add.c
183
if (delete_one(agent_fd, public, comment, filename, qflag) == 0)
crypto/openssh/ssh-add.c
193
xasprintf(&certpath, "%s-cert.pub", filename);
crypto/openssh/ssh-add.c
202
certpath, filename);
crypto/openssh/ssh-add.c
276
add_file(int agent_fd, const char *filename, int key_only, int cert_only,
crypto/openssh/ssh-add.c
287
if (strcmp(filename, "-") == 0) {
crypto/openssh/ssh-add.c
289
filename = "(stdin)";
crypto/openssh/ssh-add.c
290
} else if ((fd = open(filename, O_RDONLY)) == -1) {
crypto/openssh/ssh-add.c
291
perror(filename);
crypto/openssh/ssh-add.c
300
if (sshkey_perm_ok(fd, filename) != 0) {
crypto/openssh/ssh-add.c
307
filename, ssh_err(r));
crypto/openssh/ssh-add.c
318
filename, ssh_err(r));
crypto/openssh/ssh-add.c
326
filename, ssh_err(r));
crypto/openssh/ssh-add.c
334
filename, confirm ? " (will confirm each use)" : "");
crypto/openssh/ssh-add.c
345
filename, ssh_err(r));
crypto/openssh/ssh-add.c
353
"Bad passphrase, try again for %s%s: ", filename,
crypto/openssh/ssh-add.c
358
comment = xstrdup(filename);
crypto/openssh/ssh-add.c
364
"without provider\n", filename);
crypto/openssh/ssh-add.c
379
filename, comment);
crypto/openssh/ssh-add.c
391
filename, ssh_err(r));
crypto/openssh/ssh-add.c
400
xasprintf(&certpath, "%s-cert.pub", filename);
crypto/openssh/ssh-add.c
410
certpath, filename);
crypto/openssh/ssh-add.c
497
test_key(int agent_fd, const char *filename)
crypto/openssh/ssh-add.c
506
if ((r = sshkey_load_public(filename, &key, NULL)) != 0) {
crypto/openssh/ssh-add.c
507
error_r(r, "Couldn't read public key %s", filename);
crypto/openssh/ssh-add.c
515
error_r(r, "Agent signature failed for %s", filename);
crypto/openssh/ssh-add.c
520
error_r(r, "Signature verification failed for %s", filename);
crypto/openssh/ssh-gss.h
65
char *filename;
crypto/openssh/ssh-keygen.c
227
confirm_overwrite(const char *filename)
crypto/openssh/ssh-keygen.c
232
if (stat(filename, &st) != 0)
crypto/openssh/ssh-keygen.c
234
printf("%s already exists.\n", filename);
crypto/openssh/ssh-keygen.c
2539
sign_one(struct sshkey *signkey, const char *filename, int fd,
crypto/openssh/ssh-keygen.c
2552
fprintf(stderr, "Signing file %s\n", filename);
crypto/openssh/ssh-keygen.c
2573
error_r(r, "Signing %s failed", filename);
crypto/openssh/ssh-keygen.c
2590
xasprintf(&wfile, "%s.sig", filename);
crypto/openssh/ssh-keygen.c
297
load_identity(const char *filename, char **commentp)
crypto/openssh/ssh-keygen.c
305
if ((r = sshkey_load_private(filename, "", &prv, commentp)) == 0)
crypto/openssh/ssh-keygen.c
308
fatal_r(r, "Load key \"%s\"", filename);
crypto/openssh/ssh-keygen.c
312
xasprintf(&prompt, "Enter passphrase for \"%s\": ", filename);
crypto/openssh/ssh-keygen.c
316
r = sshkey_load_private(filename, pass, &prv, commentp);
crypto/openssh/ssh-keygen.c
319
fatal_r(r, "Load key \"%s\"", filename);
crypto/openssh/ssh.c
2351
char *filename, *cp;
crypto/openssh/ssh.c
2405
filename = default_client_percent_dollar_expand(cp, cinfo);
crypto/openssh/ssh.c
2407
check_load(sshkey_load_public(filename, &public, NULL),
crypto/openssh/ssh.c
2408
&public, filename, "pubkey");
crypto/openssh/ssh.c
2409
debug("identity file %s type %d", filename,
crypto/openssh/ssh.c
2412
identity_files[n_ids] = filename;
crypto/openssh/ssh.c
2425
xasprintf(&cp, "%s-cert", filename);
crypto/openssh/ssh.c
2427
&public, filename, "identity pubkey");
crypto/openssh/ssh.c
2441
identity_files[n_ids] = xstrdup(filename);
crypto/openssh/ssh.c
2453
filename = default_client_percent_dollar_expand(cp, cinfo);
crypto/openssh/ssh.c
2456
check_load(sshkey_load_public(filename, &public, NULL),
crypto/openssh/ssh.c
2457
&public, filename, "identity cert");
crypto/openssh/ssh.c
2461
free(filename);
crypto/openssh/ssh.c
2466
filename, sshkey_type(public));
crypto/openssh/ssh.c
2468
free(filename);
crypto/openssh/ssh.c
2471
certificate_files[n_certs] = filename;
crypto/openssh/sshconnect2.c
1242
id->filename);
crypto/openssh/sshconnect2.c
1270
sshkey_type(sign_key), id->filename);
crypto/openssh/sshconnect2.c
1302
size_t len = strlen(id->filename), plen = strlen(private_id->filename);
crypto/openssh/sshconnect2.c
1305
if (strcmp(id->filename, private_id->filename) == 0)
crypto/openssh/sshconnect2.c
1310
strcmp(id->filename + (len - slen), suffixes[i]) == 0 &&
crypto/openssh/sshconnect2.c
1311
memcmp(id->filename, private_id->filename, plen) == 0)
crypto/openssh/sshconnect2.c
1379
"certificate", sign_id->filename,
crypto/openssh/sshconnect2.c
1383
"\"%s\"", id->filename);
crypto/openssh/sshconnect2.c
1454
sshkey_type(sign_id->key), sign_id->filename,
crypto/openssh/sshconnect2.c
1537
if (stat(id->filename, &st) == -1) {
crypto/openssh/sshconnect2.c
1540
"no such identity: %s: %s", id->filename, strerror(errno));
crypto/openssh/sshconnect2.c
1544
"Enter passphrase for key '%.100s': ", id->filename);
crypto/openssh/sshconnect2.c
1556
switch ((r = sshkey_load_private_type(KEY_UNSPEC, id->filename,
crypto/openssh/sshconnect2.c
1570
debug2_r(r, "Load key \"%s\"", id->filename);
crypto/openssh/sshconnect2.c
1576
error_r(r, "Load key \"%s\"", id->filename);
crypto/openssh/sshconnect2.c
1583
"but no provider specified", id->filename);
crypto/openssh/sshconnect2.c
1590
debug_fr(r, "Skipping key %s", id->filename);
crypto/openssh/sshconnect2.c
1597
maybe_add_key_to_agent(id->filename, private, comment,
crypto/openssh/sshconnect2.c
1714
id->filename = xstrdup(options.identity_files[i]);
crypto/openssh/sshconnect2.c
1737
id->filename = xstrdup(options.certificate_files[i]);
crypto/openssh/sshconnect2.c
1768
id->filename = idlist->comments[j];
crypto/openssh/sshconnect2.c
1813
sshkey_ssh_name(id->key), id->filename);
crypto/openssh/sshconnect2.c
1819
sshkey_ssh_name(id->key), id->filename);
crypto/openssh/sshconnect2.c
1828
free(id->filename);
crypto/openssh/sshconnect2.c
1854
free(id->filename);
crypto/openssh/sshconnect2.c
1899
debug("Trying private key: %s", id->filename);
crypto/openssh/sshconnect2.c
309
char *filename; /* comment for agent-only keys */
crypto/openssh/sshconnect2.c
674
id->filename,
crypto/openssh/sshd-session.c
677
(r = sshbuf_get_cstring(inc, &item->filename, NULL)) != 0 ||
crypto/openssh/sshd.c
748
(r = sshbuf_put_cstring(inc, item->filename)) != 0 ||
crypto/openssl/apps/include/apps.h
63
BIO *bio_open_owner(const char *filename, int format, int private);
crypto/openssl/apps/include/apps.h
64
BIO *bio_open_default(const char *filename, char mode, int format);
crypto/openssl/apps/include/apps.h
65
BIO *bio_open_default_quiet(const char *filename, char mode, int format);
crypto/openssl/apps/include/apps.h
66
int mem_bio_to_file(BIO *in, const char *filename, int format, int private);
crypto/openssl/apps/include/apps.h
70
CONF *app_load_config_bio(BIO *in, const char *filename);
crypto/openssl/apps/include/apps.h
71
#define app_load_config(filename) app_load_config_internal(filename, 0)
crypto/openssl/apps/include/apps.h
72
#define app_load_config_quiet(filename) app_load_config_internal(filename, 1)
crypto/openssl/apps/include/apps.h
73
CONF *app_load_config_internal(const char *filename, int quiet);
crypto/openssl/apps/include/apps.h
74
CONF *app_load_config_verbose(const char *filename, int verbose);
crypto/openssl/apps/include/opt.h
404
const char *opt_path_end(const char *filename);
crypto/openssl/apps/lib/apps.c
3094
BIO *bio_open_owner(const char *filename, int format, int private)
crypto/openssl/apps/lib/apps.c
3103
if (!private || filename == NULL || strcmp(filename, "-") == 0)
crypto/openssl/apps/lib/apps.c
3104
return bio_open_default(filename, 'w', format);
crypto/openssl/apps/lib/apps.c
3131
fd = open(filename, mode, 0600, "ctx=bin");
crypto/openssl/apps/lib/apps.c
3134
fd = open(filename, mode, 0600);
crypto/openssl/apps/lib/apps.c
3140
fp = fopen(filename, modestr('w', format));
crypto/openssl/apps/lib/apps.c
3153
opt_getprog(), filename, strerror(errno));
crypto/openssl/apps/lib/apps.c
3165
static BIO *bio_open_default_(const char *filename, char mode, int format,
crypto/openssl/apps/lib/apps.c
3170
if (filename == NULL || strcmp(filename, "-") == 0) {
crypto/openssl/apps/lib/apps.c
3182
ret = BIO_new_file(filename, modestr(mode, format));
crypto/openssl/apps/lib/apps.c
3191
filename, modeverb(mode), strerror(errno));
crypto/openssl/apps/lib/apps.c
3197
BIO *bio_open_default(const char *filename, char mode, int format)
crypto/openssl/apps/lib/apps.c
3199
return bio_open_default_(filename, mode, format, 0);
crypto/openssl/apps/lib/apps.c
3202
BIO *bio_open_default_quiet(const char *filename, char mode, int format)
crypto/openssl/apps/lib/apps.c
3204
return bio_open_default_(filename, mode, format, 1);
crypto/openssl/apps/lib/apps.c
3207
int mem_bio_to_file(BIO *in, const char *filename, int format, int private)
crypto/openssl/apps/lib/apps.c
3218
out = bio_open_owner(filename, format, private);
crypto/openssl/apps/lib/apps.c
3223
BIO_printf(bio_err, "Error writing to output file: '%s'\n", filename);
crypto/openssl/apps/lib/apps.c
325
CONF *app_load_config_bio(BIO *in, const char *filename)
crypto/openssl/apps/lib/apps.c
342
if (filename != NULL)
crypto/openssl/apps/lib/apps.c
343
BIO_printf(bio_err, "config file \"%s\"\n", filename);
crypto/openssl/apps/lib/apps.c
351
CONF *app_load_config_verbose(const char *filename, int verbose)
crypto/openssl/apps/lib/apps.c
354
if (*filename == '\0')
crypto/openssl/apps/lib/apps.c
357
BIO_printf(bio_err, "Using configuration from %s\n", filename);
crypto/openssl/apps/lib/apps.c
359
return app_load_config_internal(filename, 0);
crypto/openssl/apps/lib/apps.c
362
CONF *app_load_config_internal(const char *filename, int quiet)
crypto/openssl/apps/lib/apps.c
367
if (filename == NULL || *filename != '\0') {
crypto/openssl/apps/lib/apps.c
368
if ((in = bio_open_default_(filename, 'r', FORMAT_TEXT, quiet)) == NULL)
crypto/openssl/apps/lib/apps.c
370
conf = app_load_config_bio(in, filename);
crypto/openssl/apps/lib/apps.c
68
static BIO *bio_open_default_(const char *filename, char mode, int format,
crypto/openssl/apps/lib/opt.c
121
const char *opt_path_end(const char *filename)
crypto/openssl/apps/lib/opt.c
126
for (p = filename + strlen(filename); --p > filename;)
crypto/openssl/apps/lib/opt.c
54
const char *opt_path_end(const char *filename)
crypto/openssl/apps/lib/opt.c
59
for (p = filename + strlen(filename); --p > filename;)
crypto/openssl/apps/lib/opt.c
91
const char *opt_path_end(const char *filename)
crypto/openssl/apps/lib/opt.c
96
for (p = filename + strlen(filename); --p > filename;)
crypto/openssl/apps/rehash.c
120
static int add_entry(enum Type type, unsigned int hash, const char *filename,
crypto/openssl/apps/rehash.c
147
type == TYPE_CERT ? "certificate" : "CRL", filename);
crypto/openssl/apps/rehash.c
150
if (strcmp(filename, ep->filename) == 0) {
crypto/openssl/apps/rehash.c
161
opt_getprog(), filename);
crypto/openssl/apps/rehash.c
167
ep->filename = OPENSSL_strdup(filename);
crypto/openssl/apps/rehash.c
168
if (ep->filename == NULL) {
crypto/openssl/apps/rehash.c
195
static int handle_symlink(const char *filename, const char *fullpath)
crypto/openssl/apps/rehash.c
204
ch = filename[i];
crypto/openssl/apps/rehash.c
210
if (filename[i++] != '.')
crypto/openssl/apps/rehash.c
213
if (OPENSSL_strncasecmp(&filename[i],
crypto/openssl/apps/rehash.c
220
id = strtoul(&filename[i], &endptr, 10);
crypto/openssl/apps/rehash.c
235
static int do_file(const char *filename, const char *fullpath, enum Hash h)
crypto/openssl/apps/rehash.c
247
if ((ext = strrchr(filename, '.')) == NULL)
crypto/openssl/apps/rehash.c
259
opt_getprog(), filename);
crypto/openssl/apps/rehash.c
272
opt_getprog(), filename);
crypto/openssl/apps/rehash.c
304
errs += add_entry(type, hash_value, filename, digest, 1, ~0);
crypto/openssl/apps/rehash.c
313
filename, digest, 1, ~0);
crypto/openssl/apps/rehash.c
358
const char *filename;
crypto/openssl/apps/rehash.c
380
while ((filename = OPENSSL_DIR_read(&d, dirname)) != NULL) {
crypto/openssl/apps/rehash.c
381
size_t fname_len = strlen(filename);
crypto/openssl/apps/rehash.c
383
if ((copy = OPENSSL_strdup(filename)) == NULL
crypto/openssl/apps/rehash.c
402
filename = sk_OPENSSL_STRING_value(files, n);
crypto/openssl/apps/rehash.c
404
dirname, pathsep, filename)
crypto/openssl/apps/rehash.c
409
if (S_ISLNK(st.st_mode) && handle_symlink(filename, buf) == 0)
crypto/openssl/apps/rehash.c
411
errs += do_file(filename, buf, h);
crypto/openssl/apps/rehash.c
431
ep->filename, buf);
crypto/openssl/apps/rehash.c
442
ep->filename, &buf[dirlen]);
crypto/openssl/apps/rehash.c
449
if (symlink(ep->filename, buf) < 0) {
crypto/openssl/apps/rehash.c
452
opt_getprog(), ep->filename,
crypto/openssl/apps/rehash.c
472
OPENSSL_free(ep->filename);
crypto/openssl/apps/rehash.c
72
char *filename;
crypto/openssl/crypto/bio/bss_file.c
428
BIO *BIO_new_file(const char *filename, const char *mode)
crypto/openssl/crypto/bio/bss_file.c
57
BIO *BIO_new_file(const char *filename, const char *mode)
crypto/openssl/crypto/bio/bss_file.c
60
FILE *file = openssl_fopen(filename, mode);
crypto/openssl/crypto/bio/bss_file.c
69
filename, mode);
crypto/openssl/crypto/bio/ossl_core_bio.c
82
OSSL_CORE_BIO *ossl_core_bio_new_file(const char *filename, const char *mode)
crypto/openssl/crypto/bio/ossl_core_bio.c
84
return core_bio_new_from_new_bio(BIO_new_file(filename, mode));
crypto/openssl/crypto/conf/conf_def.c
839
const char *filename;
crypto/openssl/crypto/conf/conf_def.c
843
while ((filename = OPENSSL_DIR_read(dirctx, path)) != NULL) {
crypto/openssl/crypto/conf/conf_def.c
846
namelen = strlen(filename);
crypto/openssl/crypto/conf/conf_def.c
849
&& OPENSSL_strcasecmp(filename + namelen - 5, ".conf") == 0)
crypto/openssl/crypto/conf/conf_def.c
851
&& OPENSSL_strcasecmp(filename + namelen - 4, ".cnf") == 0)) {
crypto/openssl/crypto/conf/conf_def.c
876
OPENSSL_strlcat(newpath, filename, newlen);
crypto/openssl/crypto/conf/conf_lib.c
431
const char *filename)
crypto/openssl/crypto/conf/conf_lib.c
435
if (filename != NULL) {
crypto/openssl/crypto/conf/conf_lib.c
436
newfilename = strdup(filename);
crypto/openssl/crypto/conf/conf_lib.c
441
free(settings->filename);
crypto/openssl/crypto/conf/conf_lib.c
442
settings->filename = newfilename;
crypto/openssl/crypto/conf/conf_lib.c
482
free(settings->filename);
crypto/openssl/crypto/conf/conf_mod.c
190
int CONF_modules_load_file_ex(OSSL_LIB_CTX *libctx, const char *filename,
crypto/openssl/crypto/conf/conf_mod.c
199
if (filename == NULL) {
crypto/openssl/crypto/conf/conf_mod.c
209
file = (char *)filename;
crypto/openssl/crypto/conf/conf_mod.c
228
if (filename == NULL)
crypto/openssl/crypto/conf/conf_mod.c
243
int CONF_modules_load_file(const char *filename,
crypto/openssl/crypto/conf/conf_mod.c
246
return CONF_modules_load_file_ex(NULL, filename, appname, flags);
crypto/openssl/crypto/conf/conf_sap.c
50
const char *filename;
crypto/openssl/crypto/conf/conf_sap.c
59
filename = settings ? settings->filename : NULL;
crypto/openssl/crypto/conf/conf_sap.c
66
filename, appname, flags);
crypto/openssl/crypto/conf/conf_sap.c
71
filename, appname, flags);
crypto/openssl/crypto/dso/dso_dl.c
211
static char *dl_name_converter(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_dl.c
216
len = strlen(filename);
crypto/openssl/crypto/dso/dso_dl.c
218
transform = (strchr(filename, '/') == NULL);
crypto/openssl/crypto/dso/dso_dl.c
22
static char *dl_name_converter(DSO *dso, const char *filename);
crypto/openssl/crypto/dso/dso_dl.c
235
filename, DSO_EXTENSION);
crypto/openssl/crypto/dso/dso_dl.c
237
BIO_snprintf(translated, rsize, "%s", filename);
crypto/openssl/crypto/dso/dso_dl.c
258
len = (int)strlen(inf.filename);
crypto/openssl/crypto/dso/dso_dl.c
263
memcpy(path, inf.filename, len);
crypto/openssl/crypto/dso/dso_dl.c
61
char *filename = DSO_convert_filename(dso, NULL);
crypto/openssl/crypto/dso/dso_dl.c
63
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_dl.c
67
ptr = shl_load(filename, BIND_IMMEDIATE | (dso->flags & DSO_FLAG_NO_NAME_TRANSLATION ? 0 : DYNAMIC_PATH), 0L);
crypto/openssl/crypto/dso/dso_dl.c
73
"filename(%s): %s", filename, errbuf);
crypto/openssl/crypto/dso/dso_dl.c
76
"filename(%s): errno %d", filename, errno);
crypto/openssl/crypto/dso/dso_dl.c
87
dso->loaded_filename = filename;
crypto/openssl/crypto/dso/dso_dl.c
91
OPENSSL_free(filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
101
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_dlfcn.c
110
if (filename[strlen(filename) - 1] == ')')
crypto/openssl/crypto/dso/dso_dlfcn.c
113
ptr = dlopen(filename, flags);
crypto/openssl/crypto/dso/dso_dlfcn.c
116
"filename(%s): %s", filename, dlerror());
crypto/openssl/crypto/dso/dso_dlfcn.c
129
dso->loaded_filename = filename;
crypto/openssl/crypto/dso/dso_dlfcn.c
133
OPENSSL_free(filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
244
static char *dlfcn_name_converter(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_dlfcn.c
249
len = strlen(filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
251
transform = (strchr(filename, '/') == NULL);
crypto/openssl/crypto/dso/dso_dlfcn.c
265
BIO_snprintf(translated, rsize, "lib%s" DSO_EXTENSION, filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
267
BIO_snprintf(translated, rsize, "%s" DSO_EXTENSION, filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
269
BIO_snprintf(translated, rsize, "%s", filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
41
static char *dlfcn_name_converter(DSO *dso, const char *filename);
crypto/openssl/crypto/dso/dso_dlfcn.c
97
char *filename = DSO_convert_filename(dso, NULL);
crypto/openssl/crypto/dso/dso_lib.c
104
DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags)
crypto/openssl/crypto/dso/dso_lib.c
124
if (ret->filename != NULL) {
crypto/openssl/crypto/dso/dso_lib.c
132
if (filename != NULL)
crypto/openssl/crypto/dso/dso_lib.c
133
if (!DSO_set_filename(ret, filename)) {
crypto/openssl/crypto/dso/dso_lib.c
137
filename = ret->filename;
crypto/openssl/crypto/dso/dso_lib.c
138
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_lib.c
222
return dso->filename;
crypto/openssl/crypto/dso/dso_lib.c
225
int DSO_set_filename(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_lib.c
229
if ((dso == NULL) || (filename == NULL)) {
crypto/openssl/crypto/dso/dso_lib.c
238
copied = OPENSSL_strdup(filename);
crypto/openssl/crypto/dso/dso_lib.c
241
OPENSSL_free(dso->filename);
crypto/openssl/crypto/dso/dso_lib.c
242
dso->filename = copied;
crypto/openssl/crypto/dso/dso_lib.c
263
char *DSO_convert_filename(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_lib.c
271
if (filename == NULL)
crypto/openssl/crypto/dso/dso_lib.c
272
filename = dso->filename;
crypto/openssl/crypto/dso/dso_lib.c
273
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_lib.c
279
result = dso->name_converter(dso, filename);
crypto/openssl/crypto/dso/dso_lib.c
281
result = dso->meth->dso_name_converter(dso, filename);
crypto/openssl/crypto/dso/dso_lib.c
284
result = OPENSSL_strdup(filename);
crypto/openssl/crypto/dso/dso_lib.c
305
char *filename = NULL;
crypto/openssl/crypto/dso/dso_lib.c
311
filename = OPENSSL_malloc(len);
crypto/openssl/crypto/dso/dso_lib.c
312
if (filename != NULL
crypto/openssl/crypto/dso/dso_lib.c
313
&& DSO_pathbyaddr(addr, filename, len) == len)
crypto/openssl/crypto/dso/dso_lib.c
314
ret = DSO_load(NULL, filename, NULL, flags);
crypto/openssl/crypto/dso/dso_lib.c
316
OPENSSL_free(filename);
crypto/openssl/crypto/dso/dso_lib.c
75
OPENSSL_free(dso->filename);
crypto/openssl/crypto/dso/dso_local.h
51
char *filename;
crypto/openssl/crypto/dso/dso_vms.c
101
char *filename = DSO_convert_filename(dso, NULL);
crypto/openssl/crypto/dso/dso_vms.c
124
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_vms.c
150
sp1 = strrchr(filename, ']');
crypto/openssl/crypto/dso/dso_vms.c
151
sp2 = strrchr(filename, '>');
crypto/openssl/crypto/dso/dso_vms.c
157
sp1 = strrchr(filename, ':');
crypto/openssl/crypto/dso/dso_vms.c
159
sp1 = filename;
crypto/openssl/crypto/dso/dso_vms.c
187
|| (sp1 - filename) + strlen(sp2) > FILENAME_MAX) {
crypto/openssl/crypto/dso/dso_vms.c
196
strncpy(p->filename, sp1, sp2 - sp1);
crypto/openssl/crypto/dso/dso_vms.c
197
p->filename[sp2 - sp1] = '\0';
crypto/openssl/crypto/dso/dso_vms.c
199
strncpy(p->imagename, filename, sp1 - filename);
crypto/openssl/crypto/dso/dso_vms.c
200
p->imagename[sp1 - filename] = '\0';
crypto/openssl/crypto/dso/dso_vms.c
208
p->filename_dsc.dsc$w_length = strlen(p->filename);
crypto/openssl/crypto/dso/dso_vms.c
211
p->filename_dsc.dsc$a_pointer = p->filename;
crypto/openssl/crypto/dso/dso_vms.c
223
dso->loaded_filename = filename;
crypto/openssl/crypto/dso/dso_vms.c
228
OPENSSL_free(filename);
crypto/openssl/crypto/dso/dso_vms.c
356
symname, ptr->filename, ptr->imagename,
crypto/openssl/crypto/dso/dso_vms.c
361
symname, ptr->filename, errstring);
crypto/openssl/crypto/dso/dso_vms.c
466
static char *vms_name_converter(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_vms.c
472
len = strlen(filename);
crypto/openssl/crypto/dso/dso_vms.c
474
p = strchr(filename, ':');
crypto/openssl/crypto/dso/dso_vms.c
478
p = filename;
crypto/openssl/crypto/dso/dso_vms.c
486
p = strrchr(filename, ';');
crypto/openssl/crypto/dso/dso_vms.c
488
len = p - filename;
crypto/openssl/crypto/dso/dso_vms.c
489
strncpy(translated, filename, len);
crypto/openssl/crypto/dso/dso_vms.c
496
translated = OPENSSL_strdup(filename);
crypto/openssl/crypto/dso/dso_vms.c
53
static char *vms_name_converter(DSO *dso, const char *filename);
crypto/openssl/crypto/dso/dso_vms.c
83
char filename[NAMX_MAXRSS + 1];
crypto/openssl/crypto/dso/dso_win32.c
100
char *filename = DSO_convert_filename(dso, NULL);
crypto/openssl/crypto/dso/dso_win32.c
102
if (filename == NULL) {
crypto/openssl/crypto/dso/dso_win32.c
106
h = LoadLibraryA(filename);
crypto/openssl/crypto/dso/dso_win32.c
109
"filename(%s)", filename);
crypto/openssl/crypto/dso/dso_win32.c
121
dso->loaded_filename = filename;
crypto/openssl/crypto/dso/dso_win32.c
125
OPENSSL_free(filename);
crypto/openssl/crypto/dso/dso_win32.c
201
static struct file_st *win32_splitter(DSO *dso, const char *filename,
crypto/openssl/crypto/dso/dso_win32.c
208
const char *start = filename;
crypto/openssl/crypto/dso/dso_win32.c
211
if (!filename) {
crypto/openssl/crypto/dso/dso_win32.c
222
if ((filename[0] == '\\' && filename[1] == '\\')
crypto/openssl/crypto/dso/dso_win32.c
223
|| (filename[0] == '/' && filename[1] == '/')) {
crypto/openssl/crypto/dso/dso_win32.c
225
filename += 2;
crypto/openssl/crypto/dso/dso_win32.c
226
start = filename;
crypto/openssl/crypto/dso/dso_win32.c
231
last = filename[0];
crypto/openssl/crypto/dso/dso_win32.c
240
result->devicelen = (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
242
start = ++filename;
crypto/openssl/crypto/dso/dso_win32.c
248
result->nodelen = (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
250
start = ++filename;
crypto/openssl/crypto/dso/dso_win32.c
254
filename++;
crypto/openssl/crypto/dso/dso_win32.c
256
result->dirlen = (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
257
start = filename;
crypto/openssl/crypto/dso/dso_win32.c
259
filename++;
crypto/openssl/crypto/dso/dso_win32.c
260
result->dirlen += (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
261
start = filename;
crypto/openssl/crypto/dso/dso_win32.c
266
result->nodelen = (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
268
if (filename - start > 0) {
crypto/openssl/crypto/dso/dso_win32.c
274
result->dirlen += (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
277
result->filelen = (int)(filename - start);
crypto/openssl/crypto/dso/dso_win32.c
283
filename++;
crypto/openssl/crypto/dso/dso_win32.c
441
static char *win32_name_converter(DSO *dso, const char *filename)
crypto/openssl/crypto/dso/dso_win32.c
446
transform = ((strstr(filename, "/") == NULL) && (strstr(filename, "\\") == NULL) && (strstr(filename, ":") == NULL));
crypto/openssl/crypto/dso/dso_win32.c
449
len = strlen(filename) + 1;
crypto/openssl/crypto/dso/dso_win32.c
457
BIO_snprintf(translated, len, "%s%s", filename, transform ? ".dll" : "");
crypto/openssl/crypto/dso/dso_win32.c
64
static char *win32_name_converter(DSO *dso, const char *filename);
crypto/openssl/crypto/o_fopen.c
102
*iterator = *filename;
crypto/openssl/crypto/o_fopen.c
104
lastchar = *filename;
crypto/openssl/crypto/o_fopen.c
107
filename = newname;
crypto/openssl/crypto/o_fopen.c
109
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
114
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
121
void *openssl_fopen(const char *filename, const char *mode)
crypto/openssl/crypto/o_fopen.c
38
FILE *openssl_fopen(const char *filename, const char *mode)
crypto/openssl/crypto/o_fopen.c
46
if (filename == NULL)
crypto/openssl/crypto/o_fopen.c
49
len_0 = (int)strlen(filename) + 1;
crypto/openssl/crypto/o_fopen.c
64
filename, len_0, NULL, 0))
crypto/openssl/crypto/o_fopen.c
66
|| (GetLastError() == ERROR_INVALID_FLAGS && (sz = MultiByteToWideChar(CP_UTF8, (flags = 0), filename, len_0, NULL, 0)) > 0)) {
crypto/openssl/crypto/o_fopen.c
71
filename, len_0, wfilename, sz)
crypto/openssl/crypto/o_fopen.c
79
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
82
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
88
if (pathconf(filename, _PC_NAME_MAX) <= 12) { /* 8.3 file system? */
crypto/openssl/crypto/o_fopen.c
92
if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL)
crypto/openssl/crypto/o_fopen.c
96
*filename; filename++, iterator++) {
crypto/openssl/crypto/o_fopen.c
97
if (lastchar == '/' && filename[0] == '.'
crypto/openssl/crypto/o_fopen.c
98
&& filename[1] != '.' && filename[1] != '/') {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
767
char filename[PATH_MAX];
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
770
memset(filename, 0, PATH_MAX);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
772
strcat(filename, h3ssl->fileprefix);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
773
strcat(filename, h3ssl->url);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
779
if (stat(filename, &st) == 0) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
782
printf("get_file_length %s %lld\n", filename, (unsigned long long)st.st_size);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
786
printf("Can't get_file_length %s\n", filename);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
792
char filename[PATH_MAX];
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
800
memset(filename, 0, PATH_MAX);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
802
strcat(filename, h3ssl->fileprefix);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
803
strcat(filename, h3ssl->url);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
807
fd = open(filename, O_RDONLY);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
814
printf("read from %s : %zu\n", filename, size);
crypto/openssl/fuzz/test-corpus.c
69
const char *filename = NULL;
crypto/openssl/fuzz/test-corpus.c
77
while ((filename = OPENSSL_DIR_read(&ctx, argv[n])) != NULL) {
crypto/openssl/fuzz/test-corpus.c
90
strcpy(pathname + dirname_len, filename);
crypto/openssl/include/internal/bio.h
85
OSSL_CORE_BIO *ossl_core_bio_new_file(const char *filename, const char *mode);
crypto/openssl/include/internal/conf.h
20
char *filename;
crypto/openssl/include/internal/cryptlib.h
52
FILE *openssl_fopen(const char *filename, const char *mode);
crypto/openssl/include/internal/cryptlib.h
54
void *openssl_fopen(const char *filename, const char *mode);
crypto/openssl/include/internal/dso.h
108
char *DSO_convert_filename(DSO *dso, const char *filename);
crypto/openssl/include/internal/dso.h
124
DSO *DSO_load(DSO *dso, const char *filename, DSO_METHOD *meth, int flags);
crypto/openssl/include/internal/dso.h
97
int DSO_set_filename(DSO *dso, const char *filename);
crypto/openssl/include/internal/qlog.h
55
int ossl_qlog_set_sink_filename(QLOG *qlog, const char *filename);
crypto/openssl/include/openssl/bio.h
726
BIO *BIO_new_file(const char *filename, const char *mode);
crypto/openssl/include/openssl/conf.h
184
int CONF_modules_load_file_ex(OSSL_LIB_CTX *libctx, const char *filename,
crypto/openssl/include/openssl/conf.h
186
int CONF_modules_load_file(const char *filename, const char *appname,
crypto/openssl/include/openssl/core_dispatch.h
163
OSSL_CORE_MAKE_FUNC(OSSL_CORE_BIO *, BIO_new_file, (const char *filename, const char *mode))
crypto/openssl/providers/common/bio_prov.c
76
OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode)
crypto/openssl/providers/common/bio_prov.c
80
return c_bio_new_file(filename, mode);
crypto/openssl/providers/common/bio_prov.c
83
OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len)
crypto/openssl/providers/common/bio_prov.c
87
return c_bio_new_membuf(filename, len);
crypto/openssl/providers/common/include/prov/bio.h
17
OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode);
crypto/openssl/providers/common/include/prov/bio.h
18
OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len);
crypto/openssl/ssl/quic/qlog.c
111
char qlogdir_sep, *filename = NULL;
crypto/openssl/ssl/quic/qlog.c
125
filename = OPENSSL_malloc(strl);
crypto/openssl/ssl/quic/qlog.c
126
if (filename == NULL)
crypto/openssl/ssl/quic/qlog.c
129
memcpy(filename, qlogdir, l);
crypto/openssl/ssl/quic/qlog.c
131
filename[l++] = qlogdir_sep;
crypto/openssl/ssl/quic/qlog.c
134
l += BIO_snprintf(filename + l, strl - l, "%02x", info->odcid.id[i]);
crypto/openssl/ssl/quic/qlog.c
136
l += BIO_snprintf(filename + l, strl - l, "_%s.sqlog",
crypto/openssl/ssl/quic/qlog.c
143
if (!ossl_qlog_set_sink_filename(qlog, filename))
crypto/openssl/ssl/quic/qlog.c
152
OPENSSL_free(filename);
crypto/openssl/ssl/quic/qlog.c
156
OPENSSL_free(filename);
crypto/openssl/ssl/quic/qlog.c
214
int ossl_qlog_set_sink_filename(QLOG *qlog, const char *filename)
crypto/openssl/ssl/quic/qlog.c
225
bio = BIO_new_file(filename, "wb");
crypto/openssl/ssl/ssl_cert.c
925
const char *filename;
crypto/openssl/ssl/ssl_cert.c
949
while ((filename = OPENSSL_DIR_read(&d, dir))) {
crypto/openssl/ssl/ssl_cert.c
957
if (strcmp(filename, ".") == 0 || strcmp(filename, "..") == 0)
crypto/openssl/ssl/ssl_cert.c
960
if (strlen(dir) + strlen(filename) + 2 > sizeof(buf)) {
crypto/openssl/ssl/ssl_cert.c
965
r = BIO_snprintf(buf, sizeof(buf), "%s%s", dir, filename);
crypto/openssl/ssl/ssl_cert.c
967
r = BIO_snprintf(buf, sizeof(buf), "%s/%s", dir, filename);
crypto/openssl/test/algorithmid_test.c
104
static int test_x509_spki_aid(X509 *cert, const char *filename)
crypto/openssl/test/algorithmid_test.c
108
return test_spki_aid(pubkey, filename);
crypto/openssl/test/algorithmid_test.c
23
static int test_spki_aid(X509_PUBKEY *pubkey, const char *filename)
crypto/openssl/test/algorithmid_test.c
65
filename);
crypto/openssl/test/algorithmid_test.c
74
name, filename);
crypto/openssl/test/bio_readbuffer_test.c
128
filename = test_get_argument(0);
crypto/openssl/test/bio_readbuffer_test.c
13
static const char *filename = NULL;
crypto/openssl/test/bio_readbuffer_test.c
35
if (!TEST_ptr(in = BIO_new_file(filename, "r"))
crypto/openssl/test/bio_readbuffer_test.c
46
|| !TEST_ptr(in_bio = BIO_new_file(filename, "r")))
crypto/openssl/test/decoder_propq_test.c
106
filename = test_get_argument(0);
crypto/openssl/test/decoder_propq_test.c
17
static const char *filename = NULL;
crypto/openssl/test/decoder_propq_test.c
60
if (!TEST_ptr(bio = BIO_new_file(filename, "r")))
crypto/openssl/test/evp_extra_test2.c
539
static const char *filename = "pubkey.der";
crypto/openssl/test/evp_extra_test2.c
541
if (!TEST_ptr(fp = fopen(filename, "wb"))
crypto/openssl/test/evp_extra_test2.c
548
if (!TEST_ptr(fp = fopen(filename, "rb"))
crypto/openssl/test/evp_pkey_provided_test.c
56
char filename[80];
crypto/openssl/test/evp_pkey_provided_test.c
96
BIO_snprintf(filename, sizeof(filename), "%s.%s", alg, suffix);
crypto/openssl/test/evp_pkey_provided_test.c
97
fullfile = test_mk_file_path(datadir, filename);
crypto/openssl/test/helpers/pkcs12.c
101
PKCS12_BUILDER *new_pkcs12_builder(const char *filename)
crypto/openssl/test/helpers/pkcs12.c
107
pb->filename = filename;
crypto/openssl/test/helpers/pkcs12.c
179
write_p12(p12, pb->filename);
crypto/openssl/test/helpers/pkcs12.c
708
p12 = read_p12(pb->filename, NULL);
crypto/openssl/test/helpers/pkcs12.c
728
p12 = read_p12(pb->filename, mac);
crypto/openssl/test/helpers/pkcs12.h
42
const char *filename;
crypto/openssl/test/helpers/pkcs12.h
62
PKCS12_BUILDER *new_pkcs12_builder(const char *filename);
crypto/openssl/test/pem_read_depr_test.c
26
static BIO *getfile(const char *filename)
crypto/openssl/test/pem_read_depr_test.c
28
char *paramsfile = test_mk_file_path(datadir, filename);
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
398
static int setup_session_cache(SSL *ssl, SSL_CTX *ctx, const char *filename)
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
416
session_bio = BIO_new_file(filename, "r+");
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
419
session_bio = BIO_new_file(filename, "w+");
crypto/openssl/test/simpledynamic.c
18
int sd_load(const char *filename, SD *lib, int type)
crypto/openssl/test/simpledynamic.c
22
if (filename[strlen(filename) - 1] == ')')
crypto/openssl/test/simpledynamic.c
25
*lib = dlopen(filename, dl_flags);
crypto/openssl/test/simpledynamic.c
47
int sd_load(const char *filename, SD *lib, ossl_unused int type)
crypto/openssl/test/simpledynamic.c
49
*lib = LoadLibraryA(filename);
crypto/openssl/test/simpledynamic.h
45
int sd_load(const char *filename, SD *sd, int type);
crypto/openssl/test/ssl_old_test.c
833
static SSL_SESSION *read_session(const char *filename)
crypto/openssl/test/ssl_old_test.c
836
BIO *f = BIO_new_file(filename, "r");
crypto/openssl/test/ssl_old_test.c
839
BIO_printf(bio_err, "Can't open session file %s\n", filename);
crypto/openssl/test/ssl_old_test.c
845
BIO_printf(bio_err, "Can't parse session file %s\n", filename);
crypto/openssl/test/ssl_old_test.c
852
static int write_session(const char *filename, SSL_SESSION *sess)
crypto/openssl/test/ssl_old_test.c
861
f = BIO_new_file(filename, "w");
crypto/openssl/test/ssl_old_test.c
863
BIO_printf(bio_err, "Can't open session file %s\n", filename);
crypto/openssl/test/sslapitest.c
7749
static int create_new_vfile(char *userid, char *password, const char *filename)
crypto/openssl/test/sslapitest.c
7774
out = BIO_new_file(filename, "w");
crypto/openssl/test/verify_extra_test.c
181
static int test_self_signed(const char *filename, int use_trusted, int expected)
crypto/openssl/test/verify_extra_test.c
183
X509 *cert = load_cert_from_file(filename); /* may result in NULL */
lib/libc/locale/ldpart.c
58
char filename[PATH_MAX];
lib/libc/locale/ldpart.c
85
strcpy(filename, _PathLocale);
lib/libc/locale/ldpart.c
86
strcat(filename, "/");
lib/libc/locale/ldpart.c
87
strcat(filename, name);
lib/libc/locale/ldpart.c
88
strcat(filename, "/");
lib/libc/locale/ldpart.c
89
strcat(filename, category_filename);
lib/libc/locale/ldpart.c
90
if ((fd = _open(filename, O_RDONLY | O_CLOEXEC)) < 0)
lib/libc/net/hesiod.c
254
read_config_file(struct hesiod_p *ctx, const char *filename)
lib/libc/net/hesiod.c
266
fp = fopen(filename, "re");
lib/libc/posix1e/mac.c
168
const char *filename;
lib/libc/posix1e/mac.c
177
filename = secure_getenv("MAC_CONFFILE");
lib/libc/posix1e/mac.c
178
if (filename == NULL)
lib/libc/posix1e/mac.c
179
filename = MAC_CONFFILE;
lib/libc/posix1e/mac.c
180
file = fopen(filename, "re");
lib/libc/tests/gen/dir2_test.c
146
char filename[16];
lib/libc/tests/gen/dir2_test.c
148
snprintf(filename, sizeof(filename), "%d", i);
lib/libc/tests/gen/dir2_test.c
149
fd = openat(dd, filename, O_WRONLY | O_CREAT, 0600);
lib/libc/tests/gen/dir2_test.c
69
char filename[16];
lib/libc/tests/gen/dir2_test.c
71
snprintf(filename, sizeof(filename), "%d", i);
lib/libc/tests/gen/dir2_test.c
72
fd = openat(dd, filename, O_WRONLY | O_CREAT, 0600);
lib/libfetch/ftp.c
400
const char *filename;
lib/libfetch/ftp.c
409
filename = ftp_filename(file, &filenamelen, &type);
lib/libfetch/ftp.c
416
e = ftp_cmd(conn, "SIZE %.*s", filenamelen, filename);
lib/libfetch/ftp.c
434
e = ftp_cmd(conn, "MDTM %.*s", filenamelen, filename);
lib/libfetch/ftp.c
623
const char *filename;
lib/libfetch/ftp.c
641
filename = ftp_filename(file, &filenamelen, &type);
lib/libfetch/ftp.c
779
e = ftp_cmd(conn, "%s %.*s", oper, filenamelen, filename);
lib/libfetch/ftp.c
870
e = ftp_cmd(conn, "%s %.*s", oper, filenamelen, filename);
lib/libkldelf/elf.c
104
warnx("%s: unsupported architecture", filename);
lib/libkldelf/elf.c
115
filename);
lib/libkldelf/elf.c
66
elf_open_file(struct elf_file *efile, const char *filename, int verbose)
lib/libkldelf/elf.c
71
efile->ef_filename = filename;
lib/libkldelf/elf.c
72
efile->ef_fd = open(filename, O_RDONLY);
lib/libkldelf/elf.c
75
warn("open(%s)", filename);
lib/libkldelf/elf.c
82
warnx("elf_begin(%s): %s", filename, elf_errmsg(0));
lib/libkldelf/elf.c
89
warnx("%s: not an ELF file", filename);
lib/libkldelf/elf.c
96
warnx("gelf_getehdr(%s): %s", filename, elf_errmsg(0));
lib/libkldelf/kldelf.h
160
int elf_open_file(struct elf_file *efile, const char *filename,
lib/libmd/mdXhl.c
102
fd = open(filename, O_RDONLY);
lib/libmd/mdXhl.c
91
MDXFile(const char *filename, char *buf)
lib/libmd/mdXhl.c
93
return (MDXFileChunk(filename, buf, 0, 0));
lib/libmd/mdXhl.c
97
MDXFileChunk(const char *filename, char *buf, off_t ofs, off_t len)
lib/libomp/omp-tools.h
1002
const char *filename,
lib/libprocstat/core.c
126
procstat_core_open(const char *filename)
lib/libprocstat/core.c
139
fd = open(filename, O_RDONLY, 0);
lib/libprocstat/core.c
141
warn("open(%s)", filename);
lib/libprocstat/core.c
150
warnx("%s is not an ELF object", filename);
lib/libprocstat/core.c
158
warnx("%s is not a CORE file", filename);
lib/libprocstat/core.h
56
struct procstat_core *procstat_core_open(const char *filename);
lib/libprocstat/libprocstat.c
233
procstat_open_core(const char *filename)
lib/libprocstat/libprocstat.c
243
core = procstat_core_open(filename);
lib/libprocstat/libprocstat.h
265
struct procstat *procstat_open_core(const char *filename);
lib/libsecureboot/openpgp/opgp_sig.c
282
openpgp_verify(const char *filename,
lib/libsecureboot/openpgp/opgp_sig.c
308
warnx("cannot verify %s", filename);
lib/libsecureboot/openpgp/opgp_sig.c
381
filename,
lib/libsecureboot/openpgp/opgp_sig.c
386
filename, get_error_string());
lib/libsecureboot/openpgp/opgp_sig.c
389
printf("Unverified %s\n", filename);
lib/libsecureboot/openpgp/opgp_sig.c
393
warnx("cannot decode signature for %s", filename);
lib/libsecureboot/openpgp/opgp_sig.c
432
openpgp_verify_file(const char *filename, unsigned char *fdata, size_t nbytes)
lib/libsecureboot/openpgp/opgp_sig.c
442
n = snprintf(pbuf, sizeof(pbuf), "%s%s", filename, *ep);
lib/libsecureboot/openpgp/opgp_sig.c
444
warnx("cannot form signature name for %s", filename);
lib/libsecureboot/openpgp/opgp_sig.c
453
warnx("cannot find signature for %s", filename);
lib/libsecureboot/openpgp/opgp_sig.c
457
return (openpgp_verify(filename, fdata, nbytes, sdata, sz, VerifyFlags));
lib/libsecureboot/openpgp/packet.h
70
int openpgp_verify(const char *filename, unsigned char *fdata, size_t fbytes,
lib/libsecureboot/openpgp/packet.h
72
int openpgp_verify_file(const char *filename, unsigned char *fdata,
lib/libsecureboot/veopen.c
70
fingerprint_info_add(const char *filename, const char *prefix,
lib/libsecureboot/veopen.c
89
if (!filename) {
lib/libsecureboot/veopen.c
93
nfip->fi_prefix = strdup(filename);
lib/libsecureboot/verify_file.c
275
severity_guess(const char *filename)
lib/libsecureboot/verify_file.c
286
if ((cp = strrchr(filename, '.'))) {
lib/libsecureboot/verify_file.c
453
verify_prep(int fd, const char *filename, off_t off, struct stat *stp,
lib/libsecureboot/verify_file.c
477
caller, fd, filename, (long long)off, (long long)stp->st_dev,
lib/libsecureboot/verify_file.c
481
rc = find_manifest(filename);
lib/libsecureboot/verify_file.c
518
verify_file(int fd, const char *filename, off_t off, int severity,
lib/libsecureboot/verify_file.c
537
rc = verify_prep(fd, filename, off, &st, caller);
lib/libsecureboot/verify_file.c
547
severity = severity_guess(filename);
lib/libsecureboot/verify_file.c
558
strncmp(filename, Destdir, DestdirLen) == 0) {
lib/libsecureboot/verify_file.c
559
filename += DestdirLen;
lib/libsecureboot/verify_file.c
562
rc = verify_fd(fd, filename, off, &st);
lib/libsecureboot/verify_file.c
563
verify_report(filename, severity, rc, &st);
lib/libsecureboot/verify_file.c
566
if ((cp = strrchr(filename, '/'))) {
lib/libsecureboot/vesigned.c
41
verify_signed(const char *filename, int flags)
lib/libsecureboot/vesigned.c
48
snprintf(buf, sizeof(buf), "%s.%s", filename, *se);
lib/libsys/_libsys.h
681
int __sys_extattrctl(const char * path, int cmd, const char * filename, int attrnamespace, const char * attrname);
lib/libusb/libusb01.c
922
snprintf(udev->filename, sizeof(udev->filename),
lib/libusb/usb.h
231
char filename[PATH_MAX + 1];
lib/libutil/pidfile.c
102
pidfile_read(int dirfd, const char *filename, pid_t *pidptr)
lib/libutil/pidfile.c
111
errno = pidfile_read_impl(dirfd, filename, pidptr);
lib/libutil/pidfile.c
76
pidfile_read_impl(int dirfd, const char *filename, pid_t *pidptr)
lib/libutil/pidfile.c
81
fd = openat(dirfd, filename, O_RDONLY | O_CLOEXEC);
lib/libveriexec/veriexec_get.c
75
args.u.filename = file;
lib/libvgl/text.c
41
VGLTextSetFontFile(char *filename)
lib/libvgl/text.c
54
if (filename==NULL) {
lib/libvgl/text.c
60
if ((fd=fopen(filename, "r"))==(FILE*)0)
lib/libvgl/vgl.h
157
int VGLTextSetFontFile(char *filename);
libexec/atrun/atrun.c
119
run_file(const char *filename, uid_t uid, gid_t gid)
libexec/atrun/atrun.c
149
if (chmod(filename, S_IRUSR) != 0)
libexec/atrun/atrun.c
171
(unsigned long) uid, filename);
libexec/atrun/atrun.c
185
filename, pam_strerror(pamh, pam_err));
libexec/atrun/atrun.c
194
stream=fopen(filename, "r");
libexec/atrun/atrun.c
199
perr("cannot open input file %s", filename);
libexec/atrun/atrun.c
207
if (lstat(filename, &lbuf) == -1)
libexec/atrun/atrun.c
211
perrx("Symbolic link encountered in job %s - aborting", filename);
libexec/atrun/atrun.c
217
filename);
libexec/atrun/atrun.c
220
perrx("Somebody is trying to run a linked script for job %s", filename);
libexec/atrun/atrun.c
232
perrx("File %s is in wrong format - aborting", filename);
libexec/atrun/atrun.c
235
perrx("Illegal mail name %s in %s", mailbuf, filename);
libexec/atrun/atrun.c
241
filename, nuid, (unsigned long)uid);
libexec/atrun/atrun.c
245
filename, ngid, (unsigned long)gid);
libexec/atrun/atrun.c
255
if((fd_out=open(filename,
libexec/atrun/atrun.c
260
write_string(fd_out, filename);
libexec/atrun/atrun.c
299
queue = *filename;
libexec/atrun/atrun.c
348
stat(filename, &buf);
libexec/atrun/atrun.c
349
if (open(filename, O_RDONLY) != STDIN_FILENO)
libexec/atrun/atrun.c
352
unlink(filename);
libexec/bootpd/dumptab.c
111
report(LOG_INFO, "dumped %d entries to \"%s\".", n, filename);
libexec/bootpd/dumptab.c
30
dumptab(char *filename)
libexec/bootpd/dumptab.c
42
dumptab(char *filename)
libexec/bootpd/dumptab.c
91
if ((fp = fopen(filename, "w")) == NULL) {
libexec/bootpd/dumptab.c
93
filename, get_errmsg());
libexec/bootpd/dumptab.c
98
fprintf(fp, "# %s: dump of bootp server database.\n", filename);
libexec/rbootd/rmpproto.c
280
char *filename, filepath[RMPBOOTDATA+1];
libexec/rbootd/rmpproto.c
325
filename = strrchr(filepath,'/');
libexec/rbootd/rmpproto.c
326
filename = filename? filename + 1: filepath;
libexec/rbootd/rmpproto.c
332
if (STREQN(filename, filelist[i]))
libexec/rbootd/rmpproto.c
352
if ((rconn->bootfd = open(filename, O_RDONLY, 0600)) < 0) {
libexec/rbootd/rmpproto.c
364
EnetStr(rconn), filename, retval? "granted": "denied");
libexec/tftpd/tests/functional.c
178
#define SEND_RRQ(filename, mode) \
libexec/tftpd/tests/functional.c
179
SEND_STR("\0\001" filename "\0" mode "\0")
libexec/tftpd/tests/functional.c
184
#define SEND_RRQ_OPT(filename, mode, options) \
libexec/tftpd/tests/functional.c
185
SEND_STR("\0\001" filename "\0" mode "\000" options)
libexec/tftpd/tests/functional.c
192
#define SEND_WRQ(filename, mode) \
libexec/tftpd/tests/functional.c
193
SEND_STR("\0\002" filename "\0" mode "\0")
libexec/tftpd/tests/functional.c
198
#define SEND_WRQ_OPT(filename, mode, options) \
libexec/tftpd/tests/functional.c
199
SEND_STR("\0\002" filename "\0" mode "\000" options)
libexec/tftpd/tftp-io.c
169
send_wrq(int peer, char *filename, char *mode)
libexec/tftpd/tftp-io.c
179
filename, mode);
libexec/tftpd/tftp-io.c
189
len = strlcpy(bp, filename, sizeof(buf) - size);
libexec/tftpd/tftp-io.c
220
send_rrq(int peer, char *filename, char *mode)
libexec/tftpd/tftp-io.c
230
filename, mode);
libexec/tftpd/tftp-io.c
240
len = strlcpy(bp, filename, sizeof(buf) - size);
libexec/tftpd/tftpd.c
459
char **filename, char **mode)
libexec/tftpd/tftpd.c
474
*filename = recvbuffer;
libexec/tftpd/tftpd.c
475
tftp_log(LOG_INFO, "Filename: '%s'", *filename);
libexec/tftpd/tftpd.c
507
char *filename, *mode;
libexec/tftpd/tftpd.c
510
cp = parse_header(peer, recvbuffer, size, &filename, &mode);
libexec/tftpd/tftpd.c
513
strlcpy(fnbuf, filename, sizeof(fnbuf));
libexec/tftpd/tftpd.c
515
filename = fnbuf;
libexec/tftpd/tftpd.c
524
ecode = validate_access(peer, &filename, WRQ);
libexec/tftpd/tftpd.c
533
filename, errtomsg(ecode));
libexec/tftpd/tftpd.c
552
char *filename, *mode;
libexec/tftpd/tftpd.c
555
cp = parse_header(peer, recvbuffer, size, &filename, &mode);
libexec/tftpd/tftpd.c
558
strlcpy(fnbuf, filename, sizeof(fnbuf));
libexec/tftpd/tftpd.c
560
filename = fnbuf;
libexec/tftpd/tftpd.c
569
ecode = validate_access(peer, &filename, RRQ);
libexec/tftpd/tftpd.c
597
filename, errtomsg(ecode));
libexec/tftpd/tftpd.c
604
if (suppress_naks && *filename != '/' && ecode == ENOTFOUND)
libexec/tftpd/tftpd.c
619
find_next_name(char *filename, int *fd)
libexec/tftpd/tftpd.c
648
namelen = strlen(filename);
libexec/tftpd/tftpd.c
660
filename, yyyymmdd, i);
libexec/tftpd/tftpd.c
693
char *filename = *filep;
libexec/tftpd/tftpd.c
699
if (strncmp(filename, "../", 3) == 0 ||
libexec/tftpd/tftpd.c
700
strstr(filename, "/../") != NULL)
libexec/tftpd/tftpd.c
703
if (*filename == '/') {
libexec/tftpd/tftpd.c
712
if (strncmp(filename, dirp->name, dirp->len) == 0 &&
libexec/tftpd/tftpd.c
713
filename[dirp->len] == '/')
libexec/tftpd/tftpd.c
719
if (stat(filename, &sb) != 0)
libexec/tftpd/tftpd.c
740
dirp->name, filename);
libexec/tftpd/tftpd.c
756
*filep = filename = pathname;
libexec/tftpd/tftpd.c
770
fd = open(filename, O_RDONLY);
libexec/tftpd/tftpd.c
773
err = find_next_name(filename, &fd);
libexec/tftpd/tftpd.c
777
fd = open(filename,
libexec/tftpd/tftpd.c
783
fd = open(filename, O_WRONLY | O_TRUNC);
sbin/ddb/ddb.c
57
ddb_readfile(char *filename)
sbin/ddb/ddb.c
62
if ((f = fopen(filename, "r")) == NULL)
sbin/ddb/ddb.c
63
err(EX_UNAVAILABLE, "fopen: %s", filename);
sbin/dhclient/bpf.c
71
char filename[50];
sbin/dhclient/bpf.c
76
snprintf(filename, sizeof(filename), BPF_FORMAT, b);
sbin/dhclient/bpf.c
77
sock = open(filename, flags);
sbin/dhclient/bpf.c
90
info->name, filename);
sbin/dhclient/clparse.c
650
lease->filename = parse_string(cfile);
sbin/dhclient/dhclient.c
1255
lease->filename = malloc(DHCP_FILE_LEN + 1);
sbin/dhclient/dhclient.c
1256
if (lease->filename == NULL) {
sbin/dhclient/dhclient.c
1269
free(lease->filename);
sbin/dhclient/dhclient.c
1270
lease->filename = NULL;
sbin/dhclient/dhclient.c
1281
lease->filename[i] = packet->raw->file[i];
sbin/dhclient/dhclient.c
1284
if (lease->filename != NULL) {
sbin/dhclient/dhclient.c
1286
lease->filename[i++] = '\0';
sbin/dhclient/dhclient.c
1993
if (lease->filename)
sbin/dhclient/dhclient.c
1994
free(lease->filename);
sbin/dhclient/dhclient.c
2073
if (lease->filename)
sbin/dhclient/dhclient.c
2074
fprintf(leaseFile, " filename \"%s\";\n", lease->filename);
sbin/dhclient/dhclient.c
2205
if (lease->filename)
sbin/dhclient/dhclient.c
2206
script_set_env(ip->client, prefix, "filename", lease->filename);
sbin/dhclient/dhclient.c
2314
if (lease->filename != NULL)
sbin/dhclient/dhclient.c
2315
fn_len = strlen(lease->filename);
sbin/dhclient/dhclient.c
2340
errs += buf_add(buf, lease->filename, fn_len);
sbin/dhclient/dhcpd.h
129
char *filename;
sbin/dhclient/privsep.c
106
char *medium, *reason, *filename,
sbin/dhclient/privsep.c
159
if ((filename = calloc(1, filename_len + 1)) == NULL)
sbin/dhclient/privsep.c
161
buf_read(fd, filename, filename_len);
sbin/dhclient/privsep.c
163
filename = NULL;
sbin/dhclient/privsep.c
207
lease.filename = filename;
sbin/dhclient/privsep.c
212
free(filename);
sbin/ipf/common/ipf_y.y
1986
ipf_parsefile(int fd, addfunc_t addfunc, ioctlfunc_t *iocfuncs, char *filename)
sbin/ipf/common/ipf_y.y
2000
if (strcmp(filename, "-")) {
sbin/ipf/common/ipf_y.y
2001
fp = fopen(filename, "r");
sbin/ipf/common/ipf_y.y
2003
fprintf(stderr, "fopen(%s) failed: %s\n", filename,
sbin/ipf/ipfs/ipfs.c
204
char *dirname = NULL, *filename = NULL, *ifs = NULL;
sbin/ipf/ipfs/ipfs.c
211
if ((set == 0) && !dirname && !filename)
sbin/ipf/ipfs/ipfs.c
217
if ((set != 0) && !dirname && !filename)
sbin/ipf/ipfs/ipfs.c
218
filename = optarg;
sbin/ipf/ipfs/ipfs.c
227
if (filename || dirname || set)
sbin/ipf/ipfs/ipfs.c
258
if (filename || dirname || set)
sbin/ipf/ipfs/ipfs.c
282
if (!filename || ns < 0)
sbin/ipf/ipfs/ipfs.c
285
return (changenatif(ifs, filename));
sbin/ipf/ipfs/ipfs.c
287
return (changestateif(ifs, filename));
sbin/ipf/ipfs/ipfs.c
311
err = writenat(devfd, filename);
sbin/ipf/ipfs/ipfs.c
313
err = writestate(devfd, filename);
sbin/ipf/ipfs/ipfs.c
320
err = readnat(devfd, filename);
sbin/ipf/ipfs/ipfs.c
322
err = readstate(devfd, filename);
sbin/ipf/ipftest/ipftest.c
602
drain_log(char *filename)
sbin/ipf/ipftest/ipftest.c
610
fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
sbin/ipf/ipnat/ipnat_y.y
1297
char *filename)
sbin/ipf/ipnat/ipnat_y.y
1313
if (strcmp(filename, "-")) {
sbin/ipf/ipnat/ipnat_y.y
1314
fp = fopen(filename, "r");
sbin/ipf/ipnat/ipnat_y.y
1316
FPRINTF(stderr, "fopen(%s) failed: %s\n", filename,
sbin/ipf/ippool/ippool_y.y
612
ippool_parsefile(int fd, char *filename, ioctlfunc_t iocfunc)
sbin/ipf/ippool/ippool_y.y
626
if (strcmp(filename, "-")) {
sbin/ipf/ippool/ippool_y.y
627
fp = fopen(filename, "r");
sbin/ipf/ippool/ippool_y.y
629
fprintf(stderr, "fopen(%s) failed: %s\n", filename,
sbin/ipf/libipf/load_file.c
13
load_file(char *filename)
sbin/ipf/libipf/load_file.c
20
fp = fopen(filename + 7, "r");
sbin/ipf/libipf/load_file.c
22
fprintf(stderr, "load_file cannot open '%s'\n", filename);
sbin/ipf/libipf/load_file.c
40
linenum, filename);
sbin/ipf/libipf/load_file.c
90
filename, linenum, t);
sbin/ipfw/dummynet.c
871
#define ED_EFMT(s) EX_DATAERR,"error in %s at line %d: "#s,filename,lineno
sbin/ipfw/dummynet.c
874
load_extra_delays(const char *filename, struct dn_profile *p,
sbin/ipfw/dummynet.c
894
f = fopen(filename, "r");
sbin/ipfw/dummynet.c
896
err(EX_UNAVAILABLE, "fopen: %s", filename);
sbin/ipfw/main.c
520
const char *filename = av[ac-1]; /* file to read */
sbin/ipfw/main.c
603
if ((f = fopen(filename, "r")) == NULL)
sbin/ipfw/main.c
604
err(EX_UNAVAILABLE, "fopen: %s", filename);
sbin/kldstat/kldstat.c
118
char *filename = NULL;
sbin/kldstat/kldstat.c
139
filename = optarg;
sbin/kldstat/kldstat.c
185
if (filename != NULL) {
sbin/kldstat/kldstat.c
186
if ((fileid = kldfind(filename)) < 0) {
sbin/kldstat/kldstat.c
188
warn("can't find file %s", filename);
sbin/kldunload/kldunload.c
56
char *filename;
sbin/kldunload/kldunload.c
58
filename = NULL;
sbin/kldunload/kldunload.c
89
while ((filename = *argv++) != NULL) {
sbin/kldunload/kldunload.c
91
fileid = atoi(filename);
sbin/kldunload/kldunload.c
95
if ((fileid = kldfind(filename)) < 0)
sbin/kldunload/kldunload.c
97
filename);
sbin/md5/md5.c
291
char *filename;
sbin/md5/md5.c
312
char *filename;
sbin/md5/md5.c
335
filename = linebuf + digestnamelen + 2;
sbin/md5/md5.c
344
strncmp(filename - 2, " (", 2) == 0 &&
sbin/md5/md5.c
348
filenamelen = hashstr - 4 - filename;
sbin/md5/md5.c
354
filename = linebuf + hashstrlen + 1;
sbin/md5/md5.c
370
if ((*filename == '*' || *filename == ' ' ||
sbin/md5/md5.c
371
*filename == 'U' || *filename == '^') &&
sbin/md5/md5.c
372
lstat(filename, &st) != 0) {
sbin/md5/md5.c
373
rec->input_mode = (enum input_mode)*filename;
sbin/md5/md5.c
374
filename++;
sbin/md5/md5.c
380
rec->filename = malloc(filenamelen + 1);
sbin/md5/md5.c
381
if (rec->filename == NULL)
sbin/md5/md5.c
383
if (strnunvis(rec->filename, filenamelen + 1, filename) < 0 ||
sbin/md5/md5.c
384
(lstat(rec->filename, &st) != 0 && lstat(filename, &st) == 0))
sbin/md5/md5.c
385
memcpy(rec->filename, filename, filenamelen + 1); // XXX
sbin/md5/md5.c
616
argv[argc] = rec->filename;
sbin/md5/md5.c
634
const char *filename = *argv;
sbin/md5/md5.c
644
if (strcmp(filename, "-") == 0) {
sbin/md5/md5.c
648
f = fileargs_fopen(fa, filename, filemode);
sbin/md5/md5.c
650
f = fopen(filename, filemode);
sbin/md5/md5.c
658
if (safename(namebuf, sizeof(namebuf), filename) < 0)
sbin/md5/md5.c
669
MDOutput(&Algorithm[digest], p, filename);
sbin/pfctl/parse.y
1241
if ((loadanchor->filename = strdup($5)) == NULL)
sbin/pfctl/parse.y
498
char *filename;
sbin/pfctl/parse.y
7663
parse_config(char *filename, struct pfctl *xpf)
sbin/pfctl/parse.y
7678
if ((file = pushfile(filename, 0)) == NULL) {
sbin/pfctl/parse.y
8074
la->anchorname, la->filename);
sbin/pfctl/parse.y
8075
if (pfctl_rules(dev, la->filename, pf->opts, pf->optimize,
sbin/pfctl/pfctl.c
2659
pfctl_rules(int dev, char *filename, int opts, int optimize,
sbin/pfctl/pfctl.c
2772
if (parse_config(filename, &pf) < 0) {
sbin/pfctl/pfctl_osfp.c
770
const char *name, int flags, int max, const char *filename, int lineno)
sbin/pfctl/pfctl_osfp.c
784
fprintf(stderr, "%s:%d empty %s\n", filename, lineno, name);
sbin/pfctl/pfctl_osfp.c
807
filename, lineno, *field, name);
sbin/pfctl/pfctl_osfp.c
819
"value\n", filename, lineno, name);
sbin/pfctl/pfctl_osfp.c
826
filename, lineno, *field, name);
sbin/pfctl/pfctl_osfp.c
835
filename, lineno, name);
sbin/pfctl/pfctl_osfp.c
840
fprintf(stderr, "%s:%d %s overflowed\n", filename,
sbin/pfctl/pfctl_osfp.c
847
fprintf(stderr, "%s:%d %s value %ld > %d\n", filename, lineno,
sbin/pfctl/pfctl_osfp.c
859
const char *filename, int lineno)
sbin/pfctl/pfctl_osfp.c
868
fprintf(stderr, "%s:%d too short %s\n", filename, lineno, name);
sbin/pfctl/pfctl_osfp.c
883
get_tcpopts(const char *filename, int lineno, const char *tcpopts,
sbin/pfctl/pfctl_osfp.c
939
filename, lineno, tcpopts[i], opt);
sbin/pfctl/pfctl_osfp.c
960
filename, lineno, opt);
sbin/pfctl/tests/pfctl_test.c
88
read_file(const char *filename)
sbin/pfctl/tests/pfctl_test.c
95
ATF_REQUIRE_EQ_MSG(stat(filename, &s), 0, "cannot stat %s", filename);
sbin/pfctl/tests/pfctl_test.c
96
fd = open(filename, O_RDONLY);
sbin/rcorder/rcorder.c
1043
basename(head->next->fnode->filename)) == 0) {
sbin/rcorder/rcorder.c
1048
printf("%s\\n", basename(pnode->fnode->filename));
sbin/rcorder/rcorder.c
1097
DPRINTF((stderr, "generate on %s\n", fn_head->next->filename));
sbin/rcorder/rcorder.c
1109
(*psl)->filename);
sbin/rcorder/rcorder.c
1111
free((*psl)->filename);
sbin/rcorder/rcorder.c
129
char *filename;
sbin/rcorder/rcorder.c
261
filenode_new(char *filename)
sbin/rcorder/rcorder.c
267
temp->filename = estrdup(filename);
sbin/rcorder/rcorder.c
363
warnx("file `%s' provides `%s'.", fnode->filename, s);
sbin/rcorder/rcorder.c
365
head->next->fnode->filename);
sbin/rcorder/rcorder.c
472
crunch_file(char *filename)
sbin/rcorder/rcorder.c
482
if ((fp = fopen(filename, "r")) == NULL) {
sbin/rcorder/rcorder.c
483
warn("could not open %s", filename);
sbin/rcorder/rcorder.c
488
warn("could not stat %s", filename);
sbin/rcorder/rcorder.c
495
warnx("%s is not a file", filename);
sbin/rcorder/rcorder.c
501
node = filenode_new(filename);
sbin/rcorder/rcorder.c
606
warnx("file `%s' is before unknown provision `%s'", bl_list->node->filename, bl_list->s);
sbin/rcorder/rcorder.c
742
revstack[stack_depth - 1] = loop_entry->node->filename;
sbin/rcorder/rcorder.c
745
revstack[stack_depth - 2] = fnode->filename;
sbin/rcorder/rcorder.c
751
revstack[i] = stack_ptr->node->filename;
sbin/rcorder/rcorder.c
801
Hash_GetKey(entry), fnode->filename);
sbin/rcorder/rcorder.c
822
Hash_GetKey(entry), fnode->filename);
sbin/rcorder/rcorder.c
893
DPRINTF((stderr, "do_file on %s.\n", fnode->filename));
sbin/rcorder/rcorder.c
901
fnode->filename);
sbin/rcorder/rcorder.c
985
fnode->filename, fnode->issues_count,
sbin/rcorder/rcorder.c
989
DPRINTF((stderr, "nuking %s\n", fnode->filename));
sbin/restore/dirs.c
799
fail_dirtmp(char *filename)
sbin/restore/dirs.c
803
warn("%s: cannot write directory database", filename);
sbin/restore/symtab.c
432
dumpsymtable(char *filename, long checkpt)
sbin/restore/symtab.c
444
if ((fd = fopen(filename, "w")) == NULL) {
sbin/restore/symtab.c
447
filename);
sbin/restore/symtab.c
509
filename);
sbin/restore/symtab.c
518
initsymtable(char *filename)
sbin/restore/symtab.c
530
if (filename == NULL) {
sbin/restore/symtab.c
539
if ((fd = open(filename, O_RDONLY, 0)) < 0) {
sbin/restore/symtab.c
541
panic("cannot open symbol table file %s\n", filename);
sbin/restore/symtab.c
545
panic("cannot stat symbol table file %s\n", filename);
sbin/restore/symtab.c
554
panic("cannot read symbol table file %s\n", filename);
sbin/routed/trace.c
281
set_tracefile(const char *filename,
sbin/routed/trace.c
294
if (filename == NULL || filename[0] == '\0') {
sbin/routed/trace.c
295
filename = NULL;
sbin/routed/trace.c
306
} else if (!strcmp(filename,"dump/../table")) {
sbin/routed/trace.c
316
if (strcmp(filename, inittracename)
sbin/routed/trace.c
318
&& (strncmp(filename, _PATH_TRACE, sizeof(_PATH_TRACE)-1)
sbin/routed/trace.c
319
|| strstr(filename,"../")
sbin/routed/trace.c
323
msglog("wrong trace file \"%s\"", filename);
sbin/routed/trace.c
329
if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) {
sbin/routed/trace.c
331
stbuf.st_mode, filename);
sbin/routed/trace.c
335
fn = filename;
sbin/routed/trace.c
362
if (new_tracelevel == 0 || filename == NULL)
sbin/routed/trace.c
364
tracelevel_msg(pat, dump != 0 ? dump : (filename != NULL));
sbin/savecore/savecore.c
617
const char *filename, FILE *fp)
sbin/savecore/savecore.c
674
"write error on %s file: %m", filename);
sbin/savecore/savecore.c
687
printf("%s %.1lf%%\n", filename, (100.0 - (100.0 *
sbin/savecore/savecore.c
703
const char *device, const char *filename, FILE *fp)
sbin/savecore/savecore.c
731
"write error on %s file: %m", filename);
sbin/umbctl/umbctl.c
132
static int _umbctl_file(char const * ifname, char const * filename,
sbin/umbctl/umbctl.c
230
char const * filename);
sbin/umbctl/umbctl.c
232
static int _umbctl_file(char const * ifname, char const * filename, int verbose)
sbin/umbctl/umbctl.c
246
|| _file_parse(ifname, &umbp, filename) != 0
sbin/umbctl/umbctl.c
268
char const * filename)
sbin/umbctl/umbctl.c
279
if((fp = fopen(filename, "r")) == NULL)
sbin/umbctl/umbctl.c
280
return _error(2, "%s: %s", filename, strerror(errno));
sbin/umbctl/umbctl.c
290
ret = _error(2, "%s: %s", filename,
sbin/umbctl/umbctl.c
308
return _error(2, "%s: %s", filename, strerror(errno));
sbin/umbctl/umbctl.c
532
char const * filename = NULL;
sbin/umbctl/umbctl.c
539
filename = optarg;
sbin/umbctl/umbctl.c
549
if(filename != NULL)
sbin/umbctl/umbctl.c
553
return _umbctl_file(argv[optind], filename, verbose);
share/examples/ipfilter/l4check/l4check.c
482
readconfig(char *filename)
share/examples/ipfilter/l4check/l4check.c
490
fp = fopen(filename, "r");
stand/common/commands.c
36
static int page_file(char *filename);
stand/common/commands.c
486
page_file(char *filename)
stand/common/commands.c
490
result = pager_file(filename);
stand/common/commands.c
494
"error showing %s", filename);
stand/common/interp_forth.c
379
interp_include(const char *filename)
stand/common/interp_forth.c
387
if (((fd = open(filename, O_RDONLY)) == -1)) {
stand/common/interp_forth.c
389
"can't open '%s': %s", filename, strerror(errno));
stand/common/interp_forth.c
394
if (verify_file(fd, filename, 0, VE_GUESS, __func__) < 0) {
stand/common/interp_forth.c
396
sprintf(command_errbuf,"can't verify '%s'", filename);
stand/common/interp_forth.c
422
filename, line);
stand/common/interp_forth.c
449
filename, sp->text);
stand/common/interp_lua.c
143
const char *filename;
stand/common/interp_lua.c
148
filename = getenv("loader_lua");
stand/common/interp_lua.c
149
if (filename == NULL)
stand/common/interp_lua.c
150
filename = LOADER_LUA;
stand/common/interp_lua.c
151
if (interp_include(filename) != 0) {
stand/common/interp_lua.c
221
interp_include(const char *filename)
stand/common/interp_lua.c
225
LDBG("loading file %s", filename);
stand/common/interp_lua.c
227
return (luaL_dofile(softc->luap, filename));
stand/common/interp_simple.c
102
if (verify_file(fd, filename, 0, VE_GUESS, __func__) < 0) {
stand/common/interp_simple.c
104
sprintf(command_errbuf,"can't verify '%s'", filename);
stand/common/interp_simple.c
146
filename, line);
stand/common/interp_simple.c
190
printf("%s line %d: parse error\n", filename, sp->line);
stand/common/interp_simple.c
87
interp_include(const char *filename)
stand/common/interp_simple.c
95
if (((fd = open(filename, O_RDONLY)) == -1)) {
stand/common/interp_simple.c
97
"can't open '%s': %s", filename, strerror(errno));
stand/common/load_elf.c
263
__elfN(load_elf_header)(char *filename, elf_file_t ef)
stand/common/load_elf.c
272
if (filename == NULL) /* can't handle nameless */
stand/common/load_elf.c
274
if ((ef->fd = open(filename, O_RDONLY)) == -1)
stand/common/load_elf.c
286
ef->vctx = vectx_open(ef->fd, filename, VE_MUST,
stand/common/load_elf.c
289
printf("Unverified %s: %s\n", filename, ve_error_get());
stand/common/load_elf.c
328
if (verify_file(ef->fd, filename, bytes_read, VE_MUST, __func__) < 0) {
stand/common/load_elf.c
356
__elfN(loadfile)(char *filename, uint64_t dest, struct preloaded_file **result)
stand/common/load_elf.c
358
return (__elfN(loadfile_raw)(filename, dest, result, 0));
stand/common/load_elf.c
362
__elfN(loadfile_raw)(char *filename, uint64_t dest,
stand/common/load_elf.c
374
err = __elfN(load_elf_header)(filename, &ef);
stand/common/load_elf.c
463
setenv("kernelname", filename, 1);
stand/common/load_elf.c
464
fp->f_name = strdup(filename);
stand/common/load_elf.c
473
printf("%s entry at 0x%jx\n", filename,
stand/common/load_elf.c
476
printf("%s ", filename);
stand/common/load_elf_obj.c
101
if ((ef.fd = open(filename, O_RDONLY)) == -1)
stand/common/load_elf_obj.c
107
ef.vctx = vectx_open(ef.fd, filename, VE_MUST,
stand/common/load_elf_obj.c
110
printf("Unverified %s: %s\n", filename, ve_error_get());
stand/common/load_elf_obj.c
147
if (verify_file(ef.fd, filename, bytes_read, VE_MUST, __func__) < 0) {
stand/common/load_elf_obj.c
173
fp->f_name = strdup(filename);
stand/common/load_elf_obj.c
177
printf("%s ", filename);
stand/common/load_elf_obj.c
84
__elfN(obj_loadfile)(char *filename, uint64_t dest,
stand/common/load_elf_obj.c
99
if (filename == NULL) /* can't handle nameless */
stand/common/module.c
558
file_load(char *filename, vm_offset_t dest, struct preloaded_file **result)
stand/common/module.c
565
TSENTER2(filename);
stand/common/module.c
571
error = (file_formats[i]->l_load)(filename, dest, &fp);
stand/common/module.c
587
"can't load file '%s': %s", filename, strerror(error));
stand/common/module.c
59
static int file_load(char *filename, vm_offset_t dest, struct preloaded_file **result);
stand/common/module.c
813
char *filename;
stand/common/module.c
834
filename = mod_searchmodule(modname, verinfo);
stand/common/module.c
835
if (filename == NULL) {
stand/common/module.c
841
err = mod_loadkld(filename, argc, argv);
stand/common/module.c
842
free(filename);
stand/common/module.c
856
char *filename;
stand/common/module.c
863
filename = file_search(kldname, kld_ext_list);
stand/common/module.c
864
if (filename == NULL) {
stand/common/module.c
873
fp = file_findfile(filename, NULL);
stand/common/module.c
876
"warning: KLD '%s' already loaded", filename);
stand/common/module.c
877
free(filename);
stand/common/module.c
883
err = file_load(filename, loadaddr, &fp);
stand/common/module.c
900
"don't know how to load module '%s'", filename);
stand/common/module.c
904
free(filename);
stand/efi/loader/arch/amd64/multiboot2.c
220
error = elf32_loadfile_raw(filename, dest, result, 1);
stand/efi/loader/arch/amd64/multiboot2.c
494
obj_loadfile(char *filename, uint64_t dest, struct preloaded_file **result)
stand/efi/loader/arch/amd64/multiboot2.c
515
rfp = file_loadraw(filename, md_kerntype, 0);
stand/efi/loader/arch/amd64/multiboot2.c
519
filename);
stand/efi/loader/arch/amd64/multiboot2.c
524
setenv("kernelname", filename, 1);
stand/efi/loader/arch/amd64/multiboot2.c
543
error = elf64_obj_loadfile(filename, dest, result);
stand/efi/loader/arch/amd64/multiboot2.c
546
filename, error);
stand/efi/loader/arch/amd64/multiboot2.c
56
extern int elf32_loadfile_raw(char *filename, uint64_t dest,
stand/efi/loader/arch/amd64/multiboot2.c
59
extern int elf64_obj_loadfile(char *filename, uint64_t dest,
stand/efi/loader/arch/amd64/multiboot2.c
74
loadfile(char *filename, uint64_t dest, struct preloaded_file **result)
stand/efi/loader/arch/amd64/multiboot2.c
89
if (filename == NULL)
stand/efi/loader/arch/amd64/multiboot2.c
91
if ((fd = open(filename, O_RDONLY)) == -1)
stand/efi/loader/arch/arm/exec.c
44
__elfN(arm_load)(char *filename, uint64_t dest,
stand/efi/loader/arch/arm/exec.c
49
r = __elfN(loadfile)(filename, dest, result);
stand/fdt/fdt_loader_cmd.c
249
fdt_load_dtb_file(const char * filename)
stand/fdt/fdt_loader_cmd.c
254
debugf("fdt_load_dtb_file(%s)\n", filename);
stand/fdt/fdt_loader_cmd.c
259
if ((bfp = file_loadraw(filename, "dtb", 1)) == NULL) {
stand/fdt/fdt_loader_cmd.c
261
"failed to load file '%s'", filename);
stand/fdt/fdt_loader_cmd.c
276
fdt_load_dtb_overlay(const char * filename)
stand/fdt/fdt_loader_cmd.c
282
debugf("fdt_load_dtb_overlay(%s)\n", filename);
stand/fdt/fdt_loader_cmd.c
290
if ((bfp = file_loadraw(filename, "dtbo", 1)) == NULL)
stand/fdt/fdt_loader_cmd.c
305
fdt_print_overlay_load_error(int err, const char *filename)
stand/fdt/fdt_loader_cmd.c
310
printf("%s: failed to load file\n", filename);
stand/fdt/fdt_loader_cmd.c
314
filename, fdt_version(fdtp),
stand/fdt/fdt_loader_cmd.c
321
filename, fdt_strerror(err));
stand/fdt/fdt_loader_cmd.c
323
printf("%s: unknown load error\n", filename);
stand/fdt/fdt_loader_cmd.c
70
static void fdt_print_overlay_load_error(int err, const char *filename);
stand/ficl/ficl.h
1148
char filename[256];
stand/ficl/fileaccess.c
119
char *filename = (char *)alloca(length + 1);
stand/ficl/fileaccess.c
120
memcpy(filename, address, length);
stand/ficl/fileaccess.c
121
filename[length] = 0;
stand/ficl/fileaccess.c
123
pushIor(pVM, !unlink(filename));
stand/ficl/fileaccess.c
156
char *filename = (char *)alloca(length + 1);
stand/ficl/fileaccess.c
157
memcpy(filename, address, length);
stand/ficl/fileaccess.c
158
filename[length] = 0;
stand/ficl/fileaccess.c
160
if (stat(filename, &statbuf) == 0)
stand/ficl/fileaccess.c
39
char *filename = (char *)alloca(length + 1);
stand/ficl/fileaccess.c
40
memcpy(filename, address, length);
stand/ficl/fileaccess.c
41
filename[length] = 0;
stand/ficl/fileaccess.c
65
f = fopen(filename, mode);
stand/ficl/fileaccess.c
71
verify_file(fileno(f), filename, 0, VE_GUESS, __func__) < 0) {
stand/ficl/fileaccess.c
78
strcpy(ff->filename, filename);
stand/ficl/testmain.c
134
char filename[nLINEBUF];
stand/ficl/testmain.c
135
FICL_STRING *pFilename = (FICL_STRING *)filename;
stand/i386/libi386/multiboot.c
101
if ((fd = open(filename, O_RDONLY)) == -1)
stand/i386/libi386/multiboot.c
140
error = elf32_loadfile_raw(filename, dest, result, 1);
stand/i386/libi386/multiboot.c
325
multiboot_obj_loadfile(char *filename, uint64_t dest,
stand/i386/libi386/multiboot.c
348
rfp = file_loadraw(filename, md_kerntype, 0);
stand/i386/libi386/multiboot.c
352
filename);
stand/i386/libi386/multiboot.c
357
setenv("kernelname", filename, 1);
stand/i386/libi386/multiboot.c
376
error = elf64_obj_loadfile(filename, dest, result);
stand/i386/libi386/multiboot.c
379
filename, error);
stand/i386/libi386/multiboot.c
58
extern int elf32_loadfile_raw(char *filename, uint64_t dest,
stand/i386/libi386/multiboot.c
61
extern int elf64_obj_loadfile(char *filename, uint64_t dest,
stand/i386/libi386/multiboot.c
84
multiboot_loadfile(char *filename, uint64_t dest,
stand/i386/libi386/multiboot.c
99
if (filename == NULL)
stand/kboot/kboot/arch/powerpc64/ppc64_elf_freebsd.c
58
ppc64_elf_loadfile(char *filename, uint64_t dest,
stand/kboot/kboot/arch/powerpc64/ppc64_elf_freebsd.c
63
r = __elfN(loadfile)(filename, dest, result);
stand/liblua/lstd.c
100
freopen(const char *filename, const char *mode, FILE *stream)
stand/liblua/lstd.c
103
return (fopen(filename, mode));
stand/liblua/lstd.c
36
fopen(const char *filename, const char *mode)
stand/liblua/lstd.c
64
fd = open(filename, m | o);
stand/liblua/lstd.c
83
if (verify_file(fd, filename, 0, VE_GUESS, __func__) < 0) {
stand/liblua/lstd.h
70
FILE *fopen(const char *filename, const char *mode);
stand/liblua/lstd.h
71
FILE *freopen( const char *filename, const char *mode, FILE *stream);
stand/powerpc/ofw/elf_freebsd.c
47
__elfN(ofw_loadfile)(char *filename, uint64_t dest,
stand/powerpc/ofw/elf_freebsd.c
52
r = __elfN(loadfile)(filename, dest, result);
stand/powerpc/ofw/ppc64_elf_freebsd.c
47
ppc64_ofw_elf_loadfile(char *filename, uint64_t dest,
stand/powerpc/ofw/ppc64_elf_freebsd.c
52
r = __elfN(loadfile)(filename, dest, result);
stand/uboot/arch/powerpc/ppc64_elf_freebsd.c
43
ppc64_uboot_elf_loadfile(char *filename, uint64_t dest,
stand/uboot/arch/powerpc/ppc64_elf_freebsd.c
48
r = __elfN(loadfile)(filename, dest, result);
stand/uboot/elf_freebsd.c
42
__elfN(uboot_load)(char *filename, uint64_t dest,
stand/uboot/elf_freebsd.c
47
r = __elfN(loadfile)(filename, dest, result);
stand/userboot/test/test.c
111
test_open_internal(void *arg, const char *filename, void **h_return,
stand/userboot/test/test.c
133
if (filename[0] == '/') {
stand/userboot/test/test.c
155
strlcpy(path, filename, sizeof(path));
stand/userboot/test/test.c
262
test_open(void *arg, const char *filename, void **h_return)
stand/userboot/test/test.c
267
return (test_open_internal(arg, filename, h_return, NULL, 0));
stand/userboot/userboot.h
82
int (*open)(void *arg, const char *filename, void **h_return);
sys/amd64/linux/linux_proto.h
1269
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
1393
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
930
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
941
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
947
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
954
char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)];
sys/amd64/linux/linux_proto.h
994
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_proto.h
999
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux/linux_systrace_args.c
1945
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
1964
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
1974
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
1985
uarg[a++] = (intptr_t)p->filename; /* char * */
sys/amd64/linux/linux_systrace_args.c
2053
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
2062
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
2524
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux/linux_systrace_args.c
2734
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_proto.h
1010
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
1016
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
1023
char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)];
sys/amd64/linux32/linux32_proto.h
1063
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
1068
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
1328
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
1694
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
648
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
652
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_proto.h
999
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/amd64/linux32/linux32_systrace_args.c
1351
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
1359
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2063
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2082
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2092
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2103
uarg[a++] = (intptr_t)p->filename; /* char * */
sys/amd64/linux32/linux32_systrace_args.c
2171
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2180
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
2622
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/amd64/linux32/linux32_systrace_args.c
3250
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm/arm/unwind.c
267
lf->filename);
sys/arm/arm/unwind.c
288
thekernel.filename = "kernel";
sys/arm64/linux/linux_proto.h
1076
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
1203
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
168
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
234
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
242
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
247
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_proto.h
254
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/arm64/linux/linux_systrace_args.c
2141
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
2356
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
266
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
382
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
420
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
429
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/arm64/linux/linux_systrace_args.c
449
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/cddl/dev/fbt/fbt.c
188
strlcpy(modname, lf->filename, sizeof(modname));
sys/cddl/dev/fbt/fbt.c
207
if (strncmp(lf->deps[i]->filename, "dtrace", 6) == 0)
sys/cddl/dev/fbt/fbt.c
292
fbt->fbtp_name, ctl->filename);
sys/cddl/dev/kinst/kinst.c
160
kp->kp_id = dtrace_probe_create(kinst_id, lf->filename,
sys/cddl/dev/kinst/kinst.c
187
if (pd->kpd_mod[0] != '\0' && strcmp(pd->kpd_mod, lf->filename) != 0)
sys/cddl/dev/sdt/sdt.c
167
len = strlcpy(mod, probe->sdtp_lf->filename, sizeof(mod));
sys/compat/freebsd32/freebsd32_systrace_args.c
1659
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/compat/linprocfs/linprocfs.c
1843
sbuf_printf(sb, "%-20s%8lu%4d\n", lf->filename,
sys/compat/linux/linux_file.c
1610
return (kern_fchownat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_file.c
214
return (linux_common_open(td, dfd, args->filename, args->flags,
sys/compat/linux/linux_file.c
657
linux_do_accessat(struct thread *td, int ldfd, const char *filename,
sys/compat/linux/linux_file.c
667
return (kern_accessat(td, dfd, filename, UIO_USERSPACE, flags, amode));
sys/compat/linux/linux_file.c
674
return (linux_do_accessat(td, args->dfd, args->filename, args->amode,
sys/compat/linux/linux_file.c
696
return (linux_do_accessat(td, args->dfd, args->filename, args->amode,
sys/compat/linux/linux_file.c
778
return (kern_fchmodat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_misc.c
714
return (kern_utimesat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_misc.c
921
error = kern_mkfifoat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_misc.c
927
error = kern_mknodat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_misc.c
939
error = kern_openat(td, dfd, args->filename, UIO_USERSPACE,
sys/compat/linux/linux_stats.c
603
error = linux_kern_stat(td, args->filename, UIO_USERSPACE, &buf);
sys/compat/linux/linux_stats.c
615
error = linux_kern_lstat(td, args->filename, UIO_USERSPACE, &sb);
sys/ddb/db_sym.c
445
char *filename;
sys/ddb/db_sym.c
468
if (db_line_at_pc(cursym, &filename, &linenum, off))
sys/ddb/db_sym.c
469
db_printf(" [%s:%d]", filename, linenum);
sys/ddb/db_sym.c
474
db_line_at_pc(c_db_sym_t sym, char **filename, int *linenum, db_expr_t pc)
sys/ddb/db_sym.c
476
return (X_db_line_at_pc(db_last_symtab, sym, filename, linenum, pc));
sys/ddb/db_sym.h
98
char **filename, int *linenum, db_expr_t off);
sys/ddb/db_textdump.c
207
textdump_mkustar(char *block_buffer, const char *filename, u_int size)
sys/ddb/db_textdump.c
213
printf("textdump: creating '%s'.\n", filename);
sys/ddb/db_textdump.c
217
strlcpy(uhp->uh_filename, filename, sizeof(uhp->uh_filename));
sys/ddb/ddb.h
334
void textdump_mkustar(char *block_buffer, const char *filename,
sys/dev/ath/ah_osdep.c
419
ath_hal_assert_failed(const char* filename, int lineno, const char *msg)
sys/dev/ath/ah_osdep.c
422
filename, lineno, msg);
sys/dev/ath/ah_osdep.c
85
extern void ath_hal_assert_failed(const char* filename,
sys/dev/ath/ath_hal/ah_internal.h
672
extern void ath_hal_assert_failed(const char* filename,
sys/dev/bwn/if_bwn.c
4041
const char *filename;
sys/dev/bwn/if_bwn.c
4046
filename = NULL;
sys/dev/bwn/if_bwn.c
4050
filename = "ucode42";
sys/dev/bwn/if_bwn.c
4054
filename = "ucode40";
sys/dev/bwn/if_bwn.c
4058
filename = "ucode33_lcn40";
sys/dev/bwn/if_bwn.c
4062
filename = "ucode30_mimo";
sys/dev/bwn/if_bwn.c
4066
filename = "ucode29_mimo";
sys/dev/bwn/if_bwn.c
4070
filename = "ucode26_mimo";
sys/dev/bwn/if_bwn.c
4075
filename = "ucode25_mimo";
sys/dev/bwn/if_bwn.c
4077
filename = "ucode25_lcn";
sys/dev/bwn/if_bwn.c
4081
filename = "ucode24_lcn";
sys/dev/bwn/if_bwn.c
4085
filename = "ucode16_mimo";
sys/dev/bwn/if_bwn.c
4092
filename = "ucode16_mimo";
sys/dev/bwn/if_bwn.c
4094
filename = "ucode16_lp";
sys/dev/bwn/if_bwn.c
4097
filename = "ucode15";
sys/dev/bwn/if_bwn.c
4100
filename = "ucode14";
sys/dev/bwn/if_bwn.c
4103
filename = "ucode13";
sys/dev/bwn/if_bwn.c
4107
filename = "ucode11";
sys/dev/bwn/if_bwn.c
4115
filename = "ucode5";
sys/dev/bwn/if_bwn.c
4123
device_printf(sc->sc_dev, "ucode fw: %s\n", filename);
sys/dev/bwn/if_bwn.c
4124
error = bwn_fw_get(mac, type, filename, &fw->ucode);
sys/dev/bwn/if_bwn.c
4156
filename = "a0g1initvals5";
sys/dev/bwn/if_bwn.c
4158
filename = "a0g0initvals5";
sys/dev/bwn/if_bwn.c
4162
filename = "b0g0initvals5";
sys/dev/bwn/if_bwn.c
4164
filename = "b0g0initvals13";
sys/dev/bwn/if_bwn.c
4170
filename = "lp0initvals13";
sys/dev/bwn/if_bwn.c
4172
filename = "lp0initvals14";
sys/dev/bwn/if_bwn.c
4174
filename = "lp0initvals15";
sys/dev/bwn/if_bwn.c
4180
filename = "n16initvals30";
sys/dev/bwn/if_bwn.c
4182
filename = "n0initvals25";
sys/dev/bwn/if_bwn.c
4184
filename = "n0initvals24";
sys/dev/bwn/if_bwn.c
4186
filename = "n0initvals16";
sys/dev/bwn/if_bwn.c
4188
filename = "n0initvals16";
sys/dev/bwn/if_bwn.c
4190
filename = "n0initvals11";
sys/dev/bwn/if_bwn.c
4197
error = bwn_fw_get(mac, type, filename, &fw->initvals);
sys/dev/bwn/if_bwn.c
4208
filename = "a0g1bsinitvals5";
sys/dev/bwn/if_bwn.c
4210
filename = "a0g0bsinitvals5";
sys/dev/bwn/if_bwn.c
4212
filename = NULL;
sys/dev/bwn/if_bwn.c
4218
filename = "b0g0bsinitvals5";
sys/dev/bwn/if_bwn.c
4220
filename = NULL;
sys/dev/bwn/if_bwn.c
4226
filename = "lp0bsinitvals13";
sys/dev/bwn/if_bwn.c
4228
filename = "lp0bsinitvals14";
sys/dev/bwn/if_bwn.c
4230
filename = "lp0bsinitvals15";
sys/dev/bwn/if_bwn.c
4236
filename = "n16bsinitvals30";
sys/dev/bwn/if_bwn.c
4238
filename = "n0bsinitvals25";
sys/dev/bwn/if_bwn.c
4240
filename = "n0bsinitvals24";
sys/dev/bwn/if_bwn.c
4242
filename = "n0bsinitvals16";
sys/dev/bwn/if_bwn.c
4244
filename = "n0bsinitvals16";
sys/dev/bwn/if_bwn.c
4246
filename = "n0bsinitvals11";
sys/dev/bwn/if_bwn.c
4255
error = bwn_fw_get(mac, type, filename, &fw->initvals_band);
sys/dev/bwn/if_bwn.c
4281
if (bfw->filename != NULL) {
sys/dev/bwn/if_bwn.c
4282
if (bfw->type == type && (strcmp(bfw->filename, name) == 0))
sys/dev/bwn/if_bwn.c
4314
bfw->filename = name;
sys/dev/bwn/if_bwn.c
4342
bfw->filename = NULL;
sys/dev/bwn/if_bwnvar.h
850
const char *filename;
sys/dev/hwpmc/hwpmc_mod.c
5567
pmc_kld_unload(void *arg __unused, const char *filename __unused,
sys/dev/ocs_fc/ocs_hw.c
11971
_ocs_hw_assert(const char *cond, const char *filename, int linenum)
sys/dev/ocs_fc/ocs_hw.c
11973
ocs_printf("%s(%d): HW assertion (%s) failed\n", filename, linenum, cond);
sys/dev/ocs_fc/ocs_hw.c
11990
_ocs_hw_verify(const char *cond, const char *filename, int linenum)
sys/dev/ocs_fc/ocs_hw.c
11992
ocs_printf("%s(%d): HW verify (%s) failed\n", filename, linenum, cond);
sys/dev/ocs_fc/ocs_hw.h
69
extern void _ocs_hw_assert(const char *cond, const char *filename, int linenum);
sys/dev/ocs_fc/ocs_hw.h
70
extern void _ocs_hw_verify(const char *cond, const char *filename, int linenum);
sys/dev/ocs_fc/ocs_os.c
1035
_ocs_assert(const char *cond, const char *filename, int linenum)
sys/dev/ocs_fc/ocs_os.c
1039
ocs_log_err(NULL, "%s(%d) assertion (%s) failed\n", (fn ? fn + 1 : filename), linenum, cond);
sys/dev/ocs_fc/ocs_utils.h
241
extern void _ocs_assert(const char *cond, const char *filename, int linenum);
sys/i386/linux/linux_proto.h
1008
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
1014
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
1021
char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)];
sys/i386/linux/linux_proto.h
1061
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
1066
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
1322
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
1688
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
646
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
650
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_proto.h
997
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/i386/linux/linux_systrace_args.c
1382
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
1390
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2098
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2117
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2127
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2138
uarg[a++] = (intptr_t)p->filename; /* char * */
sys/i386/linux/linux_systrace_args.c
2206
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2215
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
2653
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/i386/linux/linux_systrace_args.c
3281
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/kern/kern_linker.c
1337
const char *filename;
sys/kern/kern_linker.c
1353
filename = linker_basename(pathname);
sys/kern/kern_linker.c
1355
lf = linker_find_file_by_name(filename);
sys/kern/kern_linker.c
1448
namelen = strlen(lf->filename) + 1;
sys/kern/kern_linker.c
1451
bcopy(lf->filename, &stat->name[0], namelen);
sys/kern/kern_linker.c
1479
lf->address, lf->size, lf->filename);
sys/kern/kern_linker.c
1791
printf("KLD file %s is missing dependencies\n", lf->filename);
sys/kern/kern_linker.c
1816
lf->filename, modname);
sys/kern/kern_linker.c
1833
lf->filename);
sys/kern/kern_linker.c
203
lf->filename));
sys/kern/kern_linker.c
2181
const char *filename;
sys/kern/kern_linker.c
2183
filename = strrchr(path, '/');
sys/kern/kern_linker.c
2184
if (filename == NULL)
sys/kern/kern_linker.c
2186
if (filename[1])
sys/kern/kern_linker.c
2187
filename++;
sys/kern/kern_linker.c
2188
return (filename);
sys/kern/kern_linker.c
2255
const char *filename;
sys/kern/kern_linker.c
2292
filename = linker_basename(pathname);
sys/kern/kern_linker.c
2293
if (linker_find_file_by_name(filename))
sys/kern/kern_linker.c
2350
mod->container->filename);
sys/kern/kern_linker.c
2382
" version mismatch\n", lf->filename, modname);
sys/kern/kern_linker.c
240
BOOTTRACE("%s: sysinit 0x%7x", lf->filename,
sys/kern/kern_linker.c
258
lf->filename));
sys/kern/kern_linker.c
297
BOOTTRACE("%s: sysuninit 0x%7x", lf->filename,
sys/kern/kern_linker.c
315
lf->filename));
sys/kern/kern_linker.c
349
printf("failed to load CTF for %s: %d\n", file->filename,
sys/kern/kern_linker.c
361
lf->filename));
sys/kern/kern_linker.c
382
" for %s\n", lf->filename));
sys/kern/kern_linker.c
405
" in %s\n", lf->filename));
sys/kern/kern_linker.c
427
moddata->name, lf->filename));
sys/kern/kern_linker.c
452
linker_load_file(const char *filename, linker_file_t *result)
sys/kern/kern_linker.c
463
lf = linker_find_file_by_name(filename);
sys/kern/kern_linker.c
466
" incrementing refs\n", filename));
sys/kern/kern_linker.c
481
filename));
sys/kern/kern_linker.c
482
error = LINKER_LOAD_FILE(lc, filename, &lf);
sys/kern/kern_linker.c
537
__func__, filename);
sys/kern/kern_linker.c
600
linker_find_file_by_name(const char *filename)
sys/kern/kern_linker.c
605
koname = malloc(strlen(filename) + 4, M_LINKER, M_WAITOK);
sys/kern/kern_linker.c
606
sprintf(koname, "%s.ko", filename);
sys/kern/kern_linker.c
610
if (strcmp(lf->filename, koname) == 0)
sys/kern/kern_linker.c
612
if (strcmp(lf->filename, filename) == 0)
sys/kern/kern_linker.c
651
const char *filename;
sys/kern/kern_linker.c
655
filename = linker_basename(pathname);
sys/kern/kern_linker.c
657
KLD_DPF(FILE, ("linker_make_file: new file, filename='%s' for pathname='%s'\n", filename, pathname));
sys/kern/kern_linker.c
669
lf->filename = strdup(filename, M_LINKER);
sys/kern/kern_linker.c
779
EVENTHANDLER_INVOKE(kld_unload, file->filename, file->address,
sys/kern/kern_linker.c
797
if (file->filename) {
sys/kern/kern_linker.c
798
free(file->filename, M_LINKER);
sys/kern/kern_linker.c
799
file->filename = NULL;
sys/kern/kern_linker.c
82
const int kld_off_filename = offsetof(struct linker_file, filename);
sys/kern/kern_linker.c
856
dep->filename, file->filename));
sys/kern/kern_module.c
159
__func__, data->name, container->filename, newmod->file->filename);
sys/kern/link_elf.c
1023
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, filename);
sys/kern/link_elf.c
1061
link_elf_error(filename, "Unsupported file layout");
sys/kern/link_elf.c
1067
link_elf_error(filename, "Unsupported file version");
sys/kern/link_elf.c
1076
link_elf_error(filename, "Unsupported machine");
sys/kern/link_elf.c
1090
link_elf_error(filename, "Unreadable program headers");
sys/kern/link_elf.c
1109
link_elf_error(filename, "Too many sections");
sys/kern/link_elf.c
1115
link_elf_error(filename,
sys/kern/link_elf.c
1140
link_elf_error(filename, "Object is not dynamically-linked");
sys/kern/link_elf.c
1145
link_elf_error(filename, "No sections");
sys/kern/link_elf.c
1160
lf = linker_make_file(filename, &link_elf_class);
sys/kern/link_elf.c
352
link_elf_error(const char *filename, const char *s)
sys/kern/link_elf.c
354
if (filename == NULL)
sys/kern/link_elf.c
357
printf("kldload: %s: %s\n", filename, s);
sys/kern/link_elf.c
381
__func__, lf->filename, lf->ctors_invoked));
sys/kern/link_elf.c
408
newfilename = malloc(strlen(lf->filename) + 1, M_LINKER, M_WAITOK);
sys/kern/link_elf.c
409
strcpy(newfilename, lf->filename);
sys/kern/link_elf.c
897
link_elf_link_preload(linker_class_t cls, const char *filename,
sys/kern/link_elf.c
910
modptr = preload_search_by_name(filename);
sys/kern/link_elf.c
924
lf = linker_make_file(filename, &link_elf_class);
sys/kern/link_elf.c
989
link_elf_load_file(linker_class_t cls, const char* filename,
sys/kern/link_elf_obj.c
1062
__func__, filename);
sys/kern/link_elf_obj.c
1075
__func__, filename);
sys/kern/link_elf_obj.c
1102
filename);
sys/kern/link_elf_obj.c
1117
filename);
sys/kern/link_elf_obj.c
1215
link_elf_error(filename, "lost progbits");
sys/kern/link_elf_obj.c
1220
link_elf_error(filename, "lost reltab");
sys/kern/link_elf_obj.c
1225
link_elf_error(filename, "lost relatab");
sys/kern/link_elf_obj.c
1232
filename != NULL ? filename : "<none>",
sys/kern/link_elf_obj.c
1400
link_elf_error(ef->lf.filename, "lost a reltab!");
sys/kern/link_elf_obj.c
1406
link_elf_error(ef->lf.filename, "lost base for reltab");
sys/kern/link_elf_obj.c
1434
link_elf_error(ef->lf.filename, "lost a relatab!");
sys/kern/link_elf_obj.c
1440
link_elf_error(ef->lf.filename,
sys/kern/link_elf_obj.c
1868
link_elf_error(ef->lf.filename, "lost a reltab");
sys/kern/link_elf_obj.c
1874
link_elf_error(ef->lf.filename, "lost base for reltab");
sys/kern/link_elf_obj.c
1898
link_elf_error(ef->lf.filename, "lost a relatab!");
sys/kern/link_elf_obj.c
1904
link_elf_error(ef->lf.filename, "lost base for reltab");
sys/kern/link_elf_obj.c
204
link_elf_error(const char *filename, const char *s)
sys/kern/link_elf_obj.c
206
if (filename == NULL)
sys/kern/link_elf_obj.c
209
printf("kldload: %s: %s\n", filename, s);
sys/kern/link_elf_obj.c
344
link_elf_link_preload(linker_class_t cls, const char *filename,
sys/kern/link_elf_obj.c
358
modptr = preload_search_by_name(filename);
sys/kern/link_elf_obj.c
375
lf = linker_make_file(filename, &link_elf_class);
sys/kern/link_elf_obj.c
440
printf("%s: bad/missing section headers\n", filename);
sys/kern/link_elf_obj.c
526
filename);
sys/kern/link_elf_obj.c
545
filename);
sys/kern/link_elf_obj.c
561
__func__, filename);
sys/kern/link_elf_obj.c
572
__func__, filename);
sys/kern/link_elf_obj.c
608
printf("%s: lost progbits\n", filename);
sys/kern/link_elf_obj.c
613
printf("%s: lost reltab\n", filename);
sys/kern/link_elf_obj.c
618
printf("%s: lost relatab\n", filename);
sys/kern/link_elf_obj.c
665
__func__, lf->filename, lf->ctors_invoked));
sys/kern/link_elf_obj.c
676
__func__, lf->filename, lf->ctors_invoked));
sys/kern/link_elf_obj.c
715
link_elf_load_file(linker_class_t cls, const char *filename,
sys/kern/link_elf_obj.c
744
NDINIT(nd, LOOKUP, FOLLOW, UIO_SYSSPACE, filename);
sys/kern/link_elf_obj.c
782
link_elf_error(filename, "Unsupported file layout");
sys/kern/link_elf_obj.c
788
link_elf_error(filename, "Unsupported file version");
sys/kern/link_elf_obj.c
797
link_elf_error(filename, "Unsupported machine");
sys/kern/link_elf_obj.c
802
lf = linker_make_file(filename, &link_elf_class);
sys/kern/link_elf_obj.c
875
link_elf_error(filename, "file has no contents");
sys/kern/link_elf_obj.c
881
link_elf_error(filename,
sys/kern/link_elf_obj.c
888
link_elf_error(filename, "file has invalid symbol strings");
sys/kern/link_elf_obj.c
905
link_elf_error(filename, "lost symbol table index");
sys/kern/subr_asan.c
68
const char *filename;
sys/kern/systrace_args.c
1700
uarg[a++] = (intptr_t)p->filename; /* const char * */
sys/kern/vfs_extattr.c
102
if (uap->filename != NULL) {
sys/kern/vfs_extattr.c
104
uap->filename);
sys/kern/vfs_extattr.c
72
const char *filename;
sys/netgraph/ng_socket.c
256
char filename[NG_TYPESIZ + 3];
sys/netgraph/ng_socket.c
261
snprintf(filename, sizeof(filename), "ng_%s",
sys/netgraph/ng_socket.c
263
error = kern_kldload(curthread, filename, &fileid);
sys/security/mac_veriexec/mac_veriexec.c
818
uint32_t filename;
sys/security/mac_veriexec/mac_veriexec.c
875
PTRIN_CP(pargs32, pargs, u.filename);
sys/security/mac_veriexec/mac_veriexec.c
961
UIO_USERSPACE, pargs.u.filename);
sys/security/mac_veriexec/mac_veriexec.h
89
const char *filename;
sys/sys/linker.h
80
char* filename; /* file which was loaded */
sys/sys/sysproto.h
905
char filename_l_[PADL_(const char *)]; const char * filename; char filename_r_[PADR_(const char *)];
sys/ufs/ufs/extattr.h
137
int ufs_extattrctl(struct mount *mp, int cmd, struct vnode *filename,
tests/sys/capsicum/capability-fd.cc
342
const char *filename = "cap_openat_write_testfile";
tests/sys/capsicum/capability-fd.cc
343
int file = openat(dir, filename, O_WRONLY|O_CREAT, 0644);
tests/sys/capsicum/capability-fd.cc
349
file = openat(cap_dir, filename, O_RDONLY);
tests/sys/capsicum/capability-fd.cc
358
file = openat(cap_dir, filename, O_WRONLY|O_APPEND);
tests/sys/capsicum/capsicum-test.h
114
const char *filename = test_file; \
tests/sys/capsicum/capsicum-test.h
115
if (filename) unlink(filename); \
tests/sys/capsicum/copy_file_range.cc
42
void CreateFile(const char *filename) {
tests/sys/capsicum/copy_file_range.cc
43
int fd = open(filename, O_CREAT|O_RDWR, 0644);
tests/sys/capsicum/openat.cc
20
static void CreateFile(const char *filename, const char *contents) {
tests/sys/capsicum/openat.cc
21
int fd = open(filename, O_CREAT|O_RDWR, 0644);
tests/sys/capsicum/rename.cc
18
const char * create_tmp_src(const char* filename) {
tests/sys/capsicum/rename.cc
19
const char *src_path = TmpFile(filename);
tests/sys/cddl/zfs/bin/file_trunc.c
159
filename = argv[optind];
tests/sys/cddl/zfs/bin/file_trunc.c
56
static char *filename = NULL;
tests/sys/cddl/zfs/bin/file_trunc.c
80
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/sys/cddl/zfs/bin/file_write.c
110
if (!filename) {
tests/sys/cddl/zfs/bin/file_write.c
175
if ((bigfd = open(filename, oflag, 0666)) == -1) {
tests/sys/cddl/zfs/bin/file_write.c
176
(void) printf("open %s: failed [%s]%d. Aborting!\n", filename,
tests/sys/cddl/zfs/bin/file_write.c
184
filename, offset, noffset, strerror(errno), errno);
tests/sys/cddl/zfs/bin/file_write.c
190
"offset = %"PRId64", data = %s%d\n", filename, block_size,
tests/sys/cddl/zfs/bin/file_write.c
59
char *filename = NULL;
tests/sys/cddl/zfs/bin/file_write.c
86
filename = optarg;
tests/sys/cddl/zfs/bin/randfree_file.c
49
char *filename, *buf;
tests/sys/cddl/zfs/bin/randfree_file.c
73
filename = argv[optind];
tests/sys/cddl/zfs/bin/randfree_file.c
79
if ((fd = open(filename, O_RDWR|O_CREAT|O_TRUNC)) < 0) {
tests/sys/cddl/zfs/bin/readmmap.c
53
char *filename = "badfile";
tests/sys/cddl/zfs/bin/readmmap.c
72
filename = argv[optind];
tests/sys/cddl/zfs/bin/readmmap.c
74
(void) remove(filename);
tests/sys/cddl/zfs/bin/readmmap.c
76
fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
tests/sys/file/flock_helper.c
100
free(filename);
tests/sys/file/flock_helper.c
75
char *filename;
tests/sys/file/flock_helper.c
90
filename = malloc(len);
tests/sys/file/flock_helper.c
91
strcpy(filename, pathname);
tests/sys/file/flock_helper.c
92
strcat(filename, template);
tests/sys/file/flock_helper.c
93
fd = mkstemp(filename);
tests/sys/file/flock_helper.c
98
if (unlink(filename) < 0)
tests/sys/fs/tarfs/mktar.c
100
err(1, "%s", filename);
tests/sys/fs/tarfs/mktar.c
102
errx(1, "%s: short write", filename);
tests/sys/fs/tarfs/mktar.c
108
mklonglinktarget(const char *dirname, const char *filename)
tests/sys/fs/tarfs/mktar.c
114
if (asprintf(&target, "%1$s%1$s%1$s%1$s%1$s%1$s%1$s%1$s%2$s", piece, filename) < 0)
tests/sys/fs/tarfs/mktar.c
67
mknormalfile(const char *filename, mode_t mode)
tests/sys/fs/tarfs/mktar.c
73
if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0)
tests/sys/fs/tarfs/mktar.c
74
err(1, "%s", filename);
tests/sys/fs/tarfs/mktar.c
79
err(1, "%s", filename);
tests/sys/fs/tarfs/mktar.c
81
errx(1, "%s: short write", filename);
tests/sys/fs/tarfs/mktar.c
86
mksparsefile(const char *filename, mode_t mode)
tests/sys/fs/tarfs/mktar.c
92
if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0)
tests/sys/fs/tarfs/mktar.c
93
err(1, "%s", filename);
tests/sys/fs/tarfs/mktar.c
97
err(1, "%s", filename);
tests/sys/vm/mlock_test.c
120
char filename[16];
tests/sys/vm/mlock_test.c
124
snprintf(filename, sizeof(filename), "tmp.XXXXXX");
tests/sys/vm/mlock_test.c
125
fd = mkstemp(filename);
tests/sys/vm/mlock_test.c
127
ATF_REQUIRE(unlink(filename) == 0);
tests/sys/vm/mlock_test.c
149
char filename[16];
tests/sys/vm/mlock_test.c
153
snprintf(filename, sizeof(filename), "tmp.XXXXXX");
tests/sys/vm/mlock_test.c
154
fd = mkstemp(filename);
tests/sys/vm/mlock_test.c
156
ATF_REQUIRE(unlink(filename) == 0);
tools/diag/prtblknos/main.c
48
char *fsname, *filename;
tools/diag/prtblknos/main.c
51
filename = NULL;
tools/diag/prtblknos/main.c
53
filename = argv[1];
tools/diag/prtblknos/main.c
54
if (lstat(filename, &sb) != 0)
tools/diag/prtblknos/main.c
55
err(1, "stat(%s)", filename);
tools/diag/prtblknos/main.c
56
if (statfs(filename, &sfb) != 0)
tools/diag/prtblknos/main.c
57
err(1, "statfs(%s)", filename);
tools/diag/prtblknos/main.c
87
if (filename == NULL)
tools/diag/prtblknos/main.c
90
(void)printf("%s (inode #%jd): ", filename,
tools/regression/geom/ConfCmp/ConfCmp.c
169
dofile(char *filename)
tools/regression/geom/ConfCmp/ConfCmp.c
189
fd = open(filename, O_RDONLY);
tools/regression/geom/ConfCmp/ConfCmp.c
191
err(1, filename);
tools/test/upsdl/upsdl.c
37
int prepareFile(const char* filename,int* fdp);
tools/test/upsdl/upsdl.c
47
int prepareFile(const char* filename,int* fdp)
tools/test/upsdl/upsdl.c
54
fd = open(filename,O_CREAT | O_TRUNC | O_RDWR,S_IRWXU);
tools/tools/ath/athdecode/main.c
63
const char *filename = "/tmp/ath_hal.log";
tools/tools/ath/athdecode/main.c
67
filename = argv[1];
tools/tools/ath/athdecode/main.c
68
fd = open(filename, O_RDONLY);
tools/tools/ath/athdecode/main.c
70
err(1, "open: %s", filename);
tools/tools/ath/athprom/athprom.c
75
char filename[PATH_MAX];
tools/tools/ath/athprom/athprom.c
79
snprintf(filename, sizeof(filename), "%s/eeprom-%d.%d",
tools/tools/ath/athprom/athprom.c
81
fd = fopen(filename, "r");
tools/tools/ath/athprom/athprom.c
84
snprintf(filename, sizeof(filename), "%s/eeprom-%d",
tools/tools/ath/athprom/athprom.c
86
fd = fopen(filename, "r");
tools/tools/ath/athprom/athprom.c
88
warnx("Using template file %s", filename);
tools/tools/drm/radeon/mkregtable/mkregtable.c
634
static int parser_auth(struct table *t, const char *filename)
tools/tools/drm/radeon/mkregtable/mkregtable.c
654
file = fopen(filename, "r");
tools/tools/drm/radeon/mkregtable/mkregtable.c
656
fprintf(stderr, "Failed to open: %s\n", filename);
tools/tools/drm/radeon/mkregtable/mkregtable.c
689
r, filename);
tools/tools/pciroms/pciroms.c
175
char filename[16];
tools/tools/pciroms/pciroms.c
228
snprintf(filename, sizeof(filename), "%08X.rom",
tools/tools/pciroms/pciroms.c
232
romsize, filename);
tools/tools/pciroms/pciroms.c
235
result = pci_save_rom(filename, romsize);
tools/tools/pciroms/pciroms.c
300
pci_save_rom(char *filename, int romsize)
tools/tools/pciroms/pciroms.c
317
if ((fd = open(filename, O_CREAT|O_RDWR|O_TRUNC|O_NOFOLLOW,
tools/tools/pciroms/pciroms.c
85
static int pci_save_rom(char *filename, int romsize);
usr.bin/ar/acpyacc.y
320
bsdar->filename = tmpac;
usr.bin/ar/acpyacc.y
440
bsdar->filename = archive;
usr.bin/ar/acpyacc.y
458
bsdar->filename = tmpac;
usr.bin/ar/acpyacc.y
498
bsdar->filename = NULL;
usr.bin/ar/ar.c
152
while ((bsdar->filename = *argv++) != NULL)
usr.bin/ar/ar.c
313
if ((bsdar->filename = *argv) == NULL)
usr.bin/ar/ar.h
81
const char *filename; /* archive name. */
usr.bin/ar/read.c
159
bsdar->filename);
usr.bin/ar/read.c
71
AC(archive_read_open_filename(a, bsdar->filename, DEF_BLKSZ));
usr.bin/ar/write.c
357
if (stat(bsdar->filename, &sb) != 0) {
usr.bin/ar/write.c
360
bsdar->filename);
usr.bin/ar/write.c
367
bsdar->filename);
usr.bin/ar/write.c
373
bsdar_warnc(bsdar, 0, "creating %s", bsdar->filename);
usr.bin/ar/write.c
380
read_objs(bsdar, bsdar->filename, 0);
usr.bin/ar/write.c
658
AC(archive_write_open_filename(a, bsdar->filename));
usr.bin/dtc/fdt.cc
522
std::string filename = input.parse_to('"');
usr.bin/dtc/fdt.cc
529
if (!(valid = input.read_binary_file(filename, v.byte_data)))
usr.bin/dtc/input_buffer.cc
105
mmap_input_buffer::mmap_input_buffer(int fd, string &&filename)
usr.bin/dtc/input_buffer.cc
106
: input_buffer(0, 0), fn(filename)
usr.bin/dtc/input_buffer.cc
1137
fprintf(stderr, "Error at %s:%d:%d: %s\n", b.filename().c_str(), line_count, loc - line_start, msg);
usr.bin/dtc/input_buffer.cc
253
bool text_input_buffer::read_binary_file(const std::string &filename, byte_buffer &b)
usr.bin/dtc/input_buffer.cc
257
if (filename[0] == '/')
usr.bin/dtc/input_buffer.cc
259
include_file = filename;
usr.bin/dtc/input_buffer.cc
267
include_file = dir + '/' + filename;
usr.bin/dtc/input_buffer.cc
274
include_file = i + '/' + filename;
usr.bin/dtc/input_buffer.cc
76
mmap_input_buffer(int fd, string &&filename);
usr.bin/dtc/input_buffer.hh
562
bool read_binary_file(const std::string &filename, byte_buffer &b);
usr.bin/elfctl/elfctl.c
340
print_file_features(Elf *elf, int phcount, int fd, char *filename,
usr.bin/elfctl/elfctl.c
351
printf("File '%s' features:\n", filename);
usr.bin/env/envopts.c
101
char *filename, *fqname;
usr.bin/env/envopts.c
104
filename = *argv;
usr.bin/env/envopts.c
105
if (strchr(filename, '/') != NULL)
usr.bin/env/envopts.c
110
fprintf(stderr, "#env for file:\t'%s'\n", filename);
usr.bin/env/envopts.c
118
filename) >= (int)sizeof(candidate))
usr.bin/env/envopts.c
128
err(127, "%s", filename);
usr.bin/etdump/etdump.c
120
const char *filename, struct outputter *outputter)
usr.bin/etdump/etdump.c
129
errx(1, "%s: section header out of bounds", filename);
usr.bin/etdump/etdump.c
132
outputter->output_section(outfile, filename, sh);
usr.bin/etdump/etdump.c
143
filename);
usr.bin/etdump/etdump.c
146
outputter->output_entry(outfile, filename, entry,
usr.bin/etdump/etdump.c
155
dump_eltorito(FILE *iso, const char *filename, FILE *outfile,
usr.bin/etdump/etdump.c
169
warnx("%s: not a valid ISO", filename);
usr.bin/etdump/etdump.c
172
warnx("%s: not an El Torito bootable ISO", filename);
usr.bin/etdump/etdump.c
183
warnx("%s: boot catalog checksum is invalid", filename);
usr.bin/etdump/etdump.c
186
outputter->output_image(outfile, filename, bvd);
usr.bin/etdump/etdump.c
191
outputter->output_entry(outfile, filename,
usr.bin/etdump/etdump.c
204
outfile, filename, outputter);
usr.bin/etdump/etdump.h
33
void (*output_image)(FILE *outfile, const char *filename,
usr.bin/etdump/etdump.h
35
void (*output_section)(FILE *outfile, const char *filename,
usr.bin/etdump/etdump.h
37
void (*output_entry)(FILE *outfile, const char *filename,
usr.bin/etdump/output_shell.c
39
output_entry(FILE *outfile, const char *filename __unused,
usr.bin/etdump/output_text.c
39
output_image(FILE *outfile, const char *filename, boot_volume_descriptor *bvd __unused)
usr.bin/etdump/output_text.c
42
fprintf(outfile, "Image in %s\n", filename);
usr.bin/etdump/output_text.c
46
output_section(FILE *outfile, const char *filename __unused,
usr.bin/etdump/output_text.c
60
output_entry(FILE *outfile, const char *filename __unused,
usr.bin/fstat/fstat.c
239
const char *filename;
usr.bin/fstat/fstat.c
243
filename = NULL;
usr.bin/fstat/fstat.c
256
filename = d->name;
usr.bin/fstat/fstat.c
260
if (fsmatch == 0 || (filename == NULL && fsflg == 0))
usr.bin/fstat/fstat.c
328
if (filename && !fsflg)
usr.bin/fstat/fstat.c
329
printf(" %s", filename);
usr.bin/fstat/fstat.c
629
getfname(const char *filename)
usr.bin/fstat/fstat.c
634
if (stat(filename, &statbuf)) {
usr.bin/fstat/fstat.c
635
warn("%s", filename);
usr.bin/fstat/fstat.c
645
cur->name = filename;
usr.bin/fstat/fstat.c
81
static int getfname(const char *filename);
usr.bin/gprof/elf.c
54
elf_getnfile(const char *filename, char ***defaultEs)
usr.bin/gprof/elf.c
69
if ((fd = open(filename, O_RDONLY)) == -1)
usr.bin/gprof/elf.c
70
err(1, "%s", filename);
usr.bin/gprof/elf.c
76
err(1, "cannot fstat %s", filename);
usr.bin/gprof/elf.c
79
err(1, "cannot mmap %s", filename);
usr.bin/gprof/elf.c
90
errx(1, "%s has no symbol table", filename);
usr.bin/gprof/gprof.c
220
getpfile(char *filename)
usr.bin/gprof/gprof.c
225
pfile = openpfile(filename);
usr.bin/gprof/gprof.c
247
openpfile(char *filename)
usr.bin/gprof/gprof.c
254
if((pfile = fopen(filename, "r")) == NULL)
usr.bin/gprof/gprof.c
255
err(1, "%s", filename);
usr.bin/gprof/gprof.c
259
errx(1, "%s: incompatible with first gmon file", filename);
usr.bin/gprof/gprof.c
274
filename, rate, "incompatible with clock rate", hz);
usr.bin/gzip/gzip.c
720
const char *filename)
usr.bin/gzip/gzip.c
801
filename);
usr.bin/gzip/gzip.c
811
"ignored", filename);
usr.bin/localedef/scanner.c
220
filename = "<stdin>";
usr.bin/localedef/scanner.c
231
filename = fname;
usr.bin/localedef/scanner.c
57
static const char *filename = "<stdin>";
usr.bin/localedef/scanner.c
828
filename, lineno, msg);
usr.bin/localedef/scanner.c
843
filename, lineno, msg);
usr.bin/localedef/scanner.c
859
filename, lineno, msg);
usr.bin/m4/gnum4.c
125
dopath(struct input_file *i, const char *filename)
usr.bin/m4/gnum4.c
132
snprintf(path, sizeof(path), "%s/%s", pe->name, filename);
usr.bin/m4/gnum4.c
142
fopen_trypath(struct input_file *i, const char *filename)
usr.bin/m4/gnum4.c
146
f = fopen(filename, "r");
usr.bin/m4/gnum4.c
148
set_input(i, f, filename);
usr.bin/m4/gnum4.c
151
if (filename[0] == '/')
usr.bin/m4/gnum4.c
156
return dopath(i, filename);
usr.bin/patch/inp.c
103
scan_input(const char *filename)
usr.bin/patch/inp.c
105
if (!plan_a(filename))
usr.bin/patch/inp.c
106
plan_b(filename);
usr.bin/patch/inp.c
108
say("Patching file %s using Plan %s...\n", filename,
usr.bin/patch/inp.c
137
plan_a(const char *filename)
usr.bin/patch/inp.c
151
if (filename == NULL || *filename == '\0')
usr.bin/patch/inp.c
154
statfailed = stat(filename, &filestat);
usr.bin/patch/inp.c
157
say("(Creating file %s...)\n", filename);
usr.bin/patch/inp.c
166
makedirs(filename, true);
usr.bin/patch/inp.c
167
close(creat(filename, 0666));
usr.bin/patch/inp.c
168
statfailed = stat(filename, &filestat);
usr.bin/patch/inp.c
171
fatal("can't find %s\n", filename);
usr.bin/patch/inp.c
174
fatal("%s is not a normal file--can't patch\n", filename);
usr.bin/patch/inp.c
185
if ((ifd = open(filename, O_RDONLY)) < 0)
usr.bin/patch/inp.c
186
pfatal("can't open file %s", filename);
usr.bin/patch/inp.c
283
plan_b(const char *filename)
usr.bin/patch/inp.c
292
if ((ifp = fopen(filename, "r")) == NULL)
usr.bin/patch/inp.c
293
pfatal("can't open file %s", filename);
usr.bin/patch/inp.c
314
pfatal("can't read file %s", filename);
usr.bin/patch/pch.c
103
open_patch_file(const char *filename)
usr.bin/patch/pch.c
108
if (filename == NULL || *filename == '\0' || strEQ(filename, "-")) {
usr.bin/patch/pch.c
119
filename = TMPPATNAME;
usr.bin/patch/pch.c
121
pfp = fopen(filename, "r");
usr.bin/patch/pch.c
123
pfatal("patch file %s not found", filename);
usr.bin/patch/pch.c
125
pfatal("can't stat %s", filename);
usr.bin/patch/util.c
329
makedirs(const char *filename, bool striplast)
usr.bin/patch/util.c
333
if ((tmpbuf = strdup(filename)) == NULL)
usr.bin/quota/quota.c
109
filename = optarg;
usr.bin/quota/quota.c
489
if (filename != NULL && statfs(filename, &sfb) != 0)
usr.bin/quota/quota.c
490
err(1, "cannot statfs %s", filename);
usr.bin/quota/quota.c
505
if (filename != NULL &&
usr.bin/quota/quota.c
98
static char *filename = NULL;
usr.bin/random/random.c
139
if ((fd = open(filename, O_RDONLY, 0)) < 0)
usr.bin/random/random.c
140
err(1, "%s", filename);
usr.bin/random/random.c
60
const char *filename;
usr.bin/random/random.c
63
filename = "/dev/fd/0";
usr.bin/random/random.c
78
filename = optarg;
usr.bin/rev/rev.c
48
const char *filename;
usr.bin/rev/rev.c
67
filename = "stdin";
usr.bin/rev/rev.c
77
filename = *argv++;
usr.bin/rev/rev.c
87
warn("%s", filename);
usr.bin/rpcgen/rpc_main.c
518
const char *filename;
usr.bin/rpcgen/rpc_main.c
521
filename = strrchr(pathname, '/'); /* find last component */
usr.bin/rpcgen/rpc_main.c
522
filename = ((filename == NULL) ? pathname : filename+1);
usr.bin/rpcgen/rpc_main.c
523
guard = xstrdup(filename);
usr.bin/sdiff/edit.c
141
if (asprintf(&filename, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1)
usr.bin/sdiff/edit.c
143
if ((fd = mkstemp(filename)) == -1)
usr.bin/sdiff/edit.c
153
cleanup(filename);
usr.bin/sdiff/edit.c
162
if (editit(filename) == -1) {
usr.bin/sdiff/edit.c
163
warn("error editing %s", filename);
usr.bin/sdiff/edit.c
164
cleanup(filename);
usr.bin/sdiff/edit.c
168
if (!(file = fopen(filename, "r"))) {
usr.bin/sdiff/edit.c
169
warn("could not open edited file: %s", filename);
usr.bin/sdiff/edit.c
170
cleanup(filename);
usr.bin/sdiff/edit.c
181
warnx("error reading edited file: %s", filename);
usr.bin/sdiff/edit.c
182
cleanup(filename);
usr.bin/sdiff/edit.c
196
cleanup(filename);
usr.bin/sdiff/edit.c
201
if (unlink(filename))
usr.bin/sdiff/edit.c
202
warn("could not delete: %s", filename);
usr.bin/sdiff/edit.c
205
free(filename);
usr.bin/sdiff/edit.c
24
cleanup(const char *filename)
usr.bin/sdiff/edit.c
27
if (unlink(filename))
usr.bin/sdiff/edit.c
28
err(2, "could not delete: %s", filename);
usr.bin/sdiff/edit.c
89
char *filename;
usr.bin/tftp/main.c
695
tail(char *filename)
usr.bin/tftp/main.c
699
while (*filename) {
usr.bin/tftp/main.c
700
s = strrchr(filename, '/');
usr.bin/tftp/main.c
707
return (filename);
usr.bin/unexpand/unexpand.c
58
char *filename;
usr.bin/unexpand/unexpand.c
85
while ((filename = *argv++) != NULL) {
usr.bin/unexpand/unexpand.c
86
if (freopen(filename, "r", stdin) == NULL) {
usr.bin/unexpand/unexpand.c
87
warn("%s", filename);
usr.bin/unexpand/unexpand.c
90
failed |= tabify(filename);
usr.bin/units/units.c
135
char filename[1000];
usr.bin/units/units.c
141
snprintf(filename, sizeof(filename),
usr.bin/units/units.c
143
unitfile = fopen(filename, "rt");
usr.bin/vtfontcvt/vtfontcvt.c
617
parse_file(const char *filename, unsigned int map_idx)
usr.bin/vtfontcvt/vtfontcvt.c
623
fp = fopen(filename, "r");
usr.bin/vtfontcvt/vtfontcvt.c
625
perror(filename);
usr.bin/vtfontcvt/vtfontcvt.c
628
len = strlen(filename);
usr.bin/vtfontcvt/vtfontcvt.c
629
if (len > 4 && strcasecmp(filename + len - 4, ".hex") == 0)
usr.bin/vtfontcvt/vtfontcvt.c
761
write_fnt(const char *filename)
usr.bin/vtfontcvt/vtfontcvt.c
768
fp = fopen(filename, "wb");
usr.bin/vtfontcvt/vtfontcvt.c
770
perror(filename);
usr.bin/vtfontcvt/vtfontcvt.c
782
perror(filename);
usr.bin/vtfontcvt/vtfontcvt.c
792
perror(filename);
usr.bin/vtfontcvt/vtfontcvt.c
802
write_fnt_source(bool lz4, const char *filename)
usr.bin/vtfontcvt/vtfontcvt.c
810
fp = fopen(filename, "w");
usr.bin/vtfontcvt/vtfontcvt.c
812
perror(filename);
usr.bin/vtfontcvt/vtfontcvt.c
988
perror(filename);
usr.bin/which/which.c
121
print_matches(char *path, char *filename)
usr.bin/which/which.c
127
if (strchr(filename, '/') != NULL)
usr.bin/which/which.c
128
return (is_there(filename) ? 0 : -1);
usr.bin/which/which.c
134
filename) >= (int)sizeof(candidate))
usr.sbin/bhyve/snapshot.c
198
load_vmmem_file(const char *filename, struct restore_state *rstate)
usr.sbin/bhyve/snapshot.c
203
rstate->vmmem_fd = open(filename, O_RDONLY);
usr.sbin/bhyve/snapshot.c
231
load_kdata_file(const char *filename, struct restore_state *rstate)
usr.sbin/bhyve/snapshot.c
236
rstate->kdata_fd = open(filename, O_RDONLY);
usr.sbin/bhyve/snapshot.c
270
load_metadata_file(const char *filename, struct restore_state *rstate)
usr.sbin/bhyve/snapshot.c
283
err = ucl_parser_add_file(parser, filename);
usr.sbin/bhyve/snapshot.c
286
filename);
usr.sbin/bhyve/snapshot.c
310
load_restore_file(const char *filename, struct restore_state *rstate)
usr.sbin/bhyve/snapshot.c
315
assert(filename != NULL);
usr.sbin/bhyve/snapshot.c
321
err = load_vmmem_file(filename, rstate);
usr.sbin/bhyve/snapshot.c
327
kdata_filename = strcat_extension(filename, ".kern");
usr.sbin/bhyve/snapshot.c
339
meta_filename = strcat_extension(filename, ".meta");
usr.sbin/bhyve/snapshot.h
104
int load_restore_file(const char *filename, struct restore_state *rstate);
usr.sbin/bhyveload/bhyveload.c
168
cb_open(void *arg __unused, const char *filename, void **hp)
usr.sbin/bhyveload/bhyveload.c
179
if (filename[0] == '/')
usr.sbin/bhyveload/bhyveload.c
180
filename++;
usr.sbin/bhyveload/bhyveload.c
183
if (filename[0] == '\0')
usr.sbin/bhyveload/bhyveload.c
184
filename = ".";
usr.sbin/bhyveload/bhyveload.c
187
fd = openat(hostbase_fd, filename, O_RDONLY | O_RESOLVE_BENEATH);
usr.sbin/bluetooth/ath3kfw/ath3k_hw.c
239
char filename[FILENAME_MAX];
usr.sbin/bluetooth/ath3kfw/ath3k_hw.c
271
snprintf(filename, FILENAME_MAX, "%s/ar3k/ramps_0x%08x_%d%s",
usr.sbin/bluetooth/ath3kfw/ath3k_hw.c
279
filename);
usr.sbin/bluetooth/ath3kfw/ath3k_hw.c
282
if (ath3k_fw_read(&fw, filename) <= 0) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
236
add_filename(struct snmp_toolinfo *snmptoolctx, const char *filename,
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
247
if (strncmp(entry->name, filename, strlen(entry->name)) == 0)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
251
if ((fstring = strdup(filename)) == NULL) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
385
char filename[MAXPATHLEN + 1];
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
391
memset(filename, 0, MAXPATHLEN + 1);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
394
strlcpy(filename, SNMP_DEFS_DIR, MAXPATHLEN + 1);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
397
strlcpy(filename, path, MAXPATHLEN + 1);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
404
filename[namelen++] = *value;
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
422
filename[namelen]='\0';
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
426
if ((namelen == MAXPATHLEN) && (filename[MAXPATHLEN] != '\0')) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
427
warnx("Filename %s too long", filename);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
431
if (add_filename(snmptoolctx, filename, cut, 0) < 0) {
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
432
warnx("Error adding file %s to list", filename);
usr.sbin/camdd/camdd.c
1034
strlcpy(file_dev->filename, io_opts->dev_name,
usr.sbin/camdd/camdd.c
1035
sizeof(file_dev->filename));
usr.sbin/camdd/camdd.c
2525
"reading from", file_dev->filename);
usr.sbin/camdd/camdd.c
2563
file_dev->filename);
usr.sbin/camdd/camdd.c
280
char filename[MAXPATHLEN + 1];
usr.sbin/camdd/camdd.c
452
int camdd_probe_tape(int fd, char *filename, uint64_t *max_iosize,
usr.sbin/camdd/camdd.c
970
camdd_probe_tape(int fd, char *filename, uint64_t *max_iosize,
usr.sbin/camdd/camdd.c
980
err(1, "Couldn't get XML string from %s", filename);
usr.sbin/camdd/camdd.c
984
warn("couldn't get status for %s", filename);
usr.sbin/crunch/crunchgen/crunchgen.c
252
void parse_one_file(char *filename);
usr.sbin/crunch/crunchgen/crunchgen.c
281
parse_one_file(char *filename)
usr.sbin/crunch/crunchgen/crunchgen.c
289
snprintf(line, sizeof(line), "reading %s", filename);
usr.sbin/crunch/crunchgen/crunchgen.c
291
strlcpy(curfilename, filename, sizeof(curfilename));
usr.sbin/crunch/crunchide/crunchide.c
182
add_file_to_keep_list(char *filename)
usr.sbin/crunch/crunchide/crunchide.c
188
if((keepf = fopen(filename, "r")) == NULL) {
usr.sbin/crunch/crunchide/crunchide.c
189
perror(filename);
usr.sbin/crunch/crunchide/crunchide.c
219
hide_syms(const char *filename)
usr.sbin/crunch/crunchide/crunchide.c
223
fd = open(filename, O_RDWR, 0);
usr.sbin/crunch/crunchide/crunchide.c
225
perror(filename);
usr.sbin/crunch/crunchide/crunchide.c
234
perror(filename);
usr.sbin/crunch/crunchide/crunchide.c
237
if ((*exec_formats[i].check)(fd, filename) != 0)
usr.sbin/crunch/crunchide/crunchide.c
241
fprintf(stderr, "%s: unknown executable format\n", filename);
usr.sbin/crunch/crunchide/crunchide.c
246
fprintf(stderr, "%s is an %s binary\n", filename,
usr.sbin/crunch/crunchide/crunchide.c
250
perror(filename);
usr.sbin/crunch/crunchide/crunchide.c
253
rv = (*exec_formats[i].hide)(fd, filename);
usr.sbin/crunch/crunchide/crunchide.c
80
static void add_file_to_keep_list(char *filename);
usr.sbin/crunch/crunchide/crunchide.c
82
static int hide_syms(const char *filename);
usr.sbin/ctladm/ctladm.c
1640
char *filename = NULL;
usr.sbin/ctladm/ctladm.c
1673
filename = strdup(optarg);
usr.sbin/ctladm/ctladm.c
1683
if (filename == NULL) {
usr.sbin/ctladm/ctladm.c
1732
if (strcmp(filename, "-") == 0) {
usr.sbin/ctladm/ctladm.c
1739
file_fd = open(filename, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
usr.sbin/ctladm/ctladm.c
1741
warn("%s: can't open file %s", __func__, filename);
usr.sbin/ctladm/ctladm.c
1754
warn("%s: error reading file %s", __func__, filename);
usr.sbin/ctladm/ctladm.c
1760
__func__, bytes_read, filename);
usr.sbin/ctladm/ctladm.c
1790
warn("%s: can't write to %s", __func__, filename);
usr.sbin/fstyp/hammer2.c
137
if (memchr(ipdata.filename, 0,
usr.sbin/fstyp/hammer2.c
138
sizeof(ipdata.filename))) {
usr.sbin/fstyp/hammer2.c
140
(const char*)ipdata.filename, pfs))
usr.sbin/fstyp/hammer2.c
144
!memcmp(ipdata.filename, pfs,
usr.sbin/fstyp/hammer2.c
257
memcpy(label, media->ipdata.filename,
usr.sbin/fstyp/hammer2.c
258
sizeof(media->ipdata.filename));
usr.sbin/fstyp/hammer2_disk.h
1061
unsigned char filename[HAMMER2_INODE_MAXNAME];
usr.sbin/fwcontrol/fwcontrol.c
499
load_crom(char *filename, u_int32_t *p)
usr.sbin/fwcontrol/fwcontrol.c
504
if ((file = fopen(filename, "r")) == NULL)
usr.sbin/fwcontrol/fwcontrol.c
505
err(1, "load_crom %s", filename);
usr.sbin/fwcontrol/fwdv.c
104
if(strcmp(filename, "-") == 0) {
usr.sbin/fwcontrol/fwdv.c
107
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/fwcontrol/fwdv.c
109
err(EX_NOINPUT, "%s", filename);
usr.sbin/fwcontrol/fwdv.c
252
dvsend(int d, const char *filename, char ich, int count)
usr.sbin/fwcontrol/fwdv.c
267
fd = open(filename, O_RDONLY);
usr.sbin/fwcontrol/fwdv.c
269
err(EX_NOINPUT, "%s", filename);
usr.sbin/fwcontrol/fwdv.c
91
dvrecv(int d, const char *filename, char ich, int count)
usr.sbin/fwcontrol/fwmethods.h
5
typedef void (fwmethod)(int dev_fd, const char *filename, char ich, int count);
usr.sbin/fwcontrol/fwmpegts.c
149
mpegtsrecv(int d, const char *filename, char ich, int count)
usr.sbin/fwcontrol/fwmpegts.c
162
if (strcmp(filename, "-") == 0)
usr.sbin/fwcontrol/fwmpegts.c
165
fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
usr.sbin/fwcontrol/fwmpegts.c
167
err(EX_NOINPUT, "%s", filename);
usr.sbin/iovctl/iovctl.c
174
const char *filename;
usr.sbin/iovctl/iovctl.c
179
filename = NULL;
usr.sbin/iovctl/iovctl.c
205
filename = optarg;
usr.sbin/iovctl/iovctl.c
225
if (device != NULL && filename != NULL) {
usr.sbin/iovctl/iovctl.c
230
if (device == NULL && filename == NULL && action != CONFIG) {
usr.sbin/iovctl/iovctl.c
241
if (filename == NULL) {
usr.sbin/iovctl/iovctl.c
245
config_action(filename, dryrun);
usr.sbin/iovctl/iovctl.c
249
device = find_device(filename);
usr.sbin/iovctl/iovctl.c
259
device = find_device(filename);
usr.sbin/iovctl/iovctl.c
272
config_action(const char *filename, int dryrun)
usr.sbin/iovctl/iovctl.c
278
dev = find_device(filename);
usr.sbin/iovctl/iovctl.c
284
config = parse_config_file(filename, schema);
usr.sbin/iovctl/iovctl.c
43
static void config_action(const char *filename, int dryrun);
usr.sbin/iovctl/parse.c
278
parse_config_file(const char *filename, const nvlist_t *schema)
usr.sbin/iovctl/parse.c
299
if (!ucl_parser_add_file(parser, filename))
usr.sbin/iovctl/parse.c
300
err(1, "Could not open '%s' for reading", filename);
usr.sbin/iovctl/parse.c
304
errx(1, "Could not parse '%s': %s", filename, errmsg);
usr.sbin/iovctl/parse.c
391
find_device(const char *filename)
usr.sbin/iovctl/parse.c
409
if (!ucl_parser_add_file(parser, filename))
usr.sbin/iovctl/parse.c
410
err(1, "Could not open '%s' for reading", filename);
usr.sbin/iovctl/parse.c
414
errx(1, "Could not parse '%s': %s", filename, errmsg);
usr.sbin/kbdmap/kbdmap.c
563
char buffer[256], filename[PATH_MAX];
usr.sbin/kbdmap/kbdmap.c
575
sprintf(filename, "%s/INDEX.%s", dir, extract_name(dir));
usr.sbin/kbdmap/kbdmap.c
594
fp = fopen(filename, "r");
usr.sbin/kbdmap/kbdmap.c
679
fprintf(stderr, "Could not open %s for reading\n", filename);
usr.sbin/kldxref/kldxref.c
631
read_kld(char *filename, char *kldname)
usr.sbin/kldxref/kldxref.c
641
printf("%s\n", filename);
usr.sbin/kldxref/kldxref.c
643
error = elf_open_file(&ef, filename, verbose);
usr.sbin/kldxref/kldxref.c
651
ehdr_filename = strdup(filename);
usr.sbin/kldxref/kldxref.c
654
filename, ehdr_filename);
usr.sbin/kldxref/kldxref.c
691
warnc(error, "error while reading %s", filename);
usr.sbin/kldxref/kldxref.c
706
warnc(error, "error while reading %s", filename);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
103
sysname, filename);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
127
new_image->filename = estrdup(filename);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
132
if (lstat(new_image->filename, &stbuf) == -1)
usr.sbin/makefs/cd9660/cd9660_eltorito.c
134
new_image->filename);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
665
t->filename, t->sector);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
667
cd9660_copy_file(diskStructure, fd, t->sector, t->filename);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
76
char *filename;
usr.sbin/makefs/cd9660/cd9660_eltorito.c
91
filename = strchr(sysname, ';');
usr.sbin/makefs/cd9660/cd9660_eltorito.c
92
if (filename == NULL) {
usr.sbin/makefs/cd9660/cd9660_eltorito.c
99
*filename++ = '\0';
usr.sbin/makefs/cd9660/cd9660_eltorito.h
143
char *filename;
usr.sbin/makefs/cd9660/cd9660_write.c
426
const char *filename)
usr.sbin/makefs/cd9660/cd9660_write.c
434
if ((rf = fopen(filename, "rb")) == NULL) {
usr.sbin/makefs/cd9660/cd9660_write.c
435
warn("%s: cannot open %s", __func__, filename);
usr.sbin/makefs/cd9660/cd9660_write.c
441
printf("Writing file: %s\n",filename);
usr.sbin/pkg/pkg.c
405
load_fingerprint(const char *dir, const char *filename)
usr.sbin/pkg/pkg.c
414
snprintf(path, MAXPATHLEN, "%s/%s", dir, filename);
usr.sbin/pkg/pkg.c
429
f->name = strdup(filename);
usr.sbin/pmcstat/pmcpl_annotate_cg.c
113
filename, sizeof(filename), &sline, funcname, sizeof(funcname));
usr.sbin/pmcstat/pmcpl_annotate_cg.c
120
filename,
usr.sbin/pmcstat/pmcpl_annotate_cg.c
89
char filename[PATH_MAX], funcname[PATH_MAX];
usr.sbin/pmcstat/pmcpl_annotate_cg.c
98
filename[0] = '\0';
usr.sbin/pmcstudy/pmcstudy.c
2241
process_file(char *filename)
usr.sbin/pmcstudy/pmcstudy.c
2248
if (filename == NULL) {
usr.sbin/pmcstudy/pmcstudy.c
2255
io = fopen(filename, "r");
usr.sbin/pmcstudy/pmcstudy.c
2258
filename, errno);
usr.sbin/pmcstudy/pmcstudy.c
2266
if (filename) {
usr.sbin/pmcstudy/pmcstudy.c
2293
if (filename == NULL) {
usr.sbin/pmcstudy/pmcstudy.c
2308
if (filename) {
usr.sbin/pmcstudy/pmcstudy.c
2804
char *filename=NULL;
usr.sbin/pmcstudy/pmcstudy.c
2857
filename = optarg;
usr.sbin/pmcstudy/pmcstudy.c
2877
if ((run_all == 0) && (name == NULL) && (filename == NULL) &&
usr.sbin/pmcstudy/pmcstudy.c
2914
process_file(filename);
usr.sbin/ppp/systems.c
293
GetLabel(char *line, const char *filename, int linenum)
usr.sbin/ppp/systems.c
305
filename, linenum);
usr.sbin/ppp/systems.c
323
char filename[PATH_MAX];
usr.sbin/ppp/systems.c
333
snprintf(filename, sizeof filename, "%s", file);
usr.sbin/ppp/systems.c
335
snprintf(filename, sizeof filename, "%s/%s", PPP_CONFDIR, file);
usr.sbin/ppp/systems.c
336
fp = ID0fopen(filename, "r");
usr.sbin/ppp/systems.c
338
log_Printf(LogDEBUG, "ReadSystem: Can't open %s.\n", filename);
usr.sbin/ppp/systems.c
341
log_Printf(LogDEBUG, "ReadSystem: Checking %s (%s).\n", name, filename);
usr.sbin/ppp/systems.c
358
log_Printf(LogCOMMAND, "%s: Including \"%s\"\n", filename, arg);
usr.sbin/ppp/systems.c
360
log_Printf(LogCOMMAND, "%s: Done include of \"%s\"\n", filename, arg);
usr.sbin/ppp/systems.c
367
log_Printf(LogWARN, "%s: %s: Invalid command\n", filename, cp);
usr.sbin/ppp/systems.c
373
if ((cp = GetLabel(cp, filename, linenum)) == NULL)
usr.sbin/ppp/systems.c
392
cp = GetLabel(cp, filename, linenum);
usr.sbin/ppp/systems.c
398
log_Printf(LogWARN, "%s: %d: Syntax error\n", filename, linenum);
usr.sbin/rpc.statd/file.c
172
void init_file(const char *filename)
usr.sbin/rpc.statd/file.c
179
status_fd = open(filename, O_RDWR);
usr.sbin/rpc.statd/file.c
182
status_fd = open(filename, O_RDWR | O_CREAT, 0644);
usr.sbin/rpc.statd/file.c
186
errx(1, "unable to open status file %s", filename);
usr.sbin/rpc.ypupdated/update.c
226
localupdate(char *name, char *filename, u_int op, u_int keylen __unused,
usr.sbin/rpc.ypupdated/update.c
251
tmpname = malloc(strlen(filename) + 4);
usr.sbin/rpc.ypupdated/update.c
255
sprintf(tmpname, "%s.tmp", filename);
usr.sbin/rpc.ypupdated/update.c
256
rf = fopen(filename, "r");
usr.sbin/rpc.ypupdated/update.c
304
if (rename(tmpname, filename) < 0) {
usr.sbin/rpcbind/warmstart.c
104
read_struct(char *filename, xdrproc_t structproc, void *list)
usr.sbin/rpcbind/warmstart.c
110
if (stat(filename, &sbuf) != 0) {
usr.sbin/rpcbind/warmstart.c
112
"rpcbind: cannot stat file = %s for reading\n", filename);
usr.sbin/rpcbind/warmstart.c
119
filename);
usr.sbin/rpcbind/warmstart.c
122
fp = fopen(filename, "r");
usr.sbin/rpcbind/warmstart.c
125
"rpcbind: cannot open file = %s for reading\n", filename);
usr.sbin/rpcbind/warmstart.c
131
fprintf(stderr, "rpcbind: xdr_%s: failed\n", filename);
usr.sbin/rpcbind/warmstart.c
69
write_struct(char *filename, xdrproc_t structproc, void *list)
usr.sbin/rpcbind/warmstart.c
76
fp = fopen(filename, "w");
usr.sbin/rpcbind/warmstart.c
82
fp = fopen(filename, "w");
usr.sbin/rpcbind/warmstart.c
85
"cannot open file = %s for writing", filename);
usr.sbin/rpcbind/warmstart.c
94
syslog(LOG_ERR, "rpcbind: xdr_%s: failed", filename);
usr.sbin/tzsetup/tzsetup.c
156
static int confirm_zone(const char *filename);
usr.sbin/tzsetup/tzsetup.c
287
char *filename;
usr.sbin/tzsetup/tzsetup.c
410
zp->filename = strdup(file);
usr.sbin/tzsetup/tzsetup.c
411
if (zp->filename == NULL)
usr.sbin/tzsetup/tzsetup.c
565
printf(" %s:%s\n", cont, zp->filename);
usr.sbin/tzsetup/tzsetup.c
700
confirm_zone(const char *filename)
usr.sbin/tzsetup/tzsetup.c
707
setenv("TZ", filename, 1);
usr.sbin/tzsetup/tzsetup.c
724
if (!confirm_zone(zp->filename))
usr.sbin/tzsetup/tzsetup.c
727
rv = install_zoneinfo(zp->filename);
usr.sbin/vidcontrol/vidcontrol.c
270
load_scrnmap(const char *filename)
usr.sbin/vidcontrol/vidcontrol.c
277
const char *b[] = {filename, NULL};
usr.sbin/vidcontrol/vidcontrol.c
466
load_font(const char *type, const char *filename)
usr.sbin/vidcontrol/vidcontrol.c
474
const char *b[] = {filename, NULL};
usr.sbin/vidcontrol/vidcontrol.c
503
errx(1, "%s: can't load font file", filename);
usr.sbin/vidcontrol/vidcontrol.c
556
errx(1, "%s: can't guess font size", filename);
usr.sbin/vidcontrol/vidcontrol.c
571
errx(1, "%s: bad font file", filename);
usr.sbin/ypldap/parse.y
725
parse_config(struct env *x_conf, const char *filename, int opts)
usr.sbin/ypldap/parse.y
738
if ((file = pushfile(filename, 1)) == NULL) {
usr.sbin/zonectl/zonectl.c
396
char *filename = NULL;
usr.sbin/zonectl/zonectl.c
430
filename = strdup(optarg);
usr.sbin/zonectl/zonectl.c
431
if (filename == NULL)
usr.sbin/zonectl/zonectl.c
496
if (filename == NULL) {
usr.sbin/zonectl/zonectl.c
551
fd = open(filename, open_flags);
usr.sbin/zonectl/zonectl.c
553
warn("Unable to open device %s", filename);