bin/ed/main.c
1298
static char *file = NULL;
bin/ed/main.c
1303
REALLOC(file, filesz, PATH_MAX, NULL);
bin/ed/main.c
1305
&& (file[i++] = (*s == '\\') ? *++s : *s))
bin/ed/main.c
1307
return file;
bin/ed/main.c
903
static char *file = NULL;
bin/ed/main.c
933
REALLOC(file, filesz, PATH_MAX, NULL);
bin/ed/main.c
935
file[n++] = *ibufp++;
bin/ed/main.c
936
file[n] = '\0';
bin/ed/main.c
937
return is_legal_filename(file) ? file : NULL;
bin/pax/options.c
591
char *file;
bin/pax/options.c
755
incfiles[nincfiles - 1].file = optarg;
bin/pax/options.c
838
char *file, *dir = NULL;
bin/pax/options.c
849
file = incfiles->file;
bin/pax/options.c
856
file = *argv++;
bin/pax/options.c
859
file = NULL;
bin/pax/options.c
860
if (file != NULL) {
bin/pax/options.c
864
if (strcmp(file, "-") == 0)
bin/pax/options.c
866
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
867
paxwarn(1, "Unable to open file '%s' for read", file);
bin/pax/options.c
875
if (strcmp(file, "-") != 0)
bin/pax/options.c
878
paxwarn(1, "Problem with file '%s'", file);
bin/pax/options.c
907
char *file, *dir = NULL;
bin/pax/options.c
916
file = incfiles->file;
bin/pax/options.c
923
file = *argv++;
bin/pax/options.c
926
file = NULL;
bin/pax/options.c
927
if (file != NULL) {
bin/pax/options.c
937
if (strcmp(file, "-") == 0)
bin/pax/options.c
939
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
940
paxwarn(1, "Unable to open file '%s' for read", file);
bin/pax/options.c
947
if (strcmp(file, "-") != 0)
bin/pax/options.c
951
file);
bin/setfacl/file.c
44
FILE *file;
bin/setfacl/file.c
54
file = stdin;
bin/setfacl/file.c
57
file = fopen(filename, "r");
bin/setfacl/file.c
58
if (file == NULL)
bin/setfacl/file.c
62
len = fread(buf, (size_t)1, sizeof(buf) - 1, file);
bin/setfacl/file.c
64
if (ferror(file) != 0) {
bin/setfacl/file.c
65
fclose(file);
bin/setfacl/file.c
67
} else if (feof(file) == 0) {
bin/setfacl/file.c
68
fclose(file);
bin/setfacl/file.c
72
fclose(file);
bin/setfacl/setfacl.c
173
handle_file(FTS *ftsp, FTSENT *file)
bin/setfacl/setfacl.c
182
switch (file->fts_info) {
bin/setfacl/setfacl.c
186
fts_set(ftsp, file, FTS_SKIP);
bin/setfacl/setfacl.c
193
warnx("%s: %s", file->fts_path, strerror(file->fts_errno));
bin/setfacl/setfacl.c
199
if (acl_type == ACL_TYPE_DEFAULT && file->fts_info != FTS_D) {
bin/setfacl/setfacl.c
201
file->fts_path);
bin/setfacl/setfacl.c
206
(R_flag && H_flag && file->fts_level == FTS_ROOTLEVEL);
bin/setfacl/setfacl.c
209
ret = pathconf(file->fts_accpath, _PC_ACL_NFS4);
bin/setfacl/setfacl.c
211
ret = lpathconf(file->fts_accpath, _PC_ACL_NFS4);
bin/setfacl/setfacl.c
215
file->fts_path);
bin/setfacl/setfacl.c
224
file->fts_path);
bin/setfacl/setfacl.c
228
acl = acl_get_file(file->fts_accpath, acl_type);
bin/setfacl/setfacl.c
230
acl = acl_get_link_np(file->fts_accpath, acl_type);
bin/setfacl/setfacl.c
233
warn("%s: acl_get_file() failed", file->fts_path);
bin/setfacl/setfacl.c
235
warn("%s: acl_get_link_np() failed", file->fts_path);
bin/setfacl/setfacl.c
244
if (R_flag && file->fts_info != FTS_D &&
bin/setfacl/setfacl.c
248
file->fts_path);
bin/setfacl/setfacl.c
251
if (R_flag && file->fts_info != FTS_D &&
bin/setfacl/setfacl.c
254
local_error += merge_acl(nacl, &acl, file->fts_path);
bin/setfacl/setfacl.c
266
file->fts_path);
bin/setfacl/setfacl.c
269
remove_ext(&acl, file->fts_path);
bin/setfacl/setfacl.c
276
file->fts_path);
bin/setfacl/setfacl.c
280
if (acl_delete_def_file(file->fts_accpath) == -1) {
bin/setfacl/setfacl.c
282
file->fts_path);
bin/setfacl/setfacl.c
287
file->fts_path);
bin/setfacl/setfacl.c
291
local_error += remove_acl(nacl, &acl, file->fts_path);
bin/setfacl/setfacl.c
296
&acl, file->fts_path);
bin/setfacl/setfacl.c
317
if (acl_delete_def_file(file->fts_accpath) == -1) {
bin/setfacl/setfacl.c
319
file->fts_path);
bin/setfacl/setfacl.c
329
set_acl_mask(&acl, file->fts_path) == -1) {
bin/setfacl/setfacl.c
330
warnx("%s: failed to set ACL mask", file->fts_path);
bin/setfacl/setfacl.c
333
if (acl_set_file(file->fts_accpath, acl_type, acl) == -1) {
bin/setfacl/setfacl.c
334
warn("%s: acl_set_file() failed", file->fts_path);
bin/setfacl/setfacl.c
338
if (acl_set_link_np(file->fts_accpath, acl_type, acl) == -1) {
bin/setfacl/setfacl.c
339
warn("%s: acl_set_link_np() failed", file->fts_path);
bin/setfacl/setfacl.c
354
FTSENT *file;
bin/setfacl/setfacl.c
499
while (errno = 0, (file = fts_read(ftsp)) != NULL)
bin/setfacl/setfacl.c
500
carried_error += handle_file(ftsp, file);
bin/setfacl/setfacl.c
72
static int handle_file(FTS *ftsp, FTSENT *file);
bin/sh/bltin/bltin.h
54
#define putc(c, file) outc(c, file)
bin/sh/bltin/bltin.h
59
#define fwrite(ptr, size, nmemb, file) outbin(ptr, (size) * (nmemb), file)
bin/sh/input.c
490
popfilesupto(struct parsefile *file)
bin/sh/input.c
492
while (parsefile != file && parsefile != &basepf)
bin/sh/input.c
494
if (parsefile != file)
bin/sh/mknodes.c
203
output(char *file)
bin/sh/mknodes.c
213
if ((patfile = fopen(file, "r")) == NULL)
bin/sh/mknodes.c
214
error("Can't open %s: %s", file, strerror(errno));
bin/sh/output.c
105
outstr(const char *p, struct output *file)
bin/sh/output.c
107
outbin(p, strlen(p), file);
bin/sh/output.c
111
byteseq(int ch, struct output *file)
bin/sh/output.c
119
outbin(seq, 4, file);
bin/sh/output.c
123
outdqstr(const char *p, struct output *file)
bin/sh/output.c
132
outstr("$'", file);
bin/sh/output.c
136
byteseq(*p++, file);
bin/sh/output.c
141
byteseq(*p++, file);
bin/sh/output.c
145
outcslow('\n', file), p++;
bin/sh/output.c
147
outstr("\\r", file), p++;
bin/sh/output.c
149
outstr("\\t", file), p++;
bin/sh/output.c
152
byteseq(*p++, file);
bin/sh/output.c
155
outcslow('\\', file);
bin/sh/output.c
156
outbin(p, clen, file);
bin/sh/output.c
160
outcslow('\'', file);
bin/sh/output.c
165
outqstr(const char *p, struct output *file)
bin/sh/output.c
170
outstr("''", file);
bin/sh/output.c
176
outdqstr(p, file);
bin/sh/output.c
183
outstr(p, file);
bin/sh/output.c
187
outcslow('\'', file);
bin/sh/output.c
188
outstr(p, file);
bin/sh/output.c
189
outcslow('\'', file);
bin/sh/output.c
193
outbin(const void *data, size_t len, struct output *file)
bin/sh/output.c
199
outc(*p++, file);
bin/sh/output.c
256
outiserror(struct output *file)
bin/sh/output.c
258
return (file->flags & OUTPUT_ERR);
bin/sh/output.c
263
outclearerror(struct output *file)
bin/sh/output.c
265
file->flags &= ~OUTPUT_ERR;
bin/sh/output.c
270
outfmt(struct output *file, const char *fmt, ...)
bin/sh/output.c
275
doformat(file, fmt, ap);
bin/sh/output.c
75
outcslow(int c, struct output *file)
bin/sh/output.c
77
outc(c, file);
bin/sh/output.h
79
#define outc(c, file) ((file)->nextc == (file)->bufend ? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
bin/stty/stty.c
52
const char *file, *errstr = NULL;
bin/stty/stty.c
56
file = "stdin";
bin/stty/stty.c
72
file = optarg;
bin/stty/stty.c
86
errx(1, "%s isn't a terminal", file);
cddl/compat/opensolaris/include/assert.h
49
__assert(const char *expr, const char *file, int line)
cddl/compat/opensolaris/include/assert.h
53
expr, file, line);
crypto/heimdal/appl/ftp/ftp/cmds.c
1535
confirm(char *cmd, char *file)
crypto/heimdal/appl/ftp/ftp/cmds.c
1541
printf("%s %s? ", cmd, file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
117
#define LOGCMD(cmd, file) \
crypto/heimdal/appl/ftp/ftpd/ftpd.c
120
*(file) == '/' ? "" : curdir(), file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1247
FILE *file;
crypto/heimdal/appl/ftp/ftpd/ftpd.c
126
#define LOGBYTES(cmd, file, cnt) \
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1299
file = getdatasock(mode, domain);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
130
*(file) == '/' ? "" : curdir(), file); \
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1300
if (file == NULL) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1315
data = fileno(file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1324
fclose(file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
133
cmd, (*(file) == '/') ? "" : curdir(), file, (long)cnt); \
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1330
return (file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2183
list_file(char *file)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2187
dout = dataconn(file, -1, "w");
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2191
if(builtin_ls(dout, file) == 0)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2204
retrieve(cmd, file);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
247
show_file(const char *file, int code)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
252
f = fopen(file, "r");
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
154
struct stat *st = &file->st;
crypto/heimdal/appl/ftp/ftpd/ls.c
156
file->inode = st->st_ino;
crypto/heimdal/appl/ftp/ftpd/ls.c
157
file->bsize = block_convert(st->st_blocks);
crypto/heimdal/appl/ftp/ftpd/ls.c
160
file->mode[0] = 'd';
crypto/heimdal/appl/ftp/ftpd/ls.c
164
file->mode[0] = 'c';
crypto/heimdal/appl/ftp/ftpd/ls.c
166
file->mode[0] = 'b';
crypto/heimdal/appl/ftp/ftpd/ls.c
168
file->mode[0] = '-';
crypto/heimdal/appl/ftp/ftpd/ls.c
173
file->mode[0] = 'p';
crypto/heimdal/appl/ftp/ftpd/ls.c
177
file->mode[0] = 'l';
crypto/heimdal/appl/ftp/ftpd/ls.c
181
file->mode[0] = 's';
crypto/heimdal/appl/ftp/ftpd/ls.c
186
file->mode[0] = 'w';
crypto/heimdal/appl/ftp/ftpd/ls.c
191
file->mode[0] = '?';
crypto/heimdal/appl/ftp/ftpd/ls.c
195
strcpy(file->mode + 1, x[(st->st_mode & S_IRWXU) >> 6]);
crypto/heimdal/appl/ftp/ftpd/ls.c
196
strcpy(file->mode + 4, x[(st->st_mode & S_IRWXG) >> 3]);
crypto/heimdal/appl/ftp/ftpd/ls.c
197
strcpy(file->mode + 7, x[(st->st_mode & S_IRWXO) >> 0]);
crypto/heimdal/appl/ftp/ftpd/ls.c
200
file->mode[3] = 's';
crypto/heimdal/appl/ftp/ftpd/ls.c
202
file->mode[3] = 'S';
crypto/heimdal/appl/ftp/ftpd/ls.c
206
file->mode[6] = 's';
crypto/heimdal/appl/ftp/ftpd/ls.c
208
file->mode[6] = 'S';
crypto/heimdal/appl/ftp/ftpd/ls.c
212
file->mode[9] = 't';
crypto/heimdal/appl/ftp/ftpd/ls.c
214
file->mode[9] = 'T';
crypto/heimdal/appl/ftp/ftpd/ls.c
217
file->n_link = st->st_nlink;
crypto/heimdal/appl/ftp/ftpd/ls.c
222
if (asprintf(&file->user, "%u", (unsigned)st->st_uid) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
223
file->user = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
225
file->user = strdup(pwd->pw_name);
crypto/heimdal/appl/ftp/ftpd/ls.c
226
if (file->user == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
235
if (asprintf(&file->group, "%u", (unsigned)st->st_gid) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
236
file->group = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
238
file->group = strdup(grp->gr_name);
crypto/heimdal/appl/ftp/ftpd/ls.c
239
if (file->group == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
247
if (asprintf(&file->major, "%u", (unsigned)major(st->st_rdev)) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
248
file->major = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
249
if (asprintf(&file->minor, "%u", (unsigned)minor(st->st_rdev)) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
250
file->minor = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
253
if (asprintf(&file->major, "%u", (unsigned)st->st_rdev) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
254
file->major = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
255
if (asprintf(&file->minor, "%u", 0) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
256
file->minor = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
258
if (file->major == NULL || file->minor == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
263
if (asprintf(&file->size, "%lu", (unsigned long)st->st_size) == -1)
crypto/heimdal/appl/ftp/ftpd/ls.c
264
file->size = NULL;
crypto/heimdal/appl/ftp/ftpd/ls.c
276
file->date = strdup(buf);
crypto/heimdal/appl/ftp/ftpd/ls.c
277
if (file->date == NULL) {
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
303
file->link = strdup(buf);
crypto/heimdal/appl/ftp/ftpd/ls.c
304
if (file->link == NULL) {
crypto/heimdal/appl/ftp/ftpd/ls.c
413
lstat_file (const char *file, struct stat *sb)
crypto/heimdal/appl/ftp/ftpd/ls.c
418
&& strcmp(file, ".")
crypto/heimdal/appl/ftp/ftpd/ls.c
419
&& strcmp(file, "..")
crypto/heimdal/appl/ftp/ftpd/ls.c
420
&& strcmp(file, "/"))
crypto/heimdal/appl/ftp/ftpd/ls.c
429
path_bkp = strdup (file);
crypto/heimdal/appl/ftp/ftpd/ls.c
473
return lstat (file, sb);
crypto/heimdal/appl/ftp/ftpd/ls.c
498
return lstat (file, sb);
crypto/heimdal/appl/ftp/ftpd/ls.c
877
builtin_ls(FILE *out, const char *file)
crypto/heimdal/appl/ftp/ftpd/ls.c
882
if(*file == '-') {
crypto/heimdal/appl/ftp/ftpd/ls.c
883
flags = parse_flags(file);
crypto/heimdal/appl/ftp/ftpd/ls.c
884
file = ".";
crypto/heimdal/appl/ftp/ftpd/ls.c
888
ret = list_files(out, &file, 1, flags);
crypto/heimdal/appl/gssmask/gssmaestro.c
568
char *file, *string;
crypto/heimdal/appl/gssmask/gssmaestro.c
576
if (krb5_ret_string(c->logsock, &file))
crypto/heimdal/appl/gssmask/gssmaestro.c
578
free(file);
crypto/heimdal/appl/gssmask/gssmaestro.c
582
if (krb5_ret_string(c->logsock, &file))
crypto/heimdal/appl/gssmask/gssmaestro.c
589
file, (unsigned long)line, string);
crypto/heimdal/appl/gssmask/gssmaestro.c
591
file, (unsigned long)line, string);
crypto/heimdal/appl/gssmask/gssmaestro.c
593
free(file);
crypto/heimdal/appl/gssmask/gssmask.c
70
logmessage(struct client *c, const char *file, unsigned int lineno,
crypto/heimdal/appl/gssmask/gssmask.c
82
fprintf(logfile, "%s:%u: %d %s\n", file, lineno, level, message);
crypto/heimdal/appl/gssmask/gssmask.c
87
if (krb5_store_string(c->logging, file) != 0)
crypto/heimdal/appl/login/env.c
86
login_read_env(const char *file)
crypto/heimdal/appl/login/env.c
93
i = read_environment(file, &newenv);
crypto/heimdal/appl/login/env.c
98
file, newenv[j]);
crypto/heimdal/appl/login/limits_conf.c
100
read_limits_conf(const char *file, const struct passwd *pwd)
crypto/heimdal/appl/login/limits_conf.c
109
f = fopen(file, "r");
crypto/heimdal/appl/login/limits_conf.c
112
syslog(LOG_ERR, "%s: %m", file);
crypto/heimdal/appl/login/limits_conf.c
124
syslog(LOG_ERR, "%s: line %d: NUL character", file, lineno);
crypto/heimdal/appl/login/limits_conf.c
138
syslog(LOG_ERR, "%s: line %d: line too long", file, lineno);
crypto/heimdal/appl/login/limits_conf.c
148
syslog(LOG_ERR, "%s: line %d: malformed line", file, lineno);
crypto/heimdal/appl/login/limits_conf.c
154
syslog(LOG_ERR, "%s: line %d: unknown limit %s", file, lineno, args[2]);
crypto/heimdal/appl/login/limits_conf.c
163
syslog(LOG_ERR, "%s: line %d: bad value %s", file, lineno, args[3]);
crypto/heimdal/appl/login/limits_conf.c
167
syslog(LOG_ERR, "%s: line %d: bad value %s", file, lineno, args[3]);
crypto/heimdal/appl/login/login.c
297
show_file(const char *file)
crypto/heimdal/appl/login/login.c
301
if((f = fopen(file, "r")) == NULL)
crypto/heimdal/appl/login/login.c
362
const char *file = login_conf_get_string("limits");
crypto/heimdal/appl/login/login.c
363
if(file == NULL)
crypto/heimdal/appl/login/login.c
364
file = _PATH_LIMITS_CONF;
crypto/heimdal/appl/login/login.c
366
read_limits_conf(file, pwd);
crypto/heimdal/appl/rsh/limits_conf.c
100
read_limits_conf(const char *file, const struct passwd *pwd)
crypto/heimdal/appl/rsh/limits_conf.c
109
f = fopen(file, "r");
crypto/heimdal/appl/rsh/limits_conf.c
112
syslog(LOG_ERR, "%s: %m", file);
crypto/heimdal/appl/rsh/limits_conf.c
124
syslog(LOG_ERR, "%s: line %d: NUL character", file, lineno);
crypto/heimdal/appl/rsh/limits_conf.c
138
syslog(LOG_ERR, "%s: line %d: line too long", file, lineno);
crypto/heimdal/appl/rsh/limits_conf.c
148
syslog(LOG_ERR, "%s: line %d: malformed line", file, lineno);
crypto/heimdal/appl/rsh/limits_conf.c
154
syslog(LOG_ERR, "%s: line %d: unknown limit %s", file, lineno, args[2]);
crypto/heimdal/appl/rsh/limits_conf.c
163
syslog(LOG_ERR, "%s: line %d: bad value %s", file, lineno, args[3]);
crypto/heimdal/appl/rsh/limits_conf.c
167
syslog(LOG_ERR, "%s: line %d: bad value %s", file, lineno, args[3]);
crypto/heimdal/appl/rsh/rshd.c
41
read_limits_conf(const char *file, const struct passwd *pwd);
crypto/heimdal/appl/rsh/rshd.c
761
const char *file = _PATH_LIMITS_CONF;
crypto/heimdal/appl/rsh/rshd.c
762
read_limits_conf(file, pwd);
crypto/heimdal/appl/telnet/telnet/externs.h
358
void SetNetTrace(char *file);
crypto/heimdal/appl/telnet/telnet/utilities.c
78
SetNetTrace(char *file)
crypto/heimdal/appl/telnet/telnet/utilities.c
82
if (file && (strcmp(file, "-") != 0)) {
crypto/heimdal/appl/telnet/telnet/utilities.c
83
NetTrace = fopen(file, "w");
crypto/heimdal/appl/telnet/telnet/utilities.c
85
strlcpy(NetTraceFile, file, sizeof(NetTraceFile));
crypto/heimdal/appl/telnet/telnet/utilities.c
88
fprintf(stderr, "Cannot open %s.\n", file);
crypto/heimdal/kdc/mit_dump.c
134
mit_prop_dump(void *arg, const char *file)
crypto/heimdal/kdc/mit_dump.c
148
f = fopen(file, "r");
crypto/heimdal/kdc/pkinit.c
1962
const char *file;
crypto/heimdal/kdc/pkinit.c
1966
file = krb5_config_get_string(context, NULL,
crypto/heimdal/kdc/pkinit.c
1969
ret = _krb5_parse_moduli(context, file, &moduli);
crypto/heimdal/kdc/pkinit.c
2039
file = krb5_config_get_string(context,
crypto/heimdal/kdc/pkinit.c
2044
if (file == NULL) {
crypto/heimdal/kdc/pkinit.c
2046
file = fn;
crypto/heimdal/kdc/pkinit.c
2049
load_mappings(context, file);
crypto/heimdal/lib/asn1/lex.c
2210
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
crypto/heimdal/lib/asn1/lex.c
2229
yy_init_buffer(b,file );
crypto/heimdal/lib/asn1/lex.c
2261
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
crypto/heimdal/lib/asn1/lex.c
2268
b->yy_input_file = file;
crypto/heimdal/lib/asn1/lex.c
2280
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
crypto/heimdal/lib/asn1/lex.c
288
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
crypto/heimdal/lib/asn1/lex.c
296
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
crypto/heimdal/lib/asn1/main.c
115
file = "stdin";
crypto/heimdal/lib/asn1/main.c
119
file = argv[optidx];
crypto/heimdal/lib/asn1/main.c
120
yyin = fopen (file, "r");
crypto/heimdal/lib/asn1/main.c
122
err (1, "open %s", file);
crypto/heimdal/lib/asn1/main.c
125
name = estrdup(file);
crypto/heimdal/lib/asn1/main.c
184
init_generate (file, name);
crypto/heimdal/lib/asn1/main.c
99
const char *file;
crypto/heimdal/lib/com_err/lex.c
1345
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
crypto/heimdal/lib/com_err/lex.c
1364
yy_init_buffer(b,file );
crypto/heimdal/lib/com_err/lex.c
1396
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
crypto/heimdal/lib/com_err/lex.c
1403
b->yy_input_file = file;
crypto/heimdal/lib/com_err/lex.c
1415
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
crypto/heimdal/lib/com_err/lex.c
288
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
crypto/heimdal/lib/com_err/lex.c
296
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
crypto/heimdal/lib/com_err/parse.y
65
file : /* */
crypto/heimdal/lib/hx509/hxtool.c
1069
char *file;
crypto/heimdal/lib/hx509/hxtool.c
1089
file = argv[0];
crypto/heimdal/lib/hx509/hxtool.c
1107
f = fopen(file, "w");
crypto/heimdal/lib/ipc/client.c
343
const char *file,
crypto/heimdal/lib/ipc/client.c
353
asprintf(&s->path, "/var/run/.heim_%s-%s", service, file);
crypto/heimdal/lib/kadm5/iprop-log.c
52
char *file;
crypto/heimdal/lib/kadm5/iprop-log.c
53
asprintf(&file, "%s/kdc.conf", hdb_db_dir(context));
crypto/heimdal/lib/kadm5/iprop-log.c
54
if (file == NULL)
crypto/heimdal/lib/kadm5/iprop-log.c
56
config_file = file;
crypto/heimdal/lib/kafs/common.c
172
find_cells(const char *file, char ***cells, int *idx)
crypto/heimdal/lib/kafs/common.c
179
f = fopen(file, "r");
crypto/heimdal/lib/krb5/acl.c
246
const char *file,
crypto/heimdal/lib/krb5/acl.c
257
f = fopen(file, "r");
crypto/heimdal/lib/krb5/acl.c
263
file, buf);
crypto/heimdal/lib/krb5/context.c
654
add_file(char ***pfilenames, int *len, char *file)
crypto/heimdal/lib/krb5/context.c
660
if(strcmp(pp[i], file) == 0) {
crypto/heimdal/lib/krb5/context.c
661
free(file);
crypto/heimdal/lib/krb5/context.c
668
free(file);
crypto/heimdal/lib/krb5/context.c
672
pp[*len] = file;
crypto/heimdal/lib/krb5/fcache.c
313
char *file = NULL, *exp_file = NULL;
crypto/heimdal/lib/krb5/fcache.c
324
ret = asprintf (&file, "%sXXXXXX", KRB5_DEFAULT_CCFILE_ROOT);
crypto/heimdal/lib/krb5/fcache.c
325
if(ret < 0 || file == NULL) {
crypto/heimdal/lib/krb5/fcache.c
331
ret = _krb5_expand_path_tokens(context, file, &exp_file);
crypto/heimdal/lib/krb5/fcache.c
332
free(file);
crypto/heimdal/lib/krb5/fcache.c
336
file = exp_file;
crypto/heimdal/lib/krb5/log.c
307
FILE *file = NULL;
crypto/heimdal/lib/krb5/log.c
327
file = fdopen(i, "a");
crypto/heimdal/lib/krb5/log.c
328
if(file == NULL){
crypto/heimdal/lib/krb5/log.c
339
ret = open_file(context, f, min, max, fn, "a", file, keep_open);
crypto/heimdal/lib/krb5/pkinit.c
2110
parse_integer(krb5_context context, char **p, const char *file, int lineno,
crypto/heimdal/lib/krb5/pkinit.c
2119
file, name, lineno);
crypto/heimdal/lib/krb5/pkinit.c
2127
file, name, lineno);
crypto/heimdal/lib/krb5/pkinit.c
2136
const char *file,
crypto/heimdal/lib/krb5/pkinit.c
2166
file, lineno);
crypto/heimdal/lib/krb5/pkinit.c
2180
file, lineno);
crypto/heimdal/lib/krb5/pkinit.c
2188
"bits on line %d", ""), file, lineno);
crypto/heimdal/lib/krb5/pkinit.c
2192
ret = parse_integer(context, &p, file, lineno, "p", &m1->p);
crypto/heimdal/lib/krb5/pkinit.c
2195
ret = parse_integer(context, &p, file, lineno, "g", &m1->g);
crypto/heimdal/lib/krb5/pkinit.c
2198
ret = parse_integer(context, &p, file, lineno, "q", &m1->q);
crypto/heimdal/lib/krb5/pkinit.c
2283
_krb5_parse_moduli(krb5_context context, const char *file,
crypto/heimdal/lib/krb5/pkinit.c
2319
if (file == NULL)
crypto/heimdal/lib/krb5/pkinit.c
2320
file = MODULI_FILE;
crypto/heimdal/lib/krb5/pkinit.c
2326
if (_krb5_expand_path_tokens(context, file, &exp_file) == 0) {
crypto/heimdal/lib/krb5/pkinit.c
2334
f = fopen(file, "r");
crypto/heimdal/lib/krb5/pkinit.c
2360
ret = _krb5_parse_moduli_line(context, file, lineno, buf, &element);
crypto/heimdal/lib/krb5/scache.c
1018
s->name, s->file);
crypto/heimdal/lib/krb5/scache.c
1096
s->name, s->file);
crypto/heimdal/lib/krb5/scache.c
1300
if (strcmp(sfrom->file, sto->file) != 0) {
crypto/heimdal/lib/krb5/scache.c
1304
sfrom->file, sto->file);
crypto/heimdal/lib/krb5/scache.c
156
if (s->file)
crypto/heimdal/lib/krb5/scache.c
157
free(s->file);
crypto/heimdal/lib/krb5/scache.c
309
char *file;
crypto/heimdal/lib/krb5/scache.c
319
file = strrchr(s->name, ':');
crypto/heimdal/lib/krb5/scache.c
320
if (file) {
crypto/heimdal/lib/krb5/scache.c
321
*file++ = '\0';
crypto/heimdal/lib/krb5/scache.c
322
s->file = strdup(file);
crypto/heimdal/lib/krb5/scache.c
325
ret = _krb5_expand_default_cc_name(context, KRB5_SCACHE_DB, &s->file);
crypto/heimdal/lib/krb5/scache.c
328
_krb5_expand_default_cc_name(context, KRB5_SCACHE_DB, &s->file);
crypto/heimdal/lib/krb5/scache.c
331
if (ret < 0 || s->file == NULL || s->name == NULL) {
crypto/heimdal/lib/krb5/scache.c
344
ret = sqlite3_open_v2(s->file, &s->db, SQLITE_OPEN_READWRITE|flags, NULL);
crypto/heimdal/lib/krb5/scache.c
349
s->file, sqlite3_errmsg(s->db));
crypto/heimdal/lib/krb5/scache.c
42
char *file;
crypto/heimdal/lib/krb5/scache.c
447
unlink(s->file);
crypto/heimdal/lib/krb5/scache.c
837
s->name, s->file);
crypto/heimdal/lib/krb5/scache.c
846
s->name, s->file);
crypto/heimdal/lib/krb5/scache.c
855
s->name, s->file);
crypto/heimdal/lib/krb5/test_addr.c
174
const wchar_t* file,
crypto/heimdal/lib/krb5/test_addr.c
179
function, file, line, expression);
crypto/heimdal/lib/roken/environment.c
131
read_environment(const char *file, char ***env)
crypto/heimdal/lib/roken/environment.c
136
if ((F = fopen(file, "r")) == NULL)
crypto/heimdal/lib/roken/ndbm_wrap.c
150
dbm_open (const char *file, int flags, mode_t mode)
crypto/heimdal/lib/roken/ndbm_wrap.c
156
char *fn = malloc(strlen(file) + 4);
crypto/heimdal/lib/roken/ndbm_wrap.c
159
strcpy(fn, file);
crypto/heimdal/lib/roken/roken-common.h
446
read_environment(const char *file, char ***env);
crypto/heimdal/lib/roken/simple_exec.c
145
const char *file, ...)
crypto/heimdal/lib/roken/simple_exec.c
161
va_start(ap, file);
crypto/heimdal/lib/roken/simple_exec.c
199
execv(file, argv);
crypto/heimdal/lib/roken/simple_exec.c
233
simple_execvp_timed(const char *file, char *const args[],
crypto/heimdal/lib/roken/simple_exec.c
241
execvp(file, args);
crypto/heimdal/lib/roken/simple_exec.c
249
simple_execvp(const char *file, char *const args[])
crypto/heimdal/lib/roken/simple_exec.c
251
return simple_execvp_timed(file, args, NULL, NULL, 0);
crypto/heimdal/lib/roken/simple_exec.c
256
simple_execve_timed(const char *file, char *const args[], char *const envp[],
crypto/heimdal/lib/roken/simple_exec.c
264
execve(file, args, envp);
crypto/heimdal/lib/roken/simple_exec.c
272
simple_execve(const char *file, char *const args[], char *const envp[])
crypto/heimdal/lib/roken/simple_exec.c
274
return simple_execve_timed(file, args, envp, NULL, NULL, 0);
crypto/heimdal/lib/roken/simple_exec.c
278
simple_execlp(const char *file, ...)
crypto/heimdal/lib/roken/simple_exec.c
284
va_start(ap, file);
crypto/heimdal/lib/roken/simple_exec.c
289
ret = simple_execvp(file, argv);
crypto/heimdal/lib/roken/simple_exec.c
295
simple_execle(const char *file, ... /* ,char *const envp[] */)
crypto/heimdal/lib/roken/simple_exec.c
302
va_start(ap, file);
crypto/heimdal/lib/roken/simple_exec.c
308
ret = simple_execve(file, argv, envp);
crypto/heimdal/lib/sl/slc-lex.c
1282
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
crypto/heimdal/lib/sl/slc-lex.c
1301
yy_init_buffer(b,file );
crypto/heimdal/lib/sl/slc-lex.c
1333
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
crypto/heimdal/lib/sl/slc-lex.c
1340
b->yy_input_file = file;
crypto/heimdal/lib/sl/slc-lex.c
1352
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
crypto/heimdal/lib/sl/slc-lex.c
288
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
crypto/heimdal/lib/sl/slc-lex.c
296
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
476
char* file,
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
484
size_t size = name_size + 1 + strlen(file) + 1;
crypto/krb5/src/ccapi/common/win/OldCC/util.cxx
492
strcpy(result + name_size + 1, file);
crypto/krb5/src/ccapi/common/win/OldCC/util.h
71
char* file,
crypto/krb5/src/ccapi/test/test_ccapi_check.c
14
_log_error_v(file, line, format, ap);
crypto/krb5/src/ccapi/test/test_ccapi_check.c
3
int _check_if(int expression, const char *file, int line, const char *expression_string, const char *format, ...) {
crypto/krb5/src/ccapi/test/test_ccapi_check.c
8
_log_error(file, line, expression_string);
crypto/krb5/src/ccapi/test/test_ccapi_check.h
9
int _check_if(int expression, const char *file, int line, const char *expression_string, const char *format, ...);
crypto/krb5/src/ccapi/test/test_ccapi_log.c
17
void _log_error(const char *file, int line, const char *format, ...)
crypto/krb5/src/ccapi/test/test_ccapi_log.c
21
_log_error_v(file, line, format, ap);
crypto/krb5/src/ccapi/test/test_ccapi_log.c
6
void _log_error_v(const char *file, int line, const char *format, va_list ap)
crypto/krb5/src/ccapi/test/test_ccapi_log.c
8
fprintf(stdout, "\n\t%s:%d: ", file, line);
crypto/krb5/src/ccapi/test/test_ccapi_log.h
11
void _log_error_v(const char *file, int line, const char *format, va_list ap);
crypto/krb5/src/ccapi/test/test_ccapi_log.h
12
void _log_error(const char *file, int line, const char *format, ...)
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
119
FILE *file;
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
123
file = fopen(pid_file, "w");
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
124
if (file == NULL)
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
127
st1 = (fprintf(file, "%ld\n", pid) < 0) ? errno : 0;
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
128
st2 = (fclose(file) == EOF) ? errno : 0;
crypto/krb5/src/kdc/main.c
836
FILE *file;
crypto/krb5/src/kdc/main.c
840
file = fopen(path, "w");
crypto/krb5/src/kdc/main.c
841
if (file == NULL)
crypto/krb5/src/kdc/main.c
844
st1 = (fprintf(file, "%ld\n", pid) < 0) ? errno : 0;
crypto/krb5/src/kdc/main.c
845
st2 = (fclose(file) == EOF) ? errno : 0;
crypto/krb5/src/kprop/kprop.c
109
database_fd = open_database(context, file, &database_size);
crypto/krb5/src/kprop/kprop.c
114
update_last_prop_file(replica_host, file);
crypto/krb5/src/kprop/kprop.c
135
file = optarg;
crypto/krb5/src/kprop/kprop.c
57
static char *file = KPROP_DEFAULT_FILE;
crypto/krb5/src/kprop/kpropd.c
1073
file = optarg;
crypto/krb5/src/kprop/kpropd.c
1157
if (asprintf(&temp_file_name, "%s.temp", file) < 0) {
crypto/krb5/src/kprop/kpropd.c
133
static char *file = KPROPD_DEFAULT_FILE;
crypto/krb5/src/kprop/kpropd.c
564
if (rename(temp_file_name, file)) {
crypto/krb5/src/kprop/kpropd.c
566
temp_file_name, file);
crypto/krb5/src/kprop/kpropd.c
575
load_database(kpropd_context, kdb5_util, file);
crypto/krb5/src/lib/krad/t_test.c
33
noerror_impl(const char *file, int line, const char *cmd, int retval)
crypto/krb5/src/lib/krad/t_test.c
38
fprintf(stderr, "%s:%d: %s:\n\t%s\n", file, line, strerror(retval), cmd);
crypto/krb5/src/lib/krad/t_test.c
43
insist_impl(const char *file, int line, const char *cmd, krb5_boolean result)
crypto/krb5/src/lib/krad/t_test.c
48
fprintf(stderr, "%s:%d: insist failed:\n\t%s\n", file, line, cmd);
crypto/krb5/src/lib/krad/t_test.h
55
noerror_impl(const char *file, int line, const char *cmd, int retval);
crypto/krb5/src/lib/krad/t_test.h
58
insist_impl(const char *file, int line, const char *cmd, krb5_boolean result);
crypto/krb5/src/lib/krb5/os/init_os_ctx.c
342
char *file = NULL;
crypto/krb5/src/lib/krb5/os/init_os_ctx.c
346
file = secure_getenv(KDC_PROFILE_ENV);
crypto/krb5/src/lib/krb5/os/init_os_ctx.c
347
if (file == NULL)
crypto/krb5/src/lib/krb5/os/init_os_ctx.c
348
file = DEFAULT_KDC_PROFILE;
crypto/krb5/src/lib/krb5/os/init_os_ctx.c
357
newfiles[0] = strdup(file);
crypto/krb5/src/lib/rpc/xdr_stdio.c
79
xdrstdio_create(XDR *xdrs, FILE *file, enum xdr_op op)
crypto/krb5/src/lib/rpc/xdr_stdio.c
84
xdrs->x_private = (caddr_t)file;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
157
kdb2_dbm_open(const char *file, int flags, int mode)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
168
(void)strncpy(path, file, sizeof(path) - 1);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
72
kdb2_dbminit(char *file)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
76
if ((__cur_db = kdb2_dbm_open(file, O_RDWR|O_BINARY, 0)) != NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/dbm.c
78
if ((__cur_db = kdb2_dbm_open(file, O_RDONLY|O_BINARY, 0)) != NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
106
if (!file || (flags & O_ACCMODE) == O_WRONLY) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
123
if (!file || (flags & O_TRUNC) ||
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
124
(stat(file, &statbuf) && (errno == ENOENT))) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
129
if (file) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
130
if ((hashp->fp = open(file, flags|O_BINARY, mode)) == -1)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
137
if (!(hashp = init_hash(hashp, file, info)))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
178
mpool_key.data = (u_int8_t *)file;
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
179
mpool_key.size = strlen(file);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
293
init_hash(HTAB *hashp, const char *file, const HASHINFO *info)
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
307
if (file != NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
308
if (stat(file, &statbuf))
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
97
__kdb2_hash_open(const char *file, int flags, int mode, const HASHINFO *info,
crypto/krb5/src/plugins/preauth/otp/otp_state.c
100
if (file == NULL) {
crypto/krb5/src/plugins/preauth/otp/otp_state.c
106
if (fgets(buf, sizeof(buf), file) == NULL)
crypto/krb5/src/plugins/preauth/otp/otp_state.c
108
fclose(file);
crypto/krb5/src/plugins/preauth/otp/otp_state.c
88
FILE *file;
crypto/krb5/src/plugins/preauth/otp/otp_state.c
99
file = fopen(filename, "r");
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
165
#define TRACE_PKINIT_NO_CA_ANCHOR(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
166
TRACE(c, "PKINIT no anchor CA in file {str}", file)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
167
#define TRACE_PKINIT_NO_CA_INTERMEDIATE(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
168
TRACE(c, "PKINIT no intermediate CA in file {str}", file)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
174
#define TRACE_PKINIT_NO_CRL(c, file) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
175
TRACE(c, "PKINIT no CRL in file {str}", file)
crypto/krb5/src/util/profile/prof_file.c
265
prf_file_t file = NULL;
crypto/krb5/src/util/profile/prof_file.c
268
file = calloc(1, sizeof(*file));
crypto/krb5/src/util/profile/prof_file.c
269
if (file == NULL)
crypto/krb5/src/util/profile/prof_file.c
271
file->magic = PROF_MAGIC_FILE;
crypto/krb5/src/util/profile/prof_file.c
282
file->data = data;
crypto/krb5/src/util/profile/prof_file.c
283
file->next = NULL;
crypto/krb5/src/util/profile/prof_file.c
284
return file;
crypto/krb5/src/util/profile/prof_file.c
287
free(file);
crypto/krb5/src/util/profile/prof_file.c
559
prf_file_t file;
crypto/krb5/src/util/profile/prof_file.c
561
file = calloc(1, sizeof(*file));
crypto/krb5/src/util/profile/prof_file.c
562
if (file == NULL)
crypto/krb5/src/util/profile/prof_file.c
564
file->magic = PROF_MAGIC_FILE;
crypto/krb5/src/util/profile/prof_file.c
571
file->data = oldfile->data;
crypto/krb5/src/util/profile/prof_file.c
572
return file;
crypto/krb5/src/util/profile/prof_file.c
576
file->data = profile_make_prf_data(oldfile->data->filespec);
crypto/krb5/src/util/profile/prof_file.c
577
if (file->data == NULL) {
crypto/krb5/src/util/profile/prof_file.c
578
free(file);
crypto/krb5/src/util/profile/prof_file.c
582
file->data->flags = oldfile->data->flags;
crypto/krb5/src/util/profile/prof_file.c
583
file->data->last_stat = oldfile->data->last_stat;
crypto/krb5/src/util/profile/prof_file.c
584
file->data->frac_ts = oldfile->data->frac_ts;
crypto/krb5/src/util/profile/prof_file.c
585
file->data->root = profile_copy_node(oldfile->data->root);
crypto/krb5/src/util/profile/prof_file.c
587
if (file->data->root == NULL) {
crypto/krb5/src/util/profile/prof_file.c
588
profile_free_file(file);
crypto/krb5/src/util/profile/prof_file.c
592
return file;
crypto/krb5/src/util/profile/prof_int.h
215
(const_profile_filespec_t file, prf_file_t *ret_prof,
crypto/krb5/src/util/profile/prof_set.c
26
prf_file_t file;
crypto/krb5/src/util/profile/prof_set.c
41
file = profile->first_file;
crypto/krb5/src/util/profile/prof_set.c
46
if (file->data->flags & PROFILE_FILE_DIRTY) {
crypto/krb5/src/util/profile/prof_set.c
51
if ((file->data->flags & PROFILE_FILE_SHARED) != 0) {
crypto/krb5/src/util/profile/prof_set.c
52
new_data = profile_make_prf_data(file->data->filespec);
crypto/krb5/src/util/profile/prof_set.c
58
new_data->flags = file->data->flags & ~PROFILE_FILE_SHARED;
crypto/krb5/src/util/profile/prof_set.c
60
new_data->upd_serial = file->data->upd_serial;
crypto/krb5/src/util/profile/prof_set.c
62
profile_dereference_data_locked(file->data);
crypto/krb5/src/util/profile/prof_set.c
63
file->data = new_data;
crypto/krb5/src/util/profile/prof_set.c
67
return profile_update_file(file, NULL);
crypto/krb5/src/util/profile/prof_tree.c
456
prf_file_t file;
crypto/krb5/src/util/profile/prof_tree.c
489
iter->file = profile->first_file;
crypto/krb5/src/util/profile/prof_tree.c
529
if (iter->file && iter->file->magic != PROF_MAGIC_FILE)
crypto/krb5/src/util/profile/prof_tree.c
531
if (iter->file && iter->file->data->magic != PROF_MAGIC_FILE_DATA)
crypto/krb5/src/util/profile/prof_tree.c
537
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
538
k5_mutex_lock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
539
if (iter->node && (iter->file->data->upd_serial != iter->file_serial)) {
crypto/krb5/src/util/profile/prof_tree.c
545
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
546
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
551
if (iter->file == 0 ||
crypto/krb5/src/util/profile/prof_tree.c
553
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
554
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
564
if ((retval = profile_update_file_locked(iter->file, NULL))) {
crypto/krb5/src/util/profile/prof_tree.c
565
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
568
iter->file = iter->file->next;
crypto/krb5/src/util/profile/prof_tree.c
569
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
570
k5_mutex_lock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
579
iter->file_serial = iter->file->data->upd_serial;
crypto/krb5/src/util/profile/prof_tree.c
584
section = iter->file->data->root;
crypto/krb5/src/util/profile/prof_tree.c
600
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
601
iter->file = iter->file->next;
crypto/krb5/src/util/profile/prof_tree.c
602
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
603
k5_mutex_lock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
635
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
636
iter->file = iter->file->next;
crypto/krb5/src/util/profile/prof_tree.c
637
if (iter->file)
crypto/krb5/src/util/profile/prof_tree.c
638
k5_mutex_lock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
643
k5_mutex_unlock(&iter->file->data->lock);
crypto/krb5/src/util/profile/prof_tree.c
645
iter->file = iter->file->next;
crypto/krb5/src/windows/leashdll/lsh_pwd.c
986
readstring(FILE * file, char * buf, int len)
crypto/krb5/src/windows/leashdll/lsh_pwd.c
990
for (i=0, c=fgetc(file); c != EOF ; c=fgetc(file), i++)
crypto/libecc/src/tests/ec_utils.c
110
ATTRIBUTE_WARN_UNUSED_RET static int export_public_key(FILE * file, const char *name,
crypto/libecc/src/tests/ec_utils.c
120
MUST_HAVE(file != NULL, ret, err);
crypto/libecc/src/tests/ec_utils.c
142
fprintf(file, "const char %s[] = { ", name);
crypto/libecc/src/tests/ec_utils.c
144
fprintf(file, "0x%02x", pub_key_buf[i]);
crypto/libecc/src/tests/ec_utils.c
146
fprintf(file, ", ");
crypto/libecc/src/tests/ec_utils.c
149
fprintf(file, "};\n");
crypto/libecc/src/tests/ec_utils.c
153
written = fwrite(pub_key_buf, 1, export_buf_size, file);
crypto/libecc/src/tests/ec_utils.c
242
FILE *file = NULL;
crypto/libecc/src/tests/ec_utils.c
279
file = fopen(fname, "wb");
crypto/libecc/src/tests/ec_utils.c
280
if (file == NULL) {
crypto/libecc/src/tests/ec_utils.c
286
ret = export_private_key(file, NULL, &(kp.priv_key), RAWBIN);
crypto/libecc/src/tests/ec_utils.c
292
ret = fclose(file); EG(ret, err);
crypto/libecc/src/tests/ec_utils.c
293
file = NULL;
crypto/libecc/src/tests/ec_utils.c
299
file = fopen(fname, "w");
crypto/libecc/src/tests/ec_utils.c
300
if (file == NULL) {
crypto/libecc/src/tests/ec_utils.c
307
ret = export_private_key(file, kname, &(kp.priv_key), DOTH);
crypto/libecc/src/tests/ec_utils.c
313
ret = fclose(file); EG(ret, err);
crypto/libecc/src/tests/ec_utils.c
314
file = NULL;
crypto/libecc/src/tests/ec_utils.c
322
file = fopen(fname, "wb");
crypto/libecc/src/tests/ec_utils.c
323
if (file == NULL) {
crypto/libecc/src/tests/ec_utils.c
328
ret = export_public_key(file, NULL, &(kp.pub_key), RAWBIN);
crypto/libecc/src/tests/ec_utils.c
334
ret = fclose(file); EG(ret, err);
crypto/libecc/src/tests/ec_utils.c
335
file = NULL;
crypto/libecc/src/tests/ec_utils.c
341
file = fopen(fname, "w");
crypto/libecc/src/tests/ec_utils.c
342
if (file == NULL) {
crypto/libecc/src/tests/ec_utils.c
349
ret = export_public_key(file, kname, &(kp.pub_key), DOTH);
crypto/libecc/src/tests/ec_utils.c
355
ret = fclose(file); EG(ret, err);
crypto/libecc/src/tests/ec_utils.c
356
file = NULL;
crypto/libecc/src/tests/ec_utils.c
361
if(file != NULL){
crypto/libecc/src/tests/ec_utils.c
362
if(fclose(file)){
crypto/libecc/src/tests/ec_utils.c
54
ATTRIBUTE_WARN_UNUSED_RET static int export_private_key(FILE * file, const char *name,
crypto/libecc/src/tests/ec_utils.c
63
MUST_HAVE(file != NULL, ret, err);
crypto/libecc/src/tests/ec_utils.c
86
fprintf(file, "const char %s[] = { ", name);
crypto/libecc/src/tests/ec_utils.c
88
fprintf(file, "0x%02x", priv_key_buf[i]);
crypto/libecc/src/tests/ec_utils.c
89
fprintf(file, ", ");
crypto/libecc/src/tests/ec_utils.c
91
fprintf(file, "};\n");
crypto/libecc/src/tests/ec_utils.c
95
written = fwrite(priv_key_buf, 1, export_buf_size, file);
crypto/openssh/auth.c
391
char *file, uidstr[32], ret[PATH_MAX];
crypto/openssh/auth.c
396
file = percent_expand(filename, "h", pw->pw_dir,
crypto/openssh/auth.c
403
if (path_absolute(file))
crypto/openssh/auth.c
404
return (file);
crypto/openssh/auth.c
406
i = snprintf(ret, sizeof(ret), "%s/%s", pw->pw_dir, file);
crypto/openssh/auth.c
409
free(file);
crypto/openssh/auth.c
458
found->host, found->file, found->line);
crypto/openssh/auth2-pubkey.c
323
match_principals_file(struct passwd *pw, char *file,
crypto/openssh/auth2-pubkey.c
336
r = glob(file, 0, NULL, &gl);
crypto/openssh/auth2-pubkey.c
340
logit_f("glob \"%s\" failed", file);
crypto/openssh/auth2-pubkey.c
344
fatal_f("too many glob results for \"%s\"", file);
crypto/openssh/auth2-pubkey.c
346
debug2_f("glob \"%s\" returned %zu matches", file,
crypto/openssh/auth2-pubkey.c
351
debug("trying authorized principals file %s", file);
crypto/openssh/auth2-pubkey.c
625
char *file, const char *remote_ip, const char *remote_host,
crypto/openssh/auth2-pubkey.c
637
debug("trying public key file %s", file);
crypto/openssh/auth2-pubkey.c
638
if ((f = auth_openkeyfile(file, pw, options.strict_modes)) != NULL) {
crypto/openssh/auth2-pubkey.c
639
found_key = auth_check_authkeys_file(pw, f, file,
crypto/openssh/auth2-pubkey.c
793
char *file = NULL, *conn_id;
crypto/openssh/auth2-pubkey.c
820
file = expand_authorized_keys(
crypto/openssh/auth2-pubkey.c
823
r = glob(file, 0, NULL, &gl);
crypto/openssh/auth2-pubkey.c
827
logit_f("glob \"%s\" failed", file);
crypto/openssh/auth2-pubkey.c
829
free(file);
crypto/openssh/auth2-pubkey.c
830
file = NULL;
crypto/openssh/auth2-pubkey.c
833
fatal_f("too many glob results for \"%s\"", file);
crypto/openssh/auth2-pubkey.c
835
debug2_f("glob \"%s\" returned %zu matches", file,
crypto/openssh/auth2-pubkey.c
846
free(file);
crypto/openssh/auth2-pubkey.c
847
file = NULL;
crypto/openssh/auth2-pubkeyfile.c
222
auth_process_principals(FILE *f, const char *file,
crypto/openssh/auth2-pubkeyfile.c
249
snprintf(loc, sizeof(loc), "%.200s:%lu", file, linenum);
crypto/openssh/auth2-pubkeyfile.c
253
debug2_f("%s: processed %lu/%lu lines", file, nonblank, linenum);
crypto/openssh/auth2-pubkeyfile.c
406
auth_check_authkeys_file(struct passwd *pw, FILE *f, char *file,
crypto/openssh/auth2-pubkeyfile.c
431
snprintf(loc, sizeof(loc), "%.200s:%lu", file, linenum);
crypto/openssh/auth2-pubkeyfile.c
437
debug2_f("%s: processed %lu/%lu lines", file, nonblank, linenum);
crypto/openssh/auth2-pubkeyfile.c
442
auth_openfile(const char *file, struct passwd *pw, int strict_modes,
crypto/openssh/auth2-pubkeyfile.c
450
if ((fd = open(file, O_RDONLY|O_NONBLOCK)) == -1) {
crypto/openssh/auth2-pubkeyfile.c
453
pw->pw_name, file_type, file, strerror(errno));
crypto/openssh/auth2-pubkeyfile.c
456
pw->pw_name, file_type, file, strerror(errno));
crypto/openssh/auth2-pubkeyfile.c
467
pw->pw_name, file_type, file);
crypto/openssh/auth2-pubkeyfile.c
477
safe_path_fd(fileno(f), file, pw, line, sizeof(line)) != 0) {
crypto/openssh/auth2-pubkeyfile.c
489
auth_openkeyfile(const char *file, struct passwd *pw, int strict_modes)
crypto/openssh/auth2-pubkeyfile.c
491
return auth_openfile(file, pw, strict_modes, 1, "authorized keys");
crypto/openssh/auth2-pubkeyfile.c
495
auth_openprincipals(const char *file, struct passwd *pw, int strict_modes)
crypto/openssh/auth2-pubkeyfile.c
497
return auth_openfile(file, pw, strict_modes, 0,
crypto/openssh/authfile.c
302
char *file = NULL;
crypto/openssh/authfile.c
308
if (asprintf(&file, "%s-cert.pub", filename) == -1)
crypto/openssh/authfile.c
311
r = sshkey_try_load_public(keyp, file, NULL);
crypto/openssh/authfile.c
312
free(file);
crypto/openssh/fatal.c
37
sshfatal(const char *file, const char *func, int line, int showfunc,
crypto/openssh/fatal.c
43
sshlogv(file, func, line, showfunc, level, suffix, fmt, args);
crypto/openssh/hostfile.c
253
hostkeys->entries[hostkeys->num_entries].file = xstrdup(l->path);
crypto/openssh/hostfile.c
307
free(hostkeys->entries[i].file);
crypto/openssh/hostfile.h
27
char *file;
crypto/openssh/log.c
429
sshlog(const char *file, const char *func, int line, int showfunc,
crypto/openssh/log.c
435
sshlogv(file, func, line, showfunc, level, suffix, fmt, args);
crypto/openssh/log.c
440
sshlogdie(const char *file, const char *func, int line, int showfunc,
crypto/openssh/log.c
446
sshlogv(file, func, line, showfunc, SYSLOG_LEVEL_INFO,
crypto/openssh/log.c
453
sshlogv(const char *file, const char *func, int line, int showfunc,
crypto/openssh/log.c
466
(cp = strrchr(file, '/')) == NULL ? file : cp + 1, func, line,
crypto/openssh/misc.c
2318
safe_path_fd(int fd, const char *file, struct passwd *pw,
crypto/openssh/misc.c
2326
file, strerror(errno));
crypto/openssh/misc.c
2329
return safe_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);
crypto/openssh/misc.c
2670
opt_array_append2(const char *file, const int line, const char *directive,
crypto/openssh/misc.c
2675
fatal("%s line %d: Too many %s entries", file, line, directive);
crypto/openssh/misc.c
2689
opt_array_append(const char *file, const int line, const char *directive,
crypto/openssh/misc.c
2692
opt_array_append2(file, line, directive, array, NULL, lp, s, 0);
crypto/openssh/misc.h
217
void opt_array_append(const char *file, const int line,
crypto/openssh/misc.h
219
void opt_array_append2(const char *file, const int line,
crypto/openssh/progressmeter.c
180
asmprintf(&buf, INT_MAX, &cols, "%-*s", file_len, file);
crypto/openssh/progressmeter.c
250
file = f;
crypto/openssh/progressmeter.c
64
static const char *file; /* name of the file being transferred */
crypto/openssh/regress/misc/sk-dummy/fatal.c
13
sshfatal(const char *file, const char *func, int line, int showfunc,
crypto/openssh/regress/unittests/test_helper/test_helper.c
294
ssl_err_check(const char *file, int line)
crypto/openssh/regress/unittests/test_helper/test_helper.c
303
file, line, ERR_error_string(openssl_error, NULL));
crypto/openssh/regress/unittests/test_helper/test_helper.c
306
file, line);
crypto/openssh/regress/unittests/test_helper/test_helper.c
341
test_header(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
345
file, line, test_number, active_test_name,
crypto/openssh/regress/unittests/test_helper/test_helper.c
354
assert_bignum(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
360
test_header(file, line, a1, a2, "BIGNUM", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
368
assert_string(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
374
assert_ptr(file, line, a1, "NULL", aa1, NULL, TEST_NE);
crypto/openssh/regress/unittests/test_helper/test_helper.c
375
assert_ptr(file, line, a2, "NULL", aa2, NULL, TEST_NE);
crypto/openssh/regress/unittests/test_helper/test_helper.c
379
test_header(file, line, a1, a2, "STRING", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
403
assert_mem(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
413
assert_ptr(file, line, a1, "NULL", aa1, NULL, TEST_NE);
crypto/openssh/regress/unittests/test_helper/test_helper.c
414
assert_ptr(file, line, a2, "NULL", aa2, NULL, TEST_NE);
crypto/openssh/regress/unittests/test_helper/test_helper.c
418
test_header(file, line, a1, a2, "STRING", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
443
assert_mem_filled(const char *file, int line, const char *a1,
crypto/openssh/regress/unittests/test_helper/test_helper.c
454
assert_ptr(file, line, a1, "NULL", aa1, NULL, TEST_NE);
crypto/openssh/regress/unittests/test_helper/test_helper.c
458
test_header(file, line, a1, NULL, "MEM_ZERO", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
470
assert_int(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
474
test_header(file, line, a1, a2, "INT", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
481
assert_size_t(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
485
test_header(file, line, a1, a2, "SIZE_T", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
492
assert_u_int(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
496
test_header(file, line, a1, a2, "U_INT", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
503
assert_long(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
507
test_header(file, line, a1, a2, "LONG", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
514
assert_long_long(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
518
test_header(file, line, a1, a2, "LONG LONG", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
525
assert_char(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
531
test_header(file, line, a1, a2, "CHAR", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
540
assert_u8(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
544
test_header(file, line, a1, a2, "U8", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
551
assert_u16(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
555
test_header(file, line, a1, a2, "U16", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
562
assert_u32(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
566
test_header(file, line, a1, a2, "U32", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
573
assert_u64(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
577
test_header(file, line, a1, a2, "U64", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.c
586
assert_ptr(const char *file, int line, const char *a1, const char *a2,
crypto/openssh/regress/unittests/test_helper/test_helper.c
590
test_header(file, line, a1, a2, "PTR", pred);
crypto/openssh/regress/unittests/test_helper/test_helper.h
54
void ssl_err_check(const char *file, int line);
crypto/openssh/regress/unittests/test_helper/test_helper.h
56
void assert_bignum(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
60
void assert_string(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
63
void assert_mem(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
66
void assert_mem_filled(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
69
void assert_int(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
72
void assert_size_t(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
75
void assert_u_int(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
78
void assert_long(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
81
void assert_long_long(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
84
void assert_char(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
87
void assert_ptr(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
90
void assert_u8(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
93
void assert_u16(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
96
void assert_u32(const char *file, int line,
crypto/openssh/regress/unittests/test_helper/test_helper.h
99
void assert_u64(const char *file, int line,
crypto/openssh/servconf.c
276
servconf_add_hostkey(const char *file, const int line,
crypto/openssh/servconf.c
281
if (file == defaultkey && access(path, R_OK) != 0)
crypto/openssh/servconf.c
283
opt_array_append2(file, line, "HostKey",
crypto/openssh/servconf.c
290
servconf_add_hostcert(const char *file, const int line,
crypto/openssh/servconf.c
295
opt_array_append(file, line, "HostCertificate",
crypto/openssh/sftp.c
2002
char *file, int remote, int lastarg, char quote, int terminated)
crypto/openssh/sftp.c
2011
if (file == NULL)
crypto/openssh/sftp.c
2014
xasprintf(&tmp, "%s*", file);
crypto/openssh/sftp.c
2049
if (file == NULL || hadglob)
crypto/openssh/sftp.c
2052
tmp2 = complete_ambiguous(file, g.gl_pathv, g.gl_matchc);
crypto/openssh/sftp.c
2060
filelen = strlen(file);
crypto/openssh/sftp.c
2065
if (!isesc && file[i] == '\\' && i + 1 < filelen){
crypto/openssh/ssh-add.c
658
char *file, int qflag, const char *skprovider,
crypto/openssh/ssh-add.c
662
if (delete_file(agent_fd, file, key_only,
crypto/openssh/ssh-add.c
666
if (add_file(agent_fd, file, key_only, cert_only, qflag,
crypto/openssh/ssh-add.c
739
hke->file, hke->line, dch->nkeys);
crypto/openssh/ssh-keygen.c
2274
const char *file, u_long lnum)
crypto/openssh/ssh-keygen.c
2282
fatal("%s:%lu: unsupported hash algorithm", file, lnum);
crypto/openssh/ssh-keygen.c
2300
fatal_r(r, "%s:%lu: decode hash failed", file, lnum);
crypto/openssh/ssh-keygen.c
2309
update_krl_from_file(struct passwd *pw, const char *file, int wild_ca,
crypto/openssh/ssh-keygen.c
2321
path = tilde_expand_filename(file, pw->pw_uid);
crypto/openssh/ssh-keygen.c
2404
hash_to_blob(cp, &blob, &blen, file, lnum);
crypto/openssh/ssh-keygen.c
2436
file, lnum);
crypto/openssh/ssh-keygen.c
2443
file, lnum);
crypto/openssh/sshconnect.c
1100
host_found->file, host_found->line);
crypto/openssh/sshconnect.c
1121
(path_in_hostfiles(host_found->file,
crypto/openssh/sshconnect.c
1124
path_in_hostfiles(ip_found->file,
crypto/openssh/sshconnect.c
1298
host_found->file, host_found->line);
crypto/openssh/sshconnect.c
1321
ip_found->file, ip_found->line);
crypto/openssh/sshconnect.c
1332
host_found->file, host_found->line);
crypto/openssh/sshconnect.c
1417
type, host, ip, ip_found->file, ip_found->line);
crypto/openssh/sshconnect.c
1422
host_found->file, host_found->line);
crypto/openssh/sshconnect.c
1666
found->host, found->file, found->line,
crypto/openssh/sshconnect.c
781
hostkeys_find_by_key_hostfile(const char *file, const char *which,
crypto/openssh/sshconnect.c
786
debug3_f("trying %s hostfile \"%s\"", which, file);
crypto/openssh/sshconnect.c
787
if ((r = hostkeys_foreach(file, hostkeys_find_by_key_cb, ctx,
crypto/openssh/sshconnect.c
790
debug_f("hostkeys file %s does not exist", file);
crypto/openssh/sshconnect.c
793
error_fr(r, "hostkeys_foreach failed for %s", file);
crypto/openssl/apps/cmp.c
1100
static int setup_cert(void *ctx, const char *file, const char *pass,
crypto/openssl/apps/cmp.c
1106
if (file == NULL)
crypto/openssl/apps/cmp.c
1108
if ((cert = load_cert_pwd(file, pass, desc)) == NULL)
crypto/openssl/apps/cmp.c
1131
static int setup_mock_crlout(void *ctx, const char *file, const char *desc)
crypto/openssl/apps/cmp.c
1136
if (file == NULL)
crypto/openssl/apps/cmp.c
1138
if ((crl = load_crl(file, FORMAT_UNDEF, 0, desc)) == NULL)
crypto/openssl/apps/cmp.c
1716
char *file = opt_reqin, *end = file, bak;
crypto/openssl/apps/cmp.c
1728
req = OSSL_CMP_MSG_read(file, app_get0_libctx(), app_get0_propq());
crypto/openssl/apps/cmp.c
1733
file);
crypto/openssl/apps/cmp.c
1739
file);
crypto/openssl/apps/cmp.c
1746
file);
crypto/openssl/apps/cmp.c
1933
const char *file = opt_newkey;
crypto/openssl/apps/cmp.c
1942
pkey = load_key_pwd(file, format, pass, engine, desc);
crypto/openssl/apps/cmp.c
1949
pkey = load_pubkey(file, format, 0, pass, engine, desc);
crypto/openssl/apps/cmp.c
2456
const char *file, const char *desc)
crypto/openssl/apps/cmp.c
2464
if (file == NULL)
crypto/openssl/apps/cmp.c
2468
n, desc, file);
crypto/openssl/apps/cmp.c
2473
|| !BIO_write_filename(bio, (char *)file)) {
crypto/openssl/apps/cmp.c
2475
file, certs == NULL ? "deleting" : "writing", desc);
crypto/openssl/apps/cmp.c
2482
CMP_err2("cannot write %s certificate to file '%s'", desc, file);
crypto/openssl/apps/cmp.c
2495
const char *file, const char *desc)
crypto/openssl/apps/cmp.c
2500
if (file == NULL)
crypto/openssl/apps/cmp.c
2503
CMP_info2("received %s, saving to file '%s'", desc, file);
crypto/openssl/apps/cmp.c
2506
|| !BIO_write_filename(bio, (char *)file)) {
crypto/openssl/apps/cmp.c
2508
file, desc);
crypto/openssl/apps/cmp.c
2513
CMP_err2("cannot write %s to file '%s'", desc, file);
crypto/openssl/apps/cmp.c
2523
static int delete_file(const char *file, const char *desc)
crypto/openssl/apps/cmp.c
2525
if (file == NULL)
crypto/openssl/apps/cmp.c
2528
if (unlink(file) != 0 && errno != ENOENT) {
crypto/openssl/apps/cmp.c
2530
file, desc);
crypto/openssl/apps/cmp.c
2536
static int save_cert_or_delete(X509 *cert, const char *file, const char *desc)
crypto/openssl/apps/cmp.c
2538
if (file == NULL)
crypto/openssl/apps/cmp.c
2544
return delete_file(file, desc_cert);
crypto/openssl/apps/cmp.c
2552
return save_free_certs(certs, file, desc) >= 0;
crypto/openssl/apps/cmp.c
2556
static int save_crl_or_delete(X509_CRL *crl, const char *file, const char *desc)
crypto/openssl/apps/cmp.c
2558
if (file == NULL)
crypto/openssl/apps/cmp.c
2560
return (crl == NULL) ? delete_file(file, desc) : save_crl(crl, file, desc);
crypto/openssl/apps/cmp.c
2563
static int save_template(const char *file, const OSSL_CRMF_CERTTEMPLATE *tmpl)
crypto/openssl/apps/cmp.c
2565
BIO *bio = BIO_new_file(file, "wb");
crypto/openssl/apps/cmp.c
2569
file);
crypto/openssl/apps/cmp.c
2575
file);
crypto/openssl/apps/cmp.c
2579
CMP_info1("stored certTemplate from genp to file '%s'", file);
crypto/openssl/apps/cmp.c
2585
static int save_keyspec(const char *file, const OSSL_CMP_ATAVS *keyspec)
crypto/openssl/apps/cmp.c
2587
BIO *bio = BIO_new_file(file, "wb");
crypto/openssl/apps/cmp.c
2590
CMP_err1("error saving keySpec from genp: cannot open file %s", file);
crypto/openssl/apps/cmp.c
2595
CMP_err1("error saving keySpec from genp: cannot write file %s", file);
crypto/openssl/apps/cmp.c
2599
CMP_info1("stored keySpec from genp to file '%s'", file);
crypto/openssl/apps/cmp.c
819
static int print_to_bio_out(const char *func, const char *file, int line,
crypto/openssl/apps/cmp.c
822
return OSSL_CMP_print_to_bio(bio_out, func, file, line, level, msg);
crypto/openssl/apps/cmp.c
825
static int print_to_bio_err(const char *func, const char *file, int line,
crypto/openssl/apps/cmp.c
828
return OSSL_CMP_print_to_bio(bio_err, func, file, line, level, msg);
crypto/openssl/apps/cmp.c
880
char *file;
crypto/openssl/apps/cmp.c
891
file = *filenames;
crypto/openssl/apps/cmp.c
892
*filenames = next_item(file);
crypto/openssl/apps/cmp.c
893
if (OSSL_CMP_MSG_write(file, msg) < 0) {
crypto/openssl/apps/cmp.c
894
CMP_err1("cannot write PKIMessage to file '%s'", file);
crypto/openssl/apps/cmp.c
903
char *file;
crypto/openssl/apps/cmp.c
915
file = *filenames;
crypto/openssl/apps/cmp.c
916
*filenames = next_item(file);
crypto/openssl/apps/cmp.c
918
ret = OSSL_CMP_MSG_read(file, app_get0_libctx(), app_get0_propq());
crypto/openssl/apps/cmp.c
920
CMP_err1("cannot read PKIMessage from file '%s'", file);
crypto/openssl/apps/cmp.c
922
CMP_info2("%s %s", desc, file);
crypto/openssl/apps/dgst.c
29
const char *sig_name, const char *file);
crypto/openssl/apps/dgst.c
33
const char *file);
crypto/openssl/apps/dgst.c
561
static const char *newline_escape_filename(const char *file, int *backslash)
crypto/openssl/apps/dgst.c
563
size_t i, e = 0, length = strlen(file), newline_count = 0, mem_len = 0;
crypto/openssl/apps/dgst.c
567
if (file[i] == '\n')
crypto/openssl/apps/dgst.c
571
file_cpy = app_malloc(mem_len, file);
crypto/openssl/apps/dgst.c
575
const char c = file[e];
crypto/openssl/apps/dgst.c
591
const char *sig_name, const char *md_name, const char *file)
crypto/openssl/apps/dgst.c
598
file = newline_escape_filename(file, &backslash);
crypto/openssl/apps/dgst.c
606
BIO_printf(out, " *%s\n", file);
crypto/openssl/apps/dgst.c
607
OPENSSL_free((char *)file);
crypto/openssl/apps/dgst.c
613
BIO_printf(out, "(%s)= ", file);
crypto/openssl/apps/dgst.c
615
BIO_printf(out, "%s(%s)= ", md_name, file);
crypto/openssl/apps/dgst.c
617
BIO_printf(out, "(%s)= ", file);
crypto/openssl/apps/dgst.c
641
const char *file)
crypto/openssl/apps/dgst.c
650
BIO_printf(bio_err, "Read error in %s\n", file);
crypto/openssl/apps/dgst.c
703
print_out(out, buf, len, sep, binout, sig_name, md_name, file);
crypto/openssl/apps/dgst.c
720
const char *sig_name, const char *file)
crypto/openssl/apps/dgst.c
729
BIO_printf(bio_err, "Read error in %s\n", file);
crypto/openssl/apps/dgst.c
749
print_out(out, sig, len, sep, binout, sig_name, NULL, file);
crypto/openssl/apps/genpkey.c
20
static int init_keygen_file(EVP_PKEY_CTX **pctx, const char *file, ENGINE *e,
crypto/openssl/apps/genpkey.c
344
static int init_keygen_file(EVP_PKEY_CTX **pctx, const char *file, ENGINE *e,
crypto/openssl/apps/genpkey.c
355
pbio = BIO_new_file(file, "r");
crypto/openssl/apps/genpkey.c
357
BIO_printf(bio_err, "Can't open parameter file %s\n", file);
crypto/openssl/apps/genpkey.c
365
BIO_printf(bio_err, "Error reading parameter file %s\n", file);
crypto/openssl/apps/include/apps.h
121
X509_REQ *load_csr(const char *file, int format, const char *desc);
crypto/openssl/apps/lib/apps.c
485
X509_REQ *load_csr(const char *file, int format, const char *desc)
crypto/openssl/apps/lib/apps.c
492
in = bio_open_default(file, 'r', format);
crypto/openssl/apps/pkeyutl.c
33
static int setup_peer(EVP_PKEY_CTX *ctx, int peerform, const char *file,
crypto/openssl/apps/pkeyutl.c
789
static int setup_peer(EVP_PKEY_CTX *ctx, int peerform, const char *file,
crypto/openssl/apps/pkeyutl.c
799
peer = load_pubkey(file, peerform, 0, NULL, engine, "peer key");
crypto/openssl/apps/pkeyutl.c
801
BIO_printf(bio_err, "Error reading peer key %s\n", file);
crypto/openssl/apps/s_server.c
3550
BIO *file;
crypto/openssl/apps/s_server.c
3609
if ((file = BIO_new_file(p, opmode)) == NULL) {
crypto/openssl/apps/s_server.c
3641
BIO_get_fp(file, &fp);
crypto/openssl/apps/s_server.c
3675
i = BIO_read(file, buf, bufsize);
crypto/openssl/apps/s_server.c
3710
BIO_free(file);
crypto/openssl/apps/sess_id.c
52
static SSL_SESSION *load_sess_id(char *file, int format);
crypto/openssl/apps/verify.c
22
static int check(X509_STORE *ctx, const char *file,
crypto/openssl/apps/verify.c
259
static int check(X509_STORE *ctx, const char *file,
crypto/openssl/apps/verify.c
270
x = load_cert(file, FORMAT_UNDEF, "certificate file");
crypto/openssl/apps/verify.c
289
(file == NULL) ? "stdin" : file);
crypto/openssl/apps/verify.c
298
(file == NULL) ? "stdin" : file);
crypto/openssl/apps/verify.c
307
BIO_printf(bio_out, "%s: OK\n", (file == NULL) ? "stdin" : file);
crypto/openssl/apps/verify.c
330
(file == NULL) ? "stdin" : file);
crypto/openssl/crypto/bio/bss_file.c
60
FILE *file = openssl_fopen(filename, mode);
crypto/openssl/crypto/bio/bss_file.c
66
if (file == NULL) {
crypto/openssl/crypto/bio/bss_file.c
81
fclose(file);
crypto/openssl/crypto/bio/bss_file.c
87
BIO_set_fp(ret, file, fp_flags);
crypto/openssl/crypto/cmp/cmp_ctx.c
316
char *file = NULL;
crypto/openssl/crypto/cmp/cmp_ctx.c
324
msg = ossl_cmp_log_parse_metadata(buf, &level, &func, &file, &line);
crypto/openssl/crypto/cmp/cmp_ctx.c
330
file != NULL ? file : "(no file)",
crypto/openssl/crypto/cmp/cmp_ctx.c
336
OPENSSL_free(file);
crypto/openssl/crypto/cmp/cmp_ctx.c
343
const char *func, const char *file, int line,
crypto/openssl/crypto/cmp/cmp_ctx.c
363
if (file == NULL)
crypto/openssl/crypto/cmp/cmp_ctx.c
364
file = "(unset file name)";
crypto/openssl/crypto/cmp/cmp_ctx.c
374
func, file, line, level_str);
crypto/openssl/crypto/cmp/cmp_ctx.c
387
res = ctx->log_cb(func, file, line, level, hugebuf);
crypto/openssl/crypto/cmp/cmp_genm.c
21
static void cert_msg(const char *func, const char *file, int lineno,
crypto/openssl/crypto/cmp/cmp_genm.c
27
ossl_cmp_print_log(level, ctx, func, file, lineno,
crypto/openssl/crypto/cmp/cmp_local.h
822
char **file, int *line);
crypto/openssl/crypto/cmp/cmp_local.h
838
const char *func, const char *file, int line,
crypto/openssl/crypto/cmp/cmp_local.h
994
OSSL_CMP_MSG *ossl_cmp_msg_load(const char *file);
crypto/openssl/crypto/cmp/cmp_msg.c
1218
OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
crypto/openssl/crypto/cmp/cmp_msg.c
1224
if (file == NULL) {
crypto/openssl/crypto/cmp/cmp_msg.c
1235
if ((bio = BIO_new_file(file, "rb")) == NULL
crypto/openssl/crypto/cmp/cmp_msg.c
1244
int OSSL_CMP_MSG_write(const char *file, const OSSL_CMP_MSG *msg)
crypto/openssl/crypto/cmp/cmp_msg.c
1249
if (file == NULL || msg == NULL) {
crypto/openssl/crypto/cmp/cmp_msg.c
1254
bio = BIO_new_file(file, "wb");
crypto/openssl/crypto/cmp/cmp_util.c
126
int OSSL_CMP_print_to_bio(BIO *bio, const char *component, const char *file,
crypto/openssl/crypto/cmp/cmp_util.c
140
file, line)
crypto/openssl/crypto/cmp/cmp_util.c
155
const char *file = NULL, *func = NULL, *data = NULL;
crypto/openssl/crypto/cmp/cmp_util.c
158
while ((err = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) {
crypto/openssl/crypto/cmp/cmp_util.c
186
OSSL_CMP_print_to_bio(bio, component, file, line,
crypto/openssl/crypto/cmp/cmp_util.c
194
if (log_fn(component, file, line, OSSL_CMP_LOG_ERR, msg) <= 0)
crypto/openssl/crypto/cmp/cmp_util.c
74
char **func, char **file, int *line)
crypto/openssl/crypto/cmp/cmp_util.c
83
*file = NULL;
crypto/openssl/crypto/cmp/cmp_util.c
98
*file = OPENSSL_strndup(p_file, p_line - 1 - p_file);
crypto/openssl/crypto/conf/conf_lib.c
251
int NCONF_load(CONF *conf, const char *file, long *eline)
crypto/openssl/crypto/conf/conf_lib.c
258
return conf->meth->load(conf, file, eline);
crypto/openssl/crypto/conf/conf_lib.c
46
LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,
crypto/openssl/crypto/conf/conf_lib.c
53
in = BIO_new_file(file, "r");
crypto/openssl/crypto/conf/conf_lib.c
55
in = BIO_new_file(file, "rb");
crypto/openssl/crypto/conf/conf_mod.c
193
char *file = NULL;
crypto/openssl/crypto/conf/conf_mod.c
200
file = CONF_get1_default_config_file();
crypto/openssl/crypto/conf/conf_mod.c
201
if (file == NULL)
crypto/openssl/crypto/conf/conf_mod.c
203
if (*file == '\0') {
crypto/openssl/crypto/conf/conf_mod.c
209
file = (char *)filename;
crypto/openssl/crypto/conf/conf_mod.c
216
if (NCONF_load(conf, file, NULL) <= 0) {
crypto/openssl/crypto/conf/conf_mod.c
229
OPENSSL_free(file);
crypto/openssl/crypto/conf/conf_mod.c
684
char *file, *sep = "";
crypto/openssl/crypto/conf/conf_mod.c
687
if ((file = ossl_safe_getenv("OPENSSL_CONF")) != NULL)
crypto/openssl/crypto/conf/conf_mod.c
688
return OPENSSL_strdup(file);
crypto/openssl/crypto/conf/conf_mod.c
707
file = OPENSSL_malloc(size);
crypto/openssl/crypto/conf/conf_mod.c
709
if (file == NULL)
crypto/openssl/crypto/conf/conf_mod.c
711
BIO_snprintf(file, size, "%s%s%s", t, sep, OPENSSL_CONF);
crypto/openssl/crypto/conf/conf_mod.c
713
return file;
crypto/openssl/crypto/cryptlib.c
253
void OPENSSL_die(const char *message, const char *file, int line)
crypto/openssl/crypto/cryptlib.c
256
file, line, message);
crypto/openssl/crypto/ct/ct_log.c
215
int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file)
crypto/openssl/crypto/ct/ct_log.c
228
if (NCONF_load(load_ctx->conf, file, NULL) <= 0) {
crypto/openssl/crypto/dso/dso_vms.c
31
static void *dso_malloc(__size_t num, const char *file, int line)
crypto/openssl/crypto/dso/dso_vms.c
34
if (ret == NULL && (file != NULL || line != 0)) {
crypto/openssl/crypto/dso/dso_vms.c
36
ERR_set_debug(file, line, NULL);
crypto/openssl/crypto/dso/dso_win32.c
197
const char *file;
crypto/openssl/crypto/dso/dso_win32.c
276
result->file = start;
crypto/openssl/crypto/dso/dso_win32.c
295
result->file = NULL;
crypto/openssl/crypto/dso/dso_win32.c
312
if (file_split->predir || file_split->dir || file_split->file)
crypto/openssl/crypto/dso/dso_win32.c
318
if (file_split->predir && (file_split->dir || file_split->file)) {
crypto/openssl/crypto/dso/dso_win32.c
322
if (file_split->dir && file_split->file) {
crypto/openssl/crypto/dso/dso_win32.c
341
if (file_split->predir || file_split->dir || file_split->file) {
crypto/openssl/crypto/dso/dso_win32.c
376
strncpy(&result[offset], file_split->file, file_split->filelen);
crypto/openssl/crypto/dso/dso_win32.c
429
if (!filespec1_split->file) {
crypto/openssl/crypto/dso/dso_win32.c
430
filespec1_split->file = filespec2_split->file;
crypto/openssl/crypto/err/err.c
168
const char **file, int *line,
crypto/openssl/crypto/err/err.c
356
unsigned long ERR_get_error_all(const char **file, int *line,
crypto/openssl/crypto/err/err.c
360
return get_error_values(EV_POP, file, line, func, data, flags);
crypto/openssl/crypto/err/err.c
364
unsigned long ERR_get_error_line(const char **file, int *line)
crypto/openssl/crypto/err/err.c
366
return get_error_values(EV_POP, file, line, NULL, NULL, NULL);
crypto/openssl/crypto/err/err.c
369
unsigned long ERR_get_error_line_data(const char **file, int *line,
crypto/openssl/crypto/err/err.c
372
return get_error_values(EV_POP, file, line, NULL, data, flags);
crypto/openssl/crypto/err/err.c
381
unsigned long ERR_peek_error_line(const char **file, int *line)
crypto/openssl/crypto/err/err.c
383
return get_error_values(EV_PEEK, file, line, NULL, NULL, NULL);
crypto/openssl/crypto/err/err.c
396
unsigned long ERR_peek_error_all(const char **file, int *line,
crypto/openssl/crypto/err/err.c
400
return get_error_values(EV_PEEK, file, line, func, data, flags);
crypto/openssl/crypto/err/err.c
404
unsigned long ERR_peek_error_line_data(const char **file, int *line,
crypto/openssl/crypto/err/err.c
407
return get_error_values(EV_PEEK, file, line, NULL, data, flags);
crypto/openssl/crypto/err/err.c
416
unsigned long ERR_peek_last_error_line(const char **file, int *line)
crypto/openssl/crypto/err/err.c
418
return get_error_values(EV_PEEK_LAST, file, line, NULL, NULL, NULL);
crypto/openssl/crypto/err/err.c
431
unsigned long ERR_peek_last_error_all(const char **file, int *line,
crypto/openssl/crypto/err/err.c
435
return get_error_values(EV_PEEK_LAST, file, line, func, data, flags);
crypto/openssl/crypto/err/err.c
439
unsigned long ERR_peek_last_error_line_data(const char **file, int *line,
crypto/openssl/crypto/err/err.c
442
return get_error_values(EV_PEEK_LAST, file, line, NULL, data, flags);
crypto/openssl/crypto/err/err.c
447
const char **file, int *line,
crypto/openssl/crypto/err/err.c
494
if (file != NULL) {
crypto/openssl/crypto/err/err.c
495
*file = es->err_file[i];
crypto/openssl/crypto/err/err.c
496
if (*file == NULL)
crypto/openssl/crypto/err/err.c
497
*file = "";
crypto/openssl/crypto/err/err_blocks.c
29
void ERR_set_debug(const char *file, int line, const char *func)
crypto/openssl/crypto/err/err_blocks.c
37
err_set_debug(es, es->top, file, line, func);
crypto/openssl/crypto/err/err_local.h
49
const char *file, int line,
crypto/openssl/crypto/err/err_local.h
57
if (file == NULL || file[0] == '\0')
crypto/openssl/crypto/err/err_local.h
59
else if ((es->err_file[i] = CRYPTO_malloc(strlen(file) + 1,
crypto/openssl/crypto/err/err_local.h
63
strcpy(es->err_file[i], file);
crypto/openssl/crypto/err/err_prn.c
129
put_error(ERR_GET_LIB(err), func, err, file, line);
crypto/openssl/crypto/err/err_prn.c
25
const char *file, *data, *func;
crypto/openssl/crypto/err/err_prn.c
28
while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) {
crypto/openssl/crypto/err/err_prn.c
42
file, line, data);
crypto/openssl/crypto/err/err_prn.c
51
const char *file, int line)
crypto/openssl/crypto/err/err_prn.c
54
ERR_set_debug(file, line, func);
crypto/openssl/crypto/err/err_prn.c
62
const char *file = NULL;
crypto/openssl/crypto/err/err_prn.c
81
ERR_peek_last_error_all(&file, &line, &func, &data, &flags);
crypto/openssl/crypto/mem.c
188
void *CRYPTO_malloc(size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
194
ptr = malloc_impl(num, file, line);
crypto/openssl/crypto/mem.c
221
if (file != NULL || line != 0) {
crypto/openssl/crypto/mem.c
223
ERR_set_debug(file, line, NULL);
crypto/openssl/crypto/mem.c
229
void *CRYPTO_zalloc(size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
233
ret = CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem.c
241
const char *file, int line)
crypto/openssl/crypto/mem.c
279
*freeptr = CRYPTO_malloc(num + alignment, file, line);
crypto/openssl/crypto/mem.c
302
void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
306
return realloc_impl(str, num, file, line);
crypto/openssl/crypto/mem.c
309
return CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem.c
312
CRYPTO_free(str, file, line);
crypto/openssl/crypto/mem.c
321
const char *file, int line)
crypto/openssl/crypto/mem.c
326
return CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem.c
329
CRYPTO_clear_free(str, old_len, file, line);
crypto/openssl/crypto/mem.c
339
ret = CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem.c
342
CRYPTO_clear_free(str, old_len, file, line);
crypto/openssl/crypto/mem.c
347
void CRYPTO_free(void *str, const char *file, int line)
crypto/openssl/crypto/mem.c
351
free_impl(str, file, line);
crypto/openssl/crypto/mem.c
358
void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)
crypto/openssl/crypto/mem.c
364
CRYPTO_free(str, file, line);
crypto/openssl/crypto/mem.c
382
int CRYPTO_mem_debug_push(const char *info, const char *file, int line)
crypto/openssl/crypto/mem.c
385
(void)file;
crypto/openssl/crypto/mem.c
396
const char *file, int line)
crypto/openssl/crypto/mem.c
401
(void)file;
crypto/openssl/crypto/mem.c
406
const char *file, int line)
crypto/openssl/crypto/mem.c
412
(void)file;
crypto/openssl/crypto/mem.c
417
const char *file, int line)
crypto/openssl/crypto/mem.c
421
(void)file;
crypto/openssl/crypto/mem_sec.c
153
void *CRYPTO_secure_malloc(size_t num, const char *file, int line)
crypto/openssl/crypto/mem_sec.c
161
return CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem_sec.c
172
if (ret == NULL && (file != NULL || line != 0)) {
crypto/openssl/crypto/mem_sec.c
174
ERR_set_debug(file, line, NULL);
crypto/openssl/crypto/mem_sec.c
179
return CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/mem_sec.c
183
void *CRYPTO_secure_zalloc(size_t num, const char *file, int line)
crypto/openssl/crypto/mem_sec.c
188
return CRYPTO_secure_malloc(num, file, line);
crypto/openssl/crypto/mem_sec.c
190
return CRYPTO_zalloc(num, file, line);
crypto/openssl/crypto/mem_sec.c
193
void CRYPTO_secure_free(void *ptr, const char *file, int line)
crypto/openssl/crypto/mem_sec.c
201
CRYPTO_free(ptr, file, line);
crypto/openssl/crypto/mem_sec.c
212
CRYPTO_free(ptr, file, line);
crypto/openssl/crypto/mem_sec.c
217
const char *file, int line)
crypto/openssl/crypto/mem_sec.c
226
CRYPTO_free(ptr, file, line);
crypto/openssl/crypto/mem_sec.c
240
CRYPTO_free(ptr, file, line);
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
116
return file;
crypto/openssl/crypto/o_fopen.c
40
FILE *file = NULL;
crypto/openssl/crypto/o_fopen.c
74
&& (file = _wfopen(wfilename, wmode)) == NULL && (errno == ENOENT || errno == EBADF)) {
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_str.c
22
char *CRYPTO_strdup(const char *str, const char *file, int line)
crypto/openssl/crypto/o_str.c
28
ret = CRYPTO_malloc(strlen(str) + 1, file, line);
crypto/openssl/crypto/o_str.c
34
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line)
crypto/openssl/crypto/o_str.c
44
ret = CRYPTO_malloc(maxlen + 1, file, line);
crypto/openssl/crypto/o_str.c
52
void *CRYPTO_memdup(const void *data, size_t siz, const char *file, int line)
crypto/openssl/crypto/o_str.c
59
ret = CRYPTO_malloc(siz, file, line);
crypto/openssl/crypto/pem/pem_lib.c
224
const char *file, int line)
crypto/openssl/crypto/pem/pem_lib.c
227
CRYPTO_secure_clear_free(p, num, file, line);
crypto/openssl/crypto/pem/pem_lib.c
229
CRYPTO_free(p, file, line);
crypto/openssl/crypto/pem/pem_lib.c
235
const char *file, int line)
crypto/openssl/crypto/pem/pem_lib.c
237
return (flags & PEM_FLAG_SECURE) ? CRYPTO_secure_malloc(num, file, line)
crypto/openssl/crypto/pem/pem_lib.c
238
: CRYPTO_malloc(num, file, line);
crypto/openssl/crypto/provider_core.c
2395
const char *file, int line, const char *func)
crypto/openssl/crypto/provider_core.c
2397
ERR_set_debug(file, line, func);
crypto/openssl/crypto/rand/randfile.c
105
if ((in = openssl_fopen(file, "rb")) == NULL) {
crypto/openssl/crypto/rand/randfile.c
107
"Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
114
"Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
178
ERR_raise_data(ERR_LIB_RAND, RAND_R_RESEED_ERROR, "Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
185
int RAND_write_file(const char *file)
crypto/openssl/crypto/rand/randfile.c
193
if (stat(file, &sb) >= 0 && !S_ISREG(sb.st_mode)) {
crypto/openssl/crypto/rand/randfile.c
195
"Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
213
int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600);
crypto/openssl/crypto/rand/randfile.c
220
"Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
245
out = openssl_fopen(file, "rb+");
crypto/openssl/crypto/rand/randfile.c
249
out = openssl_fopen(file, "wb");
crypto/openssl/crypto/rand/randfile.c
252
"Filename=%s", file);
crypto/openssl/crypto/rand/randfile.c
260
chmod(file, 0600);
crypto/openssl/crypto/rand/randfile.c
84
int RAND_load_file(const char *file, long bytes)
crypto/openssl/crypto/ts/ts_conf.c
104
EVP_PKEY *TS_CONF_load_key(const char *file, const char *pass)
crypto/openssl/crypto/ts/ts_conf.c
110
if ((key = BIO_new_file(file, "rb")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
112
if ((key = BIO_new_file(file, "r")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
48
X509 *TS_CONF_load_cert(const char *file)
crypto/openssl/crypto/ts/ts_conf.c
54
if ((cert = BIO_new_file(file, "rb")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
56
if ((cert = BIO_new_file(file, "r")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
67
STACK_OF(X509) *TS_CONF_load_certs(const char *file)
crypto/openssl/crypto/ts/ts_conf.c
75
if ((certs = BIO_new_file(file, "rb")) == NULL)
crypto/openssl/crypto/ts/ts_conf.c
77
if ((certs = BIO_new_file(file, "r")) == NULL)
crypto/openssl/crypto/x509/by_file.c
104
if ((in == NULL) || (BIO_read_filename(in, file) <= 0)) {
crypto/openssl/crypto/x509/by_file.c
167
int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type)
crypto/openssl/crypto/x509/by_file.c
169
return X509_load_cert_file_ex(ctx, file, type, NULL, NULL);
crypto/openssl/crypto/x509/by_file.c
172
int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type)
crypto/openssl/crypto/x509/by_file.c
178
if (file == NULL) {
crypto/openssl/crypto/x509/by_file.c
185
if ((in == NULL) || (BIO_read_filename(in, file) <= 0)) {
crypto/openssl/crypto/x509/by_file.c
232
int X509_load_cert_crl_file_ex(X509_LOOKUP *ctx, const char *file, int type,
crypto/openssl/crypto/x509/by_file.c
241
return X509_load_cert_file_ex(ctx, file, type, libctx, propq);
crypto/openssl/crypto/x509/by_file.c
243
in = BIO_new_file(file, "rb");
crypto/openssl/crypto/x509/by_file.c
245
in = BIO_new_file(file, "r");
crypto/openssl/crypto/x509/by_file.c
281
int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type)
crypto/openssl/crypto/x509/by_file.c
283
return X509_load_cert_crl_file_ex(ctx, file, type, NULL, NULL);
crypto/openssl/crypto/x509/by_file.c
51
const char *file;
crypto/openssl/crypto/x509/by_file.c
56
file = ossl_safe_getenv(X509_get_default_cert_file_env());
crypto/openssl/crypto/x509/by_file.c
57
if (file)
crypto/openssl/crypto/x509/by_file.c
58
ok = (X509_load_cert_crl_file_ex(ctx, file, X509_FILETYPE_PEM,
crypto/openssl/crypto/x509/by_file.c
90
int X509_load_cert_file_ex(X509_LOOKUP *ctx, const char *file, int type,
crypto/openssl/crypto/x509/by_file.c
97
if (file == NULL) {
crypto/openssl/crypto/x509/x509_d2.c
100
int X509_STORE_load_locations_ex(X509_STORE *ctx, const char *file,
crypto/openssl/crypto/x509/x509_d2.c
104
if (file == NULL && path == NULL)
crypto/openssl/crypto/x509/x509_d2.c
106
if (file != NULL && !X509_STORE_load_file_ex(ctx, file, libctx, propq))
crypto/openssl/crypto/x509/x509_d2.c
113
int X509_STORE_load_locations(X509_STORE *ctx, const char *file,
crypto/openssl/crypto/x509/x509_d2.c
116
return X509_STORE_load_locations_ex(ctx, file, path, NULL, NULL);
crypto/openssl/crypto/x509/x509_d2.c
50
int X509_STORE_load_file_ex(X509_STORE *ctx, const char *file,
crypto/openssl/crypto/x509/x509_d2.c
55
if (file == NULL
crypto/openssl/crypto/x509/x509_d2.c
57
|| X509_LOOKUP_load_file_ex(lookup, file, X509_FILETYPE_PEM, libctx,
crypto/openssl/crypto/x509/x509_d2.c
65
int X509_STORE_load_file(X509_STORE *ctx, const char *file)
crypto/openssl/crypto/x509/x509_d2.c
67
return X509_STORE_load_file_ex(ctx, file, NULL, NULL);
crypto/openssl/engines/e_afalg_err.c
66
static void ERR_AFALG_error(int function, int reason, const char *file, int line)
crypto/openssl/engines/e_afalg_err.c
71
ERR_set_debug(file, line, NULL);
crypto/openssl/engines/e_capi_err.c
88
static void ERR_CAPI_error(int function, int reason, const char *file, int line)
crypto/openssl/engines/e_capi_err.c
93
ERR_set_debug(file, line, NULL);
crypto/openssl/engines/e_dasync_err.c
50
static void ERR_DASYNC_error(int function, int reason, const char *file, int line)
crypto/openssl/engines/e_dasync_err.c
55
ERR_set_debug(file, line, NULL);
crypto/openssl/engines/e_loader_attic.c
1044
} else if ((ctx->_.file.file = BIO_new_file(path, "rb")) == NULL
crypto/openssl/engines/e_loader_attic.c
1046
BIO_free_all(ctx->_.file.file);
crypto/openssl/engines/e_loader_attic.c
1081
ctx->_.file.file = bp;
crypto/openssl/engines/e_loader_attic.c
1084
ctx->_.file.file = NULL;
crypto/openssl/engines/e_loader_attic.c
1227
ctx->_.file.last_handler = matching_handlers[0];
crypto/openssl/engines/e_loader_attic.c
1228
ctx->_.file.last_handler_ctx = handler_ctx;
crypto/openssl/engines/e_loader_attic.c
1265
if (ctx->_.file.last_handler != NULL) {
crypto/openssl/engines/e_loader_attic.c
1266
result = ctx->_.file.last_handler->try_decode(NULL, NULL, NULL, 0,
crypto/openssl/engines/e_loader_attic.c
1267
&ctx->_.file.last_handler_ctx,
crypto/openssl/engines/e_loader_attic.c
1273
ctx->_.file.last_handler->destroy_ctx(&ctx->_.file.last_handler_ctx);
crypto/openssl/engines/e_loader_attic.c
1274
ctx->_.file.last_handler_ctx = NULL;
crypto/openssl/engines/e_loader_attic.c
1275
ctx->_.file.last_handler = NULL;
crypto/openssl/engines/e_loader_attic.c
1560
if (!file_read_pem(ctx->_.file.file, &pem_name, &pem_header,
crypto/openssl/engines/e_loader_attic.c
1567
if ((result = file_try_read_msblob(ctx->_.file.file,
crypto/openssl/engines/e_loader_attic.c
1570
|| (result = file_try_read_PVK(ctx->_.file.file,
crypto/openssl/engines/e_loader_attic.c
1576
if (!file_read_asn1(ctx->_.file.file, &data, &len)) {
crypto/openssl/engines/e_loader_attic.c
1646
if (ctx->_.file.last_handler != NULL
crypto/openssl/engines/e_loader_attic.c
1647
&& !ctx->_.file.last_handler->eof(ctx->_.file.last_handler_ctx))
crypto/openssl/engines/e_loader_attic.c
1649
return BIO_eof(ctx->_.file.file);
crypto/openssl/engines/e_loader_attic.c
1658
BIO_free_all(ctx->_.file.file);
crypto/openssl/engines/e_loader_attic.c
1664
BIO *buff = ctx->_.file.file;
crypto/openssl/engines/e_loader_attic.c
1667
(void)BIO_pop(ctx->_.file.file);
crypto/openssl/engines/e_loader_attic.c
1669
ctx->_.file.file = NULL;
crypto/openssl/engines/e_loader_attic.c
874
BIO *file;
crypto/openssl/engines/e_loader_attic.c
882
} file;
crypto/openssl/engines/e_loader_attic.c
919
if (ctx->_.file.last_handler != NULL) {
crypto/openssl/engines/e_loader_attic.c
920
ctx->_.file.last_handler->destroy_ctx(&ctx->_.file.last_handler_ctx);
crypto/openssl/engines/e_loader_attic.c
921
ctx->_.file.last_handler_ctx = NULL;
crypto/openssl/engines/e_loader_attic.c
922
ctx->_.file.last_handler = NULL;
crypto/openssl/engines/e_loader_attic.c
938
ctx->_.file.file = BIO_push(buff, ctx->_.file.file);
crypto/openssl/engines/e_loader_attic.c
939
if (BIO_buffer_peek(ctx->_.file.file, peekbuf, sizeof(peekbuf) - 1) > 0) {
crypto/openssl/engines/e_loader_attic_err.c
67
static void ERR_ATTIC_error(int function, int reason, const char *file, int line)
crypto/openssl/engines/e_loader_attic_err.c
72
ERR_set_debug(file, line, NULL);
crypto/openssl/engines/e_ossltest_err.c
50
static void ERR_OSSLTEST_error(int function, int reason, const char *file, int line)
crypto/openssl/engines/e_ossltest_err.c
55
ERR_set_debug(file, line, NULL);
crypto/openssl/fuzz/cmp.c
39
static int print_noop(const char *func, const char *file, int line,
crypto/openssl/include/internal/common.h
44
const char *file, int line)
crypto/openssl/include/internal/common.h
47
OPENSSL_die(exprstr, file, line);
crypto/openssl/include/internal/qlog.h
53
int ossl_qlog_set_sink_file(QLOG *qlog, FILE *file, int close_flag);
crypto/openssl/include/openssl/cmp.h
630
OSSL_CMP_MSG *OSSL_CMP_MSG_read(const char *file, OSSL_LIB_CTX *libctx,
crypto/openssl/include/openssl/cmp.h
632
int OSSL_CMP_MSG_write(const char *file, const OSSL_CMP_MSG *msg);
crypto/openssl/include/openssl/cmp_util.h
44
typedef int (*OSSL_CMP_log_cb_t)(const char *func, const char *file, int line,
crypto/openssl/include/openssl/cmp_util.h
47
int OSSL_CMP_print_to_bio(BIO *bio, const char *component, const char *file,
crypto/openssl/include/openssl/conf.h
119
LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,
crypto/openssl/include/openssl/conf.h
162
int NCONF_load(CONF *conf, const char *file, long *eline);
crypto/openssl/include/openssl/core_dispatch.h
115
CRYPTO_malloc, (size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
118
CRYPTO_zalloc, (size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
121
CRYPTO_free, (void *ptr, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
124
CRYPTO_clear_free, (void *ptr, size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
127
CRYPTO_realloc, (void *addr, size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
130
CRYPTO_clear_realloc, (void *addr, size_t old_num, size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
133
CRYPTO_secure_malloc, (size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
136
CRYPTO_secure_zalloc, (size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
139
CRYPTO_secure_free, (void *ptr, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
142
CRYPTO_secure_clear_free, (void *ptr, size_t num, const char *file, int line))
crypto/openssl/include/openssl/core_dispatch.h
87
const char *file, int line, const char *func))
crypto/openssl/include/openssl/crypto.h
352
typedef void *(*CRYPTO_malloc_fn)(size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
353
typedef void *(*CRYPTO_realloc_fn)(void *addr, size_t num, const char *file,
crypto/openssl/include/openssl/crypto.h
355
typedef void (*CRYPTO_free_fn)(void *addr, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
363
OSSL_CRYPTO_ALLOC void *CRYPTO_malloc(size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
364
OSSL_CRYPTO_ALLOC void *CRYPTO_zalloc(size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
366
void **freeptr, const char *file,
crypto/openssl/include/openssl/crypto.h
368
void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
369
char *CRYPTO_strdup(const char *str, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
370
char *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
371
void CRYPTO_free(void *ptr, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
372
void CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
373
void *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
375
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
379
OSSL_CRYPTO_ALLOC void *CRYPTO_secure_malloc(size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
380
OSSL_CRYPTO_ALLOC void *CRYPTO_secure_zalloc(size_t num, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
381
void CRYPTO_secure_free(void *ptr, const char *file, int line);
crypto/openssl/include/openssl/crypto.h
383
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
415
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
419
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
422
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
424
const char *file, int line);
crypto/openssl/include/openssl/crypto.h
440
ossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);
crypto/openssl/include/openssl/ct.h
562
__owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);
crypto/openssl/include/openssl/err.h
399
void ERR_set_debug(const char *file, int line, const char *func);
crypto/openssl/include/openssl/err.h
412
#define ERR_put_error(lib, func, reason, file, line) \
crypto/openssl/include/openssl/err.h
414
ERR_set_debug((file), (line), OPENSSL_FUNC), \
crypto/openssl/include/openssl/err.h
421
unsigned long ERR_get_error_all(const char **file, int *line,
crypto/openssl/include/openssl/err.h
426
unsigned long ERR_get_error_line(const char **file, int *line);
crypto/openssl/include/openssl/err.h
428
unsigned long ERR_get_error_line_data(const char **file, int *line,
crypto/openssl/include/openssl/err.h
432
unsigned long ERR_peek_error_line(const char **file, int *line);
crypto/openssl/include/openssl/err.h
435
unsigned long ERR_peek_error_all(const char **file, int *line,
crypto/openssl/include/openssl/err.h
440
unsigned long ERR_peek_error_line_data(const char **file, int *line,
crypto/openssl/include/openssl/err.h
444
unsigned long ERR_peek_last_error_line(const char **file, int *line);
crypto/openssl/include/openssl/err.h
447
unsigned long ERR_peek_last_error_all(const char **file, int *line,
crypto/openssl/include/openssl/err.h
452
unsigned long ERR_peek_last_error_line_data(const char **file, int *line,
crypto/openssl/include/openssl/rand.h
102
int RAND_load_file(const char *file, long max_bytes);
crypto/openssl/include/openssl/rand.h
103
int RAND_write_file(const char *file);
crypto/openssl/include/openssl/rand.h
104
const char *RAND_file_name(char *file, size_t num);
crypto/openssl/include/openssl/ssl.h
1708
__owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);
crypto/openssl/include/openssl/ssl.h
1712
__owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
crypto/openssl/include/openssl/ssl.h
1715
__owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
crypto/openssl/include/openssl/ssl.h
1716
__owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
crypto/openssl/include/openssl/ssl.h
1720
__owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,
crypto/openssl/include/openssl/ssl.h
1723
__owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,
crypto/openssl/include/openssl/ssl.h
1725
__owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,
crypto/openssl/include/openssl/ssl.h
1728
__owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);
crypto/openssl/include/openssl/ssl.h
1729
__owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);
crypto/openssl/include/openssl/ssl.h
1730
__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);
crypto/openssl/include/openssl/ssl.h
1731
__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file_ex(const char *file, OSSL_LIB_CTX *libctx,
crypto/openssl/include/openssl/ssl.h
1734
const char *file);
crypto/openssl/include/openssl/ts.h
483
X509 *TS_CONF_load_cert(const char *file);
crypto/openssl/include/openssl/ts.h
484
STACK_OF(X509) *TS_CONF_load_certs(const char *file);
crypto/openssl/include/openssl/ts.h
485
EVP_PKEY *TS_CONF_load_key(const char *file, const char *pass);
crypto/openssl/include/openssl/x509_vfy.h
712
int X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type);
crypto/openssl/include/openssl/x509_vfy.h
713
int X509_load_cert_file_ex(X509_LOOKUP *ctx, const char *file, int type,
crypto/openssl/include/openssl/x509_vfy.h
715
int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type);
crypto/openssl/include/openssl/x509_vfy.h
716
int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);
crypto/openssl/include/openssl/x509_vfy.h
717
int X509_load_cert_crl_file_ex(X509_LOOKUP *ctx, const char *file, int type,
crypto/openssl/include/openssl/x509_vfy.h
742
int X509_STORE_load_file(X509_STORE *xs, const char *file);
crypto/openssl/include/openssl/x509_vfy.h
745
int X509_STORE_load_locations(X509_STORE *s, const char *file, const char *dir);
crypto/openssl/include/openssl/x509_vfy.h
748
int X509_STORE_load_file_ex(X509_STORE *xs, const char *file,
crypto/openssl/include/openssl/x509_vfy.h
753
const char *file, const char *dir,
crypto/openssl/providers/fips/fipsprov.c
1009
void ERR_set_debug(const char *file, int line, const char *func)
crypto/openssl/providers/fips/fipsprov.c
1011
c_set_error_debug(NULL, file, line, func);
crypto/openssl/providers/fips/fipsprov.c
1066
void *CRYPTO_malloc(size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1068
return c_CRYPTO_malloc(num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1071
void *CRYPTO_zalloc(size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1073
return c_CRYPTO_zalloc(num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1076
void CRYPTO_free(void *ptr, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1078
c_CRYPTO_free(ptr, file, line);
crypto/openssl/providers/fips/fipsprov.c
1081
void CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1083
c_CRYPTO_clear_free(ptr, num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1086
void *CRYPTO_realloc(void *addr, size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1088
return c_CRYPTO_realloc(addr, num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1092
const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1094
return c_CRYPTO_clear_realloc(addr, old_num, num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1097
void *CRYPTO_secure_malloc(size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1099
return c_CRYPTO_secure_malloc(num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1102
void *CRYPTO_secure_zalloc(size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1104
return c_CRYPTO_secure_zalloc(num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1107
void CRYPTO_secure_free(void *ptr, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1109
c_CRYPTO_secure_free(ptr, file, line);
crypto/openssl/providers/fips/fipsprov.c
1112
void CRYPTO_secure_clear_free(void *ptr, size_t num, const char *file, int line)
crypto/openssl/providers/fips/fipsprov.c
1114
c_CRYPTO_secure_clear_free(ptr, num, file, line);
crypto/openssl/providers/fips/fipsprov.c
1123
const char *file, int line)
crypto/openssl/providers/implementations/storemgmt/file_store.c
118
OSSL_DECODER_CTX_free(ctx->_.file.decoderctx);
crypto/openssl/providers/implementations/storemgmt/file_store.c
119
OPENSSL_free(ctx->_.file.propq);
crypto/openssl/providers/implementations/storemgmt/file_store.c
120
OPENSSL_free(ctx->_.file.input_type);
crypto/openssl/providers/implementations/storemgmt/file_store.c
163
ctx->_.file.file = source;
crypto/openssl/providers/implementations/storemgmt/file_store.c
332
OPENSSL_free(ctx->_.file.propq);
crypto/openssl/providers/implementations/storemgmt/file_store.c
333
ctx->_.file.propq = NULL;
crypto/openssl/providers/implementations/storemgmt/file_store.c
334
if (!OSSL_PARAM_get_utf8_string(p, &ctx->_.file.propq, 0))
crypto/openssl/providers/implementations/storemgmt/file_store.c
339
OPENSSL_free(ctx->_.file.input_type);
crypto/openssl/providers/implementations/storemgmt/file_store.c
340
ctx->_.file.input_type = NULL;
crypto/openssl/providers/implementations/storemgmt/file_store.c
341
if (!OSSL_PARAM_get_utf8_string(p, &ctx->_.file.input_type, 0))
crypto/openssl/providers/implementations/storemgmt/file_store.c
424
if (ctx->_.file.decoderctx == NULL) {
crypto/openssl/providers/implementations/storemgmt/file_store.c
425
if ((ctx->_.file.decoderctx = OSSL_DECODER_CTX_new()) == NULL) {
crypto/openssl/providers/implementations/storemgmt/file_store.c
431
if (!OSSL_DECODER_CTX_set_input_type(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
432
ctx->_.file.input_type)) {
crypto/openssl/providers/implementations/storemgmt/file_store.c
446
if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
463
if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
471
if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
479
if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
515
if (ctx->_.file.input_type != NULL
crypto/openssl/providers/implementations/storemgmt/file_store.c
516
&& OPENSSL_strcasecmp(input_type, ctx->_.file.input_type) != 0
crypto/openssl/providers/implementations/storemgmt/file_store.c
517
&& (OPENSSL_strcasecmp(ctx->_.file.input_type, "PEM") != 0
crypto/openssl/providers/implementations/storemgmt/file_store.c
523
if (!ossl_decoder_ctx_add_decoder_inst(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
531
if (!OSSL_DECODER_CTX_add_extra(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
532
libctx, ctx->_.file.propq)) {
crypto/openssl/providers/implementations/storemgmt/file_store.c
541
if (!OSSL_DECODER_CTX_set_construct(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
543
|| !OSSL_DECODER_CTX_set_cleanup(ctx->_.file.decoderctx,
crypto/openssl/providers/implementations/storemgmt/file_store.c
573
OSSL_DECODER_CTX_set_construct_data(ctx->_.file.decoderctx, &data);
crypto/openssl/providers/implementations/storemgmt/file_store.c
574
OSSL_DECODER_CTX_set_passphrase_cb(ctx->_.file.decoderctx, pw_cb, pw_cbarg);
crypto/openssl/providers/implementations/storemgmt/file_store.c
579
ret = OSSL_DECODER_from_bio(ctx->_.file.decoderctx, ctx->_.file.file);
crypto/openssl/providers/implementations/storemgmt/file_store.c
580
if (BIO_eof(ctx->_.file.file)
crypto/openssl/providers/implementations/storemgmt/file_store.c
76
BIO *file;
crypto/openssl/providers/implementations/storemgmt/file_store.c
776
return !BIO_pending(ctx->_.file.file)
crypto/openssl/providers/implementations/storemgmt/file_store.c
777
&& BIO_eof(ctx->_.file.file);
crypto/openssl/providers/implementations/storemgmt/file_store.c
799
BIO_free(ctx->_.file.file);
crypto/openssl/providers/implementations/storemgmt/file_store.c
800
ctx->_.file.file = NULL;
crypto/openssl/providers/implementations/storemgmt/file_store.c
81
} file;
crypto/openssl/providers/legacyprov.c
279
void ERR_set_debug(const char *file, int line, const char *func)
crypto/openssl/providers/legacyprov.c
281
c_set_error_debug(NULL, file, line, func);
crypto/openssl/ssl/quic/quic_impl.c
117
const char *file,
crypto/openssl/ssl/quic/quic_impl.c
134
ERR_set_debug(file, line, func);
crypto/openssl/ssl/record/rec_layer_s3.c
492
char *file, int line)
crypto/openssl/ssl/record/rec_layer_s3.c
508
ERR_set_debug(file, line, 0);
crypto/openssl/ssl/record/rec_layer_s3.c
517
ERR_set_debug(file, line, 0);
crypto/openssl/ssl/record/rec_layer_s3.c
530
ERR_set_debug(file, line, 0);
crypto/openssl/ssl/record/record.h
172
char *file, int line);
crypto/openssl/ssl/ssl_cert.c
748
STACK_OF(X509_NAME) *SSL_load_client_CA_file_ex(const char *file,
crypto/openssl/ssl/ssl_cert.c
759
if (file == NULL) {
crypto/openssl/ssl/ssl_cert.c
777
if (BIO_read_filename(in, file) <= 0)
crypto/openssl/ssl/ssl_cert.c
825
STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file)
crypto/openssl/ssl/ssl_cert.c
827
return SSL_load_client_CA_file_ex(file, NULL, NULL);
crypto/openssl/ssl/ssl_cert.c
831
const char *file,
crypto/openssl/ssl/ssl_cert.c
846
if (BIO_read_filename(in, file) <= 0)
crypto/openssl/ssl/ssl_cert.c
881
const char *file)
crypto/openssl/ssl/ssl_cert.c
889
if (file == NULL) {
crypto/openssl/ssl/ssl_cert.c
911
ret = add_file_cert_subjects_to_stack(stack, file, name_hash);
crypto/openssl/ssl/ssl_rsa.c
170
int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
crypto/openssl/ssl/ssl_rsa.c
176
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
187
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa.c
311
int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
crypto/openssl/ssl/ssl_rsa.c
318
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
329
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa.c
393
int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
crypto/openssl/ssl/ssl_rsa.c
399
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
410
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa.c
463
static int use_certificate_chain_file(SSL_CTX *ctx, SSL *ssl, const char *file)
crypto/openssl/ssl/ssl_rsa.c
491
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
502
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa.c
54
int SSL_use_certificate_file(SSL *ssl, const char *file, int type)
crypto/openssl/ssl/ssl_rsa.c
589
int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file)
crypto/openssl/ssl/ssl_rsa.c
591
return use_certificate_chain_file(ctx, NULL, file);
crypto/openssl/ssl/ssl_rsa.c
594
int SSL_use_certificate_chain_file(SSL *ssl, const char *file)
crypto/openssl/ssl/ssl_rsa.c
596
return use_certificate_chain_file(NULL, ssl, file);
crypto/openssl/ssl/ssl_rsa.c
61
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
72
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa.c
866
int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file)
crypto/openssl/ssl/ssl_rsa.c
880
if (ctx == NULL || file == NULL) {
crypto/openssl/ssl/ssl_rsa.c
890
if (BIO_read_filename(bin, file) <= 0) {
crypto/openssl/ssl/ssl_rsa_legacy.c
138
int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type)
crypto/openssl/ssl/ssl_rsa_legacy.c
144
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa_legacy.c
155
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/ssl/ssl_rsa_legacy.c
47
int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type)
crypto/openssl/ssl/ssl_rsa_legacy.c
53
if (file == NULL) {
crypto/openssl/ssl/ssl_rsa_legacy.c
64
if (BIO_read_filename(in, file) <= 0) {
crypto/openssl/test/cmp_ctx_test.c
136
static int msg_total_size_log_cb(const char *func, const char *file, int line,
crypto/openssl/test/cmp_ctx_test.c
262
static int test_log_cb(const char *func, const char *file, int line,
crypto/openssl/test/cmp_ctx_test.c
271
(TEST_str_eq(file, OPENSSL_FILE)
crypto/openssl/test/cmp_ctx_test.c
272
|| TEST_str_eq(file, "(no file)"))
crypto/openssl/test/conf_include_test.c
40
static char *change_path(const char *file)
crypto/openssl/test/conf_include_test.c
42
char *s = OPENSSL_strdup(file);
crypto/openssl/test/ct_test.c
108
static int read_text_file(const char *dir, const char *file,
crypto/openssl/test/ct_test.c
112
char *file_path = test_mk_file_path(dir, file);
crypto/openssl/test/ct_test.c
91
static X509 *load_pem_cert(const char *dir, const char *file)
crypto/openssl/test/ct_test.c
94
char *file_path = test_mk_file_path(dir, file);
crypto/openssl/test/endecode_test.c
134
typedef int(encoder)(const char *file, const int line,
crypto/openssl/test/endecode_test.c
139
typedef int(decoder)(const char *file, const int line,
crypto/openssl/test/endecode_test.c
143
typedef int(tester)(const char *file, const int line,
crypto/openssl/test/endecode_test.c
146
typedef int(checker)(const char *file, const int line,
crypto/openssl/test/endecode_test.c
153
static int test_encode_decode(const char *file, const int line,
crypto/openssl/test/endecode_test.c
175
if (!TEST_true(encode_cb(file, line, &encoded, &encoded_len, pkey, selection,
crypto/openssl/test/endecode_test.c
180
if (TEST_false(decode_cb(file, line, (void **)&pkey2, encoded,
crypto/openssl/test/endecode_test.c
188
if (!TEST_true(check_cb(file, line, type, encoded, encoded_len))
crypto/openssl/test/endecode_test.c
189
|| !TEST_true(decode_cb(file, line, (void **)&pkey2, encoded, encoded_len,
crypto/openssl/test/endecode_test.c
195
&& !TEST_true(decode_cb(file, line, (void **)&pkey3, encoded, encoded_len,
crypto/openssl/test/endecode_test.c
199
|| !TEST_true(encode_cb(file, line, &encoded2, &encoded2_len, pkey2, selection,
crypto/openssl/test/endecode_test.c
221
&& !test_cb(file, line, encoded, encoded_len, encoded2, encoded2_len))
crypto/openssl/test/endecode_test.c
242
static int encode_EVP_PKEY_prov(const char *file, const int line,
crypto/openssl/test/endecode_test.c
283
static int decode_EVP_PKEY_prov(const char *file, const int line,
crypto/openssl/test/endecode_test.c
34
#define TEST_FL_ptr(a) test_ptr(file, line, #a, a)
crypto/openssl/test/endecode_test.c
35
#define TEST_FL_mem_eq(a, m, b, n) test_mem_eq(file, line, #a, #b, a, m, b, n)
crypto/openssl/test/endecode_test.c
358
static int encode_EVP_PKEY_legacy_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
36
#define TEST_FL_strn_eq(a, b, n) test_strn_eq(file, line, #a, #b, a, n, b, n)
crypto/openssl/test/endecode_test.c
37
#define TEST_FL_strn2_eq(a, m, b, n) test_strn_eq(file, line, #a, #b, a, m, b, n)
crypto/openssl/test/endecode_test.c
38
#define TEST_FL_int_eq(a, b) test_int_eq(file, line, #a, #b, a, b)
crypto/openssl/test/endecode_test.c
39
#define TEST_FL_int_ge(a, b) test_int_ge(file, line, #a, #b, a, b)
crypto/openssl/test/endecode_test.c
398
static int encode_EVP_PKEY_MSBLOB(const char *file, const int line,
crypto/openssl/test/endecode_test.c
40
#define TEST_FL_int_gt(a, b) test_int_gt(file, line, #a, #b, a, b)
crypto/openssl/test/endecode_test.c
41
#define TEST_FL_long_gt(a, b) test_long_gt(file, line, #a, #b, a, b)
crypto/openssl/test/endecode_test.c
42
#define TEST_FL_true(a) test_true(file, line, #a, (a) != 0)
crypto/openssl/test/endecode_test.c
443
static int encode_EVP_PKEY_PVK(const char *file, const int line,
crypto/openssl/test/endecode_test.c
478
static int test_text(const char *file, const int line,
crypto/openssl/test/endecode_test.c
485
static int test_mem(const char *file, const int line,
crypto/openssl/test/endecode_test.c
527
static int check_unprotected_PKCS8_DER(const char *file, const int line,
crypto/openssl/test/endecode_test.c
565
static int check_unprotected_PKCS8_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
587
static int check_params_DER(const char *file, const int line,
crypto/openssl/test/endecode_test.c
613
static int check_params_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
645
static int check_unprotected_legacy_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
672
static int check_MSBLOB(const char *file, const int line,
crypto/openssl/test/endecode_test.c
694
static int check_PVK(const char *file, const int line,
crypto/openssl/test/endecode_test.c
718
static int check_protected_PKCS8_DER(const char *file, const int line,
crypto/openssl/test/endecode_test.c
742
static int check_protected_PKCS8_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
764
static int check_protected_legacy_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
811
static int check_public_DER(const char *file, const int line,
crypto/openssl/test/endecode_test.c
833
static int check_public_PEM(const char *file, const int line,
crypto/openssl/test/endecode_test.c
853
static int check_public_MSBLOB(const char *file, const int line,
crypto/openssl/test/errtest.c
145
const char *f, *data, *file = NULL;
crypto/openssl/test/errtest.c
148
file = __FILE__;
crypto/openssl/test/errtest.c
157
|| (strlen(f) != 0 && !TEST_str_eq(f, file))
crypto/openssl/test/errtest.c
36
const char *file = OPENSSL_FILE;
crypto/openssl/test/errtest.c
39
const char *file = "";
crypto/openssl/test/errtest.c
68
ERR_PUT_error(ERR_LIB_SYS, 0, syserr, file, line);
crypto/openssl/test/errtest.c
91
errorcode, lib, func, reason, file, line);
crypto/openssl/test/evp_pkey_provided_test.c
101
file = BIO_new_file(fullfile, "rb");
crypto/openssl/test/evp_pkey_provided_test.c
102
if (!TEST_ptr(file))
crypto/openssl/test/evp_pkey_provided_test.c
105
if (!TEST_true(BIO_read_ex(file, buf, sizeof(buf), &readbytes))
crypto/openssl/test/evp_pkey_provided_test.c
106
|| !TEST_true(BIO_eof(file))
crypto/openssl/test/evp_pkey_provided_test.c
127
BIO_free(file);
crypto/openssl/test/evp_pkey_provided_test.c
57
BIO *file = NULL;
crypto/openssl/test/helpers/cmp_testlib.c
15
OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx)
crypto/openssl/test/helpers/cmp_testlib.c
19
(void)TEST_ptr((msg = OSSL_CMP_MSG_read(file, libctx, NULL)));
crypto/openssl/test/helpers/cmp_testlib.c
77
int print_to_bio_out(const char *func, const char *file, int line,
crypto/openssl/test/helpers/cmp_testlib.c
80
return OSSL_CMP_print_to_bio(bio_out, func, file, line, level, msg);
crypto/openssl/test/helpers/cmp_testlib.h
24
OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx);
crypto/openssl/test/helpers/cmp_testlib.h
28
int print_to_bio_out(const char *func, const char *file, int line,
crypto/openssl/test/p_test.c
77
static void p_set_error(int lib, int reason, const char *file, int line,
crypto/openssl/test/p_test.c
84
c_set_error_debug(NULL, file, line, func);
crypto/openssl/test/radix/terp.c
221
static void opgen_set_line(GEN_CTX *ctx, const char *file, int line)
crypto/openssl/test/radix/terp.c
223
ctx->cur_file = file;
crypto/openssl/test/radix/terp.c
33
const char *file;
crypto/openssl/test/radix/terp.c
482
script_info->file, script_info->line);
crypto/openssl/test/sslapitest.c
9082
static int load_chain(const char *file, EVP_PKEY **pkey, X509 **x509,
crypto/openssl/test/sslapitest.c
9085
char *path = test_mk_file_path(certsdir, file);
crypto/openssl/test/testutil.h
342
int test_ptr(const char *file, int line, const char *s, const void *p);
crypto/openssl/test/testutil.h
343
int test_ptr_null(const char *file, int line, const char *s, const void *p);
crypto/openssl/test/testutil.h
357
int test_strn_eq(const char *file, int line, const char *, const char *,
crypto/openssl/test/testutil.h
359
int test_strn_ne(const char *file, int line, const char *, const char *,
crypto/openssl/test/testutil.h
379
int test_true(const char *file, int line, const char *s, int b);
crypto/openssl/test/testutil.h
380
int test_false(const char *file, int line, const char *s, int b);
crypto/openssl/test/testutil.h
389
int test_BN_eq_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
390
int test_BN_ne_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
391
int test_BN_lt_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
392
int test_BN_le_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
393
int test_BN_gt_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
394
int test_BN_ge_zero(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
395
int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
396
int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
397
int test_BN_even(const char *file, int line, const char *s, const BIGNUM *a);
crypto/openssl/test/testutil.h
398
int test_BN_eq_word(const char *file, int line, const char *bns, const char *ws,
crypto/openssl/test/testutil.h
400
int test_BN_abs_eq_word(const char *file, int line, const char *bns,
crypto/openssl/test/testutil.h
407
void test_error(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil.h
410
void test_info(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil.h
414
int test_skip(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil.h
644
char *test_mk_file_path(const char *dir, const char *file);
crypto/openssl/test/testutil.h
646
EVP_PKEY *load_pkey_pem(const char *file, OSSL_LIB_CTX *libctx);
crypto/openssl/test/testutil.h
647
X509 *load_cert_pem(const char *file, OSSL_LIB_CTX *libctx);
crypto/openssl/test/testutil.h
649
STACK_OF(X509) *load_certs_pem(const char *file);
crypto/openssl/test/testutil.h
650
X509_REQ *load_csr_der(const char *file, OSSL_LIB_CTX *libctx);
crypto/openssl/test/testutil/compare.c
26
BIO *file = NULL, *newfile = NULL;
crypto/openssl/test/testutil/compare.c
34
file = BIO_new_file(reffile, "rb");
crypto/openssl/test/testutil/compare.c
35
if (!TEST_ptr(file))
crypto/openssl/test/testutil/compare.c
51
while (BIO_gets(file, buf1, sizeof(buf1)) > 0) {
crypto/openssl/test/testutil/compare.c
80
if (!TEST_true(BIO_eof(file))
crypto/openssl/test/testutil/compare.c
86
BIO_free(file);
crypto/openssl/test/testutil/driver.c
433
char *test_mk_file_path(const char *dir, const char *file)
crypto/openssl/test/testutil/driver.c
443
size_t len = dirlen + strlen(sep) + strlen(file) + 1;
crypto/openssl/test/testutil/driver.c
459
&& (file[0] == '[' || file[0] == '<')) {
crypto/openssl/test/testutil/driver.c
460
file++;
crypto/openssl/test/testutil/driver.c
461
if (file[0] == '.')
crypto/openssl/test/testutil/driver.c
470
OPENSSL_strlcat(full_file, file, len);
crypto/openssl/test/testutil/format_output.c
126
void test_fail_string_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
132
test_fail_string_common(prefix, file, line, type, left, right, op,
crypto/openssl/test/testutil/format_output.c
265
static void test_fail_bignum_common(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
280
test_fail_message_prefix(prefix, file, line, type, left, right, op);
crypto/openssl/test/testutil/format_output.c
366
void test_fail_bignum_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
372
test_fail_bignum_common(prefix, file, line, type, left, right, op, bn1, bn2);
crypto/openssl/test/testutil/format_output.c
376
void test_fail_bignum_mono_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
38
static void test_fail_string_common(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
381
test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn);
crypto/openssl/test/testutil/format_output.c
423
static void test_fail_memory_common(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
436
test_fail_message_prefix(prefix, file, line, type, left, right, op);
crypto/openssl/test/testutil/format_output.c
50
test_fail_message_prefix(prefix, file, line, type, left, right, op);
crypto/openssl/test/testutil/format_output.c
518
void test_fail_memory_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/format_output.c
525
test_fail_memory_common(prefix, file, line, type, left, right, op,
crypto/openssl/test/testutil/load.c
18
X509 *load_cert_pem(const char *file, OSSL_LIB_CTX *libctx)
crypto/openssl/test/testutil/load.c
23
if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file())))
crypto/openssl/test/testutil/load.c
25
if (TEST_int_gt(BIO_read_filename(bio, file), 0)
crypto/openssl/test/testutil/load.c
33
STACK_OF(X509) *load_certs_pem(const char *file)
crypto/openssl/test/testutil/load.c
39
if (!TEST_ptr(file) || (bio = BIO_new_file(file, "r")) == NULL)
crypto/openssl/test/testutil/load.c
69
EVP_PKEY *load_pkey_pem(const char *file, OSSL_LIB_CTX *libctx)
crypto/openssl/test/testutil/load.c
74
if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new(BIO_s_file())))
crypto/openssl/test/testutil/load.c
76
if (TEST_int_gt(BIO_read_filename(bio, file), 0)) {
crypto/openssl/test/testutil/load.c
92
X509_REQ *load_csr_der(const char *file, OSSL_LIB_CTX *libctx)
crypto/openssl/test/testutil/load.c
97
if (!TEST_ptr(file) || !TEST_ptr(bio = BIO_new_file(file, "rb")))
crypto/openssl/test/testutil/tests.c
108
void test_info(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil/tests.c
113
test_fail_message_va("INFO", file, line, NULL, NULL, NULL, NULL, desc, ap);
crypto/openssl/test/testutil/tests.c
127
void test_error(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil/tests.c
132
test_fail_message_va(NULL, file, line, NULL, NULL, NULL, NULL, desc, ap);
crypto/openssl/test/testutil/tests.c
160
int test_skip(const char *file, int line, const char *desc, ...)
crypto/openssl/test/testutil/tests.c
165
test_fail_message_va("SKIP", file, line, NULL, NULL, NULL, NULL, desc, ap);
crypto/openssl/test/testutil/tests.c
210
int test_##name##_##opname(const char *file, int line, \
crypto/openssl/test/testutil/tests.c
216
test_fail_message(NULL, file, line, #type, s1, s2, #op, \
crypto/openssl/test/testutil/tests.c
244
int test_ptr_null(const char *file, int line, const char *s, const void *p)
crypto/openssl/test/testutil/tests.c
248
test_fail_message(NULL, file, line, "ptr", s, "NULL", "==", "%p", p);
crypto/openssl/test/testutil/tests.c
25
void test_fail_message_prefix(const char *prefix, const char *file,
crypto/openssl/test/testutil/tests.c
252
int test_ptr(const char *file, int line, const char *s, const void *p)
crypto/openssl/test/testutil/tests.c
256
test_fail_message(NULL, file, line, "ptr", s, "NULL", "!=", "%p", p);
crypto/openssl/test/testutil/tests.c
260
int test_true(const char *file, int line, const char *s, int b)
crypto/openssl/test/testutil/tests.c
264
test_fail_message(NULL, file, line, "bool", s, "true", "==", "false");
crypto/openssl/test/testutil/tests.c
268
int test_false(const char *file, int line, const char *s, int b)
crypto/openssl/test/testutil/tests.c
272
test_fail_message(NULL, file, line, "bool", s, "false", "==", "true");
crypto/openssl/test/testutil/tests.c
276
int test_str_eq(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
282
test_fail_string_message(NULL, file, line, "string", st1, st2, "==",
crypto/openssl/test/testutil/tests.c
290
int test_str_ne(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
296
test_fail_string_message(NULL, file, line, "string", st1, st2, "!=",
crypto/openssl/test/testutil/tests.c
304
int test_strn_eq(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
310
test_fail_string_message(NULL, file, line, "string", st1, st2, "==",
crypto/openssl/test/testutil/tests.c
318
int test_strn_ne(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
324
test_fail_string_message(NULL, file, line, "string", st1, st2, "!=",
crypto/openssl/test/testutil/tests.c
332
int test_mem_eq(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
338
test_fail_memory_message(NULL, file, line, "memory", st1, st2, "==",
crypto/openssl/test/testutil/tests.c
345
int test_mem_ne(const char *file, int line, const char *st1, const char *st2,
crypto/openssl/test/testutil/tests.c
353
test_fail_memory_message(NULL, file, line, "memory", st1, st2, "!=",
crypto/openssl/test/testutil/tests.c
361
int test_BN_##opname(const char *file, int line, \
crypto/openssl/test/testutil/tests.c
367
test_fail_bignum_message(NULL, file, line, "BIGNUM", s1, s2, \
crypto/openssl/test/testutil/tests.c
371
int test_BN_##opname##_zero(const char *file, int line, \
crypto/openssl/test/testutil/tests.c
376
test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", \
crypto/openssl/test/testutil/tests.c
388
int test_BN_eq_one(const char *file, int line, const char *s, const BIGNUM *a)
crypto/openssl/test/testutil/tests.c
39
if (file != NULL) {
crypto/openssl/test/testutil/tests.c
392
test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", s, "1", "==", a);
crypto/openssl/test/testutil/tests.c
396
int test_BN_odd(const char *file, int line, const char *s, const BIGNUM *a)
crypto/openssl/test/testutil/tests.c
40
test_printf_stderr(" @ %s:%d", file, line);
crypto/openssl/test/testutil/tests.c
400
test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "ODD(", ")", s, a);
crypto/openssl/test/testutil/tests.c
404
int test_BN_even(const char *file, int line, const char *s, const BIGNUM *a)
crypto/openssl/test/testutil/tests.c
408
test_fail_bignum_mono_message(NULL, file, line, "BIGNUM", "EVEN(", ")", s,
crypto/openssl/test/testutil/tests.c
413
int test_BN_eq_word(const char *file, int line, const char *bns, const char *ws,
crypto/openssl/test/testutil/tests.c
422
test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "==", a, bw);
crypto/openssl/test/testutil/tests.c
427
int test_BN_abs_eq_word(const char *file, int line, const char *bns,
crypto/openssl/test/testutil/tests.c
438
test_fail_bignum_message(NULL, file, line, "BIGNUM", bns, ws, "abs==",
crypto/openssl/test/testutil/tests.c
451
int test_time_t_##opname(const char *file, int line, \
crypto/openssl/test/testutil/tests.c
460
test_fail_message(NULL, file, line, "time_t", s1, s2, #op, \
crypto/openssl/test/testutil/tests.c
68
static void test_fail_message(const char *prefix, const char *file, int line,
crypto/openssl/test/testutil/tests.c
74
static void test_fail_message_va(const char *prefix, const char *file,
crypto/openssl/test/testutil/tests.c
79
test_fail_message_prefix(prefix, file, line, type, left, right, op);
crypto/openssl/test/testutil/tests.c
87
static void test_fail_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/tests.c
95
test_fail_message_va(prefix, file, line, type, left, right, op, fmt, ap);
crypto/openssl/test/testutil/tu_local.h
21
void test_fail_message_prefix(const char *prefix, const char *file,
crypto/openssl/test/testutil/tu_local.h
26
void test_fail_string_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/tu_local.h
32
void test_fail_bignum_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/tu_local.h
37
void test_fail_bignum_mono_message(const char *prefix, const char *file,
crypto/openssl/test/testutil/tu_local.h
42
void test_fail_memory_message(const char *prefix, const char *file,
crypto/openssl/test/verify_extra_test.c
30
#define load_cert_from_file(file) load_cert_pem(file, NULL)
crypto/openssl/test/x509_check_cert_pkey_test.c
109
static const char *file; /* path of a cert/CRL/key file in PEM format */
crypto/openssl/test/x509_check_cert_pkey_test.c
119
if (!TEST_ptr((in = BIO_new_file(file, "r"))))
crypto/openssl/test/x509_check_cert_pkey_test.c
163
if (!TEST_ptr(file = test_get_argument(0))
lib/clang/liblldb/LLDBWrapLua.cpp
3593
SWIGINTERN void lldb_SBStream_RedirectToFileHandle(lldb::SBStream *self,lldb::FileSP file,bool transfer_fh_ownership){
lib/clang/liblldb/LLDBWrapLua.cpp
3594
self->RedirectToFile(file);
lib/geom/eli/geom_eli.c
1706
eli_backup_create(struct gctl_req *req, const char *prov, const char *file)
lib/geom/eli/geom_eli.c
1736
filefd = open(file, O_WRONLY | O_TRUNC | O_CREAT, 0600);
lib/geom/eli/geom_eli.c
1738
gctl_error(req, "Unable to open %s: %s.", file,
lib/geom/eli/geom_eli.c
1744
gctl_error(req, "Unable to write to %s: %s.", file,
lib/geom/eli/geom_eli.c
1747
(void)unlink(file);
lib/geom/eli/geom_eli.c
1765
const char *file, *prov;
lib/geom/eli/geom_eli.c
1774
file = gctl_get_ascii(req, "arg1");
lib/geom/eli/geom_eli.c
1776
eli_backup_create(req, prov, file);
lib/geom/eli/geom_eli.c
1783
const char *file, *prov;
lib/geom/eli/geom_eli.c
1792
file = gctl_get_ascii(req, "arg0");
lib/geom/eli/geom_eli.c
1796
if (eli_metadata_read(req, file, &md) == -1)
lib/geom/eli/geom_eli.c
374
const char *file;
lib/geom/eli/geom_eli.c
392
file = gctl_get_ascii(req, "%s", argname);
lib/geom/eli/geom_eli.c
393
assert(file != NULL);
lib/geom/eli/geom_eli.c
395
if (strcmp(file, "-") == 0)
lib/geom/eli/geom_eli.c
398
fd = open(file, O_RDONLY);
lib/geom/eli/geom_eli.c
401
type, file, strerror(errno));
lib/geom/eli/geom_eli.c
421
"Passphrase in %s too long.", file);
lib/geom/eli/geom_eli.c
430
if (strcmp(file, "-") != 0)
lib/geom/eli/geom_eli.c
435
type, file, strerror(error));
lib/geom/eli/geom_eli.c
86
const char *file);
lib/libc/db/hash/hash.c
118
if (file) {
lib/libc/db/hash/hash.c
119
if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1)
lib/libc/db/hash/hash.c
128
if (!(hashp = init_hash(hashp, file, info)))
lib/libc/db/hash/hash.c
182
hashp->save_file = file && (flags & O_RDWR);
lib/libc/db/hash/hash.c
267
init_hash(HTAB *hashp, const char *file, const HASHINFO *info)
lib/libc/db/hash/hash.c
286
if (file != NULL) {
lib/libc/db/hash/hash.c
287
if (stat(file, &statbuf))
lib/libc/db/hash/hash.c
93
__hash_open(const char *file, int flags, int mode,
lib/libc/db/hash/ndbm.c
55
dbm_open(const char *file, int flags, mode_t mode)
lib/libc/db/hash/ndbm.c
67
if( strlen(file) >= sizeof(path) - strlen(DBM_SUFFIX)) {
lib/libc/db/hash/ndbm.c
71
(void)strcpy(path, file);
lib/libc/gen/assert.c
37
__assert(const char *func, const char *file, int line, const char *failedexpr)
lib/libc/gen/assert.c
42
file, line);
lib/libc/gen/assert.c
46
failedexpr, func, file, line);
lib/libc/gen/fstab.c
59
setfstab(const char *file)
lib/libc/gen/fstab.c
62
if (file == NULL) {
lib/libc/gen/fstab.c
65
strncpy(fstab_path, file, PATH_MAX);
lib/libc/gen/getutxent.c
44
setutxdb(int db, const char *file)
lib/libc/gen/getutxent.c
50
if (file == NULL)
lib/libc/gen/getutxent.c
51
file = _PATH_UTX_ACTIVE;
lib/libc/gen/getutxent.c
54
if (file == NULL)
lib/libc/gen/getutxent.c
55
file = _PATH_UTX_LASTLOGIN;
lib/libc/gen/getutxent.c
58
if (file == NULL)
lib/libc/gen/getutxent.c
59
file = _PATH_UTX_LOG;
lib/libc/gen/getutxent.c
68
uf = fopen(file, "re");
lib/libc/gen/pututxline.c
43
futx_open(const char *file)
lib/libc/gen/pututxline.c
49
fd = _open(file, O_CREAT|O_RDWR|O_EXLOCK|O_CLOEXEC, 0644);
lib/libc/iconv/citrus_lookup.c
58
struct _citrus_region file;
lib/libc/iconv/citrus_lookup.c
69
#define cl_dbfile u.db.file
lib/libc/isc/ev_streams.c
108
if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0)
lib/libc/isc/ev_streams.c
197
if (old->file.opaque)
lib/libc/isc/ev_streams.c
198
evDeselectFD(opaqueCtx, old->file);
lib/libc/isc/ev_streams.c
258
evDeselectFD(opaqueCtx, str->file);
lib/libc/isc/ev_streams.c
259
str->file.opaque = NULL;
lib/libc/isc/ev_streams.c
74
if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0)
lib/libc/isc/eventlib_p.h
131
evFileID file;
lib/libc/isc/eventlib_p.h
174
struct { evFile *this; int eventmask; } file;
lib/libc/isc/eventlib_p.h
87
evFileID file;
lib/libc/posix1e/mac.c
170
FILE *file;
lib/libc/posix1e/mac.c
180
file = fopen(filename, "re");
lib/libc/posix1e/mac.c
181
if (file == NULL)
lib/libc/posix1e/mac.c
184
while (fgets(line, LINE_MAX, file)) {
lib/libc/posix1e/mac.c
192
fclose(file);
lib/libc/posix1e/mac.c
216
fclose(file);
lib/libc/posix1e/mac.c
223
fclose(file);
lib/libc/posix1e/mac.c
244
fclose(file);
lib/libc/posix1e/mac.c
251
fclose(file);
lib/libc/posix1e/mac.c
257
fclose(file);
lib/libc/posix1e/mac.c
263
fclose(file);
lib/libc/resolv/res_data.c
115
fp_query(const u_char *msg, FILE *file) {
lib/libc/resolv/res_data.c
116
fp_nquery(msg, PACKETSZ, file);
lib/libc/resolv/res_data.c
120
fp_nquery(const u_char *msg, int len, FILE *file) {
lib/libc/resolv/res_data.c
125
res_pquery(statp, msg, len, file);
lib/libc/resolv/res_debug.c
129
fp_resstat(const res_state statp, FILE *file) {
lib/libc/resolv/res_debug.c
132
fprintf(file, ";; res options:");
lib/libc/resolv/res_debug.c
135
fprintf(file, " %s", p_option(mask));
lib/libc/resolv/res_debug.c
136
putc('\n', file);
lib/libc/resolv/res_debug.c
142
int pflag, FILE *file)
lib/libc/resolv/res_debug.c
159
fprintf(file, ";; memory allocation failure\n");
lib/libc/resolv/res_debug.c
168
fprintf(file, ";; ns_parserr: %s\n",
lib/libc/resolv/res_debug.c
172
putc('\n', file);
lib/libc/resolv/res_debug.c
176
fprintf(file, ";; %s SECTION:\n",
lib/libc/resolv/res_debug.c
179
fprintf(file, ";;\t%s, type = %s, class = %s\n",
lib/libc/resolv/res_debug.c
187
fprintf(file,
lib/libc/resolv/res_debug.c
199
fputs("; NSID: ", file);
lib/libc/resolv/res_debug.c
201
fputs("; NSID\n", file);
lib/libc/resolv/res_debug.c
203
fputs("; NSID: ", file);
lib/libc/resolv/res_debug.c
205
fprintf(file, "%02x ",
lib/libc/resolv/res_debug.c
207
fputs(" (",file);
lib/libc/resolv/res_debug.c
209
fprintf(file, "%c",
lib/libc/resolv/res_debug.c
212
fputs(")\n", file);
lib/libc/resolv/res_debug.c
216
fprintf(file, "; OPT=%u\n",
lib/libc/resolv/res_debug.c
219
fprintf(file, "; OPT=%u: ",
lib/libc/resolv/res_debug.c
222
fprintf(file, "%02x ",
lib/libc/resolv/res_debug.c
224
fputs(" (",file);
lib/libc/resolv/res_debug.c
226
fprintf(file, "%c",
lib/libc/resolv/res_debug.c
229
fputs(")\n", file);
lib/libc/resolv/res_debug.c
244
fprintf(file,
lib/libc/resolv/res_debug.c
250
fprintf(file, ";; ns_sprintrr: %s\n",
lib/libc/resolv/res_debug.c
254
fputs(buf, file);
lib/libc/resolv/res_debug.c
255
fputc('\n', file);
lib/libc/resolv/res_debug.c
269
res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) {
lib/libc/resolv/res_debug.c
275
fprintf(file, ";; ns_initparse: %s\n", strerror(errno));
lib/libc/resolv/res_debug.c
290
fprintf(file,
lib/libc/resolv/res_debug.c
294
putc(';', file);
lib/libc/resolv/res_debug.c
296
fprintf(file, "; flags:");
lib/libc/resolv/res_debug.c
298
fprintf(file, " qr");
lib/libc/resolv/res_debug.c
300
fprintf(file, " aa");
lib/libc/resolv/res_debug.c
302
fprintf(file, " tc");
lib/libc/resolv/res_debug.c
304
fprintf(file, " rd");
lib/libc/resolv/res_debug.c
306
fprintf(file, " ra");
lib/libc/resolv/res_debug.c
308
fprintf(file, " ??");
lib/libc/resolv/res_debug.c
310
fprintf(file, " ad");
lib/libc/resolv/res_debug.c
312
fprintf(file, " cd");
lib/libc/resolv/res_debug.c
315
fprintf(file, "; %s: %d",
lib/libc/resolv/res_debug.c
317
fprintf(file, ", %s: %d",
lib/libc/resolv/res_debug.c
319
fprintf(file, ", %s: %d",
lib/libc/resolv/res_debug.c
321
fprintf(file, ", %s: %d",
lib/libc/resolv/res_debug.c
326
putc('\n',file);
lib/libc/resolv/res_debug.c
331
do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
lib/libc/resolv/res_debug.c
332
do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
lib/libc/resolv/res_debug.c
333
do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
lib/libc/resolv/res_debug.c
334
do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);
lib/libc/resolv/res_debug.c
337
putc('\n', file);
lib/libc/resolv/res_debug.c
341
p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) {
lib/libc/resolv/res_debug.c
348
putc('.', file);
lib/libc/resolv/res_debug.c
350
fputs(name, file);
lib/libc/resolv/res_debug.c
355
p_cdname(const u_char *cp, const u_char *msg, FILE *file) {
lib/libc/resolv/res_debug.c
356
return (p_cdnname(cp, msg, PACKETSZ, file));
lib/libc/resolv/res_debug.c
384
p_fqname(const u_char *cp, const u_char *msg, FILE *file) {
lib/libc/resolv/res_debug.c
391
fputs(name, file);
lib/libc/resolv/res_debug.h
26
# define Aerror(statp, file, string, error, address, alen) /*empty*/
lib/libc/resolv/res_debug.h
27
# define Perror(statp, file, string, error) /*empty*/
lib/libc/resolv/res_query.c
442
char *file, *cp1, *cp2;
lib/libc/resolv/res_query.c
448
file = secure_getenv("HOSTALIASES");
lib/libc/resolv/res_query.c
449
if (file == NULL || (fp = fopen(file, "re")) == NULL)
lib/libc/resolv/res_send.c
1088
Aerror(const res_state statp, FILE *file, const char *string, int error,
lib/libc/resolv/res_send.c
1103
fprintf(file, "res_send: %s ([%s].%s): %s\n",
lib/libc/resolv/res_send.c
1110
Perror(const res_state statp, FILE *file, const char *string, int error) {
lib/libc/resolv/res_send.c
1114
fprintf(file, "res_send: %s: %s\n",
lib/libc/rpc/getnetconfig.c
405
FILE *file; /* NETCONFIG db's file pointer */
lib/libc/rpc/getnetconfig.c
441
if ((file = fopen(NETCONFIG, "r")) == NULL) {
lib/libc/rpc/getnetconfig.c
447
fclose(file);
lib/libc/rpc/getnetconfig.c
456
if ((stringp = fgets(linep, MAXNETCONFIGLINE, file)) == NULL) {
lib/libc/rpc/getnetconfig.c
484
fclose(file);
lib/libc/stdio/findfp.c
53
#define std(flags, file) { \
lib/libc/stdio/findfp.c
55
._file = (file), \
lib/libc/stdio/findfp.c
56
._cookie = __sF + (file), \
lib/libc/stdio/fopen.c
48
fopen(const char * __restrict file, const char * __restrict mode)
lib/libc/stdio/fopen.c
58
if ((f = _open(file, oflags, DEFFILEMODE)) < 0) {
lib/libc/stdio/freopen.c
153
f = _open(file, oflags, DEFFILEMODE);
lib/libc/stdio/freopen.c
160
f = _open(file, oflags, DEFFILEMODE);
lib/libc/stdio/freopen.c
54
freopen(const char * __restrict file, const char * __restrict mode,
lib/libc/stdio/freopen.c
77
if (file == NULL) {
lib/libc/stdio/remove.c
41
remove(const char *file)
lib/libc/stdio/remove.c
45
if (lstat(file, &sb) < 0)
lib/libc/stdio/remove.c
48
return (rmdir(file));
lib/libc/stdio/remove.c
49
return (unlink(file));
lib/libc/xdr/xdr_stdio.c
81
xdrstdio_create(XDR *xdrs, FILE *file, enum xdr_op op)
lib/libc/xdr/xdr_stdio.c
86
xdrs->x_private = file;
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
107
test_file_fopen(fileargs_t *fa, const char *file, const char *mode,
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
112
pfile = fileargs_fopen(fa, file, mode);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
124
test_file_lstat(fileargs_t *fa, const char *file)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
129
if (fileargs_lstat(fa, file, &fasb) < 0)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
132
ATF_REQUIRE(lstat(file, &origsb) == 0);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
151
test_file_realpath_static(fileargs_t *fa, const char *file)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
155
if (fileargs_realpath(fa, file, fapath) == NULL)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
158
ATF_REQUIRE(realpath(file, origpath) != NULL);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
167
test_file_realpath_alloc(fileargs_t *fa, const char *file)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
172
fapath = fileargs_realpath(fa, file, NULL);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
176
origpath = realpath(file, NULL);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
190
test_file_realpath(fileargs_t *fa, const char *file)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
194
serrno = test_file_realpath_static(fa, file);
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
198
return (test_file_realpath_alloc(fa, file));
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
91
test_file_open(fileargs_t *fa, const char *file, int *fdp)
lib/libcasper/services/cap_fileargs/tests/fileargs_test.c
95
fd = fileargs_open(fa, file);
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
102
fd = open(file, O_RDONLY);
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
107
error = unlink(file);
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
76
save_int_sysctl(const char *name, const char *file)
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
87
fd = open(file, O_CREAT | O_WRONLY, 0600);
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
88
ATF_REQUIRE_MSG(fd >= 0, "open(%s): %s", file, strerror(errno));
lib/libcasper/services/cap_sysctl/tests/sysctl_test.c
96
restore_int_sysctl(const char *name, const char *file)
lib/libdpv/dpv.c
110
int (*action)(struct dpv_file_node *file, int out);
lib/libdpv/dpv.h
125
int (*action)(struct dpv_file_node *file, int out);
lib/libefivar/efivar-dp-xlate.c
128
const_efidp media, file, walker;
lib/libefivar/efivar-dp-xlate.c
152
file = walker;
lib/libefivar/efivar-dp-xlate.c
155
file = NULL;
lib/libefivar/efivar-dp-xlate.c
178
if (file == NULL)
lib/libefivar/efivar-dp-xlate.c
185
*relpath = efidp_extract_file_path(file);
lib/libfetch/ftp.c
211
ftp_filename(const char *file, int *len, int *type)
lib/libfetch/ftp.c
215
if ((s = strrchr(file, '/')) == NULL)
lib/libfetch/ftp.c
216
s = file;
lib/libfetch/ftp.c
270
ftp_cwd(conn_t *conn, const char *file)
lib/libfetch/ftp.c
277
if ((end = strrchr(file, '/')) == NULL)
lib/libfetch/ftp.c
288
for (i = 0; i <= len && i <= end - file; ++i)
lib/libfetch/ftp.c
289
if (pwd[i] != file[i])
lib/libfetch/ftp.c
293
DEBUGF("want: [%.*s|%s]\n", i, file, file + i);
lib/libfetch/ftp.c
296
if (pwd[i] == '\0' && (file[i - 1] == '/' || file[i] == '/'))
lib/libfetch/ftp.c
308
for (beg = file + i; beg < end && *beg == '/'; ++beg, ++i)
lib/libfetch/ftp.c
322
for (beg = file + i; beg < end; beg = file + i + 1) {
lib/libfetch/ftp.c
325
for (++i; file + i < end && file[i] != '/'; ++i)
lib/libfetch/ftp.c
327
e = ftp_cmd(conn, "CWD %.*s", file + i - beg, beg);
lib/libfetch/ftp.c
399
ftp_stat(conn_t *conn, const char *file, struct url_stat *us)
lib/libfetch/ftp.c
411
filename = ftp_filename(file, &filenamelen, &type);
lib/libfetch/ftp.c
618
ftp_transfer(conn_t *conn, const char *oper, const char *file,
lib/libfetch/ftp.c
643
filename = ftp_filename(file, &filenamelen, &type);
lib/libnetmap/nmport.c
365
NPKEY_DECL(extmem, file, NMREQ_OPTK_DEFAULT|NMREQ_OPTK_MUSTSET)
lib/libnetmap/nmport.c
417
if (nmport_extmem_from_file(d, nmport_key(p, extmem, file)) < 0)
lib/libpjdlog/pjdlog.c
530
pjdlogv_common_single_line(const char *func, const char *file, int line,
lib/libpjdlog/pjdlog.c
555
assert((file != NULL && line > 0) ||
lib/libpjdlog/pjdlog.c
556
(func == NULL && file == NULL && line == 0));
lib/libpjdlog/pjdlog.c
589
if (pjdlog_debug_level >= 2 && file != NULL) {
lib/libpjdlog/pjdlog.c
591
snprlcat(logp, logs, "(%s:%d) ", file, line);
lib/libpjdlog/pjdlog.c
593
snprlcat(logp, logs, "(%s:%d:%s) ", file, line, func);
lib/libpjdlog/pjdlog.c
642
_pjdlogv_common(const char *func, const char *file, int line, int loglevel,
lib/libpjdlog/pjdlog.c
677
pjdlogv_common_single_line(func, file, line, loglevel,
lib/libpjdlog/pjdlog.c
684
pjdlogv_common_single_line(func, file, line, loglevel, debuglevel,
lib/libpjdlog/pjdlog.c
694
_pjdlog_common(const char *func, const char *file, int line, int loglevel,
lib/libpjdlog/pjdlog.c
702
_pjdlogv_common(func, file, line, loglevel, debuglevel, error, fmt, ap);
lib/libpjdlog/pjdlog.c
710
_pjdlogv_exit(const char *func, const char *file, int line, int exitcode,
lib/libpjdlog/pjdlog.c
716
_pjdlogv_common(func, file, line, exitcode == 0 ? LOG_INFO : LOG_ERR, 0,
lib/libpjdlog/pjdlog.c
726
_pjdlog_exit(const char *func, const char *file, int line, int exitcode,
lib/libpjdlog/pjdlog.c
734
_pjdlogv_exit(func, file, line, exitcode, error, fmt, ap);
lib/libpjdlog/pjdlog.c
743
_pjdlog_abort(const char *func, const char *file, int line,
lib/libpjdlog/pjdlog.c
764
_pjdlogv_common(func, file, line, LOG_CRIT, 0, -1, fmt, ap);
lib/libpjdlog/pjdlog.c
768
_pjdlog_common(func, file, line, LOG_CRIT, 0, -1, "Aborted.");
lib/libpjdlog/pjdlog.c
770
_pjdlog_common(func, file, line, LOG_CRIT, 0, -1,
lib/libpjdlog/pjdlog.c
774
_pjdlog_common(func, file, line, LOG_CRIT, 0, error, "Errno");
lib/libpjdlog/pjdlog.h
68
void _pjdlogv_common(const char *func, const char *file, int line, int loglevel,
lib/libpjdlog/pjdlog.h
70
void _pjdlog_common(const char *func, const char *file, int line, int loglevel,
lib/libpjdlog/pjdlog.h
73
void _pjdlogv_exit(const char *func, const char *file, int line, int exitcode,
lib/libpjdlog/pjdlog.h
75
void _pjdlog_exit(const char *func, const char *file, int line, int exitcode,
lib/libpjdlog/pjdlog.h
78
void _pjdlog_abort(const char *func, const char *file, int line, int error,
lib/libproc/_libproc.h
62
struct file_info *file;
lib/libproc/proc_create.c
178
proc_create(const char *file, char * const *argv, char * const *envp,
lib/libproc/proc_create.c
204
execvp(file, argv);
lib/libproc/proc_create.c
241
struct file_info *file;
lib/libproc/proc_create.c
245
file = phdl->mappings[i].file;
lib/libproc/proc_create.c
246
if (file != NULL && --file->refs == 0) {
lib/libproc/proc_create.c
247
if (file->elf != NULL) {
lib/libproc/proc_create.c
248
(void)elf_end(file->elf);
lib/libproc/proc_create.c
249
(void)close(file->fd);
lib/libproc/proc_create.c
250
if (file->symtab.nsyms > 0)
lib/libproc/proc_create.c
251
free(file->symtab.index);
lib/libproc/proc_create.c
252
if (file->dynsymtab.nsyms > 0)
lib/libproc/proc_create.c
253
free(file->dynsymtab.index);
lib/libproc/proc_create.c
255
free(file);
lib/libproc/proc_rtld.c
45
struct file_info *file;
lib/libproc/proc_rtld.c
66
file = NULL;
lib/libproc/proc_rtld.c
72
file = phdl->mappings[i].file;
lib/libproc/proc_rtld.c
76
if (file == NULL) {
lib/libproc/proc_rtld.c
77
file = malloc(sizeof(*file));
lib/libproc/proc_rtld.c
78
if (file == NULL)
lib/libproc/proc_rtld.c
80
file->elf = NULL;
lib/libproc/proc_rtld.c
81
file->fd = -1;
lib/libproc/proc_rtld.c
82
file->refs = 1;
lib/libproc/proc_rtld.c
84
file->refs++;
lib/libproc/proc_rtld.c
86
mapping->file = file;
lib/libproc/proc_sym.c
198
load_symtabs(struct file_info *file)
lib/libproc/proc_sym.c
201
file->symtab.nsyms = file->dynsymtab.nsyms = 0;
lib/libproc/proc_sym.c
202
(void)load_symtab(file->elf, &file->symtab, SHT_SYMTAB);
lib/libproc/proc_sym.c
203
(void)load_symtab(file->elf, &file->dynsymtab, SHT_DYNSYM);
lib/libproc/proc_sym.c
243
struct file_info *file;
lib/libproc/proc_sym.c
252
if (mapping->file->elf != NULL)
lib/libproc/proc_sym.c
255
file = mapping->file;
lib/libproc/proc_sym.c
265
if (gelf_getehdr(e, &file->ehdr) != &file->ehdr) {
lib/libproc/proc_sym.c
343
file->elf = e;
lib/libproc/proc_sym.c
344
file->fd = fd;
lib/libproc/proc_sym.c
345
load_symtabs(file);
lib/libproc/proc_sym.c
356
file->elf = e2;
lib/libproc/proc_sym.c
357
file->fd = fd2;
lib/libproc/proc_sym.c
358
load_symtabs(file);
lib/libproc/proc_sym.c
500
struct file_info *file;
lib/libproc/proc_sym.c
516
file = mapping->file;
lib/libproc/proc_sym.c
517
off = file->ehdr.e_type == ET_DYN ?
lib/libproc/proc_sym.c
523
error = lookup_symbol_by_addr(file->elf, &file->dynsymtab, addr, &s,
lib/libproc/proc_sym.c
526
error = lookup_symbol_by_addr(file->elf, &file->symtab, addr,
lib/libproc/proc_sym.c
606
struct file_info *file;
lib/libproc/proc_sym.c
621
file = mapping->file;
lib/libproc/proc_sym.c
622
off = file->ehdr.e_type == ET_DYN ?
lib/libproc/proc_sym.c
625
error = lookup_symbol_by_name(file->elf, &file->dynsymtab, symbol,
lib/libproc/proc_sym.c
628
error = lookup_symbol_by_name(file->elf, &file->symtab, symbol,
lib/libproc/proc_sym.c
660
struct file_info *file;
lib/libproc/proc_sym.c
676
file = mapping->file;
lib/libproc/proc_sym.c
677
symtab = which == PR_SYMTAB ? &file->symtab : &file->dynsymtab;
lib/libproc/proc_sym.c
707
s = elf_strptr(file->elf, symtab->stridx, sym.st_name);
lib/libproc/proc_sym.c
708
if (file->ehdr.e_type == ET_DYN)
lib/libprocstat/libprocstat.c
454
struct file file;
lib/libprocstat/libprocstat.c
579
if (!kvm_read_all(kd, (unsigned long)fdt->fdt_ofiles[i].fde_file, &file,
lib/libprocstat/libprocstat.c
580
sizeof(struct file))) {
lib/libprocstat/libprocstat.c
585
switch (file.f_type) {
lib/libprocstat/libprocstat.c
588
data = file.f_vnode;
lib/libprocstat/libprocstat.c
592
data = file.f_data;
lib/libprocstat/libprocstat.c
596
data = file.f_data;
lib/libprocstat/libprocstat.c
600
data = file.f_vnode;
lib/libprocstat/libprocstat.c
605
data = file.f_data;
lib/libprocstat/libprocstat.c
610
data = file.f_data;
lib/libprocstat/libprocstat.c
614
data = file.f_data;
lib/libprocstat/libprocstat.c
618
data = file.f_data;
lib/libprocstat/libprocstat.c
622
data = file.f_data;
lib/libprocstat/libprocstat.c
626
data = file.f_data;
lib/libprocstat/libprocstat.c
630
data = file.f_data;
lib/libprocstat/libprocstat.c
637
to_filestat_flags(file.f_flag), 0, 0, 0, NULL, NULL);
lib/libsecureboot/vets.c
782
verify_ec(br_x509_pkey *pk, const char *file, const char *sigfile)
lib/libsecureboot/vets.c
795
if ((fcp = read_file(file, &flen)) == NULL)
lib/libsecureboot/vets.c
880
verify_rsa(br_x509_pkey *pk, const char *file, const char *sigfile)
lib/libsecureboot/vets.c
890
if ((fcp = read_file(file, &flen)) == NULL)
lib/libsys/_libsys.h
638
int __sys_kldload(const char * file);
lib/libsys/_libsys.h
640
int __sys_kldfind(const char * file);
lib/libunbound/config.h
1611
void *unbound_stat_malloc_log(size_t size, const char* file, int line,
lib/libunbound/config.h
1613
void *unbound_stat_calloc_log(size_t nmemb, size_t size, const char* file,
lib/libunbound/config.h
1615
void unbound_stat_free_log(void *ptr, const char* file, int line,
lib/libunbound/config.h
1617
void *unbound_stat_realloc_log(void *ptr, size_t size, const char* file,
lib/libunbound/config.h
1620
const char* file, int line, const char* func);
lib/libunbound/config.h
1621
char *unbound_stat_strdup_log(const char *s, const char* file, int line,
lib/libusb/libusb20.c
1010
pdev->file = -1;
lib/libusb/libusb20.c
1100
pfd[0].fd = pdev->file;
lib/libusb/libusb20.c
648
return (pdev->file);
lib/libusb/libusb20.c
701
pdev->file = -1;
lib/libusb/libusb20_int.h
212
int file;
lib/libusb/libusb20_ugen20.c
329
if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) {
lib/libusb/libusb20_ugen20.c
369
if (ioctl(pdev->file, IOUSB(USB_FS_INIT), &fs_init)) {
lib/libusb/libusb20_ugen20.c
413
pdev->file = f;
lib/libusb/libusb20_ugen20.c
431
pdev->file = -1;
lib/libusb/libusb20_ugen20.c
446
if (ioctl(pdev->file, IOUSB(USB_FS_UNINIT), &fs_uninit)) {
lib/libusb/libusb20_ugen20.c
453
close(pdev->file);
lib/libusb/libusb20_ugen20.c
455
pdev->file = -1;
lib/libusb/libusb20_ugen20.c
755
if (ioctl(pdev->file, IOUSB(USB_FS_COMPLETE), &temp)) {
lib/libusb/libusb20_ugen20.c
823
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN_STREAM), &temp.fs_open_stream))
lib/libusb/libusb20_ugen20.c
826
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_OPEN), &temp.fs_open))
lib/libusb/libusb20_ugen20.c
852
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLOSE), &temp)) {
lib/libusb/libusb20_ugen20.c
869
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_CLEAR_STALL_SYNC), &temp)) {
lib/libusb/libusb20_ugen20.c
908
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_START), &temp)) {
lib/libusb/libusb20_ugen20.c
923
if (ioctl(xfer->pdev->file, IOUSB(USB_FS_STOP), &temp)) {
lib/libusb/libusb20_ugen20.c
962
if (ioctl(pdev->file, IOUSB(USB_GET_IFACE_DRIVER), &ugd)) {
lib/libusb/libusb20_ugen20.c
972
if (ioctl(pdev->file, IOUSB(USB_GET_DEVICEINFO), pinfo)) {
lib/libusbhid/usbhid.h
104
void hid_init(const char *file);
lib/libusbhid/usbhid.h
87
report_desc_t hid_get_report_desc(int file);
lib/libusbhid/usbhid.h
90
int hid_get_report_id(int file);
lib/libutil/login_auth.c
65
const char *file;
lib/libutil/login_auth.c
72
if ((file = login_getcapstr(lc, "nologin", "", NULL)) == NULL)
lib/libutil/login_auth.c
80
if ((*file && auth_cat(file)) || auth_cat(_PATH_NOLOGIN))
lib/libutil/login_auth.c
93
auth_cat(const char *file)
lib/libutil/login_auth.c
98
if ((fd = open(file, O_RDONLY | O_CLOEXEC)) < 0)
lib/libveriexec/veriexec_check.c
106
__DECONST(void *, file));
lib/libveriexec/veriexec_check.c
124
veriexec_check_path(const char *file)
lib/libveriexec/veriexec_check.c
126
return veriexec_check_path_mode(file, 0);
lib/libveriexec/veriexec_check.c
85
veriexec_check_path_mode(const char *file, unsigned int mask)
lib/libveriexec/veriexec_check.c
89
if (!file) {
lib/libveriexec/veriexec_check.c
97
if ((fd = open(file, O_RDONLY)) < 0)
lib/libveriexec/veriexec_get.c
105
if (veriexec_get_path_params(file, ¶ms) == 0) {
lib/libveriexec/veriexec_get.c
229
veriexec_check_path_label(const char *file, const char *want)
lib/libveriexec/veriexec_get.c
234
if (want != NULL && file != NULL &&
lib/libveriexec/veriexec_get.c
236
veriexec_get_path_params(file, ¶ms) == 0) {
lib/libveriexec/veriexec_get.c
67
veriexec_get_path_params(const char *file,
lib/libveriexec/veriexec_get.c
72
if (file == NULL || params == NULL)
lib/libveriexec/veriexec_get.c
75
args.u.filename = file;
lib/libveriexec/veriexec_get.c
99
veriexec_get_path_label(const char *file, char *buf, size_t bufsz)
libexec/comsat/comsat.c
113
char *file;
libexec/comsat/comsat.c
123
strchr((file = cp + 1), '/') == NULL) {
libexec/comsat/comsat.c
124
snprintf(buf, sizeof(buf), "%s/%s", _PATH_MAILDIR, file);
libexec/comsat/comsat.c
140
notify(struct utmpx *utp, char file[], off_t offset, int folder)
libexec/comsat/comsat.c
190
folder ? cr : "", folder ? "to " : "", folder ? file : "",
libexec/comsat/comsat.c
192
jkfprintf(tp, file, offset);
libexec/comsat/comsat.c
204
jkfprintf(FILE *tp, char file[], off_t offset)
libexec/comsat/comsat.c
211
if ((fi = fopen(file, "r")) == NULL)
libexec/flua/modules/lposix.c
215
const char *file;
libexec/flua/modules/lposix.c
220
file = luaL_checkstring(L, 1);
libexec/flua/modules/lposix.c
244
argv[0] = file;
libexec/flua/modules/lposix.c
258
execvp(file, __DECONST(char **, argv));
libexec/pkg-serve/pkg-serve.c
100
file++;
libexec/pkg-serve/pkg-serve.c
103
age = file;
libexec/pkg-serve/pkg-serve.c
133
if (fstatat(fd, file, &st, AT_RESOLVE_BENEATH) == -1) {
libexec/pkg-serve/pkg-serve.c
151
if ((ffd = openat(fd, file, O_RDONLY | O_RESOLVE_BENEATH)) == -1) {
libexec/pkg-serve/pkg-serve.c
175
file);
libexec/pkg-serve/pkg-serve.c
44
char *file, *age;
libexec/pkg-serve/pkg-serve.c
90
file = line + 4;
libexec/pkg-serve/pkg-serve.c
92
if (*file == '\0') {
libexec/pkg-serve/pkg-serve.c
99
if (*file == '/')
libexec/rtld-elf/rtld-libc/rtld_libc.c
80
__assert(const char *func, const char *file, int line, const char *failedexpr)
libexec/rtld-elf/rtld-libc/rtld_libc.c
86
file, line);
libexec/rtld-elf/rtld-libc/rtld_libc.c
90
failedexpr, func, file, line);
libexec/rtld-elf/rtld.c
4257
ventry.file = NULL;
libexec/rtld-elf/rtld.c
6096
obj->vertab[vernum].file = NULL;
libexec/rtld-elf/rtld.c
6117
obj->vertab[vernum].file = obj->strtab + vn->vn_file;
libexec/rtld-elf/rtld.h
111
const char *file;
libexec/tftpd/tftp-file.c
102
return fwrite(convbuffer, 1, n, file);
libexec/tftpd/tftp-file.c
132
if (feof(file)) break;
libexec/tftpd/tftp-file.c
135
in = fread(convbuffer, 1, count, file);
libexec/tftpd/tftp-file.c
180
file = fdopen(fd, "w");
libexec/tftpd/tftp-file.c
181
if (file == NULL) {
libexec/tftpd/tftp-file.c
188
file = f;
libexec/tftpd/tftp-file.c
198
return fwrite(buffer, 1, count, file);
libexec/tftpd/tftp-file.c
207
if (fclose(file) != 0) {
libexec/tftpd/tftp-file.c
218
return ftello(file);
libexec/tftpd/tftp-file.c
225
return fseeko(file, offset, SEEK_SET);
libexec/tftpd/tftp-file.c
234
file = fdopen(fd, "r");
libexec/tftpd/tftp-file.c
235
if (file == NULL) {
libexec/tftpd/tftp-file.c
242
file = f;
libexec/tftpd/tftp-file.c
252
return fread(buffer, 1, count, file);
libexec/tftpd/tftp-file.c
261
if (fclose(file) != 0) {
libexec/tftpd/tftp-file.c
47
static FILE *file;
libexec/tftpd/tftp-file.c
80
if (ftell(file) != 0) {
libexec/tftpd/tftp-file.c
81
int r = fseek(file, -1, SEEK_END);
libexec/tftpd/tftpd.c
101
static FILE *file;
libexec/tftpd/tftpd.c
787
file = fdopen(fd, mode == RRQ ? "r" : "w");
libexec/tftpd/tftpd.c
788
if (file == NULL) {
libexec/tftpd/tftpd.c
807
read_init(0, file, mode);
libexec/tftpd/tftpd.c
827
write_init(0, file, mode);
sbin/camcontrol/modeedit.c
121
static int modepage_write(FILE *file, int editonly);
sbin/camcontrol/modeedit.c
122
static int modepage_read(FILE *file);
sbin/camcontrol/modeedit.c
836
modepage_write(FILE *file, int editonly)
sbin/camcontrol/modeedit.c
845
fprintf(file, "%s: %s\n", scan->name,
sbin/camcontrol/modeedit.c
848
fprintf(file, "%s: %u\n", scan->name,
sbin/camcontrol/modeedit.c
857
modepage_read(FILE *file)
sbin/camcontrol/modeedit.c
871
while ((line = fgetln(file, &length)) != NULL) {
sbin/camcontrol/modeedit.c
933
return (ferror(file)? -1: 0);
sbin/ddb/ddb.c
39
void ddb_readfile(char *file);
sbin/dhclient/dhclient.c
1234
packet->raw->file[0]) {
sbin/dhclient/dhclient.c
1242
memcpy(lease->filename, packet->raw->file, DHCP_FILE_LEN);
sbin/dhclient/dhcp.h
73
char file[DHCP_FILE_LEN]; /* Boot filename */
sbin/dhclient/options.c
496
memcpy(outpacket->file,
sbin/dhclient/options.c
500
outpacket->file[mainbufix++] = (char)DHO_END;
sbin/dhclient/options.c
502
outpacket->file[mainbufix++] = (char)DHO_PAD;
sbin/dhclient/options.c
504
memcpy(outpacket->file,
sbin/dhclient/options.c
515
outpacket->file[mainbufix++] = (char)DHO_END;
sbin/dhclient/options.c
517
outpacket->file[mainbufix++] = (char)DHO_PAD;
sbin/dhclient/options.c
94
(unsigned char *)packet->raw->file,
sbin/dhclient/options.c
95
sizeof(packet->raw->file));
sbin/dhclient/tests/option-domain-search.c
310
FILE *file = NULL;
sbin/dhclient/tests/option-domain-search.c
313
file = fopen("/tmp/dhclient.test", "w");
sbin/dhclient/tests/option-domain-search.c
314
if (!file)
sbin/dhclient/tests/option-domain-search.c
317
ret = fwrite(string, strlen(string), 1, file);
sbin/dhclient/tests/option-domain-search.c
321
fclose(file);
sbin/dhclient/tests/option-domain-search.c
323
file = fopen("/tmp/dhclient.test", "r");
sbin/dhclient/tests/option-domain-search.c
324
if (!file)
sbin/dhclient/tests/option-domain-search.c
328
ts = parse_date(file);
sbin/dhclient/tests/option-domain-search.c
332
fclose(file);
sbin/dump/itime.c
217
dumprecout(FILE *file, const struct dumpdates *what)
sbin/dump/itime.c
223
if (fprintf(file, DUMPOUTFMT, DUMPFMTLEN, what->dd_name,
sbin/hastd/pjdlog.c
578
pjdlog_abort(const char *func, const char *file, int line,
sbin/hastd/pjdlog.c
597
pjdlog_critical("Aborted at file %s, line %d.", file,
sbin/hastd/pjdlog.c
601
func, file, line);
sbin/hastd/pjdlog.c
606
failedexpr, file, line);
sbin/hastd/pjdlog.c
609
failedexpr, func, file, line);
sbin/hastd/pjdlog.h
92
void pjdlog_abort(const char *func, const char *file, int line,
sbin/ipf/common/ipf_y.y
186
file: settings rules
sbin/ipf/common/ipf_y.y
540
new: | savegroup file restoregroup
sbin/ipf/ipf/ipf.c
230
procfile(char *file)
sbin/ipf/ipf/ipf.c
236
ipf_parsefile(fd, ipf_interceptadd, iocfunctions, file);
sbin/ipf/ipfs/ipfs.c
369
int writestate(int fd, char *file)
sbin/ipf/ipfs/ipfs.c
375
if (!file)
sbin/ipf/ipfs/ipfs.c
376
file = IPF_STATEFILE;
sbin/ipf/ipfs/ipfs.c
378
wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
sbin/ipf/ipfs/ipfs.c
380
fprintf(stderr, "%s ", file);
sbin/ipf/ipfs/ipfs.c
419
int readstate(int fd, char *file)
sbin/ipf/ipfs/ipfs.c
425
if (!file)
sbin/ipf/ipfs/ipfs.c
426
file = IPF_STATEFILE;
sbin/ipf/ipfs/ipfs.c
428
sfd = open(file, O_RDONLY, 0600);
sbin/ipf/ipfs/ipfs.c
430
fprintf(stderr, "%s ", file);
sbin/ipf/ipfs/ipfs.c
534
int readnat(int fd, char *file)
sbin/ipf/ipfs/ipfs.c
548
if (!file)
sbin/ipf/ipfs/ipfs.c
549
file = IPF_NATFILE;
sbin/ipf/ipfs/ipfs.c
551
nfd = open(file, O_RDONLY);
sbin/ipf/ipfs/ipfs.c
553
fprintf(stderr, "%s ", file);
sbin/ipf/ipfs/ipfs.c
679
int writenat(int fd, char *file)
sbin/ipf/ipfs/ipfs.c
686
if (!file)
sbin/ipf/ipfs/ipfs.c
687
file = IPF_NATFILE;
sbin/ipf/ipfs/ipfs.c
689
nfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
sbin/ipf/ipfs/ipfs.c
691
fprintf(stderr, "%s ", file);
sbin/ipf/iplang/iplang_y.y
201
file: line
sbin/ipf/iplang/iplang_y.y
202
| line file
sbin/ipf/iplang/iplang_y.y
204
| IL_COMMENT file
sbin/ipf/iplang/iplang_y.y
791
char *file = *arg;
sbin/ipf/iplang/iplang_y.y
794
if ((fd = open(file, O_RDONLY)) == -1) {
sbin/ipf/iplang/iplang_y.y
805
fprintf(stderr, "data file %s too big to include.\n", file);
sbin/ipf/ipmon/ipmon.c
1422
write_pid(char *file)
sbin/ipf/ipmon/ipmon.c
1427
if ((fd = open(file, O_CREAT|O_TRUNC|O_WRONLY, 0644)) >= 0) {
sbin/ipf/ipmon/ipmon.c
1432
"unable to open/create pid file: %s\n", file);
sbin/ipf/ipmon/ipmon.c
1442
flushlogs(char *file, FILE *log)
sbin/ipf/ipmon/ipmon.c
1446
if ((fd = open(file, O_RDWR)) == -1) {
sbin/ipf/ipmon/ipmon.c
1448
file, STRERROR(errno));
sbin/ipf/ipmon/ipmon.c
1518
conf->logsrc[0].file = IPL_NAME;
sbin/ipf/ipmon/ipmon.c
1519
conf->logsrc[1].file = IPNAT_NAME;
sbin/ipf/ipmon/ipmon.c
1520
conf->logsrc[2].file = IPSTATE_NAME;
sbin/ipf/ipmon/ipmon.c
1572
config.logsrc[0].file = optarg;
sbin/ipf/ipmon/ipmon.c
1575
flushlogs(config.logsrc[0].file, config.log);
sbin/ipf/ipmon/ipmon.c
1576
flushlogs(config.logsrc[1].file, config.log);
sbin/ipf/ipmon/ipmon.c
1577
flushlogs(config.logsrc[2].file, config.log);
sbin/ipf/ipmon/ipmon.c
1595
config.logsrc[1].file = optarg;
sbin/ipf/ipmon/ipmon.c
1619
config.logsrc[2].file = optarg;
sbin/ipf/ipmon/ipmon.c
1660
config.file = argv[optind];
sbin/ipf/ipmon/ipmon.c
1661
config.log = config.file ? fopen(config.file, "a") : stdout;
sbin/ipf/ipmon/ipmon.c
1725
if (!strcmp(l->file, "-"))
sbin/ipf/ipmon/ipmon.c
1728
if ((l->fd= open(l->file, O_RDONLY)) == -1) {
sbin/ipf/ipmon/ipmon.c
1730
"%s: open: %s\n", l->file,
sbin/ipf/ipmon/ipmon.c
1790
if (conf->file != NULL) {
sbin/ipf/ipmon/ipmon.c
1795
conf->log = fopen(conf->file, "a");
sbin/ipf/ipmon/ipmon.c
39
char *file;
sbin/ipf/ipmon/ipmon.c
52
char *file;
sbin/ipf/ipmon/ipmon_y.y
647
load_config(char *file)
sbin/ipf/ipmon/ipmon_y.y
664
fp = fopen(file, "r");
sbin/ipf/ipmon/ipmon_y.y
82
file: action
sbin/ipf/ipmon/ipmon_y.y
83
| file action
sbin/ipf/ipnat/ipnat.c
115
file = optarg;
sbin/ipf/ipnat/ipnat.c
218
if (file) {
sbin/ipf/ipnat/ipnat.c
219
return (ipnat_parsefile(fd, ipnat_addrule, ioctl, file));
sbin/ipf/ipnat/ipnat.c
90
char *file, *core, *kernel;
sbin/ipf/ipnat/ipnat.c
97
file = NULL;
sbin/ipf/ipnat/ipnat_y.y
122
file: line
sbin/ipf/ipnat/ipnat_y.y
124
| file line
sbin/ipf/ipnat/ipnat_y.y
125
| file assign
sbin/ipf/ipnat/ipnat_y.y
126
| file pconf ';'
sbin/ipf/ippool/ippool_y.y
773
read_whoisfile(char *file)
sbin/ipf/ippool/ippool_y.y
779
fp = fopen(file, "r");
sbin/ipf/ippool/ippool_y.y
94
file: line
sbin/ipf/ippool/ippool_y.y
96
| file line
sbin/ipf/ippool/ippool_y.y
97
| file assign
sbin/ipf/ipscan/ipscan_y.y
72
file: line ';'
sbin/ipf/ipscan/ipscan_y.y
74
| file line ';'
sbin/ipf/ipscan/ipscan_y.y
75
| file assign ';'
sbin/ipf/ipsend/sock.c
156
struct file *f, **o;
sbin/ipf/ipsend/sock.c
188
o = (struct file **)calloc(fd->fd_lastfile + 1, sizeof(*o));
sbin/ipf/ipsend/sock.c
195
f = (struct file *)calloc(1, sizeof(*f));
sbin/ipf/libipf/mutex_emul.c
19
eMmutex_enter(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
22
fprintf(mutex_file, "%s:%d:eMmutex_enter(%s)\n", file, line,
sbin/ipf/libipf/mutex_emul.c
35
mtx->eMm_heldin = file;
sbin/ipf/libipf/mutex_emul.c
41
eMmutex_exit(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
44
fprintf(mutex_file, "%s:%d:eMmutex_exit(%s)\n", file, line,
sbin/ipf/libipf/mutex_emul.c
63
eMmutex_init(eMmutex_t *mtx, char *who, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
69
file, line, mtx, who);
sbin/ipf/libipf/mutex_emul.c
87
eMmutex_destroy(eMmutex_t *mtx, char *file, int line)
sbin/ipf/libipf/mutex_emul.c
91
"%s:%d:eMmutex_destroy(%p,%s)\n", file, line,
sbin/ipf/libipf/rwlock_emul.c
14
void eMrwlock_read_enter(eMrwlock_t *rw, char *file, int line)
sbin/ipf/libipf/rwlock_emul.c
28
rw->eMrw_heldin = file;
sbin/ipf/libipf/rwlock_emul.c
33
void eMrwlock_write_enter(eMrwlock_t *rw, char *file, int line)
sbin/ipf/libipf/rwlock_emul.c
47
rw->eMrw_heldin = file;
sbin/ipf/libipf/rwlock_emul.c
52
void eMrwlock_try_upgrade(eMrwlock_t *rw, char *file, int line)
sbin/ipf/libipf/rwlock_emul.c
66
rw->eMrw_heldin = file;
sbin/ipf/libipf/rwlock_emul.c
70
void eMrwlock_downgrade(eMrwlock_t *rw, char *file, int line)
sbin/ipf/libipf/rwlock_emul.c
85
rw->eMrw_heldin = file;
sbin/ipf/libipf/save_file.c
101
file->ref--;
sbin/ipf/libipf/save_file.c
102
if (file->ref > 0)
sbin/ipf/libipf/save_file.c
105
if (file->path != NULL)
sbin/ipf/libipf/save_file.c
106
free(file->path);
sbin/ipf/libipf/save_file.c
107
free(file);
sbin/ipf/libipf/save_file.c
114
file_opts_t *file = ctx;
sbin/ipf/libipf/save_file.c
116
if (file->raw) {
sbin/ipf/libipf/save_file.c
117
fwrite(msg->imm_data, msg->imm_dsize, 1, file->fp);
sbin/ipf/libipf/save_file.c
119
fprintf(file->fp, "%s", msg->imm_msg);
sbin/ipf/libipf/save_file.c
86
file_opts_t *file = ctx;
sbin/ipf/libipf/save_file.c
88
if (file->raw)
sbin/ipf/libipf/save_file.c
92
printf("%s", file->path);
sbin/ipf/libipf/save_file.c
99
file_opts_t *file = ctx;
sbin/mdconfig/mdconfig.c
411
print_options(const char *dev, const char *file)
sbin/mdconfig/mdconfig.c
423
mdiox.md_file = file[0] == '-' ? NULL : strdup(file);
sbin/mdconfig/mdconfig.c
505
const char *type, *file, *label;
sbin/mdconfig/mdconfig.c
507
type = file = length = NULL;
sbin/mdconfig/mdconfig.c
541
file = geom_config_get(gc, "file");
sbin/mdconfig/mdconfig.c
543
strcmp(fflag, file) != 0)
sbin/mdconfig/mdconfig.c
560
if (file == NULL)
sbin/mdconfig/mdconfig.c
561
file = "-";
sbin/mdconfig/mdconfig.c
562
printf("\t%s", file);
sbin/mdconfig/mdconfig.c
567
print_options(pp->lg_name, file);
sbin/mdconfig/mdconfig.c
568
file = label = NULL;
sbin/natd/natd.c
1536
FILE* file;
sbin/natd/natd.c
1542
file = fopen (fileName, "r");
sbin/natd/natd.c
1543
if (!file)
sbin/natd/natd.c
1546
while ((buf = fgetln(file, &len)) != NULL) {
sbin/natd/natd.c
1587
fclose (file);
sbin/pfctl/parse.y
100
} *file, *topfile;
sbin/pfctl/parse.y
101
struct file *pushfile(const char *, int);
sbin/pfctl/parse.y
1779
if (ti->file)
sbin/pfctl/parse.y
1780
free(ti->file);
sbin/pfctl/parse.y
1869
ti->file = $2;
sbin/pfctl/parse.y
5695
file->errors++;
sbin/pfctl/parse.y
5697
fprintf(stderr, "%s:%d: ", file->name, yylval.lineno);
sbin/pfctl/parse.y
5848
"ignored for outbound\n", file->name, yylval.lineno);
sbin/pfctl/parse.y
5944
if (ti->file)
sbin/pfctl/parse.y
5945
if (pfr_buf_load(&ab, ti->file, 0, append_addr, popts)) {
sbin/pfctl/parse.y
5948
ti->file, strerror(errno));
sbin/pfctl/parse.y
5951
ti->file);
sbin/pfctl/parse.y
5969
" for <%s>\n", file->name, yylval.lineno, name);
sbin/pfctl/parse.y
5978
"%s:%d: not enough memory for <%s>\n", file->name,
sbin/pfctl/parse.y
6014
file->name, yylval.lineno,
sbin/pfctl/parse.y
699
| ruleset error '\n' { file->errors++; }
sbin/pfctl/parse.y
703
struct file *nfile;
sbin/pfctl/parse.y
712
file = nfile;
sbin/pfctl/parse.y
7301
if (file->ungetpos > 0)
sbin/pfctl/parse.y
7302
c = file->ungetbuf[--file->ungetpos];
sbin/pfctl/parse.y
7304
c = getc(file->stream);
sbin/pfctl/parse.y
7323
if (file == topfile || popfile() == EOF)
sbin/pfctl/parse.y
7336
yylval.lineno = file->lineno;
sbin/pfctl/parse.y
7337
file->lineno++;
sbin/pfctl/parse.y
7346
if (file->eof_reached == 0) {
sbin/pfctl/parse.y
7347
file->eof_reached = 1;
sbin/pfctl/parse.y
7351
if (file == topfile || popfile() == EOF)
sbin/pfctl/parse.y
7364
if (file->ungetpos >= file->ungetsize) {
sbin/pfctl/parse.y
7365
void *p = reallocarray(file->ungetbuf, file->ungetsize, 2);
sbin/pfctl/parse.y
7368
file->ungetbuf = p;
sbin/pfctl/parse.y
7369
file->ungetsize *= 2;
sbin/pfctl/parse.y
7371
file->ungetbuf[file->ungetpos++] = c;
sbin/pfctl/parse.y
7383
file->lineno++;
sbin/pfctl/parse.y
7405
yylval.lineno = file->lineno;
sbin/pfctl/parse.y
7449
file->lineno++;
sbin/pfctl/parse.y
7458
file->lineno++;
sbin/pfctl/parse.y
7570
yylval.lineno = file->lineno;
sbin/pfctl/parse.y
7571
file->lineno++;
sbin/pfctl/parse.y
7598
struct file *
sbin/pfctl/parse.y
7601
struct file *nfile;
sbin/pfctl/parse.y
7603
if ((nfile = calloc(1, sizeof(struct file))) == NULL ||
sbin/pfctl/parse.y
7647
struct file *prev;
sbin/pfctl/parse.y
7649
if ((prev = TAILQ_PREV(file, files, entry)) != NULL)
sbin/pfctl/parse.y
7650
prev->errors += file->errors;
sbin/pfctl/parse.y
7652
TAILQ_REMOVE(&files, file, entry);
sbin/pfctl/parse.y
7653
fclose(file->stream);
sbin/pfctl/parse.y
7654
free(file->name);
sbin/pfctl/parse.y
7655
free(file->ungetbuf);
sbin/pfctl/parse.y
7656
free(file);
sbin/pfctl/parse.y
7657
file = prev;
sbin/pfctl/parse.y
7659
return (file ? 0 : EOF);
sbin/pfctl/parse.y
7678
if ((file = pushfile(filename, 0)) == NULL) {
sbin/pfctl/parse.y
7682
topfile = file;
sbin/pfctl/parse.y
7685
errors = file->errors;
sbin/pfctl/parse.y
89
static TAILQ_HEAD(files, file) files = TAILQ_HEAD_INITIALIZER(files);
sbin/pfctl/parse.y
91
TAILQ_ENTRY(file) entry;
sbin/pfctl/pfctl_parser.c
1380
if (ti->file) {
sbin/pfctl/pfctl_parser.c
1381
printf(" file \"%s\"", ti->file);
sbin/pfctl/pfctl_parser.c
1391
if (nti != NULL && nti->file == NULL)
sbin/pfctl/pfctl_parser.h
277
char *file;
sbin/pfctl/pfctl_radix.c
385
pfr_buf_load(struct pfr_buffer *b, char *file, int nonetwork,
sbin/pfctl/pfctl_radix.c
392
if (file == NULL)
sbin/pfctl/pfctl_radix.c
394
if (!strcmp(file, "-"))
sbin/pfctl/pfctl_radix.c
397
fp = pfctl_fopen(file, "r");
sbin/pfctl/pfctl_table.c
128
char *file, const char *anchor, int opts)
sbin/pfctl/pfctl_table.c
157
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
164
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
192
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
197
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
203
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
219
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
234
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
261
if (argc != 1 || file != NULL)
sbin/pfctl/pfctl_table.c
299
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
327
if (argc || file != NULL)
sbin/pfctl/pfctl_table.c
350
if (load_addr(&b, argc, argv, file, 1, opts))
sbin/pfctl/pfctl_table.c
375
} else if (!strcmp(command, "zero") && (argc || file != NULL)) {
sbin/pfctl/pfctl_table.c
377
if (load_addr(&b, argc, argv, file, 0, opts))
sbin/pfctl/pfctl_table.c
461
load_addr(struct pfr_buffer *b, int argc, char *argv[], char *file,
sbin/pfctl/pfctl_table.c
470
if (pfr_buf_load(b, file, nonetwork, append_addr, opts)) {
sbin/pfctl/pfctl_table.c
471
warn("cannot load %s", file);
sbin/recoverdisk/recoverdisk.c
322
FILE *file;
sbin/recoverdisk/recoverdisk.c
333
file = fopen(buf, "w");
sbin/recoverdisk/recoverdisk.c
334
if (file == NULL)
sbin/recoverdisk/recoverdisk.c
339
fprintf(file, "%ju %ju %u\n",
sbin/recoverdisk/recoverdisk.c
344
fflush(file);
sbin/recoverdisk/recoverdisk.c
345
if (ferror(file) || fdatasync(fileno(file)) || fclose(file))
sbin/recoverdisk/recoverdisk.c
361
FILE *file;
sbin/recoverdisk/recoverdisk.c
364
file = fopen(read_worklist_file, "r");
sbin/recoverdisk/recoverdisk.c
365
if (file == NULL)
sbin/recoverdisk/recoverdisk.c
371
if (3 != fscanf(file, "%ju %ju %u\n", &start, &length, &pass)) {
sbin/recoverdisk/recoverdisk.c
372
if (!feof(file))
sbin/recoverdisk/recoverdisk.c
383
if (fclose(file))
sbin/sysctl/sysctl.c
144
FILE *file = NULL;
sbin/sysctl/sysctl.c
251
file = fopen(conffile, "r");
sbin/sysctl/sysctl.c
252
if (file == NULL)
sbin/sysctl/sysctl.c
256
if (file != NULL) {
sbin/sysctl/sysctl.c
257
warncount += parsefile(file);
sbin/sysctl/sysctl.c
258
fclose(file);
sbin/sysctl/sysctl.c
617
parsefile(FILE *file)
sbin/sysctl/sysctl.c
622
while (fgets(line, sizeof(line), file) != NULL) {
sbin/veriexec/manifest_parser.y
184
if (snprintf(params->file, sizeof(params->file), "%s%s%s",
sbin/veriexec/manifest_parser.y
187
$1) >= (int)sizeof(params->file)) {
sbin/veriexec/manifest_parser.y
264
VERBOSE(1,("skipping %s\n", params->file));
sbin/veriexec/manifest_parser.y
275
} else if (stat(params->file, &st) == 0) {
sbin/veriexec/manifest_parser.y
287
params->file, params->flags));
sbin/veriexec/manifest_parser.y
293
params->file);
sbin/veriexec/manifest_parser.y
297
warn("cannot update veriexec for %s", params->file);
sbin/veriexec/veriexec.h
43
FILE * manifest_open (const char *file, const char *file_content);
share/examples/ipfilter/l4check/l4check.c
451
mapfile(char *file, size_t *sizep)
share/examples/ipfilter/l4check/l4check.c
457
fd = open(file, O_RDONLY);
share/examples/tests/tests/plain/printf_test.c
78
FILE *file;
share/examples/tests/tests/plain/printf_test.c
83
file = fopen("test.txt", "w+");
share/examples/tests/tests/plain/printf_test.c
84
if (fprintf(file, "%s", contents) <= 0)
share/examples/tests/tests/plain/printf_test.c
86
rewind(file);
share/examples/tests/tests/plain/printf_test.c
87
length = fread(buffer, 1, sizeof(buffer) - 1, file);
share/examples/tests/tests/plain/printf_test.c
91
fclose(file);
share/examples/tests/tests/tap/printf_test.c
129
FILE *file;
share/examples/tests/tests/tap/printf_test.c
134
file = fopen("test.txt", "w+");
share/examples/tests/tests/tap/printf_test.c
135
if (fprintf(file, "%s", contents) <= 0) {
share/examples/tests/tests/tap/printf_test.c
141
rewind(file);
share/examples/tests/tests/tap/printf_test.c
142
length = fread(buffer, 1, sizeof(buffer) - 1, file);
share/examples/tests/tests/tap/printf_test.c
150
fclose(file);
stand/common/devopen.c
37
devopen(struct open_file *f, const char *fname, const char **file)
stand/common/devopen.c
42
result = archsw.arch_getdev((void **)&dev, fname, file);
stand/libsa/assert.c
31
__assert(const char *func, const char *file, int line, const char *expression)
stand/libsa/assert.c
35
expression, file, line);
stand/libsa/assert.c
39
expression, func, file, line);
stand/libsa/cd9660.c
339
struct file *fp = NULL;
stand/libsa/cd9660.c
458
fp = malloc(sizeof(struct file));
stand/libsa/cd9660.c
459
bzero(fp, sizeof(struct file));
stand/libsa/cd9660.c
503
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/cd9660.c
514
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/cd9660.c
549
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/cd9660.c
578
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/cd9660.c
643
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/cd9660.c
664
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
333
struct file *fp;
stand/libsa/ext2fs.c
345
fp = malloc(sizeof(struct file));
stand/libsa/ext2fs.c
348
bzero(fp, sizeof(struct file));
stand/libsa/ext2fs.c
558
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
600
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
700
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
758
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
794
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
818
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
849
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
871
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ext2fs.c
884
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/open.c
143
const char *file;
stand/libsa/open.c
157
file = NULL;
stand/libsa/open.c
161
error = devopen(f, fname, &file);
stand/libsa/open.c
167
if (file == NULL || *file == '\0') {
stand/libsa/open.c
174
file = fname;
stand/libsa/open.c
179
error = (fs->fo_open)(file, f);
stand/libsa/open.c
187
n = strlen(file);
stand/libsa/open.c
188
is_dir = (n > 0 && file[n - 1] == '/');
stand/libsa/open.c
195
error = (fs->fo_open)(file, f);
stand/libsa/ufs.c
161
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
217
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
319
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
394
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
453
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
503
struct file *fp;
stand/libsa/ufs.c
515
fp = calloc(1, sizeof(struct file));
stand/libsa/ufs.c
536
struct file *sfp;
stand/libsa/ufs.c
726
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
762
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
800
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
828
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
850
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/ufs.c
877
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/zalloc_malloc.c
108
Free(void *ptr, const char *file, int line)
stand/libsa/zalloc_malloc.c
115
if (file == NULL)
stand/libsa/zalloc_malloc.c
116
file = "unknown";
stand/libsa/zalloc_malloc.c
120
ptr, file, line);
stand/libsa/zalloc_malloc.c
129
ptr, file, line);
stand/libsa/zalloc_malloc.c
136
ptr, file, line);
stand/libsa/zalloc_malloc.c
141
ptr, res->ga_Bytes - MALLOCALIGN, file, line);
stand/libsa/zalloc_malloc.c
155
Calloc(size_t n1, size_t n2, const char *file, int line)
stand/libsa/zalloc_malloc.c
160
if ((res = Malloc(bytes, file, line)) != NULL) {
stand/libsa/zalloc_malloc.c
177
Realloc(void *ptr, size_t size, const char *file, int line)
stand/libsa/zalloc_malloc.c
182
if ((res = Malloc(size, file, line)) != NULL) {
stand/libsa/zalloc_malloc.c
191
Free(ptr, file, line);
stand/libsa/zalloc_malloc.c
209
Reallocf(void *ptr, size_t size, const char *file, int line)
stand/libsa/zalloc_malloc.c
213
if ((res = Realloc(ptr, size, file, line)) == NULL)
stand/libsa/zalloc_malloc.c
214
Free(ptr, file, line);
stand/libsa/zalloc_malloc.c
57
Malloc(size_t bytes, const char *file __unused, int line __unused)
stand/libsa/zalloc_malloc.c
63
Memalign(size_t alignment, size_t bytes, const char *file __unused,
stand/libsa/zfs/zfs.c
111
struct file *fp;
stand/libsa/zfs/zfs.c
118
fp = calloc(1, sizeof(struct file));
stand/libsa/zfs/zfs.c
135
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/zfs/zfs.c
153
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/zfs/zfs.c
184
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/zfs/zfs.c
218
struct file *fp = (struct file *)f->f_fsdata;
stand/libsa/zfs/zfs.c
228
struct file *fp = (struct file *)f->f_fsdata;
sys/amd64/sgx/sgx_linux.c
59
struct file *fp;
sys/arm/nvidia/drm2/tegra_bo.c
237
tegra_bo_create_with_handle(struct drm_file *file, struct drm_device *drm,
sys/arm/nvidia/drm2/tegra_bo.c
247
rv = drm_gem_handle_create(file, &bo->gem_obj, handle);
sys/arm/nvidia/drm2/tegra_bo.c
261
tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm_dev,
sys/arm/nvidia/drm2/tegra_bo.c
273
rv = tegra_bo_create_with_handle(file, drm_dev, args->size,
sys/arm/nvidia/drm2/tegra_dc.c
1005
gem = drm_gem_object_lookup(drm_crtc->dev, file, handle);
sys/arm/nvidia/drm2/tegra_dc.c
911
tegra_dc_cancel_page_flip(struct drm_crtc *drm_crtc, struct drm_file *file)
sys/arm/nvidia/drm2/tegra_dc.c
922
if ((sc->event != NULL) && (sc->event->base.file_priv == file)) {
sys/arm/nvidia/drm2/tegra_dc.c
968
dc_cursor_set(struct drm_crtc *drm_crtc, struct drm_file *file,
sys/arm/nvidia/drm2/tegra_drm.h
103
struct drm_file *file);
sys/arm/nvidia/drm2/tegra_drm.h
111
int tegra_drm_fb_create(struct drm_device *drm, struct drm_file *file,
sys/arm/nvidia/drm2/tegra_fb.c
267
tegra_drm_fb_create(struct drm_device *drm, struct drm_file *file,
sys/arm/nvidia/drm2/tegra_fb.c
288
gem_obj = drm_gem_object_lookup(drm, file, cmd->handles[i]);
sys/arm/nvidia/drm2/tegra_fb.c
61
fb_create_handle(struct drm_framebuffer *drm_fb, struct drm_file *file,
sys/arm/nvidia/drm2/tegra_fb.c
68
rv = drm_gem_handle_create(file, &fb->planes[0]->gem_obj, handle);
sys/arm/nvidia/drm2/tegra_host1x.c
262
tegra_drm_preclose(struct drm_device *drm, struct drm_file *file)
sys/arm/nvidia/drm2/tegra_host1x.c
267
tegra_dc_cancel_page_flip(crtc, file);
sys/bsm/audit_record.h
206
token_t *au_to_file(const char *file, struct timeval tm);
sys/cam/ctl/ctl_backend_block.c
142
struct ctl_be_block_filedata file;
sys/cam/ctl/ctl_backend_block.c
2223
file_data = &be_lun->backend.file;
sys/cam/ctl/ctl_backend_block.c
2514
if (be_lun->backend.file.cred != NULL) {
sys/cam/ctl/ctl_backend_block.c
2515
crfree(be_lun->backend.file.cred);
sys/cam/ctl/ctl_backend_block.c
2516
be_lun->backend.file.cred = NULL;
sys/cam/ctl/ctl_backend_block.c
665
file_data = &be_lun->backend.file;
sys/cam/ctl/ctl_backend_block.c
891
file_data = &be_lun->backend.file;
sys/cddl/compat/opensolaris/sys/assfail.h
50
__assfail(const char *expr, const char *file, int line)
sys/cddl/compat/opensolaris/sys/assfail.h
54
expr, file, line);
sys/cddl/compat/opensolaris/sys/assfail.h
67
const char *file, int line) {
sys/cddl/compat/opensolaris/sys/assfail.h
71
expr, lv, op, rv, file, line);
sys/compat/freebsd32/freebsd32_ioctl.c
124
struct freebsd32_ioctl_args *uap, struct file *fp)
sys/compat/freebsd32/freebsd32_ioctl.c
195
struct file *fp;
sys/compat/freebsd32/freebsd32_ioctl.c
59
struct freebsd32_ioctl_args *uap, struct file *fp)
sys/compat/freebsd32/freebsd32_ioctl.c
90
struct freebsd32_ioctl_args *uap, struct file *fp)
sys/compat/freebsd32/freebsd32_misc.c
2176
struct file *fp;
sys/compat/freebsd32/freebsd32_systrace_args.c
1349
uarg[a++] = (intptr_t)p->file; /* const char * */
sys/compat/freebsd32/freebsd32_systrace_args.c
1363
uarg[a++] = (intptr_t)p->file; /* const char * */
sys/compat/lindebugfs/lindebugfs.c
660
fops_str_open(struct inode *inode, struct file *filp)
sys/compat/lindebugfs/lindebugfs.c
667
fops_str_read(struct file *filp, char __user *ubuf, size_t read_size,
sys/compat/lindebugfs/lindebugfs.c
701
fops_str_write(struct file *filp, const char __user *buf, size_t write_size,
sys/compat/lindebugfs/lindebugfs.c
775
fops_blob_read(struct file *filp, char __user *ubuf, size_t read_size, loff_t *ppos)
sys/compat/lindebugfs/lindebugfs.c
789
fops_blob_open(struct inode *inode, struct file *filp)
sys/compat/linux/linux.c
539
struct file *fp;
sys/compat/linux/linux_event.c
285
struct file *epfp, *fp;
sys/compat/linux/linux_event.c
378
struct file *epfp;
sys/compat/linux/linux_event.c
530
epoll_register_kevent(struct thread *td, struct file *epfp, int fd, int filter,
sys/compat/linux/linux_event.c
546
epoll_fd_registered(struct thread *td, struct file *epfp, int fd)
sys/compat/linux/linux_event.c
564
epoll_delete_all_events(struct thread *td, struct file *epfp, int fd)
sys/compat/linux/linux_event.c
85
static int epoll_register_kevent(struct thread *td, struct file *epfp,
sys/compat/linux/linux_event.c
87
static int epoll_fd_registered(struct thread *td, struct file *epfp,
sys/compat/linux/linux_event.c
89
static int epoll_delete_all_events(struct thread *td, struct file *epfp,
sys/compat/linux/linux_file.c
1367
struct file *fp;
sys/compat/linux/linux_file.c
162
struct file *fp;
sys/compat/linux/linux_file.c
1902
struct file *fp;
sys/compat/linux/linux_file.c
359
struct file *fp;
sys/compat/linux/linux_ioctl.c
1495
struct file *fp;
sys/compat/linux/linux_ioctl.c
166
struct file *fp;
sys/compat/linux/linux_ioctl.c
2044
struct file *fp;
sys/compat/linux/linux_ioctl.c
244
struct file *fp;
sys/compat/linux/linux_ioctl.c
2451
struct file *fp;
sys/compat/linux/linux_ioctl.c
2544
struct file *fp;
sys/compat/linux/linux_ioctl.c
2573
struct file *fp;
sys/compat/linux/linux_ioctl.c
2886
struct file *fp;
sys/compat/linux/linux_ioctl.c
3190
struct file *fp;
sys/compat/linux/linux_ioctl.c
3534
struct file *fp;
sys/compat/linux/linux_ioctl.c
3698
struct file *fp;
sys/compat/linux/linux_ioctl.c
700
struct file *fp;
sys/compat/linux/linux_mmap.c
63
linux_mmap_check_fp(struct file *fp, int flags, int prot, int maxprot)
sys/compat/linux/linux_socket.c
1004
struct file *fp;
sys/compat/linux/linux_socket.c
1052
struct file *fp, *fp1;
sys/compat/linux/linux_socket.c
1241
struct file *fp;
sys/compat/linux/linux_socket.c
1301
struct file *fp;
sys/compat/linux/linux_socket.c
1395
struct file *fp;
sys/compat/linux/linux_socket.c
1966
struct file *fp;
sys/compat/linux/linux_socket.c
1983
struct file *fp;
sys/compat/linux/linux_socket.c
2489
is_sendfile(struct file *fp, struct file *ofp)
sys/compat/linux/linux_socket.c
2519
is_regular_file(struct file *fp)
sys/compat/linux/linux_socket.c
2527
sendfile_fallback(struct thread *td, struct file *fp, l_int out,
sys/compat/linux/linux_socket.c
2532
struct file *ofp;
sys/compat/linux/linux_socket.c
2615
sendfile_sendfile(struct thread *td, struct file *fp, l_int out,
sys/compat/linux/linux_socket.c
2652
struct file *fp, *ofp;
sys/compat/linux/linux_stats.c
66
struct file *fp;
sys/compat/linuxkpi/common/include/linux/anon_inodes.h
36
static inline struct file *
sys/compat/linuxkpi/common/include/linux/anon_inodes.h
40
struct file *file;
sys/compat/linuxkpi/common/include/linux/anon_inodes.h
42
file = alloc_file(FMODE_READ, fops);
sys/compat/linuxkpi/common/include/linux/anon_inodes.h
43
file->private_data = priv;
sys/compat/linuxkpi/common/include/linux/anon_inodes.h
45
return (file);
sys/compat/linuxkpi/common/include/linux/file.h
102
fdclose(curthread, file, fd);
sys/compat/linuxkpi/common/include/linux/file.h
105
fdrop(file, curthread);
sys/compat/linuxkpi/common/include/linux/file.h
111
struct file *file;
sys/compat/linuxkpi/common/include/linux/file.h
113
if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) {
sys/compat/linuxkpi/common/include/linux/file.h
116
filp->_file = file;
sys/compat/linuxkpi/common/include/linux/file.h
117
finit(file, filp->f_mode, DTYPE_DEV, filp, &linuxfileops);
sys/compat/linuxkpi/common/include/linux/file.h
121
refcount_acquire(&file->f_count);
sys/compat/linuxkpi/common/include/linux/file.h
131
struct file *file;
sys/compat/linuxkpi/common/include/linux/file.h
135
error = falloc(curthread, &file, &fd, 0);
sys/compat/linuxkpi/common/include/linux/file.h
139
fdrop(file, curthread);
sys/compat/linuxkpi/common/include/linux/file.h
146
struct file *file;
sys/compat/linuxkpi/common/include/linux/file.h
150
error = falloc(curthread, &file, &fd, flags);
sys/compat/linuxkpi/common/include/linux/file.h
154
fdrop(file, curthread);
sys/compat/linuxkpi/common/include/linux/file.h
56
struct file *file;
sys/compat/linuxkpi/common/include/linux/file.h
59
if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0)
sys/compat/linuxkpi/common/include/linux/file.h
63
if (file->f_data == NULL ||
sys/compat/linuxkpi/common/include/linux/file.h
64
file->f_ops != &linuxfileops) {
sys/compat/linuxkpi/common/include/linux/file.h
65
fdrop(file, curthread);
sys/compat/linuxkpi/common/include/linux/file.h
68
return ((struct linux_file *)file->f_data);
sys/compat/linuxkpi/common/include/linux/file.h
92
struct file *file;
sys/compat/linuxkpi/common/include/linux/file.h
94
if (fget_unlocked(curthread, fd, &cap_no_rights, &file) != 0) {
sys/compat/linuxkpi/common/include/linux/fs.h
144
int (*open)(struct inode *, struct file *);
sys/compat/linuxkpi/common/include/linux/fs.h
157
void (*show_fdinfo)(struct seq_file *, struct file *);
sys/compat/linuxkpi/common/include/linux/fs.h
160
loff_t (*llseek)(struct file *, loff_t, int);
sys/compat/linuxkpi/common/include/linux/fs.h
165
int (*readdir)(struct file *, void *, filldir_t);
sys/compat/linuxkpi/common/include/linux/fs.h
166
int (*ioctl)(struct inode *, struct file *, unsigned int,
sys/compat/linuxkpi/common/include/linux/fs.h
168
int (*flush)(struct file *, fl_owner_t id);
sys/compat/linuxkpi/common/include/linux/fs.h
169
int (*fsync)(struct file *, struct dentry *, int datasync);
sys/compat/linuxkpi/common/include/linux/fs.h
171
int (*lock)(struct file *, int, struct file_lock *);
sys/compat/linuxkpi/common/include/linux/fs.h
172
ssize_t (*sendpage)(struct file *, struct page *, int, size_t,
sys/compat/linuxkpi/common/include/linux/fs.h
174
unsigned long (*get_unmapped_area)(struct file *, unsigned long,
sys/compat/linuxkpi/common/include/linux/fs.h
177
int (*flock)(struct file *, int, struct file_lock *);
sys/compat/linuxkpi/common/include/linux/fs.h
178
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *,
sys/compat/linuxkpi/common/include/linux/fs.h
180
ssize_t (*splice_read)(struct file *, loff_t *,
sys/compat/linuxkpi/common/include/linux/fs.h
182
int (*setlease)(struct file *, long, struct file_lock **);
sys/compat/linuxkpi/common/include/linux/fs.h
249
nonseekable_open(struct inode *inode, struct file *filp)
sys/compat/linuxkpi/common/include/linux/fs.h
255
simple_open(struct inode *inode, struct file *filp)
sys/compat/linuxkpi/common/include/linux/fs.h
305
no_llseek(struct file *file, loff_t offset, int whence)
sys/compat/linuxkpi/common/include/linux/fs.h
312
default_llseek(struct file *file, loff_t offset, int whence)
sys/compat/linuxkpi/common/include/linux/fs.h
314
return (no_llseek(file, offset, whence));
sys/compat/linuxkpi/common/include/linux/fs.h
318
generic_file_llseek(struct file *file, loff_t offset, int whence)
sys/compat/linuxkpi/common/include/linux/fs.h
320
return (no_llseek(file, offset, whence));
sys/compat/linuxkpi/common/include/linux/fs.h
324
noop_llseek(struct linux_file *file, loff_t offset, int whence)
sys/compat/linuxkpi/common/include/linux/fs.h
327
return (file->_file->f_offset);
sys/compat/linuxkpi/common/include/linux/fs.h
331
file_inode(const struct linux_file *file)
sys/compat/linuxkpi/common/include/linux/fs.h
334
return (file->f_vnode);
sys/compat/linuxkpi/common/include/linux/fs.h
338
call_mmap(struct linux_file *file, struct vm_area_struct *vma)
sys/compat/linuxkpi/common/include/linux/fs.h
341
return (file->f_op->mmap(file, vma));
sys/compat/linuxkpi/common/include/linux/fs.h
390
__fops ## _open(struct inode *inode, struct file *filp) \
sys/compat/linuxkpi/common/include/linux/fs.h
408
int simple_attr_open(struct inode *inode, struct file *filp,
sys/compat/linuxkpi/common/include/linux/fs.h
412
int simple_attr_release(struct inode *inode, struct file *filp);
sys/compat/linuxkpi/common/include/linux/fs.h
414
ssize_t simple_attr_read(struct file *filp, char __user *buf, size_t read_size,
sys/compat/linuxkpi/common/include/linux/fs.h
417
ssize_t simple_attr_write(struct file *filp, const char __user *buf,
sys/compat/linuxkpi/common/include/linux/fs.h
420
ssize_t simple_attr_write_signed(struct file *filp, const char __user *buf,
sys/compat/linuxkpi/common/include/linux/fs.h
84
struct file *_file;
sys/compat/linuxkpi/common/include/linux/mm.h
434
void vma_set_file(struct vm_area_struct *vma, struct linux_file *file);
sys/compat/linuxkpi/common/include/linux/mutex.h
147
#define __mutex_name(name, file, line) \
sys/compat/linuxkpi/common/include/linux/mutex.h
148
(((const char *){file ":" #line "-" name}) + \
sys/compat/linuxkpi/common/include/linux/mutex.h
149
(sizeof(file) > 16 ? sizeof(file) - 16 : 0))
sys/compat/linuxkpi/common/include/linux/mutex.h
151
#define __mutex_name(name, file, line) name
sys/compat/linuxkpi/common/include/linux/rwsem.h
57
#define __rwsem_name(name, file, line) \
sys/compat/linuxkpi/common/include/linux/rwsem.h
58
(((const char *){file ":" #line "-" name}) + \
sys/compat/linuxkpi/common/include/linux/rwsem.h
59
(sizeof(file) > 16 ? sizeof(file) - 16 : 0))
sys/compat/linuxkpi/common/include/linux/rwsem.h
61
#define __rwsem_name(name, file, line) name
sys/compat/linuxkpi/common/include/linux/seq_file.h
100
off_t seq_lseek(struct linux_file *file, off_t offset, int whence);
sys/compat/linuxkpi/common/include/linux/seq_file.h
45
static int __name ## _open(struct inode *inode, struct linux_file *file) \
sys/compat/linuxkpi/common/include/linux/seq_file.h
47
return single_open(file, __name ## _show, inode->i_private); \
sys/compat/linuxkpi/common/include/linux/seq_file.h
59
static int __name ## _open(struct inode *inode, struct linux_file *file) \
sys/compat/linuxkpi/common/include/linux/seq_file.h
61
return single_open(file, __name ## _show, inode->i_private); \
sys/compat/linuxkpi/common/include/linux/seq_file.h
77
const struct linux_file *file;
sys/compat/linuxkpi/common/include/linux/seq_file.h
98
int seq_release(struct inode *inode, struct linux_file *file);
sys/compat/linuxkpi/common/include/linux/spinlock.h
135
#define __spin_lock_name(name, file, line) \
sys/compat/linuxkpi/common/include/linux/spinlock.h
136
(((const char *){file ":" #line "-" name}) + \
sys/compat/linuxkpi/common/include/linux/spinlock.h
137
(sizeof(file) > 16 ? sizeof(file) - 16 : 0))
sys/compat/linuxkpi/common/include/linux/spinlock.h
139
#define __spin_lock_name(name, file, line) name
sys/compat/linuxkpi/common/include/net/cfg80211.h
2180
wiphy_locked_debugfs_read(struct wiphy *wiphy, struct file *file,
sys/compat/linuxkpi/common/include/net/cfg80211.h
2183
ssize_t (*handler)(struct wiphy *, struct file *, char *, size_t, void *),
sys/compat/linuxkpi/common/include/net/cfg80211.h
2192
wiphy_locked_debugfs_write(struct wiphy *wiphy, struct file *file,
sys/compat/linuxkpi/common/include/net/cfg80211.h
2194
ssize_t (*handler)(struct wiphy *, struct file *, char *, size_t, void *),
sys/compat/linuxkpi/common/src/linux_compat.c
1220
linux_file_kqfilter(struct file *file, struct knote *kn)
sys/compat/linuxkpi/common/src/linux_compat.c
1227
filp = (struct linux_file *)file->f_data;
sys/compat/linuxkpi/common/src/linux_compat.c
1228
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
1265
linux_file_mmap_single(struct file *fp, const struct file_operations *fop,
sys/compat/linuxkpi/common/src/linux_compat.c
1426
linux_file_read(struct file *file, struct uio *uio, struct ucred *active_cred,
sys/compat/linuxkpi/common/src/linux_compat.c
1436
filp = (struct linux_file *)file->f_data;
sys/compat/linuxkpi/common/src/linux_compat.c
1437
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
1446
bytes = OPW(file, td, fop->read(filp,
sys/compat/linuxkpi/common/src/linux_compat.c
1468
linux_file_write(struct file *file, struct uio *uio, struct ucred *active_cred,
sys/compat/linuxkpi/common/src/linux_compat.c
1477
filp = (struct linux_file *)file->f_data;
sys/compat/linuxkpi/common/src/linux_compat.c
1478
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
1487
bytes = OPW(file, td, fop->write(filp,
sys/compat/linuxkpi/common/src/linux_compat.c
1511
linux_file_poll(struct file *file, int events, struct ucred *active_cred,
sys/compat/linuxkpi/common/src/linux_compat.c
1519
filp = (struct linux_file *)file->f_data;
sys/compat/linuxkpi/common/src/linux_compat.c
1520
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
1524
revents = OPW(file, td, fop->poll(filp,
sys/compat/linuxkpi/common/src/linux_compat.c
1534
linux_file_close(struct file *file, struct thread *td)
sys/compat/linuxkpi/common/src/linux_compat.c
1542
filp = (struct linux_file *)file->f_data;
sys/compat/linuxkpi/common/src/linux_compat.c
1551
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
1561
error = -OPW(file, td, release(filp->f_vnode, filp));
sys/compat/linuxkpi/common/src/linux_compat.c
1576
linux_file_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *cred,
sys/compat/linuxkpi/common/src/linux_compat.c
1639
vm_prot_t maxprot, int flags, struct file *fp,
sys/compat/linuxkpi/common/src/linux_compat.c
1657
linux_file_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size,
sys/compat/linuxkpi/common/src/linux_compat.c
1726
linux_file_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/compat/linuxkpi/common/src/linux_compat.c
1746
linux_file_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/compat/linuxkpi/common/src/linux_compat.c
1785
linux_file_kcmp(struct file *fp1, struct file *fp2, struct thread *td)
sys/compat/linuxkpi/common/src/linux_compat.c
666
vma_set_file(struct vm_area_struct *vma, struct linux_file *file)
sys/compat/linuxkpi/common/src/linux_compat.c
671
get_file(file);
sys/compat/linuxkpi/common/src/linux_compat.c
673
vma->vm_file = file;
sys/compat/linuxkpi/common/src/linux_compat.c
733
struct file *__fpop; \
sys/compat/linuxkpi/common/src/linux_compat.c
745
struct file *file)
sys/compat/linuxkpi/common/src/linux_compat.c
757
filp->f_mode = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
758
filp->f_flags = file->f_flag;
sys/compat/linuxkpi/common/src/linux_compat.c
759
filp->f_vnode = file->f_vnode;
sys/compat/linuxkpi/common/src/linux_compat.c
760
filp->_file = file;
sys/compat/linuxkpi/common/src/linux_compat.c
768
error = -fop->open(file->f_vnode, filp);
sys/compat/linuxkpi/common/src/linux_compat.c
781
finit(file, filp->f_mode, DTYPE_DEV, filp, &linuxfileops);
sys/compat/linuxkpi/common/src/linux_compat.c
917
linux_file_ioctl_sub(struct file *fp, struct linux_file *filp,
sys/compat/linuxkpi/common/src/linux_eventfd.c
39
struct file *fp;
sys/compat/linuxkpi/common/src/linux_seq_file.c
104
seq_lseek(struct linux_file *file, off_t offset, int whence)
sys/compat/linuxkpi/common/src/linux_seq_file.c
139
p->file = f;
sys/compat/linuxkpi/common/src/linux_seq_file.c
227
seq_release(struct inode *inode __unused, struct linux_file *file)
sys/compat/linuxkpi/common/src/linux_seq_file.c
232
m = file->private_data;
sys/compat/linuxkpi/common/src/linux_shmemfs.c
66
struct linux_file file __aligned(sizeof(void *));
sys/compat/linuxkpi/common/src/linux_shmemfs.c
78
filp = &fileobj->file;
sys/compat/linuxkpi/common/src/linux_simple_attr.c
102
simple_attr_read(struct file *filp, char __user *buf, size_t read_size,
sys/compat/linuxkpi/common/src/linux_simple_attr.c
150
simple_attr_write_common(struct file *filp, const char __user *ubuf,
sys/compat/linuxkpi/common/src/linux_simple_attr.c
198
simple_attr_write(struct file *filp, const char __user *buf, size_t write_size,
sys/compat/linuxkpi/common/src/linux_simple_attr.c
205
simple_attr_write_signed(struct file *filp, const char __user *buf,
sys/compat/linuxkpi/common/src/linux_simple_attr.c
57
simple_attr_open(struct inode *inode, struct file *filp,
sys/compat/linuxkpi/common/src/linux_simple_attr.c
78
simple_attr_release(struct inode *inode, struct file *filp)
sys/ddb/db_main.c
76
X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t sym, char **file, int *line,
sys/dev/aac/aac_linux.c
71
struct file *fp;
sys/dev/aacraid/aacraid_linux.c
72
struct file *fp;
sys/dev/aic7xxx/aic79xx_inline.h
138
ahd_mode dstmode, const char *file, int line)
sys/dev/aic7xxx/aic79xx_inline.h
144
ahd_name(ahd), file, line);
sys/dev/aic7xxx/aic79xx_inline.h
70
ahd_mode dstmode, const char *file,
sys/dev/ath/if_ath.c
300
const char *file, int line)
sys/dev/ath/if_ath.c
306
file,
sys/dev/ath/if_ath.c
353
_ath_power_set_selfgen(struct ath_softc *sc, int power_state, const char *file, int line)
sys/dev/ath/if_ath.c
360
file,
sys/dev/ath/if_ath.c
389
_ath_power_set_power_state(struct ath_softc *sc, int power_state, const char *file, int line)
sys/dev/ath/if_ath.c
395
file,
sys/dev/ath/if_ath.c
427
_ath_power_restore_power_state(struct ath_softc *sc, const char *file, int line)
sys/dev/ath/if_ath.c
434
file,
sys/dev/ath/if_ath_misc.h
115
int selfgen, const char *file, int line);
sys/dev/ath/if_ath_misc.h
117
int power_state, const char *file, int line);
sys/dev/ath/if_ath_misc.h
119
int power_state, const char *file, int line);
sys/dev/ath/if_ath_misc.h
121
const char *file, int line);
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
1020
struct file *fp;
sys/dev/cxgbe/cxgbei/icl_cxgbei.c
1698
struct file *fp;
sys/dev/cxgbe/nvmf/nvmf_che.c
2403
struct file *fp;
sys/dev/drm2/drm_auth.c
187
struct drm_file *file;
sys/dev/drm2/drm_auth.c
190
if ((file = drm_find_file(file_priv->master, auth->magic))) {
sys/dev/drm2/drm_auth.c
191
file->authenticated = 1;
sys/dev/drm2/ttm/ttm_bo_api.h
719
extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
sys/dev/drm2/ttm/ttm_bo_vm.c
389
ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
sys/dev/filemon/filemon.c
253
struct file *fp;
sys/dev/filemon/filemon.c
360
struct file *fp;
sys/dev/filemon/filemon.c
84
struct file *fp; /* Output file pointer. */
sys/dev/filemon/filemon_wrapper.c
152
struct file *fp;
sys/dev/hpt27xx/hpt27xx_os_bsd.c
308
void __os_dbgbreak(const char *file, int line)
sys/dev/hpt27xx/hpt27xx_os_bsd.c
310
printf("*** break at %s:%d ***", file, line);
sys/dev/hpt27xx/osm.h
241
void __os_dbgbreak(const char *file, int line);
sys/dev/hptnr/hptnr_os_bsd.c
295
void __os_dbgbreak(const char *file, int line)
sys/dev/hptnr/hptnr_os_bsd.c
297
printf("*** break at %s:%d ***", file, line);
sys/dev/hptnr/osm.h
226
void __os_dbgbreak(const char *file, int line);
sys/dev/hptrr/hptrr_os_bsd.c
281
void __os_dbgbreak(const char *file, int line)
sys/dev/hptrr/hptrr_os_bsd.c
283
printf("*** break at %s:%d ***", file, line);
sys/dev/hptrr/osm.h
193
void __os_dbgbreak(const char *file, int line);
sys/dev/ipmi/ipmi_linux.c
85
struct file *fp;
sys/dev/iscsi/icl_soft.c
1507
struct file *fp;
sys/dev/ixl/ixl_pf_iov.c
473
enum i40e_status_code status, const char *file, int line)
sys/dev/ixl/ixl_pf_iov.c
479
status, vf->vf_num, file, line);
sys/dev/ixl/ixl_pf_iov.c
55
static void ixl_send_vf_nack_msg(struct ixl_pf *pf, struct ixl_vf *vf, uint16_t op, enum i40e_status_code status, const char *file, int line);
sys/dev/md/md.c
1451
error = copyinstr(fname, sc->s_vnode.file,
sys/dev/md/md.c
1452
sizeof(sc->s_vnode.file), NULL);
sys/dev/md/md.c
1456
strlcpy(sc->s_vnode.file, fname, sizeof(sc->s_vnode.file));
sys/dev/md/md.c
1466
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, sc->s_vnode.file);
sys/dev/md/md.c
1895
error = copyout(sc->s_vnode.file, mdr->md_file,
sys/dev/md/md.c
1896
strlen(sc->s_vnode.file) + 1);
sys/dev/md/md.c
2192
sbuf_printf(sb, " file %s", mp->s_vnode.file);
sys/dev/md/md.c
2226
mp->s_vnode.file);
sys/dev/md/md.c
288
char file[PATH_MAX];
sys/dev/mfi/mfi_linux.c
79
struct file *fp;
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2015
if (event_sub->eventfd.file == NULL) {
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2074
if (event_sub->eventfd.file)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2342
if (item->eventfd.file != NULL)
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2343
linux_poll_wakeup(item->eventfd.file);
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2430
static ssize_t devx_async_cmd_event_read(struct file *filp, char __user *buf,
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2484
static __poll_t devx_async_cmd_event_poll(struct file *filp,
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2511
static ssize_t devx_async_event_read(struct file *filp, char __user *buf,
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2589
static __poll_t devx_async_event_poll(struct file *filp,
sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c
2612
if (event_sub->eventfd.file)
sys/dev/mrsas/mrsas_linux.c
97
struct file *fp;
sys/dev/netmap/netmap_kern.h
2084
struct file *np_filp; /* used by sync kloop */
sys/dev/netmap/netmap_kloop.c
453
struct file *filp;
sys/dev/netmap/netmap_kloop.c
459
struct file *irq_filp;
sys/dev/netmap/netmap_kloop.c
482
sync_kloop_poll_table_queue_proc(struct file *file, wait_queue_head_t *wqh,
sys/dev/netmap/netmap_kloop.c
492
entry->filp = file;
sys/dev/netmap/netmap_kloop.c
735
struct file *filp = NULL;
sys/dev/nvmf/nvmf_tcp.c
1421
struct file *fp;
sys/dev/ppbus/ppb_base.c
229
_ppb_assert_locked(device_t bus, const char *file, int line)
sys/dev/ppbus/ppb_base.c
232
mtx_assert_(DEVTOSOFTC(bus)->ppc_lock, MA_OWNED, file, line);
sys/dev/pty/pty.c
129
struct file *fp)
sys/dev/pty/pty.c
60
ptydev_fdopen(struct cdev *dev, int fflags, struct thread *td, struct file *fp)
sys/dev/qat/qat_common/adf_freebsd_uio.c
111
struct file *fp, **new_files;
sys/dev/qat/qat_common/adf_freebsd_uio.c
48
struct file **mem_files;
sys/dev/tdfx/tdfx_linux.c
55
struct file *fp;
sys/dev/tdfx/tdfx_vars.h
93
struct file *curFile;
sys/dev/tws/tws_services.c
125
printf(fmt, linenum, file, fun, desc, val1, val2);
sys/dev/tws/tws_services.c
84
tws_trace(const char *file, const char *fun, int linenum,
sys/dev/tws/tws_services.c
97
strncpy(rec[tail].fname, file, TWS_TRACE_FNAME_LEN);
sys/dev/tws/tws_services.h
39
void tws_trace(const char *file, const char *fun, int linenum,
sys/dev/usb/usb_core.h
71
struct file;
sys/dev/veriexec/veriexec_ioctl.h
42
char file[MAXPATHLEN];
sys/dev/veriexec/veriexec_ioctl.h
49
char file[MAXPATHLEN];
sys/dev/veriexec/verified_exec.c
212
NDINIT(&nid, LOOKUP, FOLLOW, UIO_SYSSPACE, params->file);
sys/dev/xen/blkback/blkback.c
2147
file_data = &xbb->backend.file;
sys/dev/xen/blkback/blkback.c
2347
if (xbb->backend.file.cred != NULL) {
sys/dev/xen/blkback/blkback.c
2348
crfree(xbb->backend.file.cred);
sys/dev/xen/blkback/blkback.c
2349
xbb->backend.file.cred = NULL;
sys/dev/xen/blkback/blkback.c
2437
file_data = &xbb->backend.file;
sys/dev/xen/blkback/blkback.c
481
struct xbb_file_data file;
sys/fs/devfs/devfs_int.h
42
struct file *cdpd_fp;
sys/fs/devfs/devfs_vnops.c
1004
devfs_kqfilter_f(struct file *fp, struct knote *kn)
sys/fs/devfs/devfs_vnops.c
1009
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
114
devfs_fp_check(struct file *fp, struct cdev **devp, struct cdevsw **dswp,
sys/fs/devfs/devfs_vnops.c
1286
struct file *fp = ap->a_fp;
sys/fs/devfs/devfs_vnops.c
1289
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
134
struct file *fp;
sys/fs/devfs/devfs_vnops.c
1409
devfs_poll_f(struct file *fp, int events, struct ucred *cred, struct thread *td)
sys/fs/devfs/devfs_vnops.c
1414
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
1440
devfs_read_f(struct file *fp, struct uio *uio, struct ucred *cred,
sys/fs/devfs/devfs_vnops.c
1447
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
153
struct file *fp;
sys/fs/devfs/devfs_vnops.c
1889
devfs_stat_f(struct file *fp, struct stat *sb, struct ucred *cred)
sys/fs/devfs/devfs_vnops.c
1948
devfs_truncate_f(struct file *fp, off_t length, struct ucred *cred, struct thread *td)
sys/fs/devfs/devfs_vnops.c
1955
devfs_write_f(struct file *fp, struct uio *uio, struct ucred *cred,
sys/fs/devfs/devfs_vnops.c
1962
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
1993
devfs_mmap_f(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size,
sys/fs/devfs/devfs_vnops.c
2001
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
203
struct file *fp;
sys/fs/devfs/devfs_vnops.c
2073
devfs_cmp_f(struct file *fp1, struct file *fp2, struct thread *td)
sys/fs/devfs/devfs_vnops.c
226
devfs_fpdrop(struct file *fp)
sys/fs/devfs/devfs_vnops.c
241
struct file *fp;
sys/fs/devfs/devfs_vnops.c
788
devfs_close_f(struct file *fp, struct thread *td)
sys/fs/devfs/devfs_vnops.c
791
struct file *fpop;
sys/fs/devfs/devfs_vnops.c
888
devfs_ioctl_f(struct file *fp, u_long com, void *data, struct ucred *cred, struct thread *td)
sys/fs/devfs/devfs_vnops.c
890
struct file *fpop;
sys/fs/fdescfs/fdesc_vnops.c
248
struct file *fp;
sys/fs/fdescfs/fdesc_vnops.c
289
struct file *fp;
sys/fs/fdescfs/fdesc_vnops.c
482
struct file *fp;
sys/fs/fdescfs/fdesc_vnops.c
634
struct file *fp;
sys/fs/fifofs/fifo_vnops.c
129
struct file *fp;
sys/fs/fuse/fuse_file.c
166
SDT_PROBE2(fusefs, , file, trace, 1,
sys/fs/fuse/fuse_file.c
97
SDT_PROBE_DEFINE2(fusefs, , file, trace, "int", "char*");
sys/fs/fuse/fuse_vfsops.c
309
struct file *fp, *fptmp;
sys/fs/nfs/nfs_var.h
46
struct file;
sys/fs/nfs/nfs_var.h
812
int nfsrvd_addsock(struct file *);
sys/fs/nfs/nfs_var.h
817
int nfscbd_addsock(struct file *);
sys/fs/nfs/nfsport.h
711
struct file *nsf_fp; /* File table pointer */
sys/fs/nfsclient/nfs_clkrpc.c
181
nfscbd_addsock(struct file *fp)
sys/fs/nfsclient/nfs_clport.c
1325
struct file *fp;
sys/fs/nfsserver/nfs_nfsdkrpc.c
524
nfsrvd_addsock(struct file *fp)
sys/fs/nfsserver/nfs_nfsdport.c
3792
fp_getfvp(struct thread *p, int fd, struct file **fpp, struct vnode **vpp)
sys/fs/nfsserver/nfs_nfsdport.c
3795
struct file *fp;
sys/fs/nfsserver/nfs_nfsdport.c
4046
struct file *fp;
sys/fs/nfsserver/nfs_nfsdport.c
4257
struct file *fp = NULL;
sys/fs/tmpfs/tmpfs.h
470
int tmpfs_fo_close(struct file *fp, struct thread *td);
sys/fs/tmpfs/tmpfs_vnops.c
296
struct file *fp;
sys/fs/tmpfs/tmpfs_vnops.c
344
tmpfs_fo_close(struct file *fp, struct thread *td)
sys/fs/unionfs/union.h
115
unionfs_check_vnode(struct vnode *vp, const char *file __unused,
sys/fs/unionfs/union.h
123
("%s:%d: non-unionfs vnode %p", file, line, vp));
sys/geom/eli/g_eli.c
1256
char *file, name[64];
sys/geom/eli/g_eli.c
1284
file = preload_search_info(keyfile, MODINFO_NAME);
sys/geom/eli/g_eli.c
1285
if (file == NULL) {
sys/geom/eli/g_eli.c
1290
G_ELI_DEBUG(1, "Loaded keyfile %s for %s (type: %s).", file,
sys/kern/imgact_elf.c
783
__elfN(load_file)(struct proc *p, const char *file, u_long *addr,
sys/kern/imgact_elf.c
821
UIO_SYSSPACE, file);
sys/kern/imgact_elf.c
97
static int __elfN(load_file)(struct proc *p, const char *file, u_long *addr,
sys/kern/kern_alq.c
433
alq_open_flags(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
sys/kern/kern_alq.c
445
NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_SYSSPACE, file);
sys/kern/kern_alq.c
483
alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
sys/kern/kern_alq.c
491
if ((ret = alq_open_flags(alqp, file, cred, cmode,
sys/kern/kern_alq.c
498
ret = alq_open_flags(alqp, file, cred, cmode, size, 0);
sys/kern/kern_conf.c
363
giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp)
sys/kern/kern_descrip.c
103
static int closefp(struct filedesc *fdp, int fd, struct file *fp,
sys/kern/kern_descrip.c
1048
struct file *delfp, *oldfp;
sys/kern/kern_descrip.c
105
static void export_file_to_kinfo(struct file *fp, int fd,
sys/kern/kern_descrip.c
115
struct file **fpp, seqc_t *seqp);
sys/kern/kern_descrip.c
1399
closefp_impl(struct filedesc *fdp, int fd, struct file *fp, struct thread *td,
sys/kern/kern_descrip.c
1437
closefp_hl(struct filedesc *fdp, int fd, struct file *fp, struct thread *td,
sys/kern/kern_descrip.c
1471
closefp(struct filedesc *fdp, int fd, struct file *fp, struct thread *td,
sys/kern/kern_descrip.c
1504
struct file *fp;
sys/kern/kern_descrip.c
1551
struct file *fp;
sys/kern/kern_descrip.c
1719
struct file *fp;
sys/kern/kern_descrip.c
1800
struct file *fp;
sys/kern/kern_descrip.c
2185
falloc_caps(struct thread *td, struct file **resultfp, int *resultfd, int flags,
sys/kern/kern_descrip.c
2188
struct file *fp;
sys/kern/kern_descrip.c
2215
_falloc_noinstall(struct thread *td, struct file **resultfp, u_int n)
sys/kern/kern_descrip.c
2217
struct file *fp;
sys/kern/kern_descrip.c
2247
falloc_abort(struct thread *td, struct file *fp)
sys/kern/kern_descrip.c
2261
_finstall(struct filedesc *fdp, struct file *fp, int fd, int flags,
sys/kern/kern_descrip.c
2287
finstall_refed(struct thread *td, struct file *fp, int *fd, int flags,
sys/kern/kern_descrip.c
2305
finstall(struct thread *td, struct file *fp, int *fd, int flags,
sys/kern/kern_descrip.c
2518
struct file *fp;
sys/kern/kern_descrip.c
2625
struct file *fp;
sys/kern/kern_descrip.c
2704
struct file *fp;
sys/kern/kern_descrip.c
2797
is_unsafe(struct file *fp)
sys/kern/kern_descrip.c
2815
struct file *fp;
sys/kern/kern_descrip.c
2846
fdclose(struct thread *td, struct file *fp, int idx)
sys/kern/kern_descrip.c
2867
struct file *fp;
sys/kern/kern_descrip.c
2938
closef(struct file *fp, struct thread *td)
sys/kern/kern_descrip.c
3011
closef_nothread(struct file *fp)
sys/kern/kern_descrip.c
3025
finit(struct file *fp, u_int flag, short type, void *data,
sys/kern/kern_descrip.c
3035
finit_vnode(struct file *fp, u_int flag, void *data, const struct fileops *ops)
sys/kern/kern_descrip.c
3045
struct file **fpp, struct filecaps *havecapsp)
sys/kern/kern_descrip.c
3078
uint8_t *flagsp, struct file **fpp, struct filecaps *havecapsp)
sys/kern/kern_descrip.c
3082
struct file *fp;
sys/kern/kern_descrip.c
3119
uint8_t *flagsp, struct file **fpp, struct filecaps *havecapsp)
sys/kern/kern_descrip.c
3131
fget_remote(struct thread *td, struct proc *p, int fd, struct file **fpp)
sys/kern/kern_descrip.c
3134
struct file *fp;
sys/kern/kern_descrip.c
3164
int (*fn)(struct proc *, int, struct file *, void *), void *arg)
sys/kern/kern_descrip.c
3168
struct file *fp;
sys/kern/kern_descrip.c
3210
struct file *fp;
sys/kern/kern_descrip.c
3281
struct file *fp;
sys/kern/kern_descrip.c
3322
struct file *fp;
sys/kern/kern_descrip.c
3404
uint8_t *flagsp, struct file **fpp, seqc_t *seqp)
sys/kern/kern_descrip.c
3409
struct file *fp;
sys/kern/kern_descrip.c
3463
uint8_t *flagsp, struct file **fpp, seqc_t *seqp __unused)
sys/kern/kern_descrip.c
3467
struct file *fp;
sys/kern/kern_descrip.c
3510
uint8_t *flagsp, struct file **fpp)
sys/kern/kern_descrip.c
3517
struct file *fp;
sys/kern/kern_descrip.c
3574
struct file **fpp)
sys/kern/kern_descrip.c
3591
struct file **fpp)
sys/kern/kern_descrip.c
3596
struct file *fp;
sys/kern/kern_descrip.c
3621
struct file **fpp)
sys/kern/kern_descrip.c
3623
struct file *fp;
sys/kern/kern_descrip.c
3655
_fget(struct thread *td, int fd, struct file **fpp, int flags,
sys/kern/kern_descrip.c
3658
struct file *fp;
sys/kern/kern_descrip.c
3702
fget(struct thread *td, int fd, const cap_rights_t *rightsp, struct file **fpp)
sys/kern/kern_descrip.c
3710
vm_prot_t *maxprotp, struct file **fpp)
sys/kern/kern_descrip.c
3721
struct file *fp;
sys/kern/kern_descrip.c
3754
struct file **fpp)
sys/kern/kern_descrip.c
3762
struct file **fpp)
sys/kern/kern_descrip.c
3770
int needfcntl, struct file **fpp)
sys/kern/kern_descrip.c
3776
struct file *fp;
sys/kern/kern_descrip.c
3811
struct file *fp;
sys/kern/kern_descrip.c
3842
struct file *fp;
sys/kern/kern_descrip.c
3902
_fdrop(struct file *fp, struct thread *td)
sys/kern/kern_descrip.c
3934
struct file *fp;
sys/kern/kern_descrip.c
3984
struct file *fp;
sys/kern/kern_descrip.c
4091
struct file *fp;
sys/kern/kern_descrip.c
4517
struct file *fp;
sys/kern/kern_descrip.c
4633
struct file *fp;
sys/kern/kern_descrip.c
4713
SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD|CTLFLAG_MPSAFE,
sys/kern/kern_descrip.c
4764
export_file_to_kinfo(struct file *fp, int fd, cap_rights_t *rightsp,
sys/kern/kern_descrip.c
4845
export_file_to_sb(struct file *fp, int fd, cap_rights_t *rightsp,
sys/kern/kern_descrip.c
4886
struct file *fp;
sys/kern/kern_descrip.c
5089
struct file *fp;
sys/kern/kern_descrip.c
5318
file_to_first_proc(struct file *fp)
sys/kern/kern_descrip.c
5339
db_print_file(struct file *fp, int header)
sys/kern/kern_descrip.c
5358
DB_SHOW_COMMAND(file, db_show_file)
sys/kern/kern_descrip.c
5360
struct file *fp;
sys/kern/kern_descrip.c
5366
fp = (struct file *)addr;
sys/kern/kern_descrip.c
5373
struct file *fp;
sys/kern/kern_descrip.c
5409
file_zone = uma_zcreate("Files", sizeof(struct file), NULL, NULL,
sys/kern/kern_descrip.c
5427
badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/kern_descrip.c
5435
badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/kern/kern_descrip.c
5443
badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred,
sys/kern/kern_descrip.c
5451
badfo_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/kern_descrip.c
5459
badfo_kqfilter(struct file *fp, struct knote *kn)
sys/kern/kern_descrip.c
5466
badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/kern_descrip.c
5473
badfo_close(struct file *fp, struct thread *td)
sys/kern/kern_descrip.c
5480
badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/kern_descrip.c
5488
badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/kern_descrip.c
5496
badfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
sys/kern/kern_descrip.c
5505
badfo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/kern_descrip.c
5527
path_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/kern_descrip.c
5534
path_close(struct file *fp, struct thread *td)
sys/kern/kern_descrip.c
5560
invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/kern_descrip.c
5568
invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/kern/kern_descrip.c
5576
invfo_ioctl(struct file *fp, u_long com, void *data,
sys/kern/kern_descrip.c
5584
invfo_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/kern_descrip.c
5592
invfo_kqfilter(struct file *fp, struct knote *kn)
sys/kern/kern_descrip.c
5599
invfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/kern_descrip.c
5607
invfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/kern_descrip.c
5615
invfo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
sys/kern/kern_descrip.c
573
struct file *fp, *fp2;
sys/kern/kern_event.c
111
static int kqueue_acquire(struct file *fp, struct kqueue **kqp);
sys/kern/kern_event.c
1229
struct file **fpp, int flags, struct filecaps *fcaps, bool cponfork,
sys/kern/kern_event.c
1268
struct file *fp;
sys/kern/kern_event.c
1468
struct file *fp;
sys/kern/kern_event.c
1531
kern_kevent_fp(struct thread *td, struct file *fp, int nchanges, int nevents,
sys/kern/kern_event.c
1657
struct file *fp;
sys/kern/kern_event.c
1957
kqueue_acquire(struct file *fp, struct kqueue **kqp)
sys/kern/kern_event.c
2311
kqueue_ioctl(struct file *fp, u_long cmd, void *data,
sys/kern/kern_event.c
2359
kqueue_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/kern_event.c
2386
kqueue_stat(struct file *fp, struct stat *st, struct ucred *active_cred)
sys/kern/kern_event.c
2484
kqueue_close(struct file *fp, struct thread *td)
sys/kern/kern_event.c
2522
kqueue_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/kern_event.c
3029
struct file *fp;
sys/kern/kern_event.c
3049
kqueue_fork_alloc(struct filedesc *fdp, struct file *fp, struct file **fp1,
sys/kern/kern_event.c
3146
kqueue_fork_copy(struct filedesc *fdp, struct file *fp, struct file *fp1,
sys/kern/kern_event.c
3183
kqueue_fork(struct filedesc *fdp, struct file *fp, struct file **fp1,
sys/kern/kern_event.c
3302
kern_proc_kqueues_out1_cb(struct proc *p, int fd, struct file *fp, void *arg)
sys/kern/kern_event.c
3353
struct file *fp;
sys/kern/kern_event.c
406
kqueue_kqfilter(struct file *fp, struct knote *kn)
sys/kern/kern_exit.c
1511
struct file *fp;
sys/kern/kern_fork.c
415
struct vmspace *vm2, struct file *fp_procdesc)
sys/kern/kern_fork.c
905
struct file *fp_procdesc;
sys/kern/kern_jail.c
1010
struct file *jfp_out;
sys/kern/kern_jail.c
2559
struct file *jfp_out;
sys/kern/kern_jail.c
278
uint8_t *file, *data;
sys/kern/kern_jail.c
297
file = preload_search_by_type(PRISON0_HOSTUUID_MODULE);
sys/kern/kern_jail.c
298
if (file != NULL) {
sys/kern/kern_jail.c
299
data = preload_fetch_addr(file);
sys/kern/kern_jail.c
300
size = preload_fetch_size(file);
sys/kern/kern_jaildesc.c
117
struct file *fp;
sys/kern/kern_jaildesc.c
145
jaildesc_alloc(struct thread *td, struct file **fpp, int *fdp, int owning)
sys/kern/kern_jaildesc.c
147
struct file *fp;
sys/kern/kern_jaildesc.c
177
jaildesc_get_prison(struct file *fp, struct prison **prp)
sys/kern/kern_jaildesc.c
187
jaildesc_set_prison(struct file *fp, struct prison *pr)
sys/kern/kern_jaildesc.c
249
jaildesc_close(struct file *fp, struct thread *td)
sys/kern/kern_jaildesc.c
303
jaildesc_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/kern_jaildesc.c
386
jaildesc_kqfilter(struct file *fp, struct knote *kn)
sys/kern/kern_jaildesc.c
403
jaildesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/kern_jaildesc.c
420
jaildesc_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/kern/kern_jaildesc.c
432
jaildesc_cmp(struct file *fp1, struct file *fp2, struct thread *td)
sys/kern/kern_jaildesc.c
82
jaildesc_get_prison_impl(struct file *fp, struct prison **prp)
sys/kern/kern_ktr.c
321
ktr_tracepoint(uint64_t mask, const char *file, int line, const char *format,
sys/kern/kern_ktr.c
376
if (file != NULL)
sys/kern/kern_ktr.c
377
while (strncmp(file, "../", 3) == 0)
sys/kern/kern_ktr.c
378
file += 3;
sys/kern/kern_ktr.c
379
entry->ktr_file = file;
sys/kern/kern_linker.c
1201
kern_kldload(struct thread *td, const char *file, int *fileid)
sys/kern/kern_linker.c
1218
if (strchr(file, '/') || strchr(file, '.')) {
sys/kern/kern_linker.c
1219
kldname = file;
sys/kern/kern_linker.c
1223
modname = file;
sys/kern/kern_linker.c
1259
error = copyinstr(uap->file, pathname, MAXPATHLEN, NULL);
sys/kern/kern_linker.c
1348
if ((error = copyinstr(uap->file, pathname, MAXPATHLEN, NULL)) != 0)
sys/kern/kern_linker.c
148
static void linker_file_add_dependency(linker_file_t file,
sys/kern/kern_linker.c
150
static caddr_t linker_file_lookup_symbol_internal(linker_file_t file,
sys/kern/kern_linker.c
338
linker_ctf_load_file(linker_file_t file)
sys/kern/kern_linker.c
343
error = linker_ctf_get(file, &lc);
sys/kern/kern_linker.c
347
printf("failed to load CTF for %s: %d\n", file->filename,
sys/kern/kern_linker.c
684
linker_file_unload(linker_file_t file, int flags)
sys/kern/kern_linker.c
696
KLD_DPF(FILE, ("linker_file_unload: lf->refs=%d\n", file->refs));
sys/kern/kern_linker.c
699
if (file->refs > 1) {
sys/kern/kern_linker.c
700
file->refs--;
sys/kern/kern_linker.c
706
if ((file->flags & LINKER_FILE_LINKED) != 0) {
sys/kern/kern_linker.c
707
EVENTHANDLER_INVOKE(kld_unload_try, file, &error);
sys/kern/kern_linker.c
719
for (mod = TAILQ_FIRST(&file->modules); mod;
sys/kern/kern_linker.c
741
for (mod = TAILQ_FIRST(&file->modules); mod; mod = next) {
sys/kern/kern_linker.c
763
if (ml->container == file) {
sys/kern/kern_linker.c
773
if ((file->flags & LINKER_FILE_LINKED) != 0) {
sys/kern/kern_linker.c
774
file->flags &= ~LINKER_FILE_LINKED;
sys/kern/kern_linker.c
775
linker_file_unregister_sysctls(file);
sys/kern/kern_linker.c
776
linker_file_sysuninit(file);
sys/kern/kern_linker.c
777
EVENTHANDLER_INVOKE(kld_unload, file->filename, file->address,
sys/kern/kern_linker.c
778
file->size);
sys/kern/kern_linker.c
780
TAILQ_REMOVE(&linker_files, file, link);
sys/kern/kern_linker.c
782
if (file->deps) {
sys/kern/kern_linker.c
783
for (i = 0; i < file->ndeps; i++)
sys/kern/kern_linker.c
784
linker_file_unload(file->deps[i], flags);
sys/kern/kern_linker.c
785
free(file->deps, M_LINKER);
sys/kern/kern_linker.c
786
file->deps = NULL;
sys/kern/kern_linker.c
788
while ((cp = STAILQ_FIRST(&file->common)) != NULL) {
sys/kern/kern_linker.c
789
STAILQ_REMOVE_HEAD(&file->common, link);
sys/kern/kern_linker.c
793
LINKER_UNLOAD(file);
sys/kern/kern_linker.c
795
if (file->filename) {
sys/kern/kern_linker.c
796
free(file->filename, M_LINKER);
sys/kern/kern_linker.c
797
file->filename = NULL;
sys/kern/kern_linker.c
799
if (file->pathname) {
sys/kern/kern_linker.c
800
free(file->pathname, M_LINKER);
sys/kern/kern_linker.c
801
file->pathname = NULL;
sys/kern/kern_linker.c
803
kobj_delete((kobj_t) file, M_LINKER);
sys/kern/kern_linker.c
808
linker_ctf_get(linker_file_t file, linker_ctf_t *lc)
sys/kern/kern_linker.c
810
return (LINKER_CTF_GET(file, lc));
sys/kern/kern_linker.c
843
linker_file_add_dependency(linker_file_t file, linker_file_t dep)
sys/kern/kern_linker.c
848
file->deps = realloc(file->deps, (file->ndeps + 1) * sizeof(*newdeps),
sys/kern/kern_linker.c
850
file->deps[file->ndeps] = dep;
sys/kern/kern_linker.c
851
file->ndeps++;
sys/kern/kern_linker.c
854
dep->filename, file->filename));
sys/kern/kern_linker.c
864
linker_file_lookup_set(linker_file_t file, const char *name,
sys/kern/kern_linker.c
869
return (LINKER_LOOKUP_SET(file, name, firstp, lastp, countp));
sys/kern/kern_linker.c
883
linker_file_lookup_symbol(linker_file_t file, const char *name, int deps)
sys/kern/kern_linker.c
891
sym = linker_file_lookup_symbol_internal(file, name, deps);
sys/kern/kern_linker.c
898
linker_file_lookup_symbol_internal(linker_file_t file, const char *name,
sys/kern/kern_linker.c
909
file, name, deps));
sys/kern/kern_linker.c
919
address = (file == linker_kernel_file) ? NULL : (caddr_t)file;
sys/kern/kern_linker.c
925
if (LINKER_LOOKUP_SYMBOL(file, name, &sym) == 0) {
sys/kern/kern_linker.c
926
LINKER_SYMBOL_VALUES(file, sym, &symval);
sys/kern/kern_linker.c
941
for (i = 0; i < file->ndeps; i++) {
sys/kern/kern_linker.c
943
file->deps[i], name, 0);
sys/kern/kern_linker.c
959
STAILQ_FOREACH(cp, &file->common, link) {
sys/kern/kern_linker.c
977
STAILQ_INSERT_TAIL(&file->common, cp, link);
sys/kern/kern_lock.c
1010
LOCK_LOG_LOCK("XUPGRADE", &lk->lock_object, 0, 0, file,
sys/kern/kern_lock.c
1013
LK_TRYWIT(flags), file, line);
sys/kern/kern_lock.c
1021
error = lockmgr_xlock_hard(lk, flags, ilk, file, line, lwa);
sys/kern/kern_lock.c
1030
const char *file, int line)
sys/kern/kern_lock.c
1046
file, line, flags & LK_INTERLOCK ? ilk : NULL);
sys/kern/kern_lock.c
1052
file, line, flags);
sys/kern/kern_lock.c
1055
return (lockmgr_slock_hard(lk, flags, ilk, file, line,
sys/kern/kern_lock.c
1062
LOP_EXCLUSIVE, file, line, flags & LK_INTERLOCK ?
sys/kern/kern_lock.c
1067
lockmgr_note_exclusive_acquire(lk, 0, 0, file, line,
sys/kern/kern_lock.c
1071
return (lockmgr_xlock_hard(lk, flags, ilk, file, line,
sys/kern/kern_lock.c
1077
return (lockmgr_upgrade(lk, flags, ilk, file, line, NULL));
sys/kern/kern_lock.c
1089
LK_PRIO_DEFAULT, LK_TIMO_DEFAULT, file, line));
sys/kern/kern_lock.c
1095
const char *file, int line)
sys/kern/kern_lock.c
1098
wakeupshlk(lk, file, line);
sys/kern/kern_lock.c
1105
const char *file, int line)
sys/kern/kern_lock.c
1215
lockmgr_slock(struct lock *lk, u_int flags, const char *file, int line)
sys/kern/kern_lock.c
1225
file, line, NULL);
sys/kern/kern_lock.c
1228
lockmgr_note_shared_acquire(lk, 0, 0, file, line, flags);
sys/kern/kern_lock.c
1232
return (lockmgr_slock_hard(lk, flags | LK_ADAPTIVE, NULL, file, line, NULL));
sys/kern/kern_lock.c
1236
lockmgr_xlock(struct lock *lk, u_int flags, const char *file, int line)
sys/kern/kern_lock.c
1245
LOP_EXCLUSIVE, file, line, NULL);
sys/kern/kern_lock.c
1248
lockmgr_note_exclusive_acquire(lk, 0, 0, file, line,
sys/kern/kern_lock.c
1253
return (lockmgr_xlock_hard(lk, flags | LK_ADAPTIVE, NULL, file, line, NULL));
sys/kern/kern_lock.c
1260
const char *file;
sys/kern/kern_lock.c
1263
file = __FILE__;
sys/kern/kern_lock.c
1266
_lockmgr_assert(lk, KA_LOCKED, file, line);
sys/kern/kern_lock.c
1269
lockmgr_note_shared_release(lk, file, line);
sys/kern/kern_lock.c
1273
return (lockmgr_sunlock_hard(lk, x, LK_RELEASE, NULL, file, line));
sys/kern/kern_lock.c
1277
lockmgr_note_exclusive_release(lk, file, line);
sys/kern/kern_lock.c
1281
return (lockmgr_xunlock_hard(lk, x, LK_RELEASE, NULL, file, line));
sys/kern/kern_lock.c
1289
const char *wmesg, int pri, int timo, const char *file, int line)
sys/kern/kern_lock.c
1319
("%s: Invalid requested operation @ %s:%d", __func__, file, line));
sys/kern/kern_lock.c
1323
__func__, file, line));
sys/kern/kern_lock.c
1326
__func__, file, line));
sys/kern/kern_lock.c
1329
lk, file, line));
sys/kern/kern_lock.c
1342
file, line);
sys/kern/kern_lock.c
1351
return (lockmgr_slock_hard(lk, flags, ilk, file, line, &lwa));
sys/kern/kern_lock.c
1355
return (lockmgr_upgrade(lk, flags, ilk, file, line, &lwa));
sys/kern/kern_lock.c
1358
return (lockmgr_xlock_hard(lk, flags, ilk, file, line, &lwa));
sys/kern/kern_lock.c
1361
_lockmgr_assert(lk, KA_XLOCKED, file, line);
sys/kern/kern_lock.c
1362
WITNESS_DOWNGRADE(&lk->lock_object, 0, file, line);
sys/kern/kern_lock.c
1371
__func__, iwmesg, file, line);
sys/kern/kern_lock.c
1387
LOCK_LOG_LOCK("XDOWNGRADE", &lk->lock_object, 0, 0, file, line);
sys/kern/kern_lock.c
1391
_lockmgr_assert(lk, KA_LOCKED, file, line);
sys/kern/kern_lock.c
1395
lockmgr_note_shared_release(lk, file, line);
sys/kern/kern_lock.c
1396
return (lockmgr_sunlock_hard(lk, x, flags, ilk, file, line));
sys/kern/kern_lock.c
1398
lockmgr_note_exclusive_release(lk, file, line);
sys/kern/kern_lock.c
1399
return (lockmgr_xunlock_hard(lk, x, flags, ilk, file, line));
sys/kern/kern_lock.c
1405
LOP_EXCLUSIVE, file, line, flags & LK_INTERLOCK ?
sys/kern/kern_lock.c
1416
__func__, iwmesg, file, line);
sys/kern/kern_lock.c
1573
false, contested, waittime, file, line);
sys/kern/kern_lock.c
1575
lk->lk_recurse, file, line);
sys/kern/kern_lock.c
1577
LK_TRYWIT(flags), file, line);
sys/kern/kern_lock.c
1595
_lockmgr_disown(struct lock *lk, const char *file, int line)
sys/kern/kern_lock.c
1603
_lockmgr_assert(lk, KA_XLOCKED, file, line);
sys/kern/kern_lock.c
1610
__func__, file, line);
sys/kern/kern_lock.c
1619
LOCK_LOG_LOCK("XDISOWN", &lk->lock_object, 0, 0, file, line);
sys/kern/kern_lock.c
1620
WITNESS_UNLOCK(&lk->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_lock.c
1704
_lockmgr_assert(const struct lock *lk, int what, const char *file, int line)
sys/kern/kern_lock.c
1727
witness_assert(&lk->lock_object, what, file, line);
sys/kern/kern_lock.c
1736
file, line);
sys/kern/kern_lock.c
1742
lk->lock_object.lo_name, file,
sys/kern/kern_lock.c
1746
lk->lock_object.lo_name, file, line);
sys/kern/kern_lock.c
1754
lk->lock_object.lo_name, file, line);
sys/kern/kern_lock.c
1758
lk->lock_object.lo_name, file, line);
sys/kern/kern_lock.c
1761
lk->lock_object.lo_name, file, line);
sys/kern/kern_lock.c
1766
lk->lock_object.lo_name, file, line);
sys/kern/kern_lock.c
1769
panic("Unknown lockmgr assertion: %d @ %s:%d\n", what, file,
sys/kern/kern_lock.c
201
uint64_t waittime, const char *file, int line, int flags)
sys/kern/kern_lock.c
205
waittime, file, line, LOCKSTAT_READER);
sys/kern/kern_lock.c
206
LOCK_LOG_LOCK("SLOCK", &lk->lock_object, 0, 0, file, line);
sys/kern/kern_lock.c
207
WITNESS_LOCK(&lk->lock_object, LK_TRYWIT(flags), file, line);
sys/kern/kern_lock.c
214
lockmgr_note_shared_release(struct lock *lk, const char *file, int line)
sys/kern/kern_lock.c
217
WITNESS_UNLOCK(&lk->lock_object, 0, file, line);
sys/kern/kern_lock.c
218
LOCK_LOG_LOCK("SUNLOCK", &lk->lock_object, 0, 0, file, line);
sys/kern/kern_lock.c
225
uint64_t waittime, const char *file, int line, int flags)
sys/kern/kern_lock.c
229
waittime, file, line, LOCKSTAT_WRITER);
sys/kern/kern_lock.c
230
LOCK_LOG_LOCK("XLOCK", &lk->lock_object, 0, lk->lk_recurse, file, line);
sys/kern/kern_lock.c
231
WITNESS_LOCK(&lk->lock_object, LOP_EXCLUSIVE | LK_TRYWIT(flags), file,
sys/kern/kern_lock.c
238
lockmgr_note_exclusive_release(struct lock *lk, const char *file, int line)
sys/kern/kern_lock.c
242
WITNESS_UNLOCK(&lk->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_lock.c
245
LOCK_LOG_LOCK("XUNLOCK", &lk->lock_object, 0, lk->lk_recurse, file,
sys/kern/kern_lock.c
311
wakeupshlk(struct lock *lk, const char *file, int line)
sys/kern/kern_lock.c
578
const char *file, int line, struct lockmgr_wait *lwa)
sys/kern/kern_lock.c
601
file, line, flags & LK_INTERLOCK ? ilk : NULL);
sys/kern/kern_lock.c
718
file, line, flags);
sys/kern/kern_lock.c
720
lockmgr_note_shared_acquire(lk, 0, 0, file, line,
sys/kern/kern_lock.c
75
#define _lockmgr_assert(lk, what, file, line)
sys/kern/kern_lock.c
763
const char *file, int line, struct lockmgr_wait *lwa)
sys/kern/kern_lock.c
787
LOP_EXCLUSIVE, file, line, flags & LK_INTERLOCK ?
sys/kern/kern_lock.c
814
"@ %s:%d\n", __func__, lk, file, line);
sys/kern/kern_lock.c
820
lk->lk_recurse, file, line);
sys/kern/kern_lock.c
822
LK_TRYWIT(flags), file, line);
sys/kern/kern_lock.c
956
file, line, flags);
sys/kern/kern_lock.c
958
lockmgr_note_exclusive_acquire(lk, 0, 0, file, line,
sys/kern/kern_lock.c
970
const char *file, int line, struct lockmgr_wait *lwa)
sys/kern/kern_lock.c
981
_lockmgr_assert(lk, KA_SLOCKED, file, line);
sys/kern/kern_lock.c
995
lockmgr_note_shared_release(lk, file, line);
sys/kern/kern_module.c
131
if (mod->file) {
sys/kern/kern_module.c
140
TAILQ_REMOVE(&mod->file->modules, mod, flink);
sys/kern/kern_module.c
141
TAILQ_INSERT_HEAD(&mod->file->modules, mod, flink);
sys/kern/kern_module.c
159
__func__, data->name, container->filename, newmod->file->filename);
sys/kern/kern_module.c
175
newmod->file = container;
sys/kern/kern_module.c
204
if (mod->file)
sys/kern/kern_module.c
205
TAILQ_REMOVE(&mod->file->modules, mod, flink);
sys/kern/kern_module.c
299
return (mod->file);
sys/kern/kern_module.c
49
struct linker_file *file; /* file which contains this module */
sys/kern/kern_mutex.c
1033
const char *file, int line)
sys/kern/kern_mutex.c
1094
__mtx_assert(const volatile uintptr_t *c, int what, const char *file, int line)
sys/kern/kern_mutex.c
1109
m->lock_object.lo_name, file, line);
sys/kern/kern_mutex.c
1113
m->lock_object.lo_name, file, line);
sys/kern/kern_mutex.c
1116
m->lock_object.lo_name, file, line);
sys/kern/kern_mutex.c
1122
m->lock_object.lo_name, file, line);
sys/kern/kern_mutex.c
1125
panic("unknown mtx_assert at %s:%d", file, line);
sys/kern/kern_mutex.c
278
__mtx_lock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
288
curthread, m, file, line));
sys/kern/kern_mutex.c
290
("mtx_lock() of destroyed mutex %p @ %s:%d", m, file, line));
sys/kern/kern_mutex.c
293
file, line));
sys/kern/kern_mutex.c
295
LOP_NEWORDER | LOP_EXCLUSIVE, file, line, NULL);
sys/kern/kern_mutex.c
300
_mtx_lock_sleep(m, v, opts, file, line);
sys/kern/kern_mutex.c
303
m, 0, 0, file, line);
sys/kern/kern_mutex.c
304
LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
sys/kern/kern_mutex.c
307
file, line);
sys/kern/kern_mutex.c
312
__mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
319
("mtx_unlock() of destroyed mutex %p @ %s:%d", m, file, line));
sys/kern/kern_mutex.c
322
file, line));
sys/kern/kern_mutex.c
323
WITNESS_UNLOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
324
LOCK_LOG_LOCK("UNLOCK", &m->lock_object, opts, m->mtx_recurse, file,
sys/kern/kern_mutex.c
329
__mtx_unlock_sleep(c, (uintptr_t)curthread, opts, file, line);
sys/kern/kern_mutex.c
331
__mtx_unlock(m, curthread, opts, file, line);
sys/kern/kern_mutex.c
337
__mtx_lock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
348
("mtx_lock_spin() of destroyed mutex %p @ %s:%d", m, file, line));
sys/kern/kern_mutex.c
351
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
356
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
359
file, line, NULL);
sys/kern/kern_mutex.c
365
_mtx_lock_spin(m, v, opts, file, line);
sys/kern/kern_mutex.c
368
m, 0, 0, file, line);
sys/kern/kern_mutex.c
370
__mtx_lock_spin(m, curthread, opts, file, line);
sys/kern/kern_mutex.c
372
LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
sys/kern/kern_mutex.c
374
WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
378
__mtx_trylock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
389
("mtx_trylock_spin() of destroyed mutex %p @ %s:%d", m, file,
sys/kern/kern_mutex.c
393
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
396
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
397
if (__mtx_trylock_spin(m, curthread, opts, file, line)) {
sys/kern/kern_mutex.c
398
LOCK_LOG_TRY("LOCK", &m->lock_object, opts, 1, file, line);
sys/kern/kern_mutex.c
399
WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
402
LOCK_LOG_TRY("LOCK", &m->lock_object, opts, 0, file, line);
sys/kern/kern_mutex.c
407
__mtx_unlock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/kern/kern_mutex.c
415
("mtx_unlock_spin() of destroyed mutex %p @ %s:%d", m, file,
sys/kern/kern_mutex.c
419
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
420
WITNESS_UNLOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
421
LOCK_LOG_LOCK("UNLOCK", &m->lock_object, opts, m->mtx_recurse, file,
sys/kern/kern_mutex.c
452
curthread, m, file, line));
sys/kern/kern_mutex.c
454
("mtx_trylock() of destroyed mutex %p @ %s:%d", m, file, line));
sys/kern/kern_mutex.c
457
file, line));
sys/kern/kern_mutex.c
481
LOCK_LOG_TRY("LOCK", &m->lock_object, opts, rval, file, line);
sys/kern/kern_mutex.c
484
file, line);
sys/kern/kern_mutex.c
488
m, contested, waittime, file, line);
sys/kern/kern_mutex.c
495
_mtx_trylock_flags_(volatile uintptr_t *c, int opts, const char *file, int line)
sys/kern/kern_mutex.c
511
__mtx_lock_sleep(volatile uintptr_t *c, uintptr_t v, int opts, const char *file,
sys/kern/kern_mutex.c
567
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
595
m->lock_object.lo_name, (void *)m->mtx_lock, file, line);
sys/kern/kern_mutex.c
708
waittime, file, line);
sys/kern/kern_mutex.c
721
const char *file, int line)
sys/kern/kern_mutex.c
816
contested, waittime, file, line);
sys/kern/kern_mutex.c
822
thread_lock_validate(struct mtx *m, int opts, const char *file, int line)
sys/kern/kern_mutex.c
826
("thread_lock() of destroyed mutex %p @ %s:%d", m, file, line));
sys/kern/kern_mutex.c
829
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
832
m->lock_object.lo_name, file, line));
sys/kern/kern_mutex.c
834
opts | LOP_NEWORDER | LOP_EXCLUSIVE, file, line, NULL);
sys/kern/kern_mutex.c
837
#define thread_lock_validate(m, opts, file, line) do { } while (0)
sys/kern/kern_mutex.c
843
_thread_lock(struct thread *td, int opts, const char *file, int line)
sys/kern/kern_mutex.c
858
thread_lock_validate(m, 0, file, line);
sys/kern/kern_mutex.c
864
WITNESS_LOCK(&m->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
872
thread_lock_flags_(td, opts, file, line);
sys/kern/kern_mutex.c
880
thread_lock_flags_(struct thread *td, int opts, const char *file, int line)
sys/kern/kern_mutex.c
928
thread_lock_validate(m, opts, file, line);
sys/kern/kern_mutex.c
959
LOCK_LOG_LOCK("LOCK", &m->lock_object, opts, m->mtx_recurse, file,
sys/kern/kern_mutex.c
961
WITNESS_LOCK(&m->lock_object, opts | LOP_EXCLUSIVE, file, line);
sys/kern/kern_mutex.c
971
waittime, file, line);
sys/kern/kern_rangelock.c
814
_rangelock_cookie_assert(void *cookie, int what, const char *file, int line)
sys/kern/kern_rmlock.c
594
_rm_wlock_debug(struct rmlock *rm, const char *file, int line)
sys/kern/kern_rmlock.c
602
curthread, rm, file, line));
sys/kern/kern_rmlock.c
604
("rm_wlock() of destroyed rmlock %p @ %s:%d", rm, file, line));
sys/kern/kern_rmlock.c
605
_rm_assert(rm, RA_UNLOCKED, file, line);
sys/kern/kern_rmlock.c
608
file, line, NULL);
sys/kern/kern_rmlock.c
612
LOCK_LOG_LOCK("RMWLOCK", &rm->lock_object, 0, 0, file, line);
sys/kern/kern_rmlock.c
613
WITNESS_LOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_rmlock.c
618
_rm_wunlock_debug(struct rmlock *rm, const char *file, int line)
sys/kern/kern_rmlock.c
625
("rm_wunlock() of destroyed rmlock %p @ %s:%d", rm, file, line));
sys/kern/kern_rmlock.c
626
_rm_assert(rm, RA_WLOCKED, file, line);
sys/kern/kern_rmlock.c
627
WITNESS_UNLOCK(&rm->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_rmlock.c
628
LOCK_LOG_LOCK("RMWUNLOCK", &rm->lock_object, 0, 0, file, line);
sys/kern/kern_rmlock.c
635
int trylock, const char *file, int line)
sys/kern/kern_rmlock.c
647
rm, file, line));
sys/kern/kern_rmlock.c
653
curthread, rm, file, line));
sys/kern/kern_rmlock.c
655
("rm_rlock() of destroyed rmlock %p @ %s:%d", rm, file, line));
sys/kern/kern_rmlock.c
659
rm->lock_object.lo_name, file, line));
sys/kern/kern_rmlock.c
661
LOP_NEWORDER | LOP_NOSLEEP, file, line, NULL);
sys/kern/kern_rmlock.c
666
LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 1, file,
sys/kern/kern_rmlock.c
669
LOCK_LOG_LOCK("RMRLOCK", &rm->lock_object, 0, 0, file,
sys/kern/kern_rmlock.c
671
WITNESS_LOCK(&rm->lock_object, LOP_NOSLEEP, file, line);
sys/kern/kern_rmlock.c
675
LOCK_LOG_TRY("RMRLOCK", &rm->lock_object, 0, 0, file, line);
sys/kern/kern_rmlock.c
682
const char *file, int line)
sys/kern/kern_rmlock.c
689
("rm_runlock() of destroyed rmlock %p @ %s:%d", rm, file, line));
sys/kern/kern_rmlock.c
690
_rm_assert(rm, RA_RLOCKED, file, line);
sys/kern/kern_rmlock.c
691
WITNESS_UNLOCK(&rm->lock_object, 0, file, line);
sys/kern/kern_rmlock.c
692
LOCK_LOG_LOCK("RMRUNLOCK", &rm->lock_object, 0, 0, file, line);
sys/kern/kern_rmlock.c
704
_rm_wlock_debug(struct rmlock *rm, const char *file, int line)
sys/kern/kern_rmlock.c
711
_rm_wunlock_debug(struct rmlock *rm, const char *file, int line)
sys/kern/kern_rmlock.c
719
int trylock, const char *file, int line)
sys/kern/kern_rmlock.c
727
const char *file, int line)
sys/kern/kern_rmlock.c
73
#define _rm_assert(c, what, file, line)
sys/kern/kern_rmlock.c
746
_rm_assert(const struct rmlock *rm, int what, const char *file, int line)
sys/kern/kern_rmlock.c
766
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
769
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
780
"read " : "", file, line);
sys/kern/kern_rmlock.c
784
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
787
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
792
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
797
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
805
rm->lock_object.lo_name, file, line);
sys/kern/kern_rmlock.c
808
panic("Unknown rm lock assertion: %d @ %s:%d", what, file,
sys/kern/kern_rwlock.c
1208
waittime, file, line, LOCKSTAT_WRITER);
sys/kern/kern_rwlock.c
1306
("rw_try_upgrade() of destroyed rwlock %p @ %s:%d", rw, file,
sys/kern/kern_rwlock.c
1308
__rw_assert(&rw->rw_lock, RA_RLOCKED, file, line);
sys/kern/kern_rwlock.c
1357
LOCK_LOG_TRY("WUPGRADE", &rw->lock_object, 0, success, file, line);
sys/kern/kern_rwlock.c
1361
file, line);
sys/kern/kern_rwlock.c
1368
__rw_try_upgrade(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
1390
("rw_downgrade() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
1391
__rw_assert(&rw->rw_lock, RA_WLOCKED | RA_NOTRECURSED, file, line);
sys/kern/kern_rwlock.c
1397
WITNESS_DOWNGRADE(&rw->lock_object, 0, file, line);
sys/kern/kern_rwlock.c
1439
LOCK_LOG_LOCK("WDOWNGRADE", &rw->lock_object, 0, 0, file, line);
sys/kern/kern_rwlock.c
1444
__rw_downgrade(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
1463
__rw_assert(const volatile uintptr_t *c, int what, const char *file, int line)
sys/kern/kern_rwlock.c
1480
witness_assert(&rw->lock_object, what, file, line);
sys/kern/kern_rwlock.c
1492
"read " : "", file, line);
sys/kern/kern_rwlock.c
1498
rw->lock_object.lo_name, file,
sys/kern/kern_rwlock.c
1502
rw->lock_object.lo_name, file, line);
sys/kern/kern_rwlock.c
1511
rw->lock_object.lo_name, file, line);
sys/kern/kern_rwlock.c
1515
rw->lock_object.lo_name, file, line);
sys/kern/kern_rwlock.c
1518
rw->lock_object.lo_name, file, line);
sys/kern/kern_rwlock.c
1522
witness_assert(&rw->lock_object, what, file, line);
sys/kern/kern_rwlock.c
1530
rw->lock_object.lo_name, file, line);
sys/kern/kern_rwlock.c
1534
panic("Unknown rw lock assertion: %d @ %s:%d", what, file,
sys/kern/kern_rwlock.c
159
#define __rw_assert(c, what, file, line)
sys/kern/kern_rwlock.c
286
_rw_wlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
296
curthread, rw, file, line));
sys/kern/kern_rwlock.c
298
("rw_wlock() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
299
WITNESS_CHECKORDER(&rw->lock_object, LOP_NEWORDER | LOP_EXCLUSIVE, file,
sys/kern/kern_rwlock.c
304
_rw_wlock_hard(rw, v, file, line);
sys/kern/kern_rwlock.c
307
0, 0, file, line, LOCKSTAT_WRITER);
sys/kern/kern_rwlock.c
309
LOCK_LOG_LOCK("WLOCK", &rw->lock_object, 0, rw->rw_recurse, file, line);
sys/kern/kern_rwlock.c
310
WITNESS_LOCK(&rw->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_rwlock.c
329
curthread, rw, file, line));
sys/kern/kern_rwlock.c
331
("rw_try_wlock() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
350
LOCK_LOG_TRY("WLOCK", &rw->lock_object, 0, rval, file, line);
sys/kern/kern_rwlock.c
353
file, line);
sys/kern/kern_rwlock.c
356
rw, 0, 0, file, line, LOCKSTAT_WRITER);
sys/kern/kern_rwlock.c
363
__rw_try_wlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
372
_rw_wunlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
379
("rw_wunlock() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
380
__rw_assert(c, RA_WLOCKED, file, line);
sys/kern/kern_rwlock.c
381
WITNESS_UNLOCK(&rw->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_rwlock.c
382
LOCK_LOG_LOCK("WUNLOCK", &rw->lock_object, 0, rw->rw_recurse, file,
sys/kern/kern_rwlock.c
386
_rw_wunlock_hard(rw, (uintptr_t)curthread, file, line);
sys/kern/kern_rwlock.c
388
__rw_wunlock(rw, curthread, file, line);
sys/kern/kern_rwlock.c
671
waittime, file, line, LOCKSTAT_READER);
sys/kern/kern_rwlock.c
685
td, rw, file, line));
sys/kern/kern_rwlock.c
687
("rw_rlock() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
690
rw, file, line));
sys/kern/kern_rwlock.c
691
WITNESS_CHECKORDER(&rw->lock_object, LOP_NEWORDER, file, line, NULL);
sys/kern/kern_rwlock.c
699
file, line);
sys/kern/kern_rwlock.c
701
LOCK_LOG_LOCK("RLOCK", &rw->lock_object, 0, 0, file, line);
sys/kern/kern_rwlock.c
702
WITNESS_LOCK(&rw->lock_object, 0, file, line);
sys/kern/kern_rwlock.c
707
__rw_rlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
725
curthread, rw, file, line));
sys/kern/kern_rwlock.c
730
("rw_try_rlock() of destroyed rwlock %p @ %s:%d", rw, file,
sys/kern/kern_rwlock.c
735
LOCK_LOG_TRY("RLOCK", &rw->lock_object, 0, 1, file,
sys/kern/kern_rwlock.c
737
WITNESS_LOCK(&rw->lock_object, LOP_TRYLOCK, file, line);
sys/kern/kern_rwlock.c
739
rw, 0, 0, file, line, LOCKSTAT_READER);
sys/kern/kern_rwlock.c
746
LOCK_LOG_TRY("RLOCK", &rw->lock_object, 0, 0, file, line);
sys/kern/kern_rwlock.c
751
__rw_try_rlock(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
862
("rw_runlock() of destroyed rwlock %p @ %s:%d", rw, file, line));
sys/kern/kern_rwlock.c
863
__rw_assert(&rw->rw_lock, RA_RLOCKED, file, line);
sys/kern/kern_rwlock.c
864
WITNESS_UNLOCK(&rw->lock_object, 0, file, line);
sys/kern/kern_rwlock.c
865
LOCK_LOG_LOCK("RUNLOCK", &rw->lock_object, 0, 0, file, line);
sys/kern/kern_rwlock.c
880
_rw_runlock_cookie(volatile uintptr_t *c, const char *file, int line)
sys/kern/kern_rwlock.c
971
__func__, rw, file, line));
sys/kern/kern_rwlock.c
981
rw->lock_object.lo_name, (void *)rw->rw_lock, file, line);
sys/kern/kern_sema.c
102
cv_wmesg(&sema->sema_cv), sema->sema_value, file, line);
sys/kern/kern_sema.c
108
_sema_timedwait(struct sema *sema, int timo, const char *file, int line)
sys/kern/kern_sema.c
131
cv_wmesg(&sema->sema_cv), sema->sema_value, file, line);
sys/kern/kern_sema.c
134
cv_wmesg(&sema->sema_cv), file, line);
sys/kern/kern_sema.c
142
_sema_trywait(struct sema *sema, const char *file, int line)
sys/kern/kern_sema.c
154
cv_wmesg(&sema->sema_cv), sema->sema_value, file, line);
sys/kern/kern_sema.c
159
cv_wmesg(&sema->sema_cv), file, line);
sys/kern/kern_sema.c
75
_sema_post(struct sema *sema, const char *file, int line)
sys/kern/kern_sema.c
84
cv_wmesg(&sema->sema_cv), sema->sema_value, file, line);
sys/kern/kern_sema.c
90
_sema_wait(struct sema *sema, const char *file, int line)
sys/kern/kern_sendfile.c
1202
struct file *fp;
sys/kern/kern_sendfile.c
520
sendfile_getobj(struct thread *td, struct file *fp, vm_object_t *obj_res,
sys/kern/kern_sendfile.c
598
sendfile_getsock(struct thread *td, int s, struct file **sock_fp,
sys/kern/kern_sendfile.c
699
vn_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
sys/kern/kern_sendfile.c
703
struct file *sock_fp;
sys/kern/kern_sx.c
1253
contested, waittime, file, line, LOCKSTAT_READER);
sys/kern/kern_sx.c
1269
curthread, sx, file, line));
sys/kern/kern_sx.c
1271
("sx_slock() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
1272
WITNESS_CHECKORDER(&sx->lock_object, LOP_NEWORDER, file, line, NULL);
sys/kern/kern_sx.c
1282
file, line);
sys/kern/kern_sx.c
1284
LOCK_LOG_LOCK("SLOCK", &sx->lock_object, 0, 0, file, line);
sys/kern/kern_sx.c
1285
WITNESS_LOCK(&sx->lock_object, 0, file, line);
sys/kern/kern_sx.c
1292
_sx_slock(struct sx *sx, int opts, const char *file, int line)
sys/kern/kern_sx.c
1373
("sx_sunlock() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
1374
_sx_assert(sx, SA_SLOCKED, file, line);
sys/kern/kern_sx.c
1375
WITNESS_UNLOCK(&sx->lock_object, 0, file, line);
sys/kern/kern_sx.c
1376
LOCK_LOG_LOCK("SUNLOCK", &sx->lock_object, 0, 0, file, line);
sys/kern/kern_sx.c
139
#define _sx_assert(sx, what, file, line)
sys/kern/kern_sx.c
1390
_sx_sunlock(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
1407
_sx_assert(const struct sx *sx, int what, const char *file, int line)
sys/kern/kern_sx.c
1427
witness_assert(&sx->lock_object, what, file, line);
sys/kern/kern_sx.c
1439
file, line);
sys/kern/kern_sx.c
1445
sx->lock_object.lo_name, file,
sys/kern/kern_sx.c
1449
sx->lock_object.lo_name, file, line);
sys/kern/kern_sx.c
1458
sx->lock_object.lo_name, file, line);
sys/kern/kern_sx.c
1462
sx->lock_object.lo_name, file, line);
sys/kern/kern_sx.c
1465
sx->lock_object.lo_name, file, line);
sys/kern/kern_sx.c
1469
witness_assert(&sx->lock_object, what, file, line);
sys/kern/kern_sx.c
1478
sx->lock_object.lo_name, file, line);
sys/kern/kern_sx.c
1482
panic("Unknown sx lock assertion: %d @ %s:%d", what, file,
sys/kern/kern_sx.c
282
curthread, sx, file, line));
sys/kern/kern_sx.c
287
("sx_try_slock() of destroyed sx %p @ %s:%d", sx, file,
sys/kern/kern_sx.c
292
LOCK_LOG_TRY("SLOCK", &sx->lock_object, 0, 1, file, line);
sys/kern/kern_sx.c
293
WITNESS_LOCK(&sx->lock_object, LOP_TRYLOCK, file, line);
sys/kern/kern_sx.c
295
sx, 0, 0, file, line, LOCKSTAT_READER);
sys/kern/kern_sx.c
302
LOCK_LOG_TRY("SLOCK", &sx->lock_object, 0, 0, file, line);
sys/kern/kern_sx.c
307
sx_try_slock_(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
314
_sx_xlock(struct sx *sx, int opts, const char *file, int line)
sys/kern/kern_sx.c
322
curthread, sx, file, line));
sys/kern/kern_sx.c
324
("sx_xlock() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
325
WITNESS_CHECKORDER(&sx->lock_object, LOP_NEWORDER | LOP_EXCLUSIVE, file,
sys/kern/kern_sx.c
333
0, 0, file, line, LOCKSTAT_WRITER);
sys/kern/kern_sx.c
336
file, line);
sys/kern/kern_sx.c
337
WITNESS_LOCK(&sx->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_sx.c
359
curthread, sx, file, line));
sys/kern/kern_sx.c
361
("sx_try_xlock() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
380
LOCK_LOG_TRY("XLOCK", &sx->lock_object, 0, rval, file, line);
sys/kern/kern_sx.c
383
file, line);
sys/kern/kern_sx.c
386
sx, 0, 0, file, line, LOCKSTAT_WRITER);
sys/kern/kern_sx.c
394
sx_try_xlock_(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
401
_sx_xunlock(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
405
("sx_xunlock() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
406
_sx_assert(sx, SA_XLOCKED, file, line);
sys/kern/kern_sx.c
407
WITNESS_UNLOCK(&sx->lock_object, LOP_EXCLUSIVE, file, line);
sys/kern/kern_sx.c
408
LOCK_LOG_LOCK("XUNLOCK", &sx->lock_object, 0, sx->sx_recurse, file,
sys/kern/kern_sx.c
411
_sx_xunlock_hard(sx, (uintptr_t)curthread, file, line);
sys/kern/kern_sx.c
413
__sx_xunlock(sx, curthread, file, line);
sys/kern/kern_sx.c
434
("sx_try_upgrade() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
435
_sx_assert(sx, SA_SLOCKED, file, line);
sys/kern/kern_sx.c
454
LOCK_LOG_TRY("XUPGRADE", &sx->lock_object, 0, success, file, line);
sys/kern/kern_sx.c
458
file, line);
sys/kern/kern_sx.c
465
sx_try_upgrade_(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
483
("sx_downgrade() of destroyed sx %p @ %s:%d", sx, file, line));
sys/kern/kern_sx.c
484
_sx_assert(sx, SA_XLOCKED | SA_NOTRECURSED, file, line);
sys/kern/kern_sx.c
490
WITNESS_DOWNGRADE(&sx->lock_object, 0, file, line);
sys/kern/kern_sx.c
529
LOCK_LOG_LOCK("XDOWNGRADE", &sx->lock_object, 0, 0, file, line);
sys/kern/kern_sx.c
534
sx_downgrade_(struct sx *sx, const char *file, int line)
sys/kern/kern_sx.c
622
sx, file, line));
sys/kern/kern_sx.c
632
sx->lock_object.lo_name, (void *)sx->sx_lock, file, line);
sys/kern/kern_sx.c
904
contested, waittime, file, line, LOCKSTAT_WRITER);
sys/kern/kern_umtx.c
4605
struct file *fp;
sys/kern/kern_vnodedumper.c
64
struct file *fp;
sys/kern/link_elf.c
1385
link_elf_unload_file(linker_file_t file)
sys/kern/link_elf.c
1387
elf_file_t ef = (elf_file_t) file;
sys/kern/link_elf.c
1411
elf_cpu_unload_file(file);
sys/kern/link_elf.c
1838
link_elf_each_function_name(linker_file_t file,
sys/kern/link_elf.c
1841
elf_file_t ef = (elf_file_t)file;
sys/kern/link_elf.c
1859
link_elf_each_function_nameval(linker_file_t file,
sys/kern/link_elf.c
1863
elf_file_t ef = (elf_file_t)file;
sys/kern/link_elf.c
1872
error = link_elf_debug_symbol_values(file,
sys/kern/link_elf.c
1875
error = callback(file, i, &symval, opaque);
sys/kern/link_elf_obj.c
1284
link_elf_unload_file(linker_file_t file)
sys/kern/link_elf_obj.c
1286
elf_file_t ef = (elf_file_t) file;
sys/kern/link_elf_obj.c
1289
link_elf_invoke_dtors(file);
sys/kern/link_elf_obj.c
1292
elf_cpu_unload_file(file);
sys/kern/link_elf_obj.c
1331
if (file->pathname != NULL)
sys/kern/link_elf_obj.c
1332
preload_delete_name(file->pathname);
sys/kern/link_elf_obj.c
1666
link_elf_each_function_name(linker_file_t file,
sys/kern/link_elf_obj.c
1669
elf_file_t ef = (elf_file_t)file;
sys/kern/link_elf_obj.c
1687
link_elf_each_function_nameval(linker_file_t file,
sys/kern/link_elf_obj.c
1691
elf_file_t ef = (elf_file_t)file;
sys/kern/link_elf_obj.c
1700
error = link_elf_debug_symbol_values(file,
sys/kern/link_elf_obj.c
1703
error = callback(file, i, &symval, opaque);
sys/kern/subr_epoch.c
223
const char *file, int line)
sys/kern/subr_epoch.c
232
epoch->e_name, file, line,
sys/kern/subr_epoch.c
236
et->et_file = file;
sys/kern/subr_epoch.c
244
const char *file, int line)
sys/kern/subr_epoch.c
251
file, line,
sys/kern/subr_epoch.c
261
file, line);
sys/kern/subr_epoch.c
476
epoch_trace_enter(td, epoch, et, file, line);
sys/kern/subr_epoch.c
539
epoch_trace_exit(td, epoch, et, file, line);
sys/kern/subr_firmware.c
102
linker_file_t file; /* module file, if autoloaded */
sys/kern/subr_firmware.c
366
if (fp == NULL || fp->file != NULL) {
sys/kern/subr_firmware.c
375
fp->file = result; /* record the module identity */
sys/kern/subr_firmware.c
468
if (fp->file)
sys/kern/subr_firmware.c
518
if (((fp->flags & FW_BINARY) == 0 && fp->file == NULL) ||
sys/kern/subr_firmware.c
550
(void)linker_release_module(NULL, NULL, fp->file);
sys/kern/subr_firmware.c
572
caddr_t file;
sys/kern/subr_firmware.c
581
file = 0;
sys/kern/subr_firmware.c
583
file = preload_search_next_name(file);
sys/kern/subr_firmware.c
584
if (file == 0)
sys/kern/subr_firmware.c
586
type = (const char *)preload_search_info(file, MODINFO_TYPE);
sys/kern/subr_firmware.c
589
name = preload_search_info(file, MODINFO_NAME);
sys/kern/subr_firmware.c
590
addr = preload_fetch_addr(file);
sys/kern/subr_firmware.c
591
size = preload_fetch_size(file);
sys/kern/subr_lock.c
219
const char *file;
sys/kern/subr_lock.c
375
for (p = lp->file; p != NULL && strncmp(p, "../", 3) == 0; p += 3);
sys/kern/subr_lock.c
396
dst->file = match->file;
sys/kern/subr_lock.c
406
if (l->file != match->file || l->line != match->line ||
sys/kern/subr_lock.c
516
lock_profile_lookup(struct lock_object *lo, int spin, const char *file,
sys/kern/subr_lock.c
526
p = file;
sys/kern/subr_lock.c
534
if (lp->line == line && lp->file == p &&
sys/kern/subr_lock.c
544
lp->file = p;
sys/kern/subr_lock.c
553
lock_profile_object_lookup(struct lock_object *lo, int spin, const char *file,
sys/kern/subr_lock.c
562
if (l->lpo_obj == lo && l->lpo_file == file &&
sys/kern/subr_lock.c
573
l->lpo_file = file;
sys/kern/subr_lock.c
583
int contested, uint64_t waittime, const char *file, int line)
sys/kern/subr_lock.c
609
l = lock_profile_object_lookup(lo, spin, file, line);
sys/kern/subr_stack.c
225
stack_ktr(u_int mask, const char *file, int line, const struct stack *st,
sys/kern/subr_stack.c
240
ktr_tracepoint(mask, file, line, "#%d %p at %s+%#lx",
sys/kern/subr_witness.c
1353
witness_checkorder(struct lock_object *lock, int flags, const char *file,
sys/kern/subr_witness.c
1382
fixup_filename(file), line);
sys/kern/subr_witness.c
1420
fixup_filename(file), line);
sys/kern/subr_witness.c
1429
fixup_filename(file), line);
sys/kern/subr_witness.c
1444
fixup_filename(file), line);
sys/kern/subr_witness.c
1448
fixup_filename(file), line);
sys/kern/subr_witness.c
1506
fixup_filename(file), line);
sys/kern/subr_witness.c
1682
w->w_class->lc_name, fixup_filename(file),
sys/kern/subr_witness.c
1699
w->w_class->lc_name, fixup_filename(file),
sys/kern/subr_witness.c
1784
witness_lock(struct lock_object *lock, int flags, const char *file, int line)
sys/kern/subr_witness.c
1804
w->w_file = file;
sys/kern/subr_witness.c
1831
instance->li_file = file;
sys/kern/subr_witness.c
1842
witness_upgrade(struct lock_object *lock, int flags, const char *file, int line)
sys/kern/subr_witness.c
1856
fixup_filename(file), line);
sys/kern/subr_witness.c
1861
fixup_filename(file), line);
sys/kern/subr_witness.c
1867
fixup_filename(file), line);
sys/kern/subr_witness.c
1875
fixup_filename(file), line);
sys/kern/subr_witness.c
1881
fixup_filename(file), line);
sys/kern/subr_witness.c
1887
witness_downgrade(struct lock_object *lock, int flags, const char *file,
sys/kern/subr_witness.c
1902
fixup_filename(file), line);
sys/kern/subr_witness.c
1907
fixup_filename(file), line);
sys/kern/subr_witness.c
1913
fixup_filename(file), line);
sys/kern/subr_witness.c
1921
fixup_filename(file), line);
sys/kern/subr_witness.c
1927
fixup_filename(file), line);
sys/kern/subr_witness.c
1933
witness_unlock(struct lock_object *lock, int flags, const char *file, int line)
sys/kern/subr_witness.c
1968
lock->lo_name, fixup_filename(file), line);
sys/kern/subr_witness.c
1979
class->lc_name, lock->lo_name, fixup_filename(file), line);
sys/kern/subr_witness.c
1987
class->lc_name, lock->lo_name, fixup_filename(file), line);
sys/kern/subr_witness.c
2004
class->lc_name, lock->lo_name, fixup_filename(file), line);
sys/kern/subr_witness.c
2675
witness_restore(struct lock_object *lock, const char *file, int line)
sys/kern/subr_witness.c
2703
lock->lo_witness->w_file = file;
sys/kern/subr_witness.c
2707
instance->li_file = file;
sys/kern/subr_witness.c
2738
witness_assert(const struct lock_object *lock, int flags, const char *file,
sys/kern/subr_witness.c
2753
fixup_filename(file), line);
sys/kern/subr_witness.c
2767
fixup_filename(file), line);
sys/kern/subr_witness.c
2775
fixup_filename(file), line);
sys/kern/subr_witness.c
2781
fixup_filename(file), line);
sys/kern/subr_witness.c
2786
fixup_filename(file), line);
sys/kern/subr_witness.c
2791
fixup_filename(file), line);
sys/kern/subr_witness.c
2795
fixup_filename(file), line);
sys/kern/subr_witness.c
765
fixup_filename(const char *file)
sys/kern/subr_witness.c
767
if (file == NULL)
sys/kern/subr_witness.c
769
while (strncmp(file, "../", 3) == 0)
sys/kern/subr_witness.c
770
file += 3;
sys/kern/subr_witness.c
771
return (file);
sys/kern/sys_eventfd.c
110
eventfd_create_file(struct thread *td, struct file *fp, uint32_t initval,
sys/kern/sys_eventfd.c
135
eventfd_get(struct file *fp)
sys/kern/sys_eventfd.c
182
eventfd_close(struct file *fp, struct thread *td)
sys/kern/sys_eventfd.c
192
eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_eventfd.c
234
eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_eventfd.c
276
eventfd_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/sys_eventfd.c
298
eventfd_kqfilter(struct file *fp, struct knote *kn)
sys/kern/sys_eventfd.c
359
eventfd_ioctl(struct file *fp, u_long cmd, void *data,
sys/kern/sys_eventfd.c
372
eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred)
sys/kern/sys_eventfd.c
380
eventfd_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/sys_generic.c
123
static int dofileread(struct thread *, int, struct file *, struct uio *,
sys/kern/sys_generic.c
125
static int dofilewrite(struct thread *, int, struct file *, struct uio *,
sys/kern/sys_generic.c
1441
struct file *fp;
sys/kern/sys_generic.c
1487
struct file *fp;
sys/kern/sys_generic.c
1706
struct file *fp;
sys/kern/sys_generic.c
1773
struct file *fp;
sys/kern/sys_generic.c
2174
struct file *fp1, *fp2;
sys/kern/sys_generic.c
2236
file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td)
sys/kern/sys_generic.c
284
struct file *fp;
sys/kern/sys_generic.c
323
struct file *fp;
sys/kern/sys_generic.c
345
dofileread(struct thread *td, int fd, struct file *fp, struct uio *auio,
sys/kern/sys_generic.c
486
struct file *fp;
sys/kern/sys_generic.c
525
struct file *fp;
sys/kern/sys_generic.c
547
dofilewrite(struct thread *td, int fd, struct file *fp, struct uio *auio,
sys/kern/sys_generic.c
601
struct file *fp;
sys/kern/sys_generic.c
730
struct file *fp;
sys/kern/sys_generic.c
846
struct file *fp;
sys/kern/sys_generic.c
901
struct file *fp;
sys/kern/sys_generic.c
955
struct file *fp;
sys/kern/sys_pipe.c
1144
pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_pipe.c
1409
pipe_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/kern/sys_pipe.c
1427
pipe_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred,
sys/kern/sys_pipe.c
1498
pipe_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/sys_pipe.c
1576
pipe_stat(struct file *fp, struct stat *ub, struct ucred *active_cred)
sys/kern/sys_pipe.c
1623
pipe_close(struct file *fp, struct thread *td)
sys/kern/sys_pipe.c
1635
pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td)
sys/kern/sys_pipe.c
1649
pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/sys_pipe.c
1664
pipe_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/sys_pipe.c
1788
pipe_kqfilter(struct file *fp, struct knote *kn)
sys/kern/sys_pipe.c
1849
struct file *fp = kn->kn_fp;
sys/kern/sys_pipe.c
475
struct file *rf, *wf;
sys/kern/sys_pipe.c
753
pipe_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_procdesc.c
126
struct file *fp;
sys/kern/sys_procdesc.c
154
procdesc_pid(struct file *fp_procdesc)
sys/kern/sys_procdesc.c
172
struct file *fp;
sys/kern/sys_procdesc.c
236
procdesc_falloc(struct thread *td, struct file **resultfp, int *resultfd,
sys/kern/sys_procdesc.c
252
procdesc_finit(struct procdesc *pdp, struct file *fp)
sys/kern/sys_procdesc.c
356
procdesc_close(struct file *fp, struct thread *td)
sys/kern/sys_procdesc.c
430
procdesc_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/sys_procdesc.c
501
procdesc_kqfilter(struct file *fp, struct knote *kn)
sys/kern/sys_procdesc.c
518
procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/sys_procdesc.c
557
procdesc_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/kern/sys_procdesc.c
569
procdesc_cmp(struct file *fp1, struct file *fp2, struct thread *td)
sys/kern/sys_process.c
857
struct file *fp;
sys/kern/sys_socket.c
120
soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_socket.c
136
soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_socket.c
152
soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred,
sys/kern/sys_socket.c
282
soo_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/sys_socket.c
297
soo_kqfilter(struct file *fp, struct knote *kn)
sys/kern/sys_socket.c
305
soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred)
sys/kern/sys_socket.c
353
soo_close(struct file *fp, struct thread *td)
sys/kern/sys_socket.c
368
soo_fdclose(struct file *fp, int fd __unused, struct thread *td)
sys/kern/sys_socket.c
378
soo_chmod(struct file *fp, mode_t mode, struct ucred *cred, struct thread *td)
sys/kern/sys_socket.c
392
soo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/sys_socket.c
625
struct file *fp = job->fd_file;
sys/kern/sys_socket.c
823
soo_aio_queue(struct file *fp, struct kaiocb *job)
sys/kern/sys_timerfd.c
191
timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/sys_timerfd.c
238
timerfd_ioctl(struct file *fp, u_long cmd, void *data,
sys/kern/sys_timerfd.c
259
timerfd_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/sys_timerfd.c
303
timerfd_kqfilter(struct file *fp, struct knote *kn)
sys/kern/sys_timerfd.c
318
timerfd_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/sys_timerfd.c
339
timerfd_close(struct file *fp, struct thread *td)
sys/kern/sys_timerfd.c
358
timerfd_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/kern/sys_timerfd.c
437
struct file *fp;
sys/kern/sys_timerfd.c
495
struct file *fp;
sys/kern/sys_timerfd.c
520
struct file *fp;
sys/kern/systrace_args.c
1370
uarg[a++] = (intptr_t)p->file; /* const char * */
sys/kern/systrace_args.c
1384
uarg[a++] = (intptr_t)p->file; /* const char * */
sys/kern/tty.c
2122
struct file *fp;
sys/kern/tty_pts.c
110
ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/tty_pts.c
184
ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/tty_pts.c
257
ptsdev_ioctl(struct file *fp, u_long cmd, void *data,
sys/kern/tty_pts.c
384
ptsdev_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/tty_pts.c
441
struct file *fp = kn->kn_fp;
sys/kern/tty_pts.c
451
struct file *fp = kn->kn_fp;
sys/kern/tty_pts.c
467
struct file *fp = kn->kn_fp;
sys/kern/tty_pts.c
477
struct file *fp = kn->kn_fp;
sys/kern/tty_pts.c
504
ptsdev_kqfilter(struct file *fp, struct knote *kn)
sys/kern/tty_pts.c
531
ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/tty_pts.c
567
ptsdev_close(struct file *fp, struct thread *td)
sys/kern/tty_pts.c
588
ptsdev_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/tty_pts.c
732
pts_alloc(int fflags, struct thread *td, struct file *fp)
sys/kern/tty_pts.c
785
pts_alloc_external(int fflags, struct thread *td, struct file *fp,
sys/kern/tty_pts.c
835
struct file *fp;
sys/kern/uipc_mqueue.c
1131
struct file *a_fp;
sys/kern/uipc_mqueue.c
2014
struct file *fp;
sys/kern/uipc_mqueue.c
2174
struct file **);
sys/kern/uipc_mqueue.c
2181
struct file **fpp, struct mqfs_node **ppn, struct mqueue **pmq)
sys/kern/uipc_mqueue.c
2202
getmq(struct thread *td, int fd, struct file **fpp, struct mqfs_node **ppn,
sys/kern/uipc_mqueue.c
2211
getmq_read(struct thread *td, int fd, struct file **fpp,
sys/kern/uipc_mqueue.c
2220
getmq_write(struct thread *td, int fd, struct file **fpp,
sys/kern/uipc_mqueue.c
2233
struct file *fp;
sys/kern/uipc_mqueue.c
2284
struct file *fp;
sys/kern/uipc_mqueue.c
2321
struct file *fp;
sys/kern/uipc_mqueue.c
2359
struct file *fp, *fp2;
sys/kern/uipc_mqueue.c
2477
struct file *fp;
sys/kern/uipc_mqueue.c
2497
mqf_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/uipc_mqueue.c
2525
mqf_close(struct file *fp, struct thread *td)
sys/kern/uipc_mqueue.c
2539
mqf_fdclose(struct file *fp, int fd, struct thread *td)
sys/kern/uipc_mqueue.c
2566
mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred)
sys/kern/uipc_mqueue.c
2584
mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/uipc_mqueue.c
2604
mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/uipc_mqueue.c
2629
mqf_kqfilter(struct file *fp, struct knote *kn)
sys/kern/uipc_mqueue.c
2677
mqf_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/uipc_sem.c
127
const cap_rights_t *rightsp, struct file **fpp);
sys/kern/uipc_sem.c
163
ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/uipc_sem.c
198
ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/uipc_sem.c
223
ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/uipc_sem.c
253
ksem_closef(struct file *fp, struct thread *td)
sys/kern/uipc_sem.c
265
ksem_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/uipc_sem.c
468
struct file *fp;
sys/kern/uipc_sem.c
591
struct file **fpp)
sys/kern/uipc_sem.c
594
struct file *fp;
sys/kern/uipc_sem.c
693
struct file *fp;
sys/kern/uipc_sem.c
720
struct file *fp;
sys/kern/uipc_sem.c
812
struct file *fp;
sys/kern/uipc_sem.c
882
struct file *fp;
sys/kern/uipc_sem.c
918
struct file *fp;
sys/kern/uipc_shm.c
1139
struct file *fp;
sys/kern/uipc_shm.c
1668
shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize,
sys/kern/uipc_shm.c
1760
shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/uipc_shm.c
1789
shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/uipc_shm.c
1823
shm_map(struct file *fp, size_t size, off_t offset, void **memp)
sys/kern/uipc_shm.c
1881
shm_unmap(struct file *fp, void *mem, size_t size)
sys/kern/uipc_shm.c
1950
shm_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/kern/uipc_shm.c
1962
shm_add_seals(struct file *fp, int seals)
sys/kern/uipc_shm.c
2007
shm_get_seals(struct file *fp, int *seals)
sys/kern/uipc_shm.c
2078
shm_fspacectl(struct file *fp, int cmd, off_t *offset, off_t *length, int flags,
sys/kern/uipc_shm.c
2116
shm_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td)
sys/kern/uipc_shm.c
417
shm_seek(struct file *fp, off_t offset, int whence, struct thread *td)
sys/kern/uipc_shm.c
458
shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/uipc_shm.c
481
shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/uipc_shm.c
540
shm_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/kern/uipc_shm.c
558
shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred,
sys/kern/uipc_shm.c
610
shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/uipc_shm.c
655
shm_close(struct file *fp, struct thread *td)
sys/kern/uipc_sockbuf.c
1098
sbcheck(struct sockbuf *sb, const char *file, int line)
sys/kern/uipc_sockbuf.c
1178
panic("%s from %s:%u", __func__, file, line);
sys/kern/uipc_sockbuf.c
846
sblastrecordchk(struct sockbuf *sb, const char *file, int line)
sys/kern/uipc_sockbuf.c
861
panic("%s from %s:%u", __func__, file, line);
sys/kern/uipc_sockbuf.c
866
sblastmbufchk(struct sockbuf *sb, const char *file, int line)
sys/kern/uipc_sockbuf.c
889
panic("%s from %s:%u", __func__, file, line);
sys/kern/uipc_sockbuf.c
906
panic("%s from %s:%u", __func__, file, line);
sys/kern/uipc_socket.c
4050
struct file *fp;
sys/kern/uipc_syscalls.c
109
struct file **fpp)
sys/kern/uipc_syscalls.c
111
struct file *fp;
sys/kern/uipc_syscalls.c
1194
struct file *fp;
sys/kern/uipc_syscalls.c
1232
struct file *fp;
sys/kern/uipc_syscalls.c
1299
struct file *fp;
sys/kern/uipc_syscalls.c
1370
struct file *fp;
sys/kern/uipc_syscalls.c
143
struct file *fp;
sys/kern/uipc_syscalls.c
1434
struct file *fp;
sys/kern/uipc_syscalls.c
1545
struct file *fp;
sys/kern/uipc_syscalls.c
203
struct file *fp;
sys/kern/uipc_syscalls.c
265
struct file *fp;
sys/kern/uipc_syscalls.c
291
struct file *fp;
sys/kern/uipc_syscalls.c
326
kern_accept(struct thread *td, int s, struct sockaddr *sa, struct file **fp)
sys/kern/uipc_syscalls.c
333
struct file **fp)
sys/kern/uipc_syscalls.c
335
struct file *headfp, *nfp = NULL;
sys/kern/uipc_syscalls.c
477
struct file *fp;
sys/kern/uipc_syscalls.c
553
struct file *fp1, *fp2;
sys/kern/uipc_syscalls.c
727
struct file *fp;
sys/kern/uipc_syscalls.c
89
struct file **fpp, struct filecaps *havecapsp)
sys/kern/uipc_syscalls.c
896
struct file *fp;
sys/kern/uipc_syscalls.c
91
struct file *fp;
sys/kern/uipc_usrreq.c
120
struct file *ud_fp;
sys/kern/uipc_usrreq.c
302
static void unp_discard(struct file *);
sys/kern/uipc_usrreq.c
306
static void unp_internalize_fp(struct file *);
sys/kern/uipc_usrreq.c
308
static int unp_externalize_fp(struct file *);
sys/kern/uipc_usrreq.c
3451
struct file *fp;
sys/kern/uipc_usrreq.c
3465
restrict_rights(struct file *fp, struct thread *td)
sys/kern/uipc_usrreq.c
3535
struct file *fp;
sys/kern/uipc_usrreq.c
3663
struct file *fp;
sys/kern/uipc_usrreq.c
3899
fptounp(struct file *fp)
sys/kern/uipc_usrreq.c
3913
unp_discard(struct file *fp)
sys/kern/uipc_usrreq.c
3957
unp_internalize_fp(struct file *fp)
sys/kern/uipc_usrreq.c
3971
unp_externalize_fp(struct file *fp)
sys/kern/uipc_usrreq.c
3998
struct file *fp;
sys/kern/uipc_usrreq.c
4022
struct file *fp;
sys/kern/uipc_usrreq.c
4109
struct file *f, **unref;
sys/kern/uipc_usrreq.c
4185
unref = malloc(unp_unreachable * sizeof(struct file *),
sys/kern/vfs_acl.c
431
struct file *fp;
sys/kern/vfs_acl.c
451
struct file *fp;
sys/kern/vfs_acl.c
508
struct file *fp;
sys/kern/vfs_acl.c
566
struct file *fp;
sys/kern/vfs_aio.c
1221
struct file *fp;
sys/kern/vfs_aio.c
1506
struct file *fp = NULL;
sys/kern/vfs_aio.c
1782
aio_queue_file(struct file *fp, struct kaiocb *job)
sys/kern/vfs_aio.c
2048
struct file *fp;
sys/kern/vfs_aio.c
315
static int aio_queue_file(struct file *fp, struct kaiocb *job);
sys/kern/vfs_aio.c
772
struct file *fp;
sys/kern/vfs_aio.c
849
struct file *fp = job->fd_file;
sys/kern/vfs_extattr.c
247
struct file *fp;
sys/kern/vfs_extattr.c
435
struct file *fp;
sys/kern/vfs_extattr.c
591
struct file *fp;
sys/kern/vfs_extattr.c
760
struct file *fp;
sys/kern/vfs_inotify.c
1006
struct file *fp;
sys/kern/vfs_inotify.c
209
inotify_read(struct file *fp, struct uio *uio, struct ucred *cred, int flags,
sys/kern/vfs_inotify.c
272
inotify_ioctl(struct file *fp, u_long com, void *data, struct ucred *cred,
sys/kern/vfs_inotify.c
294
inotify_poll(struct file *fp, int events, struct ucred *cred, struct thread *td)
sys/kern/vfs_inotify.c
332
inotify_kqfilter(struct file *fp, struct knote *kn)
sys/kern/vfs_inotify.c
346
inotify_stat(struct file *fp, struct stat *sb, struct ucred *cred)
sys/kern/vfs_inotify.c
431
inotify_close(struct file *fp, struct thread *td)
sys/kern/vfs_inotify.c
474
inotify_fill_kinfo(struct file *fp, struct kinfo_file *kif,
sys/kern/vfs_inotify.c
488
inotify_create_file(struct thread *td, struct file *fp, int flags, int *fflagsp)
sys/kern/vfs_inotify.c
901
struct file **fpp)
sys/kern/vfs_inotify.c
903
struct file *fp;
sys/kern/vfs_inotify.c
922
struct file *fp;
sys/kern/vfs_subr.c
478
struct file *fp;
sys/kern/vfs_syscalls.c
1049
struct file *fp;
sys/kern/vfs_syscalls.c
1192
finit_open(struct file *fp, struct vnode *vp, int flags)
sys/kern/vfs_syscalls.c
1224
enum uio_seg pathseg, int flags, int mode, struct file **fpp)
sys/kern/vfs_syscalls.c
1229
struct file *fp;
sys/kern/vfs_syscalls.c
1356
enum uio_seg pathseg, int flags, int mode, struct file **fpp)
sys/kern/vfs_syscalls.c
2024
struct file *fp;
sys/kern/vfs_syscalls.c
2130
struct file *fp;
sys/kern/vfs_syscalls.c
2945
struct file *fp;
sys/kern/vfs_syscalls.c
3076
struct file *fp;
sys/kern/vfs_syscalls.c
3208
struct file *fp;
sys/kern/vfs_syscalls.c
3451
struct file *fp;
sys/kern/vfs_syscalls.c
3485
struct file *fp;
sys/kern/vfs_syscalls.c
3657
struct file *fp;
sys/kern/vfs_syscalls.c
367
struct file *fp;
sys/kern/vfs_syscalls.c
4043
struct file *fp;
sys/kern/vfs_syscalls.c
4324
struct file *fp;
sys/kern/vfs_syscalls.c
4481
uint8_t *flagsp, struct file **fpp)
sys/kern/vfs_syscalls.c
4483
struct file *fp;
sys/kern/vfs_syscalls.c
4519
struct file **fpp)
sys/kern/vfs_syscalls.c
4744
struct file *fp;
sys/kern/vfs_syscalls.c
4939
struct file *fp;
sys/kern/vfs_syscalls.c
5070
struct file *infp, *infp1, *outfp, *outfp1;
sys/kern/vfs_syscalls.c
893
struct file *fp;
sys/kern/vfs_vnops.c
1002
fsetfl_unlock(struct file *fp)
sys/kern/vfs_vnops.c
1015
foffset_lock_pair(struct file *fp1, off_t *off1p, struct file *fp2, off_t *off2p,
sys/kern/vfs_vnops.c
1022
struct file *tmpfp;
sys/kern/vfs_vnops.c
1035
foffset_lock_uio(struct file *fp, struct uio *uio, int flags)
sys/kern/vfs_vnops.c
1043
foffset_unlock_uio(struct file *fp, struct uio *uio, int flags)
sys/kern/vfs_vnops.c
1051
get_advice(struct file *fp, struct uio *uio)
sys/kern/vfs_vnops.c
1071
get_write_ioflag(struct file *fp)
sys/kern/vfs_vnops.c
1210
vn_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags,
sys/kern/vfs_vnops.c
1281
vn_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags,
sys/kern/vfs_vnops.c
1592
vn_io_fault(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/kern/vfs_vnops.c
175
struct file *fp;
sys/kern/vfs_vnops.c
1764
vn_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/kern/vfs_vnops.c
1834
vn_statfile(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/kern/vfs_vnops.c
1850
vn_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred,
sys/kern/vfs_vnops.c
188
vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp)
sys/kern/vfs_vnops.c
1900
vn_poll(struct file *fp, int events, struct ucred *active_cred,
sys/kern/vfs_vnops.c
1926
_vn_lock_fallback(struct vnode *vp, int flags, const char *file, int line,
sys/kern/vfs_vnops.c
1957
error = VOP_LOCK1(vp, flags, file, line);
sys/kern/vfs_vnops.c
1963
vn_lock_delayed_setsize(struct vnode *vp, int flags, const char *file, int line)
sys/kern/vfs_vnops.c
2004
ap.a_file = file;
sys/kern/vfs_vnops.c
2030
_vn_lock(struct vnode *vp, int flags, const char *file, int line)
sys/kern/vfs_vnops.c
2037
error = VOP_LOCK1(vp, flags, file, line);
sys/kern/vfs_vnops.c
2039
error = _vn_lock_fallback(vp, flags, file, line, error);
sys/kern/vfs_vnops.c
2043
return (vn_lock_delayed_setsize(vp, flags, file, line));
sys/kern/vfs_vnops.c
2050
vn_closefile(struct file *fp, struct thread *td)
sys/kern/vfs_vnops.c
2419
vn_kqfilter(struct file *fp, struct knote *kn)
sys/kern/vfs_vnops.c
2426
vn_kqfilter_opath(struct file *fp, struct knote *kn)
sys/kern/vfs_vnops.c
254
struct ucred *cred, struct file *fp)
sys/kern/vfs_vnops.c
2725
vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/kern/vfs_vnops.c
2740
vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/kern/vfs_vnops.c
2861
vn_seek(struct file *fp, off_t offset, int whence, struct thread *td)
sys/kern/vfs_vnops.c
2963
vn_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/kern/vfs_vnops.c
3048
vn_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size,
sys/kern/vfs_vnops.c
3892
vn_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td)
sys/kern/vfs_vnops.c
398
vn_open_vnode_advlock(struct vnode *vp, int fmode, struct file *fp)
sys/kern/vfs_vnops.c
4041
vn_fspacectl(struct file *fp, int cmd, off_t *offset, off_t *length, int flags,
sys/kern/vfs_vnops.c
436
struct thread *td, struct file *fp)
sys/kern/vfs_vnops.c
4497
vn_cmp(struct file *fp1, struct file *fp2, struct thread *td)
sys/kern/vfs_vnops.c
609
sequential_heuristic(struct uio *uio, struct file *fp)
sys/kern/vfs_vnops.c
802
file_v_lock(struct file *fp, short lock_bit, short lock_wait_bit)
sys/kern/vfs_vnops.c
841
file_v_unlock(struct file *fp, short lock_bit, short lock_wait_bit)
sys/kern/vfs_vnops.c
864
foffset_lock(struct file *fp, int flags)
sys/kern/vfs_vnops.c
877
foffset_unlock(struct file *fp, off_t val, int flags)
sys/kern/vfs_vnops.c
895
foffset_read(struct file *fp)
sys/kern/vfs_vnops.c
902
fsetfl_lock(struct file *fp)
sys/kern/vfs_vnops.c
908
fsetfl_unlock(struct file *fp)
sys/kern/vfs_vnops.c
916
file_v_lock_mtxp(struct file *fp, struct mtx *mtxp, short lock_bit,
sys/kern/vfs_vnops.c
930
file_v_unlock_mtxp(struct file *fp, struct mtx *mtxp, short lock_bit,
sys/kern/vfs_vnops.c
942
foffset_lock(struct file *fp, int flags)
sys/kern/vfs_vnops.c
961
foffset_unlock(struct file *fp, off_t val, int flags)
sys/kern/vfs_vnops.c
983
foffset_read(struct file *fp)
sys/kern/vfs_vnops.c
990
fsetfl_lock(struct file *fp)
sys/net/altq/altq_subr.c
264
altq_assert(const char *file, int line, const char *failedexpr)
sys/net/altq/altq_subr.c
267
failedexpr, file, line);
sys/net/if_ovpn.c
634
struct file *fp = NULL;
sys/netgraph/netgraph.h
180
void dumphook (hook_p hook, char *file, int line);
sys/netgraph/netgraph.h
181
static __inline void _chkhook(hook_p hook, char *file, int line);
sys/netgraph/netgraph.h
182
static __inline void _ng_hook_ref(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
183
static __inline char * _ng_hook_name(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
184
static __inline void _ng_hook_unref(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
186
void * val, char * file, int line);
sys/netgraph/netgraph.h
188
ng_rcvmsg_t *val, char * file, int line);
sys/netgraph/netgraph.h
190
ng_rcvdata_t *val, char * file, int line);
sys/netgraph/netgraph.h
191
static __inline void * _ng_hook_private(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
192
static __inline int _ng_hook_not_valid(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
193
static __inline int _ng_hook_is_valid(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
194
static __inline node_p _ng_hook_node(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
195
static __inline hook_p _ng_hook_peer(hook_p hook, char * file, int line);
sys/netgraph/netgraph.h
196
static __inline void _ng_hook_force_writer(hook_p hook, char * file,
sys/netgraph/netgraph.h
198
static __inline void _ng_hook_force_queue(hook_p hook, char * file,
sys/netgraph/netgraph.h
200
static __inline void _ng_hook_set_to_inbound(hook_p hook, char * file,
sys/netgraph/netgraph.h
204
_chkhook(hook_p hook, char *file, int line)
sys/netgraph/netgraph.h
208
dumphook(hook, file, line);
sys/netgraph/netgraph.h
211
hook->lastfile = file;
sys/netgraph/netgraph.h
215
_ng_hook_ref(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
217
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
222
_ng_hook_name(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
224
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
229
_ng_hook_unref(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
231
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
236
_ng_hook_set_private(hook_p hook, void *val, char * file, int line)
sys/netgraph/netgraph.h
238
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
243
_ng_hook_set_rcvmsg(hook_p hook, ng_rcvmsg_t *val, char * file, int line)
sys/netgraph/netgraph.h
245
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
250
_ng_hook_set_rcvdata(hook_p hook, ng_rcvdata_t *val, char * file, int line)
sys/netgraph/netgraph.h
252
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
257
_ng_hook_private(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
259
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
264
_ng_hook_not_valid(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
266
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
271
_ng_hook_is_valid(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
273
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
278
_ng_hook_node(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
280
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
285
_ng_hook_peer(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
287
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
292
_ng_hook_force_writer(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
294
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
299
_ng_hook_force_queue(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
301
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
306
_ng_hook_set_to_inbound(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
308
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
313
_ng_hook_hi_stack(hook_p hook, char * file, int line)
sys/netgraph/netgraph.h
315
_chkhook(hook, file, line);
sys/netgraph/netgraph.h
450
void dumpnode(node_p node, char *file, int line);
sys/netgraph/netgraph.h
451
static __inline void _chknode(node_p node, char *file, int line);
sys/netgraph/netgraph.h
452
static __inline char * _ng_node_name(node_p node, char *file, int line);
sys/netgraph/netgraph.h
453
static __inline int _ng_node_has_name(node_p node, char *file, int line);
sys/netgraph/netgraph.h
454
static __inline ng_ID_t _ng_node_id(node_p node, char *file, int line);
sys/netgraph/netgraph.h
455
static __inline void _ng_node_ref(node_p node, char *file, int line);
sys/netgraph/netgraph.h
456
static __inline void _ng_node_unref(node_p node, char *file, int line);
sys/netgraph/netgraph.h
458
char *file, int line);
sys/netgraph/netgraph.h
459
static __inline void * _ng_node_private(node_p node, char *file, int line);
sys/netgraph/netgraph.h
460
static __inline int _ng_node_is_valid(node_p node, char *file, int line);
sys/netgraph/netgraph.h
461
static __inline int _ng_node_not_valid(node_p node, char *file, int line);
sys/netgraph/netgraph.h
462
static __inline int _ng_node_numhooks(node_p node, char *file, int line);
sys/netgraph/netgraph.h
463
static __inline void _ng_node_force_writer(node_p node, char *file, int line);
sys/netgraph/netgraph.h
465
ng_fn_eachhook *fn, void *arg, char *file, int line);
sys/netgraph/netgraph.h
466
static __inline void _ng_node_revive(node_p node, char *file, int line);
sys/netgraph/netgraph.h
469
_chknode(node_p node, char *file, int line)
sys/netgraph/netgraph.h
473
dumpnode(node, file, line);
sys/netgraph/netgraph.h
476
node->lastfile = file;
sys/netgraph/netgraph.h
480
_ng_node_name(node_p node, char *file, int line)
sys/netgraph/netgraph.h
482
_chknode(node, file, line);
sys/netgraph/netgraph.h
487
_ng_node_has_name(node_p node, char *file, int line)
sys/netgraph/netgraph.h
489
_chknode(node, file, line);
sys/netgraph/netgraph.h
494
_ng_node_id(node_p node, char *file, int line)
sys/netgraph/netgraph.h
496
_chknode(node, file, line);
sys/netgraph/netgraph.h
501
_ng_node_ref(node_p node, char *file, int line)
sys/netgraph/netgraph.h
503
_chknode(node, file, line);
sys/netgraph/netgraph.h
508
_ng_node_unref(node_p node, char *file, int line)
sys/netgraph/netgraph.h
510
_chknode(node, file, line);
sys/netgraph/netgraph.h
515
_ng_node_set_private(node_p node, void * val, char *file, int line)
sys/netgraph/netgraph.h
517
_chknode(node, file, line);
sys/netgraph/netgraph.h
522
_ng_node_private(node_p node, char *file, int line)
sys/netgraph/netgraph.h
524
_chknode(node, file, line);
sys/netgraph/netgraph.h
529
_ng_node_is_valid(node_p node, char *file, int line)
sys/netgraph/netgraph.h
531
_chknode(node, file, line);
sys/netgraph/netgraph.h
536
_ng_node_not_valid(node_p node, char *file, int line)
sys/netgraph/netgraph.h
538
_chknode(node, file, line);
sys/netgraph/netgraph.h
543
_ng_node_numhooks(node_p node, char *file, int line)
sys/netgraph/netgraph.h
545
_chknode(node, file, line);
sys/netgraph/netgraph.h
550
_ng_node_force_writer(node_p node, char *file, int line)
sys/netgraph/netgraph.h
552
_chknode(node, file, line);
sys/netgraph/netgraph.h
557
_ng_node_hi_stack(node_p node, char *file, int line)
sys/netgraph/netgraph.h
559
_chknode(node, file, line);
sys/netgraph/netgraph.h
564
_ng_node_really_die(node_p node, char *file, int line)
sys/netgraph/netgraph.h
566
_chknode(node, file, line);
sys/netgraph/netgraph.h
571
_ng_node_revive(node_p node, char *file, int line)
sys/netgraph/netgraph.h
573
_chknode(node, file, line);
sys/netgraph/netgraph.h
579
char *file, int line)
sys/netgraph/netgraph.h
581
_chknode(node, file, line);
sys/netgraph/netgraph.h
720
void dumpitem(item_p item, char *file, int line);
sys/netgraph/netgraph.h
721
static __inline void _ngi_check(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
722
static __inline struct mbuf ** _ngi_m(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
723
static __inline ng_ID_t * _ngi_retaddr(item_p item, char *file, int line);
sys/netgraph/netgraph.h
724
static __inline struct ng_mesg ** _ngi_msg(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
725
static __inline ng_item_fn ** _ngi_fn(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
726
static __inline ng_item_fn2 ** _ngi_fn2(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
727
static __inline void ** _ngi_arg1(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
728
static __inline int * _ngi_arg2(item_p item, char *file, int line) ;
sys/netgraph/netgraph.h
729
static __inline node_p _ngi_node(item_p item, char *file, int line);
sys/netgraph/netgraph.h
730
static __inline hook_p _ngi_hook(item_p item, char *file, int line);
sys/netgraph/netgraph.h
733
_ngi_check(item_p item, char *file, int line)
sys/netgraph/netgraph.h
736
(item)->lastfile = file;
sys/netgraph/netgraph.h
740
_ngi_m(item_p item, char *file, int line)
sys/netgraph/netgraph.h
742
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
747
_ngi_msg(item_p item, char *file, int line)
sys/netgraph/netgraph.h
749
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
754
_ngi_retaddr(item_p item, char *file, int line)
sys/netgraph/netgraph.h
756
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
761
_ngi_fn(item_p item, char *file, int line)
sys/netgraph/netgraph.h
763
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
768
_ngi_fn2(item_p item, char *file, int line)
sys/netgraph/netgraph.h
770
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
775
_ngi_arg1(item_p item, char *file, int line)
sys/netgraph/netgraph.h
777
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
782
_ngi_arg2(item_p item, char *file, int line)
sys/netgraph/netgraph.h
784
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
789
_ngi_node(item_p item, char *file, int line)
sys/netgraph/netgraph.h
791
_ngi_check(item, file, line);
sys/netgraph/netgraph.h
796
_ngi_hook(item_p item, char *file, int line)
sys/netgraph/netgraph.h
798
_ngi_check(item, file, line);
sys/netgraph/ng_base.c
3264
dumphook (hook_p hook, char *file, int line)
sys/netgraph/ng_base.c
3271
printf(" problem discovered at file %s, line %d\n", file, line);
sys/netgraph/ng_base.c
3279
dumpnode(node_p node, char *file, int line)
sys/netgraph/ng_base.c
3288
printf(" problem discovered at file %s, line %d\n", file, line);
sys/netgraph/ng_base.c
3296
dumpitem(item_p item, char *file, int line)
sys/netgraph/ng_base.c
3327
printf(" problem discovered at file %s, line %d\n", file, line);
sys/netinet/sctp_os_bsd.h
177
#define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \
sys/netinet/sctp_os_bsd.h
180
m, inp, stcb, net, file, __LINE__, err);
sys/netinet/sctp_os_bsd.h
181
#define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \
sys/netinet/sctp_os_bsd.h
184
inp, stcb, net, file, __LINE__, err);
sys/netinet/sctp_os_bsd.h
186
#define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err)
sys/netinet/sctp_os_bsd.h
187
#define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err)
sys/netinet/sctp_syscalls.c
148
struct file *headfp, *nfp = NULL;
sys/netinet/sctp_syscalls.c
232
struct file *fp = NULL;
sys/netinet/sctp_syscalls.c
332
struct file *fp = NULL;
sys/netinet/sctp_syscalls.c
452
struct file *fp = NULL;
sys/netpfil/ipfilter/netinet/ip_nat.c
28
struct file;
sys/netpfil/ipfilter/netinet/ip_nat6.c
27
struct file;
sys/netsmb/smb_dev.c
378
struct file *fp, *fptmp;
sys/nfs/bootp_subr.c
122
char file[128];
sys/nfs/bootp_subr.c
1312
(unsigned char *) bp->file,
sys/nfs/bootp_subr.c
1313
sizeof(bp->file),
sys/nfs/bootp_subr.c
1361
if (ifctx->reply.file[0] != '\0')
sys/nfs/bootp_subr.c
1362
printf(" boot file %s", ifctx->reply.file);
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
338
struct file *f;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
460
struct file *filp;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
553
struct file *filp = uobj->object;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
596
struct file *filp = uobj->object;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
661
struct file *filp = uobj->object;
sys/ofed/drivers/infiniband/core/ib_rdma_core.c
737
int uverbs_uobject_fd_release(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_ucm.c
1023
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1036
static ssize_t ib_ucm_send_sidr_rep(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
1065
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1078
static ssize_t (*ucm_cmd_table[])(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
1101
static ssize_t ib_ucm_write(struct file *filp, const char __user *buf,
sys/ofed/drivers/infiniband/core/ib_ucm.c
1104
struct ib_ucm_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1123
result = ucm_cmd_table[hdr.cmd](file, buf + sizeof(hdr),
sys/ofed/drivers/infiniband/core/ib_ucm.c
1131
static unsigned int ib_ucm_poll(struct file *filp,
sys/ofed/drivers/infiniband/core/ib_ucm.c
1134
struct ib_ucm_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1137
poll_wait(filp, &file->poll_wait, wait);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1139
if (!list_empty(&file->events))
sys/ofed/drivers/infiniband/core/ib_ucm.c
1153
static int ib_ucm_open(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_ucm.c
1155
struct ib_ucm_file *file;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1157
file = kmalloc(sizeof(*file), GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1158
if (!file)
sys/ofed/drivers/infiniband/core/ib_ucm.c
1161
INIT_LIST_HEAD(&file->events);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1162
INIT_LIST_HEAD(&file->ctxs);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1163
init_waitqueue_head(&file->poll_wait);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1165
mutex_init(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1167
filp->private_data = file;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1168
file->filp = filp;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1169
file->device = container_of(inode->i_cdev->si_drv1, struct ib_ucm_device, cdev);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1174
static int ib_ucm_close(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_ucm.c
1176
struct ib_ucm_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucm.c
1179
mutex_lock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1180
while (!list_empty(&file->ctxs)) {
sys/ofed/drivers/infiniband/core/ib_ucm.c
1181
ctx = list_entry(file->ctxs.next,
sys/ofed/drivers/infiniband/core/ib_ucm.c
1183
mutex_unlock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1193
mutex_lock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1195
mutex_unlock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
1196
kfree(file);
sys/ofed/drivers/infiniband/core/ib_ucm.c
126
static struct ib_ucm_context *ib_ucm_ctx_get(struct ib_ucm_file *file, int id)
sys/ofed/drivers/infiniband/core/ib_ucm.c
134
else if (ctx->file != file)
sys/ofed/drivers/infiniband/core/ib_ucm.c
158
mutex_lock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
166
mutex_unlock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
173
mutex_lock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
175
mutex_unlock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
178
static struct ib_ucm_context *ib_ucm_ctx_alloc(struct ib_ucm_file *file)
sys/ofed/drivers/infiniband/core/ib_ucm.c
188
ctx->file = file;
sys/ofed/drivers/infiniband/core/ib_ucm.c
197
list_add_tail(&ctx->file_list, &file->ctxs);
sys/ofed/drivers/infiniband/core/ib_ucm.c
372
mutex_lock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
373
list_add_tail(&uevent->file_list, &ctx->file->events);
sys/ofed/drivers/infiniband/core/ib_ucm.c
375
wake_up_interruptible(&ctx->file->poll_wait);
sys/ofed/drivers/infiniband/core/ib_ucm.c
376
mutex_unlock(&ctx->file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
386
static ssize_t ib_ucm_event(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
401
mutex_lock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
402
while (list_empty(&file->events)) {
sys/ofed/drivers/infiniband/core/ib_ucm.c
403
mutex_unlock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
405
if (file->filp->f_flags & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_ucm.c
408
if (wait_event_interruptible(file->poll_wait,
sys/ofed/drivers/infiniband/core/ib_ucm.c
409
!list_empty(&file->events)))
sys/ofed/drivers/infiniband/core/ib_ucm.c
412
mutex_lock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
415
uevent = list_entry(file->events.next, struct ib_ucm_event, file_list);
sys/ofed/drivers/infiniband/core/ib_ucm.c
418
ctx = ib_ucm_ctx_alloc(file);
sys/ofed/drivers/infiniband/core/ib_ucm.c
467
mutex_unlock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
471
static ssize_t ib_ucm_create_id(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
486
mutex_lock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
487
ctx = ib_ucm_ctx_alloc(file);
sys/ofed/drivers/infiniband/core/ib_ucm.c
488
mutex_unlock(&file->file_mutex);
sys/ofed/drivers/infiniband/core/ib_ucm.c
493
ctx->cm_id = ib_create_cm_id(file->device->ib_dev,
sys/ofed/drivers/infiniband/core/ib_ucm.c
518
static ssize_t ib_ucm_destroy_id(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
537
else if (ctx->file != file)
sys/ofed/drivers/infiniband/core/ib_ucm.c
563
static ssize_t ib_ucm_attr_id(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
578
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
595
static ssize_t ib_ucm_init_qp_attr(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
611
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
644
static ssize_t ib_ucm_listen(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
655
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
669
static ssize_t ib_ucm_notify(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
680
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
70
struct file *filp;
sys/ofed/drivers/infiniband/core/ib_ucm.c
732
static ssize_t ib_ucm_send_req(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
776
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
790
static ssize_t ib_ucm_send_rep(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
818
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
830
static ssize_t ib_ucm_send_private_data(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
84
struct ib_ucm_file *file;
sys/ofed/drivers/infiniband/core/ib_ucm.c
848
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
859
static ssize_t ib_ucm_send_rtu(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
863
return ib_ucm_send_private_data(file, inbuf, in_len, ib_send_cm_rtu);
sys/ofed/drivers/infiniband/core/ib_ucm.c
866
static ssize_t ib_ucm_send_dreq(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
870
return ib_ucm_send_private_data(file, inbuf, in_len, ib_send_cm_dreq);
sys/ofed/drivers/infiniband/core/ib_ucm.c
873
static ssize_t ib_ucm_send_drep(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
877
return ib_ucm_send_private_data(file, inbuf, in_len, ib_send_cm_drep);
sys/ofed/drivers/infiniband/core/ib_ucm.c
880
static ssize_t ib_ucm_send_info(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
906
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
920
static ssize_t ib_ucm_send_rej(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
924
return ib_ucm_send_info(file, inbuf, in_len, (void *)ib_send_cm_rej);
sys/ofed/drivers/infiniband/core/ib_ucm.c
927
static ssize_t ib_ucm_send_apr(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
931
return ib_ucm_send_info(file, inbuf, in_len, (void *)ib_send_cm_apr);
sys/ofed/drivers/infiniband/core/ib_ucm.c
934
static ssize_t ib_ucm_send_mra(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
950
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
961
static ssize_t ib_ucm_send_lap(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucm.c
982
ctx = ib_ucm_ctx_get(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucm.c
995
static ssize_t ib_ucm_send_sidr_req(struct ib_ucm_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1032
static ssize_t ucma_connect(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1046
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1056
static ssize_t ucma_listen(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1066
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1077
static ssize_t ucma_accept(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1088
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1094
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1098
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1106
static ssize_t ucma_reject(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1116
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1125
static ssize_t ucma_disconnect(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1135
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1144
static ssize_t ucma_init_qp_attr(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1160
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
119
struct ucma_file *file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
126
else if (ctx->file != file || !ctx->cm_id)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1288
static ssize_t ucma_set_option(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1299
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
131
static struct ucma_context *ucma_get_ctx(struct ucma_file *file, int id)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1319
static ssize_t ucma_notify(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1329
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1338
static ssize_t ucma_process_join(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
136
ctx = _ucma_find_context(id, file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1362
ctx = ucma_get_ctx_dev(file, cmd->id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1366
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1387
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1401
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1406
static ssize_t ucma_join_ip_multicast(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1423
return ucma_process_join(file, &join_cmd, out_len);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1426
static ssize_t ucma_join_multicast(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1438
return ucma_process_join(file, &cmd, out_len);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1441
static ssize_t ucma_leave_multicast(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1460
else if (mc->ctx->file != file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1474
mutex_lock(&mc->ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1477
mutex_unlock(&mc->ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1513
static void ucma_move_events(struct ucma_context *ctx, struct ucma_file *file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1517
list_for_each_entry_safe(uevent, tmp, &ctx->file->event_list, list)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1519
list_move_tail(&uevent->list, &file->event_list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1538
if (!f.file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1542
ctx = ucma_get_ctx(f.file->private_data, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1548
cur_file = ctx->file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1563
ctx->file = new_file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
157
static struct ucma_context *ucma_get_ctx_dev(struct ucma_file *file, int id)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1580
static ssize_t (*ucma_cmd_table[])(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
159
struct ucma_context *ctx = ucma_get_ctx(file, id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1608
static ssize_t ucma_write(struct file *filp, const char __user *buf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
1611
struct ucma_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1633
ret = ucma_cmd_table[hdr.cmd](file, buf + sizeof(hdr), hdr.in, hdr.out);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1640
static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1642
struct ucma_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1645
poll_wait(filp, &file->poll_wait, wait);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1647
if (!list_empty(&file->event_list))
sys/ofed/drivers/infiniband/core/ib_ucma.c
1661
static int ucma_open(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1663
struct ucma_file *file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1665
file = kmalloc(sizeof *file, GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1666
if (!file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1669
file->close_wq = alloc_ordered_workqueue("ucma_close_id",
sys/ofed/drivers/infiniband/core/ib_ucma.c
1671
if (!file->close_wq) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
1672
kfree(file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1676
INIT_LIST_HEAD(&file->event_list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1677
INIT_LIST_HEAD(&file->ctx_list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1678
init_waitqueue_head(&file->poll_wait);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1679
mutex_init(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1681
filp->private_data = file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1682
file->filp = filp;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1687
static int ucma_close(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_ucma.c
1689
struct ucma_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_ucma.c
1692
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1693
list_for_each_entry_safe(ctx, tmp, &file->ctx_list, list) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
1695
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1701
flush_workqueue(file->close_wq);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1720
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1722
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1723
destroy_workqueue(file->close_wq);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1724
kfree(file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
1729
ucma_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
sys/ofed/drivers/infiniband/core/ib_ucma.c
192
static struct ucma_context *ucma_alloc_ctx(struct ucma_file *file)
sys/ofed/drivers/infiniband/core/ib_ucma.c
204
ctx->file = file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
212
list_add_tail(&ctx->list, &file->ctx_list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
311
queue_work(ctx->file->close_wq, &ctx->close_work);
sys/ofed/drivers/infiniband/core/ib_ucma.c
315
list_for_each_entry(con_req_eve, &ctx->file->event_list, list) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
320
queue_work(ctx->file->close_wq, &con_req_eve->close_work);
sys/ofed/drivers/infiniband/core/ib_ucma.c
340
mutex_lock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
374
list_add_tail(&uevent->list, &ctx->file->event_list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
375
wake_up_interruptible(&ctx->file->poll_wait);
sys/ofed/drivers/infiniband/core/ib_ucma.c
379
mutex_unlock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
383
static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
397
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
398
while (list_empty(&file->event_list)) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
399
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
401
if (file->filp->f_flags & O_NONBLOCK)
sys/ofed/drivers/infiniband/core/ib_ucma.c
404
if (wait_event_interruptible(file->poll_wait,
sys/ofed/drivers/infiniband/core/ib_ucma.c
405
!list_empty(&file->event_list)))
sys/ofed/drivers/infiniband/core/ib_ucma.c
408
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
411
uevent = list_entry(file->event_list.next, struct ucma_event, list);
sys/ofed/drivers/infiniband/core/ib_ucma.c
414
ctx = ucma_alloc_ctx(file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
437
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
459
static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
479
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
480
ctx = ucma_alloc_ctx(file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
481
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
509
mutex_lock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
511
mutex_unlock(&file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
533
list_for_each_entry_safe(uevent, tmp, &mc->ctx->file->event_list, list) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
563
mutex_lock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
564
list_for_each_entry_safe(uevent, tmp, &ctx->file->event_list, list) {
sys/ofed/drivers/infiniband/core/ib_ucma.c
569
mutex_unlock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
583
static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
598
ctx = _ucma_find_context(cmd.id, file);
sys/ofed/drivers/infiniband/core/ib_ucma.c
606
mutex_lock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
608
mutex_unlock(&ctx->file->mut);
sys/ofed/drivers/infiniband/core/ib_ucma.c
610
flush_workqueue(ctx->file->close_wq);
sys/ofed/drivers/infiniband/core/ib_ucma.c
631
static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
644
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
65
struct file *filp;
sys/ofed/drivers/infiniband/core/ib_ucma.c
653
static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf,
sys/ofed/drivers/infiniband/core/ib_ucma.c
667
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
676
static ssize_t ucma_resolve_ip(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
691
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
701
static ssize_t ucma_resolve_addr(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
717
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
727
static ssize_t ucma_resolve_route(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
738
ctx = ucma_get_ctx_dev(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
79
struct ucma_file *file;
sys/ofed/drivers/infiniband/core/ib_ucma.c
811
static ssize_t ucma_query_route(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
827
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_ucma.c
980
static ssize_t ucma_query(struct ucma_file *file,
sys/ofed/drivers/infiniband/core/ib_ucma.c
993
ctx = ucma_get_ctx(file, cmd.id);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1003
if (file->agent[i])
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1004
ib_unregister_mad_agent(file->agent[i]);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1006
mutex_unlock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1008
kfree(file);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1028
static int ib_umad_sm_open(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1075
static int ib_umad_sm_close(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1250
struct ib_umad_file *file;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1266
list_for_each_entry(file, &port->file_list, port_list) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1267
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1268
file->agents_dead = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1269
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1272
if (file->agent[id])
sys/ofed/drivers/infiniband/core/ib_user_mad.c
1273
ib_unregister_mad_agent(file->agent[id]);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
152
static int hdr_size(struct ib_umad_file *file)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
154
return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) :
sys/ofed/drivers/infiniband/core/ib_user_mad.c
159
static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
161
return file->agents_dead ? NULL : file->agent[id];
sys/ofed/drivers/infiniband/core/ib_user_mad.c
164
static int queue_packet(struct ib_umad_file *file,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
170
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
175
if (agent == __get_agent(file, packet->mad.hdr.id)) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
176
list_add_tail(&packet->list, &file->recv_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
177
wake_up_interruptible(&file->recv_wait);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
182
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
187
static void dequeue_send(struct ib_umad_file *file,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
190
spin_lock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
192
spin_unlock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
198
struct ib_umad_file *file = agent->context;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
201
dequeue_send(file, packet);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
208
if (!queue_packet(file, agent, packet))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
218
struct ib_umad_file *file = agent->context;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
232
packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
256
if (queue_packet(file, agent, packet))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
266
static ssize_t copy_recv_mad(struct ib_umad_file *file, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
278
count < hdr_size(file) + packet->length) ||
sys/ofed/drivers/infiniband/core/ib_user_mad.c
280
count < hdr_size(file) + seg_size))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
283
if (copy_to_user(buf, &packet->mad, hdr_size(file)))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
286
buf += hdr_size(file);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
296
if (count < hdr_size(file) + packet->length) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
316
return hdr_size(file) + packet->length;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
319
static ssize_t copy_send_mad(struct ib_umad_file *file, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
322
ssize_t size = hdr_size(file) + packet->length;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
327
if (copy_to_user(buf, &packet->mad, hdr_size(file)))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
330
buf += hdr_size(file);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
338
static ssize_t ib_umad_read(struct file *filp, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
341
struct ib_umad_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
345
if (count < hdr_size(file))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
348
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
350
while (list_empty(&file->recv_list)) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
351
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
356
if (wait_event_interruptible(file->recv_wait,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
357
!list_empty(&file->recv_list)))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
360
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
363
packet = list_entry(file->recv_list.next, struct ib_umad_packet, list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
366
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
369
ret = copy_recv_mad(file, buf, packet, count);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
371
ret = copy_send_mad(file, buf, packet, count);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
375
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
376
list_add(&packet->list, &file->recv_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
377
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
418
static int is_duplicate(struct ib_umad_file *file,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
425
list_for_each_entry(sent_packet, &file->send_list, list) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
451
static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
454
struct ib_umad_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
464
if (count < hdr_size(file) + IB_MGMT_RMPP_HDR)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
471
if (copy_from_user(&packet->mad, buf, hdr_size(file))) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
481
buf += hdr_size(file);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
488
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
490
agent = __get_agent(file, packet->mad.hdr.id);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
500
ah_attr.port_num = file->port->port_num;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
530
data_len = count - hdr_size(file) - hdr_len;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
577
spin_lock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
578
list_add_tail(&packet->list, &file->send_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
579
spin_unlock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
581
spin_lock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
582
ret = is_duplicate(file, packet);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
584
list_add_tail(&packet->list, &file->send_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
585
spin_unlock_irq(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
596
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
600
dequeue_send(file, packet);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
606
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
612
static unsigned int ib_umad_poll(struct file *filp, struct poll_table_struct *wait)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
614
struct ib_umad_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
619
poll_wait(filp, &file->recv_wait, wait);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
621
if (!list_empty(&file->recv_list))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
627
static int ib_umad_reg_agent(struct ib_umad_file *file, void __user *arg,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
636
mutex_lock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
637
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
639
if (!file->port->ib_dev) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
640
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
652
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
660
if (!__get_agent(file, agent_id))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
663
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
688
agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
692
send_handler, recv_handler, file, 0);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
705
if (!file->already_used) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
706
file->already_used = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
707
if (!file->use_pkey_index) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
708
dev_warn(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
711
dev_warn(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
716
file->agent[agent_id] = agent;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
720
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
725
mutex_unlock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
730
static int ib_umad_reg_agent2(struct ib_umad_file *file, void __user *arg)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
738
mutex_lock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
739
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
741
if (!file->port->ib_dev) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
742
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
754
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
763
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
777
if (!__get_agent(file, agent_id))
sys/ofed/drivers/infiniband/core/ib_user_mad.c
780
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
792
dev_notice(file->port->dev,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
805
agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
809
send_handler, recv_handler, file,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
824
if (!file->already_used) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
825
file->already_used = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
826
file->use_pkey_index = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
829
file->agent[agent_id] = agent;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
833
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
838
mutex_unlock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
844
static int ib_umad_unreg_agent(struct ib_umad_file *file, u32 __user *arg)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
853
mutex_lock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
854
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
856
if (id >= IB_UMAD_MAX_AGENTS || !__get_agent(file, id)) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
861
agent = file->agent[id];
sys/ofed/drivers/infiniband/core/ib_user_mad.c
862
file->agent[id] = NULL;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
865
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
870
mutex_unlock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
875
static long ib_umad_enable_pkey(struct ib_umad_file *file)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
879
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
880
if (file->already_used)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
883
file->use_pkey_index = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
884
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
889
static long ib_umad_ioctl(struct file *filp, unsigned int cmd,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
907
static long ib_umad_compat_ioctl(struct file *filp, unsigned int cmd,
sys/ofed/drivers/infiniband/core/ib_user_mad.c
934
static int ib_umad_open(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
937
struct ib_umad_file *file;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
948
file = kzalloc(sizeof *file, GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
949
if (!file)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
952
mutex_init(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
953
spin_lock_init(&file->send_lock);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
954
INIT_LIST_HEAD(&file->recv_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
955
INIT_LIST_HEAD(&file->send_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
956
init_waitqueue_head(&file->recv_wait);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
958
file->port = port;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
959
filp->private_data = file;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
961
list_add_tail(&file->port_list, &port->file_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
965
list_del(&file->port_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
966
kfree(file);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
977
static int ib_umad_close(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_user_mad.c
979
struct ib_umad_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
980
struct ib_umad_device *dev = file->port->umad_dev;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
985
mutex_lock(&file->port->file_mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
986
mutex_lock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
988
already_dead = file->agents_dead;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
989
file->agents_dead = 1;
sys/ofed/drivers/infiniband/core/ib_user_mad.c
991
list_for_each_entry_safe(packet, tmp, &file->recv_list, list) {
sys/ofed/drivers/infiniband/core/ib_user_mad.c
997
list_del(&file->port_list);
sys/ofed/drivers/infiniband/core/ib_user_mad.c
999
mutex_unlock(&file->mutex);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
240
struct ib_uverbs_file *file = attrs->ufile;
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
243
if (!down_read_trylock(&file->hw_destroy_rwsem))
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
245
mutex_lock(&file->ucontext_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
246
if (file->ucontext) {
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
260
atomic_store_rel_ptr((uintptr_t *)&file->ucontext, (uintptr_t)ucontext);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
262
mutex_unlock(&file->ucontext_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
263
up_read(&file->hw_destroy_rwsem);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
268
mutex_unlock(&file->ucontext_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
269
up_read(&file->hw_destroy_rwsem);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
580
long ib_uverbs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
582
struct ib_uverbs_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
603
srcu_key = srcu_read_lock(&file->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
604
err = ib_uverbs_cmd_verbs(file, &hdr, user_hdr->attrs);
sys/ofed/drivers/infiniband/core/ib_uverbs_ioctl.c
605
srcu_read_unlock(&file->device->disassociate_srcu, srcu_key);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1121
struct ib_uverbs_file *file;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1128
file = list_first_entry(&uverbs_dev->uverbs_file_list,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1130
list_del_init(&file->list);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1131
kref_get(&file->ref);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1140
ib_uverbs_async_handler(READ_ONCE(file->async_file), 0,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1143
uverbs_destroy_ufile_hw(file, RDMA_REMOVE_DRIVER_REMOVE);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
1144
kref_put(&file->ref, ib_uverbs_release_file);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
184
struct ib_uverbs_file *file =
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
189
release_ufile_idr_uobject(file);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
191
srcu_key = srcu_read_lock(&file->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
192
ib_dev = srcu_dereference(file->device->ib_dev,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
193
&file->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
196
srcu_read_unlock(&file->device->disassociate_srcu, srcu_key);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
198
if (atomic_dec_and_test(&file->device->refcount))
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
199
ib_uverbs_comp_dev(file->device);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
201
if (file->async_file)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
202
uverbs_uobject_put(&file->async_file->uobj);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
203
put_device(&file->device->dev);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
205
mutex_destroy(&file->umap_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
206
mutex_destroy(&file->ucontext_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
207
kfree(file);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
211
struct file *filp, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
267
static ssize_t ib_uverbs_async_event_read(struct file *filp, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
270
struct ib_uverbs_async_event_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
272
return ib_uverbs_event_read(&file->ev_queue, filp, buf, count, pos,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
276
static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
288
struct file *filp,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
303
static __poll_t ib_uverbs_async_event_poll(struct file *filp,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
306
struct ib_uverbs_async_event_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
308
return ib_uverbs_event_poll(&file->ev_queue, filp, wait);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
311
static __poll_t ib_uverbs_comp_event_poll(struct file *filp,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
320
static int ib_uverbs_async_event_fasync(int fd, struct file *filp, int on)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
322
struct ib_uverbs_async_event_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
324
return fasync_helper(fd, filp, on, &file->ev_queue.async_queue);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
327
static int ib_uverbs_comp_event_fasync(int fd, struct file *filp, int on)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
556
static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
559
struct ib_uverbs_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
561
struct uverbs_api *uapi = file->device->uapi;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
595
srcu_key = srcu_read_lock(&file->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
600
bundle.ufile = file;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
666
srcu_read_unlock(&file->device->disassociate_srcu, srcu_key);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
672
static int ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
674
struct ib_uverbs_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
679
srcu_key = srcu_read_lock(&file->device->disassociate_srcu);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
680
ucontext = ib_uverbs_get_ucontext_file(file);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
688
srcu_read_unlock(&file->device->disassociate_srcu, srcu_key);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
827
static int ib_uverbs_open(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
830
struct ib_uverbs_file *file;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
862
file = kzalloc(sizeof(*file), GFP_KERNEL);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
863
if (!file) {
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
871
file->device = dev;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
872
kref_init(&file->ref);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
873
mutex_init(&file->ucontext_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
875
spin_lock_init(&file->uobjects_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
876
INIT_LIST_HEAD(&file->uobjects);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
877
init_rwsem(&file->hw_destroy_rwsem);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
878
mutex_init(&file->umap_lock);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
879
INIT_LIST_HEAD(&file->umaps);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
881
filp->private_data = file;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
882
list_add_tail(&file->list, &dev->uverbs_file_list);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
886
setup_ufile_idr_uobject(file);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
903
static int ib_uverbs_close(struct inode *inode, struct file *filp)
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
905
struct ib_uverbs_file *file = filp->private_data;
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
907
uverbs_destroy_ufile_hw(file, RDMA_REMOVE_CLOSE);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
909
mutex_lock(&file->device->lists_mutex);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
910
list_del_init(&file->list);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
911
mutex_unlock(&file->device->lists_mutex);
sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
913
kref_put(&file->ref, ib_uverbs_release_file);
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types.c
231
struct ib_uverbs_completion_event_file *file =
sys/ofed/drivers/infiniband/core/ib_uverbs_std_types.c
235
ib_uverbs_free_event_queue(&file->ev_queue);
sys/ofed/drivers/infiniband/core/uverbs.h
247
long ib_uverbs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
114
seq_printf(file,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
135
static int ipoib_mcg_open(struct inode *inode, struct file *file)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
140
ret = seq_open(file, &ipoib_mcg_seq_ops);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
144
seq = file->private_data;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
158
static void *ipoib_path_seq_start(struct seq_file *file, loff_t *pos)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
163
iter = ipoib_path_iter_init(file->private);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
177
static void *ipoib_path_seq_next(struct seq_file *file, void *iter_ptr,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
192
static void ipoib_path_seq_stop(struct seq_file *file, void *iter_ptr)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
197
static int ipoib_path_seq_show(struct seq_file *file, void *iter_ptr)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
211
seq_printf(file,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
219
seq_printf(file,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
229
seq_putc(file, '\n');
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
241
static int ipoib_path_open(struct inode *inode, struct file *file)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
246
ret = seq_open(file, &ipoib_path_seq_ops);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
250
seq = file->private_data;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
59
static void *ipoib_mcg_seq_start(struct seq_file *file, loff_t *pos)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
64
iter = ipoib_mcast_iter_init(file->private);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
78
static void *ipoib_mcg_seq_next(struct seq_file *file, void *iter_ptr,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
93
static void ipoib_mcg_seq_stop(struct seq_file *file, void *iter_ptr)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_fs.c
98
static int ipoib_mcg_seq_show(struct seq_file *file, void *iter_ptr)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
160
static int sdp_seq_open(struct inode *inode, struct file *file)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
183
rc = seq_open(file, &s->seq_ops);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
186
seq = file->private_data;
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
323
static ssize_t sdpstats_write(struct file *file, const char __user *buf,
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
335
static int sdpstats_seq_open(struct inode *inode, struct file *file)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
337
return single_open(file, sdpstats_seq_show, NULL);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
427
static int sdpprf_open(struct inode *inode, struct file *file)
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
431
res = seq_open(file, &sdpprf_ops);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
436
static ssize_t sdpprf_write(struct file *file, const char __user *buf,
sys/ofed/include/rdma/ib.h
109
static inline bool ib_safe_file_access(struct file *filp)
sys/ofed/include/rdma/uverbs_types.h
181
int uverbs_uobject_fd_release(struct inode *inode, struct file *filp);
sys/rpc/rpcsec_tls/rpctls_impl.c
154
struct file *fp;
sys/security/audit/audit.h
136
void audit_arg_file(struct proc *p, struct file *fp);
sys/security/audit/audit.h
141
void audit_sysclose(struct thread *td, int fd, struct file *fp);
sys/security/audit/audit_arg.c
670
audit_arg_file(struct proc *p, struct file *fp)
sys/security/audit/audit_arg.c
996
audit_sysclose(struct thread *td, int fd, struct file *fp)
sys/security/audit/bsm_token.c
578
au_to_file(const char *file, struct timeval tm)
sys/security/audit/bsm_token.c
585
filelen = strlen(file);
sys/security/audit/bsm_token.c
597
ADD_STRING(dptr, file, filelen);
sys/security/mac/mac_syscalls.c
502
struct file *fp;
sys/security/mac/mac_syscalls.c
662
struct file *fp;
sys/security/mac_grantbylabel/mac_grantbylabel.c
363
struct file *fp;
sys/security/mac_veriexec/mac_veriexec.c
846
struct file *fp;
sys/sys/_lock.h
63
#define LOCK_FILE_LINE_ARG_DEF , const char *file, int line
sys/sys/_lock.h
64
#define LOCK_FILE_LINE_ARG , file, line
sys/sys/aio.h
148
struct file *fd_file; /* (*) pointer to file structure */
sys/sys/alq.h
79
int alq_open_flags(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
sys/sys/alq.h
81
int alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
sys/sys/conf.h
112
typedef int d_fdopen_t(struct cdev *dev, int oflags, struct thread *td, struct file *fp);
sys/sys/conf.h
52
struct file;
sys/sys/epoch.h
82
#define EPOCH_FILE_LINE , const char *file, int line
sys/sys/event.h
322
struct file *p_fp; /* file data pointer */
sys/sys/eventfd.h
43
int eventfd_create_file(struct thread *td, struct file *fp, uint32_t initval,
sys/sys/eventfd.h
45
struct eventfd *eventfd_get(struct file *fp);
sys/sys/file.h
100
foffset_get(struct file *fp)
sys/sys/file.h
106
typedef int fo_rdwr_t(struct file *fp, struct uio *uio,
sys/sys/file.h
109
typedef int fo_truncate_t(struct file *fp, off_t length,
sys/sys/file.h
111
typedef int fo_ioctl_t(struct file *fp, u_long com, void *data,
sys/sys/file.h
113
typedef int fo_poll_t(struct file *fp, int events,
sys/sys/file.h
115
typedef int fo_kqfilter_t(struct file *fp, struct knote *kn);
sys/sys/file.h
116
typedef int fo_stat_t(struct file *fp, struct stat *sb,
sys/sys/file.h
118
typedef int fo_close_t(struct file *fp, struct thread *td);
sys/sys/file.h
119
typedef void fo_fdclose_t(struct file *fp, int fd, struct thread *td);
sys/sys/file.h
120
typedef int fo_chmod_t(struct file *fp, mode_t mode,
sys/sys/file.h
122
typedef int fo_chown_t(struct file *fp, uid_t uid, gid_t gid,
sys/sys/file.h
124
typedef int fo_sendfile_t(struct file *fp, int sockfd, struct uio *hdr_uio,
sys/sys/file.h
127
typedef int fo_seek_t(struct file *fp, off_t offset, int whence,
sys/sys/file.h
129
typedef int fo_fill_kinfo_t(struct file *fp, struct kinfo_file *kif,
sys/sys/file.h
131
typedef int fo_mmap_t(struct file *fp, vm_map_t map, vm_offset_t *addr,
sys/sys/file.h
134
typedef int fo_aio_queue_t(struct file *fp, struct kaiocb *job);
sys/sys/file.h
135
typedef int fo_add_seals_t(struct file *fp, int flags);
sys/sys/file.h
136
typedef int fo_get_seals_t(struct file *fp, int *flags);
sys/sys/file.h
137
typedef int fo_fallocate_t(struct file *fp, off_t offset, off_t len,
sys/sys/file.h
139
typedef int fo_fspacectl_t(struct file *fp, int cmd,
sys/sys/file.h
142
typedef int fo_cmp_t(struct file *fp, struct file *fp1, struct thread *td);
sys/sys/file.h
143
typedef int fo_fork_t(struct filedesc *fdp, struct file *fp, struct file **fp1,
sys/sys/file.h
145
typedef int fo_spare_t(struct file *fp);
sys/sys/file.h
274
struct file **fpp);
sys/sys/file.h
276
vm_prot_t *maxprotp, struct file **fpp);
sys/sys/file.h
278
struct file **fpp);
sys/sys/file.h
280
struct file **fpp);
sys/sys/file.h
282
int needfcntl, struct file **fpp);
sys/sys/file.h
283
int _fdrop(struct file *fp, struct thread *td);
sys/sys/file.h
284
int fget_remote(struct thread *td, struct proc *p, int fd, struct file **fpp);
sys/sys/file.h
286
int (*fn)(struct proc *, int, struct file *, void *), void *arg);
sys/sys/file.h
302
int file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td);
sys/sys/file.h
304
void finit(struct file *, u_int, short, void *, const struct fileops *);
sys/sys/file.h
305
void finit_vnode(struct file *, u_int, void *, const struct fileops *);
sys/sys/file.h
320
fhold(struct file *fp)
sys/sys/file.h
326
struct file *_fp; \
sys/sys/file.h
337
struct file *_fp; \
sys/sys/file.h
360
fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/sys/file.h
368
fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred,
sys/sys/file.h
376
fo_truncate(struct file *fp, off_t length, struct ucred *active_cred,
sys/sys/file.h
384
fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred,
sys/sys/file.h
392
fo_poll(struct file *fp, int events, struct ucred *active_cred,
sys/sys/file.h
400
fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred)
sys/sys/file.h
407
fo_close(struct file *fp, struct thread *td)
sys/sys/file.h
414
fo_kqfilter(struct file *fp, struct knote *kn)
sys/sys/file.h
421
fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/sys/file.h
429
fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/sys/file.h
437
fo_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
sys/sys/file.h
447
fo_seek(struct file *fp, off_t offset, int whence, struct thread *td)
sys/sys/file.h
454
fo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
sys/sys/file.h
461
fo_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size,
sys/sys/file.h
473
fo_aio_queue(struct file *fp, struct kaiocb *job)
sys/sys/file.h
480
fo_add_seals(struct file *fp, int seals)
sys/sys/file.h
489
fo_get_seals(struct file *fp, int *seals)
sys/sys/file.h
498
fo_fallocate(struct file *fp, off_t offset, off_t len, struct thread *td)
sys/sys/file.h
507
fo_fspacectl(struct file *fp, int cmd, off_t *offset, off_t *length,
sys/sys/file.h
518
fo_cmp(struct file *fp1, struct file *fp2, struct thread *td)
sys/sys/file.h
79
struct file;
sys/sys/file.h
90
off_t foffset_lock(struct file *fp, int flags);
sys/sys/file.h
91
void foffset_lock_pair(struct file *fp1, off_t *off1p, struct file *fp2,
sys/sys/file.h
93
void foffset_lock_uio(struct file *fp, struct uio *uio, int flags);
sys/sys/file.h
94
void foffset_unlock(struct file *fp, off_t val, int flags);
sys/sys/file.h
95
void foffset_unlock_uio(struct file *fp, struct uio *uio, int flags);
sys/sys/file.h
96
void fsetfl_lock(struct file *fp);
sys/sys/file.h
97
void fsetfl_unlock(struct file *fp);
sys/sys/filedesc.h
248
int closef(struct file *fp, struct thread *td);
sys/sys/filedesc.h
249
void closef_nothread(struct file *fp);
sys/sys/filedesc.h
253
int falloc_caps(struct thread *td, struct file **resultfp, int *resultfd,
sys/sys/filedesc.h
255
void falloc_abort(struct thread *td, struct file *fp);
sys/sys/filedesc.h
256
int _falloc_noinstall(struct thread *td, struct file **resultfp, u_int n);
sys/sys/filedesc.h
258
void _finstall(struct filedesc *fdp, struct file *fp, int fd, int flags,
sys/sys/filedesc.h
260
int finstall(struct thread *td, struct file *fp, int *resultfd, int flags,
sys/sys/filedesc.h
262
int finstall_refed(struct thread *td, struct file *fp, int *resultfd, int flags,
sys/sys/filedesc.h
267
void fdclose(struct thread *td, struct file *fp, int idx);
sys/sys/filedesc.h
284
struct file **fpp);
sys/sys/filedesc.h
286
uint8_t *flagsp, struct file **fpp);
sys/sys/filedesc.h
290
const cap_rights_t *needrightsp, struct file **fpp,
sys/sys/filedesc.h
293
uint8_t *flagsp, struct file **fpp, struct filecaps *havecapsp);
sys/sys/filedesc.h
296
const cap_rights_t *needrightsp, struct file **fpp);
sys/sys/filedesc.h
299
struct file **fpp);
sys/sys/filedesc.h
302
const cap_rights_t *needrightsp, struct file **fpp);
sys/sys/filedesc.h
313
static inline struct file *
sys/sys/filedesc.h
324
static __inline struct file *
sys/sys/filedesc.h
57
struct file *fde_file; /* file structure for open file */
sys/sys/inotify.h
84
struct file;
sys/sys/inotify.h
89
int inotify_create_file(struct thread *, struct file *, int, int *);
sys/sys/jaildesc.h
80
int jaildesc_alloc(struct thread *td, struct file **fpp, int *fdp, int owning);
sys/sys/jaildesc.h
81
int jaildesc_get_prison(struct file *jd, struct prison **prp);
sys/sys/jaildesc.h
82
void jaildesc_set_prison(struct file *jd, struct prison *pr);
sys/sys/kassert.h
163
#define MPASS3(ex, file, line) MPASS4(ex, #ex, file, line)
sys/sys/kassert.h
164
#define MPASS4(ex, what, file, line) \
sys/sys/kassert.h
165
KASSERT((ex), ("Assertion %s failed at %s:%d", what, file, line))
sys/sys/ktr.h
75
void ktr_tracepoint(uint64_t mask, const char *file, int line,
sys/sys/lock.h
140
#define LOCK_LOG_LOCK(opname, lo, flags, recurse, file, line) do { \
sys/sys/lock.h
144
(lo), (u_int)(recurse), (file), (line)); \
sys/sys/lock.h
147
#define LOCK_LOG_TRY(opname, lo, flags, result, file, line) do { \
sys/sys/lock.h
151
(lo), (u_int)(result), (file), (line)); \
sys/sys/lock.h
264
#define WITNESS_CHECKORDER(lock, flags, file, line, interlock) \
sys/sys/lock.h
265
witness_checkorder((lock), (flags), (file), (line), (interlock))
sys/sys/lock.h
271
#define WITNESS_LOCK(lock, flags, file, line) \
sys/sys/lock.h
272
witness_lock((lock), (flags), (file), (line))
sys/sys/lock.h
274
#define WITNESS_UPGRADE(lock, flags, file, line) \
sys/sys/lock.h
275
witness_upgrade((lock), (flags), (file), (line))
sys/sys/lock.h
277
#define WITNESS_DOWNGRADE(lock, flags, file, line) \
sys/sys/lock.h
278
witness_downgrade((lock), (flags), (file), (line))
sys/sys/lock.h
280
#define WITNESS_UNLOCK(lock, flags, file, line) \
sys/sys/lock.h
281
witness_unlock((lock), (flags), (file), (line))
sys/sys/lock.h
315
#define WITNESS_CHECKORDER(lock, flags, file, line, interlock) (void)0
sys/sys/lock.h
316
#define WITNESS_LOCK(lock, flags, file, line) (void)0
sys/sys/lock.h
317
#define WITNESS_UPGRADE(lock, flags, file, line) (void)0
sys/sys/lock.h
318
#define WITNESS_DOWNGRADE(lock, flags, file, line) (void)0
sys/sys/lock.h
319
#define WITNESS_UNLOCK(lock, flags, file, line) (void)0
sys/sys/lock_profile.h
48
int contested, uint64_t waittime, const char *file, int line);
sys/sys/lock_profile.h
66
#define lock_profile_obtain_lock_success(lo, spin, contested, waittime, file, line) (void)0
sys/sys/lockmgr.h
102
int prio, int timo, const char *file, int line)
sys/sys/lockmgr.h
106
NULL, wmesg, prio, timo, file, line));
sys/sys/lockmgr.h
111
const char *wmesg, int prio, int timo, const char *file, int line)
sys/sys/lockmgr.h
115
NULL, wmesg, prio, timo, file, line));
sys/sys/lockmgr.h
71
const char *wmesg, int prio, int timo, const char *file, int line);
sys/sys/lockmgr.h
73
struct lock_object *ilk, const char *file, int line);
sys/sys/lockmgr.h
74
int lockmgr_slock(struct lock *lk, u_int flags, const char *file, int line);
sys/sys/lockmgr.h
75
int lockmgr_xlock(struct lock *lk, u_int flags, const char *file, int line);
sys/sys/lockmgr.h
79
void _lockmgr_assert(const struct lock *lk, int what, const char *file, int line);
sys/sys/lockmgr.h
81
void _lockmgr_disown(struct lock *lk, const char *file, int line);
sys/sys/malloc.h
297
extern void Free(void *p, const char *file, int line);
sys/sys/malloc.h
298
extern void *Malloc(size_t bytes, const char *file, int line);
sys/sys/mman.h
265
struct file;
sys/sys/mman.h
305
int shm_map(struct file *fp, size_t size, off_t offset, void **memp);
sys/sys/mman.h
306
int shm_unmap(struct file *fp, void *mem, size_t size);
sys/sys/mutex.h
101
const char *file, int line);
sys/sys/mutex.h
103
const char *file, int line);
sys/sys/mutex.h
113
const char *file, int line);
sys/sys/mutex.h
118
void __mtx_lock_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
120
void __mtx_unlock_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
122
void __mtx_lock_spin_flags(volatile uintptr_t *c, int opts, const char *file,
sys/sys/mutex.h
125
const char *file, int line);
sys/sys/mutex.h
127
const char *file, int line);
sys/sys/mutex.h
131
void __mtx_assert(const volatile uintptr_t *c, int what, const char *file,
sys/sys/mutex.h
136
void _thread_lock(struct thread *td, int opts, const char *file, int line);
sys/sys/mutex.h
234
#define __mtx_lock(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
240
_mtx_lock_sleep((mp), _v, (opts), (file), (line)); \
sys/sys/mutex.h
251
#define __mtx_lock_spin(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
258
_mtx_lock_spin((mp), _v, (opts), (file), (line)); \
sys/sys/mutex.h
261
#define __mtx_trylock_spin(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
271
mp, 0, 0, file, line); \
sys/sys/mutex.h
277
#define __mtx_lock_spin(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
289
#define __mtx_trylock_spin(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
306
#define __mtx_unlock(mp, tid, opts, file, line) __extension__ ({ \
sys/sys/mutex.h
311
_mtx_unlock_sleep((mp), _v, (opts), (file), (line)); \
sys/sys/mutex.h
413
#define mtx_lock_flags_(m, opts, file, line) \
sys/sys/mutex.h
414
_mtx_lock_flags((m), (opts), (file), (line))
sys/sys/mutex.h
415
#define mtx_unlock_flags_(m, opts, file, line) \
sys/sys/mutex.h
416
_mtx_unlock_flags((m), (opts), (file), (line))
sys/sys/mutex.h
417
#define mtx_lock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
418
_mtx_lock_spin_flags((m), (opts), (file), (line))
sys/sys/mutex.h
419
#define mtx_trylock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
420
_mtx_trylock_spin_flags((m), (opts), (file), (line))
sys/sys/mutex.h
421
#define mtx_unlock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
422
_mtx_unlock_spin_flags((m), (opts), (file), (line))
sys/sys/mutex.h
424
#define mtx_lock_flags_(m, opts, file, line) \
sys/sys/mutex.h
425
__mtx_lock((m), curthread, (opts), (file), (line))
sys/sys/mutex.h
426
#define mtx_unlock_flags_(m, opts, file, line) \
sys/sys/mutex.h
427
__mtx_unlock((m), curthread, (opts), (file), (line))
sys/sys/mutex.h
428
#define mtx_lock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
429
__mtx_lock_spin((m), curthread, (opts), (file), (line))
sys/sys/mutex.h
430
#define mtx_trylock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
431
__mtx_trylock_spin((m), curthread, (opts), (file), (line))
sys/sys/mutex.h
432
#define mtx_unlock_spin_flags_(m, opts, file, line) \
sys/sys/mutex.h
437
#define mtx_assert_(m, what, file, line) \
sys/sys/mutex.h
438
_mtx_assert((m), (what), (file), (line))
sys/sys/mutex.h
443
#define mtx_assert_(m, what, file, line) (void)0
sys/sys/mutex.h
96
int _mtx_trylock_flags_(volatile uintptr_t *c, int opts, const char *file,
sys/sys/pmc.h
885
struct file *po_file; /* file reference */
sys/sys/proc.h
309
struct file *td_fpop; /* (k) file referencing cdev under op */
sys/sys/procdesc.h
102
void procdesc_finit(struct procdesc *, struct file *);
sys/sys/procdesc.h
103
pid_t procdesc_pid(struct file *);
sys/sys/procdesc.h
106
int procdesc_falloc(struct thread *, struct file **, int *, int,
sys/sys/rangelock.h
70
void _rangelock_cookie_assert(void *cookie, int what, const char *file,
sys/sys/rangelock.h
75
#define rangelock_cookie_assert_(cookie, what, file, line) \
sys/sys/rangelock.h
76
_rangelock_cookie_assert((cookie), (what), (file), (line))
sys/sys/rangelock.h
78
#define rangelock_cookie_assert_(cookie, what, file, line) (void)0
sys/sys/rmlock.h
57
void _rm_wlock_debug(struct rmlock *rm, const char *file, int line);
sys/sys/rmlock.h
58
void _rm_wunlock_debug(struct rmlock *rm, const char *file, int line);
sys/sys/rmlock.h
60
int trylock, const char *file, int line);
sys/sys/rmlock.h
62
const char *file, int line);
sys/sys/rmlock.h
70
void _rm_assert(const struct rmlock *rm, int what, const char *file,
sys/sys/rwlock.h
104
#define __rw_wlock(rw, tid, file, line) __extension__ ({ \
sys/sys/rwlock.h
110
_rw_wlock_hard((rw), _v, (file), (line)); \
sys/sys/rwlock.h
115
#define __rw_wunlock(rw, tid, file, line) __extension__ ({ \
sys/sys/rwlock.h
120
_rw_wunlock_hard((rw), _v, (file), (line)); \
sys/sys/rwlock.h
133
void _rw_wlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
135
int __rw_try_wlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
136
void _rw_wunlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
138
void __rw_rlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
140
int __rw_try_rlock(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
142
void _rw_runlock_cookie(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
148
int __rw_try_upgrade(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
150
void __rw_downgrade(volatile uintptr_t *c, const char *file, int line);
sys/sys/rwlock.h
152
void __rw_assert(const volatile uintptr_t *c, int what, const char *file,
sys/sys/sema.h
48
void _sema_post(struct sema *sema, const char *file, int line);
sys/sys/sema.h
49
void _sema_wait(struct sema *sema, const char *file, int line);
sys/sys/sema.h
50
int _sema_timedwait(struct sema *sema, int timo, const char *file, int
sys/sys/sema.h
52
int _sema_trywait(struct sema *sema, const char *file, int line);
sys/sys/socketvar.h
473
struct file;
sys/sys/socketvar.h
492
struct file **fpp, struct filecaps *havecaps);
sys/sys/socketvar.h
494
struct file **fpp);
sys/sys/sx.h
107
int sx_try_slock_(struct sx *sx, const char *file, int line);
sys/sys/sx.h
109
int sx_try_xlock_(struct sx *sx, const char *file, int line);
sys/sys/sx.h
111
int sx_try_upgrade_(struct sx *sx, const char *file, int line);
sys/sys/sx.h
113
void sx_downgrade_(struct sx *sx, const char *file, int line);
sys/sys/sx.h
115
int _sx_slock(struct sx *sx, int opts, const char *file, int line);
sys/sys/sx.h
116
int _sx_xlock(struct sx *sx, int opts, const char *file, int line);
sys/sys/sx.h
118
void _sx_sunlock(struct sx *sx, const char *file, int line);
sys/sys/sx.h
119
void _sx_xunlock(struct sx *sx, const char *file, int line);
sys/sys/sx.h
123
void _sx_assert(const struct sx *sx, int what, const char *file, int line);
sys/sys/sx.h
157
__sx_xlock(struct sx *sx, struct thread *td, int opts, const char *file,
sys/sys/sx.h
173
__sx_xunlock(struct sx *sx, struct thread *td, const char *file, int line)
sys/sys/sx.h
190
#define sx_xlock_(sx, file, line) \
sys/sys/sx.h
191
(void)_sx_xlock((sx), 0, (file), (line))
sys/sys/sx.h
192
#define sx_xlock_sig_(sx, file, line) \
sys/sys/sx.h
193
_sx_xlock((sx), SX_INTERRUPTIBLE, (file), (line))
sys/sys/sx.h
194
#define sx_xunlock_(sx, file, line) \
sys/sys/sx.h
195
_sx_xunlock((sx), (file), (line))
sys/sys/sx.h
197
#define sx_xlock_(sx, file, line) \
sys/sys/sx.h
198
(void)__sx_xlock((sx), curthread, 0, (file), (line))
sys/sys/sx.h
199
#define sx_xlock_sig_(sx, file, line) \
sys/sys/sx.h
200
__sx_xlock((sx), curthread, SX_INTERRUPTIBLE, (file), (line))
sys/sys/sx.h
201
#define sx_xunlock_(sx, file, line) \
sys/sys/sx.h
202
__sx_xunlock((sx), curthread, (file), (line))
sys/sys/sx.h
205
#define sx_slock_(sx, file, line) \
sys/sys/sx.h
206
(void)_sx_slock((sx), 0, (file), (line))
sys/sys/sx.h
207
#define sx_slock_sig_(sx, file, line) \
sys/sys/sx.h
208
_sx_slock((sx), SX_INTERRUPTIBLE, (file) , (line))
sys/sys/sx.h
209
#define sx_sunlock_(sx, file, line) \
sys/sys/sx.h
210
_sx_sunlock((sx), (file), (line))
sys/sys/sx.h
216
#define sx_slock_(sx, file, line) \
sys/sys/sx.h
218
#define sx_slock_sig_(sx, file, line) \
sys/sys/sx.h
220
#define sx_sunlock_(sx, file, line) \
sys/sys/sx.h
228
#define sx_assert_(sx, what, file, line) \
sys/sys/sx.h
229
_sx_assert((sx), (what), (file), (line))
sys/sys/sx.h
231
#define sx_assert_(sx, what, file, line) (void)0
sys/sys/sx.h
254
#define sx_unlock_(sx, file, line) __extension__ ({ \
sys/sys/sx.h
256
sx_xunlock_(sx, file, line); \
sys/sys/sx.h
258
sx_sunlock_(sx, file, line); \
sys/sys/syscallsubr.h
208
int kern_kevent_fp(struct thread *td, struct file *fp, int nchanges,
sys/sys/syscallsubr.h
214
int kern_kldload(struct thread *td, const char *file, int *fileid);
sys/sys/syscallsubr.h
271
enum uio_seg pathseg, int flags, int mode, struct file **fpp);
sys/sys/syscallsubr.h
42
struct file;
sys/sys/syscallsubr.h
73
typedef int (*mmap_check_fp_fn)(struct file *, int, int, int);
sys/sys/syscallsubr.h
91
struct file **fp);
sys/sys/syscallsubr.h
93
int flags, struct file **fp);
sys/sys/sysproto.h
737
char file_l_[PADL_(const char *)]; const char * file; char file_r_[PADR_(const char *)];
sys/sys/sysproto.h
743
char file_l_[PADL_(const char *)]; const char * file; char file_r_[PADR_(const char *)];
sys/sys/tty.h
225
int pts_alloc(int fflags, struct thread *td, struct file *fp);
sys/sys/tty.h
226
int pts_alloc_external(int fd, struct thread *td, struct file *fp,
sys/sys/tty.h
46
struct file;
sys/sys/unpcb.h
92
struct file *unp_file; /* (g) back-pointer to file for gc */
sys/sys/vnode.h
1185
int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
sys/sys/vnode.h
1187
int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
sys/sys/vnode.h
633
struct file;
sys/sys/vnode.h
786
int _vn_lock(struct vnode *vp, int flags, const char *file, int line);
sys/sys/vnode.h
790
int vn_open(struct nameidata *ndp, int *flagp, int cmode, struct file *fp);
sys/sys/vnode.h
792
u_int vn_open_flags, struct ucred *cred, struct file *fp);
sys/sys/vnode.h
794
struct thread *td, struct file *fp);
sys/sys/vnode.h
832
int vn_cmp(struct file *, struct file *, struct thread *td);
sys/ufs/ffs/ffs_alloc.c
3292
struct file *fp;
sys/ufs/ufs/inode.h
286
doff_t ufs_get_i_offset(struct inode *ip, const char *file, int line);
sys/ufs/ufs/inode.h
287
void ufs_set_i_offset(struct inode *ip, doff_t off, const char *file, int line);
sys/ufs/ufs/inode.h
291
int32_t ufs_get_i_count(struct inode *ip, const char *file, int line);
sys/ufs/ufs/inode.h
292
void ufs_set_i_count(struct inode *ip, int32_t cnt, const char *file, int line);
sys/ufs/ufs/inode.h
296
doff_t ufs_get_i_endoff(struct inode *ip, const char *file, int line);
sys/ufs/ufs/inode.h
297
void ufs_set_i_endoff(struct inode *ip, doff_t off, const char *file, int line);
sys/ufs/ufs/ufs_lookup.c
1461
const char *name, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1465
snprintf(msg, sizeof(msg), "at %s@%d", file, line);
sys/ufs/ufs/ufs_lookup.c
1479
file, line);
sys/ufs/ufs/ufs_lookup.c
1484
const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1488
snprintf(msg, sizeof(msg), "at %s@%d", file, line);
sys/ufs/ufs/ufs_lookup.c
1524
ufs_get_i_offset(struct inode *ip, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1527
file, line);
sys/ufs/ufs/ufs_lookup.c
1532
ufs_set_i_offset(struct inode *ip, doff_t off, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1534
ufs_set_inode_offset_owner(ip, &ip->i_offset_tracker, file, line);
sys/ufs/ufs/ufs_lookup.c
1539
ufs_get_i_count(struct inode *ip, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1542
file, line);
sys/ufs/ufs/ufs_lookup.c
1547
ufs_set_i_count(struct inode *ip, int32_t cnt, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1549
ufs_set_inode_offset_owner(ip, &ip->i_count_tracker, file, line);
sys/ufs/ufs/ufs_lookup.c
1554
ufs_get_i_endoff(struct inode *ip, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1557
file, line);
sys/ufs/ufs/ufs_lookup.c
1562
ufs_set_i_endoff(struct inode *ip, doff_t off, const char *file, int line)
sys/ufs/ufs/ufs_lookup.c
1564
ufs_set_inode_offset_owner(ip, &ip->i_endoff_tracker, file, line);
sys/vm/device_pager.c
417
struct file *fpop;
sys/vm/vm_map.c
524
_vm_map_lock(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
528
mtx_lock_flags_(&map->system_mtx, 0, file, line);
sys/vm/vm_map.c
530
sx_xlock_(&map->lock, file, line);
sys/vm/vm_map.c
615
_vm_map_assert_locked(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
619
mtx_assert_(&map->system_mtx, MA_OWNED, file, line);
sys/vm/vm_map.c
621
sx_assert_(&map->lock, SA_XLOCKED, file, line);
sys/vm/vm_map.c
657
_vm_map_unlock(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
668
mtx_unlock_flags_(&map->system_mtx, 0, file, line);
sys/vm/vm_map.c
670
sx_xunlock_(&map->lock, file, line);
sys/vm/vm_map.c
676
_vm_map_lock_read(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
680
mtx_lock_flags_(&map->system_mtx, 0, file, line);
sys/vm/vm_map.c
682
sx_slock_(&map->lock, file, line);
sys/vm/vm_map.c
686
_vm_map_unlock_read(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
692
mtx_unlock_flags_(&map->system_mtx, 0, file, line);
sys/vm/vm_map.c
694
sx_sunlock_(&map->lock, file, line);
sys/vm/vm_map.c
700
_vm_map_trylock(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
705
!mtx_trylock_flags_(&map->system_mtx, 0, file, line) :
sys/vm/vm_map.c
706
!sx_try_xlock_(&map->lock, file, line);
sys/vm/vm_map.c
713
_vm_map_trylock_read(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
718
!mtx_trylock_flags_(&map->system_mtx, 0, file, line) :
sys/vm/vm_map.c
719
!sx_try_slock_(&map->lock, file, line);
sys/vm/vm_map.c
734
_vm_map_lock_upgrade(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
739
mtx_assert_(&map->system_mtx, MA_OWNED, file, line);
sys/vm/vm_map.c
741
if (!sx_try_upgrade_(&map->lock, file, line)) {
sys/vm/vm_map.c
743
sx_sunlock_(&map->lock, file, line);
sys/vm/vm_map.c
749
sx_xlock_(&map->lock, file, line);
sys/vm/vm_map.c
751
sx_xunlock_(&map->lock, file, line);
sys/vm/vm_map.c
761
_vm_map_lock_downgrade(vm_map_t map, const char *file, int line)
sys/vm/vm_map.c
767
mtx_assert_(&map->system_mtx, MA_OWNED, file, line);
sys/vm/vm_map.c
770
sx_downgrade_(&map->lock, file, line);
sys/vm/vm_map.c
804
_vm_map_unlock_and_wait(vm_map_t map, int timo, const char *file, int line)
sys/vm/vm_map.c
812
mtx_unlock_flags_(&map->system_mtx, 0, file, line);
sys/vm/vm_map.c
814
sx_xunlock_(&map->lock, file, line);
sys/vm/vm_map.h
338
void _vm_map_lock(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
339
void _vm_map_unlock(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
340
int _vm_map_unlock_and_wait(vm_map_t map, int timo, const char *file, int line);
sys/vm/vm_map.h
341
void _vm_map_lock_read(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
342
void _vm_map_unlock_read(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
343
int _vm_map_trylock(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
344
int _vm_map_trylock_read(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
345
int _vm_map_lock_upgrade(vm_map_t map, const char *file, int line);
sys/vm/vm_map.h
346
void _vm_map_lock_downgrade(vm_map_t map, const char *file, int line);
sys/vm/vm_mmap.c
181
struct file *fp;
sys/x86/x86/ucode.c
322
caddr_t file;
sys/x86/x86/ucode.c
333
file = 0;
sys/x86/x86/ucode.c
335
file = preload_search_next_name(file);
sys/x86/x86/ucode.c
336
if (file == 0)
sys/x86/x86/ucode.c
338
type = (char *)preload_search_info(file, MODINFO_TYPE);
sys/x86/x86/ucode.c
342
name = preload_search_info(file, MODINFO_NAME);
sys/x86/x86/ucode.c
411
caddr_t file;
sys/x86/x86/ucode.c
429
file = 0;
sys/x86/x86/ucode.c
432
file = preload_search_next_name(file);
sys/x86/x86/ucode.c
433
if (file == 0)
sys/x86/x86/ucode.c
435
type = (char *)preload_search_info(file, MODINFO_TYPE);
sys/x86/x86/ucode.c
439
fileaddr = preload_fetch_addr(file);
sys/x86/x86/ucode.c
440
len = preload_fetch_size(file);
tests/sys/aio/aio_kqueue_test.c
59
char *file, pathname[sizeof(PATH_TEMPLATE)+1];
tests/sys/aio/aio_kqueue_test.c
91
file = pathname;
tests/sys/aio/aio_kqueue_test.c
94
file = argv[1];
tests/sys/aio/aio_kqueue_test.c
95
fd = open(file, O_RDWR|O_CREAT, 0666);
tests/sys/aio/aio_kqueue_test.c
98
err(1, "Can't open %s\n", file);
tests/sys/aio/lio_kqueue_test.c
67
char *file, pathname[sizeof(PATH_TEMPLATE)];
tests/sys/aio/lio_kqueue_test.c
86
file = pathname;
tests/sys/aio/lio_kqueue_test.c
89
file = argv[1];
tests/sys/aio/lio_kqueue_test.c
90
fd = open(file, O_RDWR|O_CREAT, 0666);
tests/sys/capsicum/capability-fd.cc
270
int file = openat(dir, "cap_openat_testfile", O_RDONLY|O_CREAT, 0644);
tests/sys/capsicum/capability-fd.cc
271
EXPECT_OK(file);
tests/sys/capsicum/capability-fd.cc
288
close(file);
tests/sys/capsicum/capability-fd.cc
343
int file = openat(dir, filename, O_WRONLY|O_CREAT, 0644);
tests/sys/capsicum/capability-fd.cc
344
EXPECT_OK(file);
tests/sys/capsicum/capability-fd.cc
345
EXPECT_EQ(5, write(file, "TEST\n", 5));
tests/sys/capsicum/capability-fd.cc
346
if (file >= 0) close(file);
tests/sys/capsicum/capability-fd.cc
349
file = openat(cap_dir, filename, O_RDONLY);
tests/sys/capsicum/capability-fd.cc
350
EXPECT_OK(file);
tests/sys/capsicum/capability-fd.cc
354
EXPECT_OK(cap_rights_get(file, &rights));
tests/sys/capsicum/capability-fd.cc
356
if (file >= 0) close(file);
tests/sys/capsicum/capability-fd.cc
358
file = openat(cap_dir, filename, O_WRONLY|O_APPEND);
tests/sys/capsicum/capability-fd.cc
359
EXPECT_NOTCAPABLE(file);
tests/sys/capsicum/capability-fd.cc
360
if (file > 0) close(file);
tests/sys/capsicum/capmode.cc
401
int file = openat(dfd, "testfile", O_RDONLY|O_CREAT, 0644);
tests/sys/capsicum/capmode.cc
402
EXPECT_OK(file);
tests/sys/capsicum/capmode.cc
403
EXPECT_OK(close(file));
tests/sys/capsicum/capmode.cc
463
int file = openat(dfd, "testfile", O_RDONLY|O_CREAT, 0644);
tests/sys/capsicum/capmode.cc
464
EXPECT_OK(file);
tests/sys/capsicum/capmode.cc
465
EXPECT_OK(close(file));
tests/sys/capsicum/ioctls_test.c
51
child_fail_require(const char *file, int line, const char *str)
tests/sys/capsicum/ioctls_test.c
55
snprintf(buf, sizeof(buf), "%s:%d: %s\n", file, line, str);
tests/sys/cddl/zfs/bin/mktree.c
140
getfdname(char *pdir, char type, int level, int dir, int file)
tests/sys/cddl/zfs/bin/mktree.c
143
"%s/%c-l%dd%df%d", pdir, type, level, dir, file);
tests/sys/cddl/zfs/bin/mktree.c
51
static char *getfdname(char *pdir, char type, int level, int dir, int file);
tests/sys/file/closefrom_test.c
63
child_fail_require(const char *file, int line, const char *fmt, ...)
tests/sys/file/closefrom_test.c
72
fprintf(fp, "%s:%d: ", file, line);
tests/sys/kern/copy_file_range.c
28
char buf[256], file[NAME_MAX];
tests/sys/kern/copy_file_range.c
34
snprintf(file, sizeof(file), "testfile.XXXXXX");
tests/sys/kern/copy_file_range.c
35
fd = mkstemp(file);
tests/sys/kern/inotify_test.c
264
char file[PATH_MAX], path[PATH_MAX];
tests/sys/kern/inotify_test.c
272
snprintf(file, sizeof(file), "%s/file", path);
tests/sys/kern/inotify_test.c
273
fd = open(file, O_RDWR | O_CREAT, 0644);
tests/sys/kern/inotify_test.c
276
fd = open(file, O_RDWR);
tests/sys/kern/inotify_test.c
278
fd1 = open(file, O_RDONLY);
tests/sys/kern/inotify_test.c
563
char file[PATH_MAX], file1[PATH_MAX], dir[PATH_MAX];
tests/sys/kern/inotify_test.c
569
wd2 = watch_file(ifd, IN_CLOSE_NOWRITE | IN_CLOSE_WRITE, file);
tests/sys/kern/inotify_test.c
576
fd = open(file, O_RDONLY);
tests/sys/kern/inotify_test.c
681
char root[PATH_MAX], path[PATH_MAX], file[PATH_MAX];
tests/sys/kern/inotify_test.c
705
snprintf(file, sizeof(file), "%s/file2", root);
tests/sys/kern/inotify_test.c
706
fd = open(file, O_RDWR | O_CREAT, 0644);
tests/sys/kern/inotify_test.c
709
error = rename(file, path);
tests/sys/kern/ktrace_test.c
74
child_fail_require(const char *file, int line, const char *fmt, ...)
tests/sys/kern/ktrace_test.c
80
snprintf(buf, sizeof(buf), "%s:%d: ", file, line);
tests/sys/kern/ptrace_test.c
104
snprintf(buf, sizeof(buf), "%s:%d: ", file, line);
tests/sys/kern/ptrace_test.c
98
child_fail_require(const char *file, int line, const char *fmt, ...)
tests/sys/kqueue/libkqueue/common.h
51
void _kevent_cmp(struct kevent *expected, struct kevent *got, const char *file, int line);
tests/sys/kqueue/libkqueue/main.c
240
_kevent_cmp(struct kevent *k1, struct kevent *k2, const char *file, int line)
tests/sys/kqueue/libkqueue/main.c
260
file, line, kev1_str, kev2_str);
tests/sys/kqueue/libkqueue/main.c
28
_test_no_kevents(const char *file, int line)
tests/sys/kqueue/libkqueue/main.c
39
printf("\n[%s:%d]: Unexpected event:", file, line);
tests/sys/netgraph/util.c
103
char const *file, size_t line)
tests/sys/netgraph/util.c
116
char const *file, size_t line)
tests/sys/netgraph/util.c
129
char const *file, size_t line)
tests/sys/netgraph/util.c
150
char const *file, size_t line)
tests/sys/netgraph/util.c
232
char const *file, size_t line)
tests/sys/netgraph/util.c
250
_ng_init(char const *file, size_t line)
tests/sys/netgraph/util.c
52
atf_tc_fail_requirement(file, line, "%s (%s)", \
tests/sys/netgraph/util.c
72
char const *file, size_t line)
tests/sys/netgraph/util.c
88
char const *file, size_t line)
tests/sys/netgraph/util.h
40
char const *file, size_t line);
tests/sys/netgraph/util.h
47
char const *file, size_t line);
tests/sys/netgraph/util.h
53
char const *file, size_t line);
tests/sys/netgraph/util.h
59
char const *file, size_t line);
tests/sys/netgraph/util.h
65
char const *file, size_t line);
tests/sys/netgraph/util.h
74
char const *file, size_t line);
tests/sys/netgraph/util.h
82
char const *file, size_t line);
tests/sys/netgraph/util.h
95
void _ng_init(char const *file, size_t line);
tools/build/bootstrap-m4/inittokenizer.c
1332
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
tools/build/bootstrap-m4/inittokenizer.c
1351
yy_init_buffer( b, file );
tools/build/bootstrap-m4/inittokenizer.c
1379
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
tools/build/bootstrap-m4/inittokenizer.c
1386
b->yy_input_file = file;
tools/build/bootstrap-m4/inittokenizer.c
1398
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
tools/build/bootstrap-m4/inittokenizer.c
287
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
tools/build/bootstrap-m4/inittokenizer.c
295
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
tools/build/cross-build/include/mac/sys/stat.h
40
utimensat(int fd, const char *file, const struct timespec *ts, int flag)
tools/regression/doat/doat.c
129
absolute_file = malloc(strlen(absolute_path) + 1 + strlen(file));
tools/regression/doat/doat.c
130
bzero(absolute_file, strlen(absolute_path) + 1 + strlen(file));
tools/regression/doat/doat.c
137
strcpy(absolute_file + strlen(absolute_path), file);
tools/regression/doat/doat.c
139
relative_file = malloc(strlen(relative_path) + 1 + strlen(file));
tools/regression/doat/doat.c
140
bzero(relative_file, strlen(relative_path) + 1 + strlen(file));
tools/regression/doat/doat.c
147
strcpy(relative_file + strlen(relative_path), file);
tools/regression/doat/doat.c
221
tests[0].tests[4].params[1].cp = file;
tools/regression/doat/doat.c
226
tests[0].tests[5].params[1].cp = file;
tools/regression/doat/doat.c
266
tests[1].tests[5].params[1].cp = file;
tools/regression/doat/doat.c
282
tests[2].tests[1].params[1].cp = file;
tools/regression/doat/doat.c
306
tests[2].tests[5].params[1].cp = file;
tools/regression/doat/doat.c
332
tests[3].tests[2].params[1].cp = file;
tools/regression/doat/doat.c
360
tests[4].tests[2].params[1].cp = file;
tools/regression/doat/doat.c
397
tests[5].tests[4].params[1].cp = file;
tools/regression/doat/doat.c
484
tests[9].tests[2].params[1].cp = file;
tools/regression/doat/doat.c
524
tests[11].tests[0].params[1].cp = file;
tools/regression/doat/doat.c
526
tests[11].tests[0].params[3].cp = file;
tools/regression/doat/doat.c
529
tests[11].tests[1].params[1].cp = file;
tools/regression/doat/doat.c
531
tests[11].tests[1].params[3].cp = file;
tools/regression/doat/doat.c
536
tests[11].tests[2].params[3].cp = file;
tools/regression/doat/doat.c
539
tests[11].tests[3].params[1].cp = file;
tools/regression/doat/doat.c
553
tests[12].tests[0].params[0].cp = file;
tools/regression/doat/doat.c
555
tests[12].tests[0].params[2].cp = file;
tools/regression/doat/doat.c
557
tests[12].tests[1].params[0].cp = file;
tools/regression/doat/doat.c
580
tests[13].tests[2].params[1].cp = file;
tools/regression/doat/doat.c
74
const char *file = "foo";
tools/regression/geom/MdLoad/MdLoad.c
200
g_simdisk_xml_load(const char *file)
tools/regression/geom/MdLoad/MdLoad.c
215
fd = open(file, O_RDONLY);
tools/regression/geom/MdLoad/MdLoad.c
217
err(1, "%s", file);
tools/regression/security/cap_test/cap_test_capabilities.c
434
char file[] = "/tmp/cap_test.XXXXXXXXXX";
tools/regression/security/cap_test/cap_test_capabilities.c
437
filefd = mkstemp(file);
tools/regression/security/cap_test/cap_test_capabilities.c
441
KEEP_ERRNO(unlink(file));
tools/regression/security/cap_test/cap_test_capabilities.c
446
KEEP_ERRNO(unlink(file));
tools/regression/security/cap_test/cap_test_capabilities.c
452
KEEP_ERRNO(unlink(file));
tools/regression/security/cap_test/cap_test_capabilities.c
458
KEEP_ERRNO(unlink(file));
tools/regression/security/cap_test/cap_test_capabilities.c
554
(void)unlinkat(tmpfd, file + strlen("/tmp/"), 0);
tools/test/gpioevents/gpioevents.c
209
run_read(bool loop, int handle, const char *file, u_int delayus)
tools/test/gpioevents/gpioevents.c
233
err(EXIT_FAILURE, "Cannot read from %s", file);
tools/test/gpioevents/gpioevents.c
238
getprogname(), res, file, recsize);
tools/test/gpioevents/gpioevents.c
254
run_poll(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
271
err(EXIT_FAILURE, "Cannot poll() %s", file);
tools/test/gpioevents/gpioevents.c
274
file);
tools/test/gpioevents/gpioevents.c
279
printf(") on %s\n", file);
tools/test/gpioevents/gpioevents.c
282
"on %s", file);
tools/test/gpioevents/gpioevents.c
284
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
290
run_select(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
315
err(EXIT_FAILURE, "Cannot select() %s", file);
tools/test/gpioevents/gpioevents.c
318
file);
tools/test/gpioevents/gpioevents.c
321
getprogname(), res, file);
tools/test/gpioevents/gpioevents.c
322
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
328
run_kqueue(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
347
err(EXIT_FAILURE, "kqueue() %s", file);
tools/test/gpioevents/gpioevents.c
352
err(EXIT_FAILURE, "kevent() %s", file);
tools/test/gpioevents/gpioevents.c
362
err(EXIT_FAILURE, "kevent() %s", file);
tools/test/gpioevents/gpioevents.c
365
file);
tools/test/gpioevents/gpioevents.c
368
"%s\n", getprogname(), nev, tevent[0].flags, file);
tools/test/gpioevents/gpioevents.c
371
file);
tools/test/gpioevents/gpioevents.c
373
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
379
run_aio_read(bool loop, int handle, const char *file, u_int delayus)
tools/test/gpioevents/gpioevents.c
413
err(EXIT_FAILURE, "Cannot aio_read from %s", file);
tools/test/gpioevents/gpioevents.c
418
err(EXIT_FAILURE, "aio_error on %s", file);
tools/test/gpioevents/gpioevents.c
421
err(EXIT_FAILURE, "aio_return on %s", file);
tools/test/gpioevents/gpioevents.c
425
getprogname(), res, file, recsize);
tools/test/gpioevents/gpioevents.c
435
run_sigio(bool loop, int handle, const char *file)
tools/test/gpioevents/gpioevents.c
445
err(EXIT_FAILURE, "cannot set SIGIO handler on %s", file);
tools/test/gpioevents/gpioevents.c
450
err(EXIT_FAILURE, "fcntl(F_SETFL) on %s", file);
tools/test/gpioevents/gpioevents.c
454
err(EXIT_FAILURE, "fnctl(F_SETOWN) on %s", file);
tools/test/gpioevents/gpioevents.c
460
file);
tools/test/gpioevents/gpioevents.c
461
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
471
const char *file = "/dev/gpioc0";
tools/test/gpioevents/gpioevents.c
493
file = optarg;
tools/test/gpioevents/gpioevents.c
558
handle = gpio_open_device(file);
tools/test/gpioevents/gpioevents.c
560
err(EXIT_FAILURE, "Cannot open %s", file);
tools/test/gpioevents/gpioevents.c
568
err(EXIT_FAILURE, "GPIOCONFIGEVENTS failed on %s", file);
tools/test/gpioevents/gpioevents.c
576
err(EXIT_FAILURE, "cannot set O_NONBLOCK on %s", file);
tools/test/gpioevents/gpioevents.c
645
"failed (flags=%d)", pin_config.g_pin, file,
tools/test/gpioevents/gpioevents.c
651
run_read(loop, handle, file, delayus);
tools/test/gpioevents/gpioevents.c
654
run_poll(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
657
run_select(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
660
run_kqueue(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
663
run_aio_read(loop, handle, file, delayus);
tools/test/gpioevents/gpioevents.c
666
run_sigio(loop, handle, file);
tools/test/stress2/testcases/creat/creat.c
112
char file[128];
tools/test/stress2/testcases/creat/creat.c
116
sprintf(file,"p%05d.%05d", pid, j);
tools/test/stress2/testcases/creat/creat.c
117
if ((fd = creat(file, 0660)) == -1) {
tools/test/stress2/testcases/creat/creat.c
119
warn("creat(%s). %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/creat/creat.c
129
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/creat/creat.c
130
if (unlink(file) == -1)
tools/test/stress2/testcases/creat/creat.c
131
warn("unlink(%s)", file);
tools/test/stress2/testcases/link/link.c
109
char file[128];
tools/test/stress2/testcases/link/link.c
114
sprintf(file,"p%05d.%05d", pid, j);
tools/test/stress2/testcases/link/link.c
116
if ((fd = creat(file, 0660)) == -1) {
tools/test/stress2/testcases/link/link.c
118
warn("creat(%s)", file);
tools/test/stress2/testcases/link/link.c
124
strcpy(lfile, file);
tools/test/stress2/testcases/link/link.c
126
if (link(lfile, file) == -1) {
tools/test/stress2/testcases/link/link.c
128
warn("link(%s, %s)", lfile, file);
tools/test/stress2/testcases/link/link.c
137
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/link/link.c
138
if (unlink(file) == -1)
tools/test/stress2/testcases/link/link.c
139
err(3, "unlink(%s)", file);
tools/test/stress2/testcases/lockf/lockf.c
138
sprintf(file, "lockf.0.%d", getpid());
tools/test/stress2/testcases/lockf/lockf.c
139
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1) {
tools/test/stress2/testcases/lockf/lockf.c
143
err(1, "creat(%s) %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/lockf/lockf.c
181
unlink(file);
tools/test/stress2/testcases/lockf/lockf.c
46
static char file[128];
tools/test/stress2/testcases/lockf/lockf.c
56
err(1, "lockf(%s, F_LOCK)", file);
tools/test/stress2/testcases/lockf/lockf.c
69
err(1, "lockf(%s, F_ULOCK)", file);
tools/test/stress2/testcases/lockf/lockf.c
81
err(1, "lockf(%s, F_LOCK)", file);
tools/test/stress2/testcases/lockf/lockf.c
92
err(1, "lockf(%s, F_ULOCK)", file);
tools/test/stress2/testcases/lockf2/lockf2.c
107
if ((fd = open(file, O_RDWR, 0600)) == -1)
tools/test/stress2/testcases/lockf2/lockf2.c
108
err(1, "open(%s)", file);
tools/test/stress2/testcases/lockf2/lockf2.c
121
err(1, "lockf(%s, F_LOCK)", file);
tools/test/stress2/testcases/lockf2/lockf2.c
124
err(1, "lockf(%s, F_ULOCK)", file);
tools/test/stress2/testcases/lockf2/lockf2.c
48
static char file[128];
tools/test/stress2/testcases/lockf2/lockf2.c
83
sprintf(file, "lockf.%d", getpid());
tools/test/stress2/testcases/lockf2/lockf2.c
84
if ((fd = open(file,O_CREAT | O_TRUNC | O_RDWR, 0600)) == -1)
tools/test/stress2/testcases/lockf2/lockf2.c
85
err(1, "creat(%s)", file);
tools/test/stress2/testcases/lockf2/lockf2.c
97
unlink(file);
tools/test/stress2/testcases/mmap/mmap.c
100
char file[128];
tools/test/stress2/testcases/mmap/mmap.c
107
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/mmap/mmap.c
112
if ((fdout = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
tools/test/stress2/testcases/mmap/mmap.c
113
err(1, "%s", file);
tools/test/stress2/testcases/mmap/mmap.c
143
if (unlink(file) == -1)
tools/test/stress2/testcases/mmap/mmap.c
144
err(3, "unlink(%s)", file);
tools/test/stress2/testcases/openat/doat.c
122
absolute_file = malloc(strlen(absolute_path) + 1 + strlen(file));
tools/test/stress2/testcases/openat/doat.c
123
bzero(absolute_file, strlen(absolute_path) + 1 + strlen(file));
tools/test/stress2/testcases/openat/doat.c
130
strcpy(absolute_file + strlen(absolute_path), file);
tools/test/stress2/testcases/openat/doat.c
134
relative_file = malloc(strlen(relative_path) + 1 + strlen(file));
tools/test/stress2/testcases/openat/doat.c
135
bzero(relative_file, strlen(relative_path) + 1 + strlen(file));
tools/test/stress2/testcases/openat/doat.c
142
strcpy(relative_file + strlen(relative_path), file);
tools/test/stress2/testcases/openat/doat.c
218
tests[0].tests[4].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
223
tests[0].tests[5].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
263
tests[1].tests[5].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
279
tests[2].tests[1].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
303
tests[2].tests[5].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
329
tests[3].tests[2].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
357
tests[4].tests[2].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
394
tests[5].tests[4].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
481
tests[9].tests[2].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
521
tests[11].tests[0].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
523
tests[11].tests[0].params[3].cp = file;
tools/test/stress2/testcases/openat/doat.c
526
tests[11].tests[1].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
528
tests[11].tests[1].params[3].cp = file;
tools/test/stress2/testcases/openat/doat.c
533
tests[11].tests[2].params[3].cp = file;
tools/test/stress2/testcases/openat/doat.c
536
tests[11].tests[3].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
550
tests[12].tests[0].params[0].cp = file;
tools/test/stress2/testcases/openat/doat.c
552
tests[12].tests[0].params[2].cp = file;
tools/test/stress2/testcases/openat/doat.c
554
tests[12].tests[1].params[0].cp = file;
tools/test/stress2/testcases/openat/doat.c
576
tests[13].tests[2].params[1].cp = file;
tools/test/stress2/testcases/openat/doat.c
71
char *file = "foo";
tools/test/stress2/testcases/openat/openat.c
118
char file[128];
tools/test/stress2/testcases/openat/openat.c
123
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/openat/openat.c
124
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
tools/test/stress2/testcases/openat/openat.c
125
err(1, "openat(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/openat/openat.c
128
strcat(p, file);
tools/test/stress2/testcases/openat/openat.c
140
char file[128];
tools/test/stress2/testcases/openat/openat.c
145
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/openat/openat.c
146
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
tools/test/stress2/testcases/openat/openat.c
147
err(1, "openat(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/openat/openat.c
151
if (renameat(fd, file, fd, file2) == -1)
tools/test/stress2/testcases/openat/openat.c
166
char file[128];
tools/test/stress2/testcases/openat/openat.c
170
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/openat/openat.c
171
if ((tfd = openat(fd, file, O_RDONLY|O_CREAT, 0660)) == -1)
tools/test/stress2/testcases/openat/openat.c
172
err(1, "openat(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/openat/openat.c
174
if (unlinkat(fd, file, 0) == -1)
tools/test/stress2/testcases/openat/openat.c
175
err(1, "unlinkat(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/rw/rw.c
131
char file[128];
tools/test/stress2/testcases/rw/rw.c
133
sprintf(file,"p%05d", getpid());
tools/test/stress2/testcases/rw/rw.c
134
if ((fd = creat(file, 0660)) == -1)
tools/test/stress2/testcases/rw/rw.c
135
err(1, "creat(%s)", file);
tools/test/stress2/testcases/rw/rw.c
148
err(1, "write(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/rw/rw.c
151
err(1, "close(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/rw/rw.c
153
if ((fd = open(file, O_RDONLY)) == -1)
tools/test/stress2/testcases/rw/rw.c
154
err(1, "open(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/rw/rw.c
176
err(1, "close(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/rw/rw.c
177
if (unlink(file) == -1)
tools/test/stress2/testcases/rw/rw.c
178
err(1, "unlink(%s), %s:%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/symlink/symlink.c
113
char file[128];
tools/test/stress2/testcases/symlink/symlink.c
117
sprintf(file,"p%05d.%05d", pid, j);
tools/test/stress2/testcases/symlink/symlink.c
118
if (symlink("/tmp/not/there", file) == -1) {
tools/test/stress2/testcases/symlink/symlink.c
120
warn("symlink(%s). %s.%d", file, __FILE__, __LINE__);
tools/test/stress2/testcases/symlink/symlink.c
129
sprintf(file,"p%05d.%05d", pid, i);
tools/test/stress2/testcases/symlink/symlink.c
130
if (unlink(file) == -1)
tools/test/stress2/testcases/symlink/symlink.c
131
err(3, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
104
snprintf(file, sizeof(file), "%s.%06d.%03d",
tools/test/stress2/tools/bench.c
106
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
108
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
110
if (unlink(file) == -1)
tools/test/stress2/tools/bench.c
111
err(1, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
123
char file[1024], path[1024];
tools/test/stress2/tools/bench.c
133
snprintf(file, sizeof(file), "%s/%s.%06d.%03d",
tools/test/stress2/tools/bench.c
135
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
137
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
143
snprintf(file, sizeof(file), "%s/%s.%06d.%03d",
tools/test/stress2/tools/bench.c
145
if (unlink(file) == -1)
tools/test/stress2/tools/bench.c
146
err(1, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
156
char file[128], new[128];
tools/test/stress2/tools/bench.c
166
snprintf(file, sizeof(file), "%s.%06d.%03d",
tools/test/stress2/tools/bench.c
168
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
170
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
174
if (rename(file, new) == -1)
tools/test/stress2/tools/bench.c
175
err(1, "rename(%s, %s)", file, new);
tools/test/stress2/tools/bench.c
189
char buf[512], file[128];
tools/test/stress2/tools/bench.c
199
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
200
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
202
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
204
err(1, "write(%s)", file);
tools/test/stress2/tools/bench.c
208
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
209
if ((fd = open(file, O_RDONLY)) == -1)
tools/test/stress2/tools/bench.c
210
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
212
err(1, "write(%s)", file);
tools/test/stress2/tools/bench.c
217
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
218
if (unlink(file) == -1)
tools/test/stress2/tools/bench.c
219
err(1, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
229
char *buf, file[128];
tools/test/stress2/tools/bench.c
239
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
240
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
242
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
244
err(1, "write(%s)", file);
tools/test/stress2/tools/bench.c
248
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
249
if ((fd = open(file, O_RDONLY)) == -1)
tools/test/stress2/tools/bench.c
250
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
252
err(1, "write(%s)", file);
tools/test/stress2/tools/bench.c
257
snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i);
tools/test/stress2/tools/bench.c
258
if (unlink(file) == -1)
tools/test/stress2/tools/bench.c
259
err(1, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
64
char file[128];
tools/test/stress2/tools/bench.c
73
snprintf(file, sizeof(file), "%s.%06d.%03d",
tools/test/stress2/tools/bench.c
75
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
tools/test/stress2/tools/bench.c
77
err(1, "open(%s)", file);
tools/test/stress2/tools/bench.c
83
snprintf(file, sizeof(file), "%s.%06d.%03d",
tools/test/stress2/tools/bench.c
85
if (unlink(file) == -1)
tools/test/stress2/tools/bench.c
86
err(1, "unlink(%s)", file);
tools/test/stress2/tools/bench.c
95
char file[1024];
tools/test/stress2/tools/fstool.c
108
char file[128], newPath[128];
tools/test/stress2/tools/fstool.c
111
sprintf(file,"f%05d", j);
tools/test/stress2/tools/fstool.c
112
(void) unlink(file);
tools/test/stress2/tools/fstool.c
52
char file[128];
tools/test/stress2/tools/fstool.c
70
sprintf(file,"f%05d", j);
tools/test/stress2/tools/fstool.c
71
if ((fd = creat(file, 0660)) == -1) {
tools/test/stress2/tools/fstool.c
73
err(1, "%d: creat(%s)", j, file);
tools/test/stress2/tools/fstool.c
78
err(1, "%d: write(%s), %s:%d", j, file, __FILE__, __LINE__);
tools/test/stress2/tools/serial.c
16
char *cp, *file;
tools/test/stress2/tools/serial.c
22
file = argv[1];
tools/test/stress2/tools/serial.c
25
if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0)
tools/test/stress2/tools/serial.c
26
err(1, "%s", file);
tools/tools/ath/arcode/arcode.c
73
const char *file = argv[1];
tools/tools/ath/arcode/arcode.c
83
fd = open(file, O_RDONLY);
tools/tools/ath/ath_ee_9287_print/eeprom.c
37
load_eeprom_dump(const char *file, uint16_t *buf)
tools/tools/ath/ath_ee_9287_print/eeprom.c
44
fp = fopen(file, "r");
tools/tools/ath/ath_ee_9287_print/eeprom.h
5
extern void load_eeprom_dump(const char *file, uint16_t *buf);
tools/tools/ath/ath_ee_9300_print/main.c
425
load_eeprom_dump(const char *file, uint16_t *buf)
tools/tools/ath/ath_ee_9300_print/main.c
432
fp = fopen(file, "r");
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
48
load_eeprom_dump(const char *file, uint16_t *buf)
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
55
fp = fopen(file, "r");
tools/tools/ath/ath_ee_v4k_print/eeprom.c
37
load_eeprom_dump(const char *file, uint16_t *buf)
tools/tools/ath/ath_ee_v4k_print/eeprom.c
44
fp = fopen(file, "r");
tools/tools/ath/ath_ee_v4k_print/eeprom.h
5
extern void load_eeprom_dump(const char *file, uint16_t *buf);
tools/tools/ath/athalq/main.c
109
const char *file = argv[1];
tools/tools/ath/athalq/main.c
121
fd = open(file, O_RDONLY);
tools/tools/bootparttest/bootparttest.c
108
disk.file = 1;
tools/tools/bootparttest/bootparttest.c
119
printf("%s \"%s\" opened\n", disk.file ? "Disk image": "GEOM provider",
tools/tools/bootparttest/bootparttest.c
130
if (disk.file)
tools/tools/bootparttest/bootparttest.c
64
int file;
tools/tools/bootparttest/stub.c
32
Malloc(size_t size, const char *file, int line)
tools/tools/bootparttest/stub.c
39
Free(void *ptr, const char *file, int line)
tools/tools/drm/radeon/mkregtable/mkregtable.c
636
FILE *file;
tools/tools/drm/radeon/mkregtable/mkregtable.c
654
file = fopen(filename, "r");
tools/tools/drm/radeon/mkregtable/mkregtable.c
655
if (file == NULL) {
tools/tools/drm/radeon/mkregtable/mkregtable.c
659
fseek(file, 0, SEEK_END);
tools/tools/drm/radeon/mkregtable/mkregtable.c
660
end = ftell(file);
tools/tools/drm/radeon/mkregtable/mkregtable.c
661
fseek(file, 0, SEEK_SET);
tools/tools/drm/radeon/mkregtable/mkregtable.c
664
if (fgets(buf, 1024, file) == NULL) {
tools/tools/drm/radeon/mkregtable/mkregtable.c
665
fclose(file);
tools/tools/drm/radeon/mkregtable/mkregtable.c
676
if (fgets(buf, 1024, file) == NULL) {
tools/tools/drm/radeon/mkregtable/mkregtable.c
677
fclose(file);
tools/tools/drm/radeon/mkregtable/mkregtable.c
681
if (ftell(file) == end)
tools/tools/drm/radeon/mkregtable/mkregtable.c
690
fclose(file);
tools/tools/drm/radeon/mkregtable/mkregtable.c
704
fclose(file);
tools/tools/kttcp/sys/kttcp.c
150
struct file *fp;
tools/tools/kttcp/sys/kttcp.c
198
struct file *fp;
tools/tools/netmap/nmreplay.c
255
static void destroy_pcap(struct nm_pcap_file *file);
tools/tools/netmap/pkt-gen.c
1108
pcap_t *file;
tools/tools/netmap/pkt-gen.c
1114
if ((file = pcap_open_offline(targ->g->packet_file,
tools/tools/netmap/pkt-gen.c
1118
if (pcap_next_ex(file, &header, &packet) < 0)
tools/tools/netmap/pkt-gen.c
1125
pcap_close(file);
usr.bin/calendar/io.c
104
cal_fopen(const char *file)
usr.bin/calendar/io.c
135
if ((fd = openat(cwdfd, file, O_RDONLY)) != -1) {
usr.bin/calendar/io.c
137
err(1, "fdopen(%s)", file);
usr.bin/calendar/io.c
141
cal_file = file;
usr.bin/calendar/io.c
144
err(1, "open(%s)", file);
usr.bin/calendar/io.c
161
if ((fp = fopen(file, "r")) != NULL) {
usr.bin/calendar/io.c
164
cal_file = file;
usr.bin/calendar/io.c
169
warnx("can't open calendar file \"%s\"", file);
usr.bin/cmp/misc.c
42
eofmsg(const char *file)
usr.bin/cmp/misc.c
45
warnx("EOF on %s", file);
usr.bin/comm/comm.c
49
static FILE *file(const char *);
usr.bin/comm/comm.c
95
fp1 = file(argv[0]);
usr.bin/comm/comm.c
96
fp2 = file(argv[1]);
usr.bin/ctags/ctags.c
280
find_entries(char *file)
usr.bin/ctags/ctags.c
285
if ((cp = strrchr(file, '.'))) {
usr.bin/ctags/ctags.h
61
*file, /* file name */
usr.bin/ctags/print.c
101
node->entry, node->lno, node->file, node->pat);
usr.bin/ctags/print.c
104
node->entry, node->file, searchar, node->pat, searchar);
usr.bin/ctags/print.c
98
node->entry, node->file, (node->lno + 63) / 64);
usr.bin/ctags/tree.c
102
fprintf(stderr, "Duplicate entry in files %s and %s: %s (Warning only)\n", node->file, cur_node->file, node->entry);
usr.bin/ctags/tree.c
77
np->file = curfile;
usr.bin/ctags/tree.c
95
if (node->file == cur_node->file) {
usr.bin/ctags/tree.c
97
fprintf(stderr, "Duplicate entry in file %s, line %d: %s\nSecond entry ignored\n", node->file, lineno, node->entry);
usr.bin/diff/diff.c
132
static void read_excludes_file(char *file);
usr.bin/diff/diff.c
525
read_excludes_file(char *file)
usr.bin/diff/diff.c
532
if (strcmp(file, "-") == 0)
usr.bin/diff/diff.c
534
else if ((fp = fopen(file, "r")) == NULL)
usr.bin/diff/diff.c
535
err(2, "%s", file);
usr.bin/diff/diff.c
545
if (strcmp(file, "-") != 0)
usr.bin/diff/diffreg.c
155
} *file[2];
usr.bin/diff/diffreg.c
445
member = (int *)file[1];
usr.bin/diff/diffreg.c
449
class = (int *)file[0];
usr.bin/diff/diffreg.c
583
file[i] = p;
usr.bin/diff/diffreg.c
594
file[0][pref + 1].value == file[1][pref + 1].value;
usr.bin/diff/diffreg.c
598
file[0][len[0] - suff].value == file[1][len[1] - suff].value;
usr.bin/diff/diffreg.c
602
sfile[j] = file[j] + pref;
usr.bin/dpv/dpv.c
126
file->status = DPV_STATUS_FAILED;
usr.bin/dpv/dpv.c
152
operate_on_bytes(struct dpv_file_node *file, int out)
usr.bin/dpv/dpv.c
157
if (operate_common(file, out) < 0)
usr.bin/dpv/dpv.c
165
file->status = DPV_STATUS_DONE;
usr.bin/dpv/dpv.c
179
file->read += r;
usr.bin/dpv/dpv.c
182
if (file->length >= 0) {
usr.bin/dpv/dpv.c
183
progress = (file->read * 100 / (file->length > 0 ?
usr.bin/dpv/dpv.c
184
file->length : 1));
usr.bin/dpv/dpv.c
187
if (no_overrun && progress == 100 && file->read < file->length)
usr.bin/dpv/dpv.c
196
operate_on_lines(struct dpv_file_node *file, int out)
usr.bin/dpv/dpv.c
202
if (operate_common(file, out) < 0)
usr.bin/dpv/dpv.c
210
file->status = DPV_STATUS_DONE;
usr.bin/dpv/dpv.c
227
dpv_overall_read++, p++, file->read++;
usr.bin/dpv/dpv.c
230
if (file->length >= 0) {
usr.bin/dpv/dpv.c
231
progress = (file->read * 100 / file->length);
usr.bin/dpv/dpv.c
234
if (no_overrun && progress == 100 && file->read < file->length)
usr.bin/dpv/dpv.c
71
static int operate_common(struct dpv_file_node *file, int out);
usr.bin/dpv/dpv.c
72
static int operate_on_bytes(struct dpv_file_node *file, int out);
usr.bin/dpv/dpv.c
73
static int operate_on_lines(struct dpv_file_node *file, int out);
usr.bin/dpv/dpv.c
76
operate_common(struct dpv_file_node *file, int out)
usr.bin/dpv/dpv.c
84
if (realpath(file->path, rpath) == 0 ||
usr.bin/dpv/dpv.c
86
warn("%s", file->path);
usr.bin/dpv/dpv.c
87
file->status = DPV_STATUS_FAILED;
usr.bin/dtc/fdt.cc
103
write_as_string(file);
usr.bin/dtc/fdt.cc
106
write_as_cells(file);
usr.bin/dtc/fdt.cc
111
write_as_cells(file);
usr.bin/dtc/fdt.cc
114
write_as_bytes(file);
usr.bin/dtc/fdt.cc
1200
node::write_dts(FILE *file, int indent)
usr.bin/dtc/fdt.cc
1204
putc('\t', file);
usr.bin/dtc/fdt.cc
1209
fprintf(file, "%s: ", label.c_str());
usr.bin/dtc/fdt.cc
1214
fputs(name.c_str(), file);
usr.bin/dtc/fdt.cc
1218
putc('@', file);
usr.bin/dtc/fdt.cc
1219
fputs(unit_address.c_str(), file);
usr.bin/dtc/fdt.cc
1221
fputs(" {\n\n", file);
usr.bin/dtc/fdt.cc
1224
p->write_dts(file, indent+1);
usr.bin/dtc/fdt.cc
1228
c->write_dts(file, indent+1);
usr.bin/dtc/fdt.cc
1232
putc('\t', file);
usr.bin/dtc/fdt.cc
1234
fputs("};\n", file);
usr.bin/dtc/fdt.cc
1827
FILE *file = fdopen(fd, "w");
usr.bin/dtc/fdt.cc
1828
fputs("/dts-v1/;\n\n", file);
usr.bin/dtc/fdt.cc
1834
fwrite(msg, sizeof(msg) - 1, 1, file);
usr.bin/dtc/fdt.cc
1837
fprintf(file, " 0x%" PRIx64 " 0x%" PRIx64, i.first, i.second);
usr.bin/dtc/fdt.cc
1839
fputs(";\n\n", file);
usr.bin/dtc/fdt.cc
1841
putc('/', file);
usr.bin/dtc/fdt.cc
1842
putc(' ', file);
usr.bin/dtc/fdt.cc
1843
root->write_dts(file, 0);
usr.bin/dtc/fdt.cc
1844
fclose(file);
usr.bin/dtc/fdt.cc
185
property_value::write_as_string(FILE *file)
usr.bin/dtc/fdt.cc
187
putc('"', file);
usr.bin/dtc/fdt.cc
190
fputs(string_data.c_str(), file);
usr.bin/dtc/fdt.cc
205
fputs("\", \"", file);
usr.bin/dtc/fdt.cc
208
putc(i, file);
usr.bin/dtc/fdt.cc
215
putc('"', file);
usr.bin/dtc/fdt.cc
219
property_value::write_as_cells(FILE *file)
usr.bin/dtc/fdt.cc
221
putc('<', file);
usr.bin/dtc/fdt.cc
233
fprintf(file, "0x%" PRIx32, v);
usr.bin/dtc/fdt.cc
236
putc(' ', file);
usr.bin/dtc/fdt.cc
239
putc('>', file);
usr.bin/dtc/fdt.cc
243
property_value::write_as_bytes(FILE *file)
usr.bin/dtc/fdt.cc
245
putc('[', file);
usr.bin/dtc/fdt.cc
248
fprintf(file, "%02hhx", *i);
usr.bin/dtc/fdt.cc
251
putc(' ', file);
usr.bin/dtc/fdt.cc
254
putc(']', file);
usr.bin/dtc/fdt.cc
663
property::write_dts(FILE *file, int indent)
usr.bin/dtc/fdt.cc
667
putc('\t', file);
usr.bin/dtc/fdt.cc
672
fputs(l.c_str(), file);
usr.bin/dtc/fdt.cc
673
fputs(": ", file);
usr.bin/dtc/fdt.cc
678
fputs(key.c_str(), file);
usr.bin/dtc/fdt.cc
697
fputs(" = ", file);
usr.bin/dtc/fdt.cc
700
i->write_dts(file);
usr.bin/dtc/fdt.cc
703
putc(',', file);
usr.bin/dtc/fdt.cc
704
putc(' ', file);
usr.bin/dtc/fdt.cc
708
fputs(";\n", file);
usr.bin/dtc/fdt.cc
93
property_value::write_dts(FILE *file)
usr.bin/dtc/fdt.hh
218
void write_dts(FILE *file);
usr.bin/dtc/fdt.hh
249
void write_as_string(FILE *file);
usr.bin/dtc/fdt.hh
254
void write_as_cells(FILE *file);
usr.bin/dtc/fdt.hh
259
void write_as_bytes(FILE *file);
usr.bin/dtc/fdt.hh
396
void write_dts(FILE *file, int indent);
usr.bin/dtc/fdt.hh
687
void write_dts(FILE *file, int indent);
usr.bin/dtc/input_buffer.cc
220
string file = parse_to('"');
usr.bin/dtc/input_buffer.cc
226
string include_file = dir + '/' + file;
usr.bin/dtc/input_buffer.cc
232
include_file = i + '/' + file;
usr.bin/find/function.c
616
char *file;
usr.bin/find/function.c
627
(file = strrchr(entry->fts_path, '/')))
usr.bin/find/function.c
628
file++;
usr.bin/find/function.c
630
file = entry->fts_path;
usr.bin/find/function.c
633
if ((plan->e_argv[plan->e_ppos] = strdup(file)) == NULL)
usr.bin/find/function.c
635
plan->e_len[plan->e_ppos] = strlen(file);
usr.bin/find/function.c
645
&plan->e_argv[cnt], file,
usr.bin/fortune/fortune/fortune.c
443
add_file(int percent, const char *file, const char *dir, FILEDESC **head,
usr.bin/fortune/fortune/fortune.c
454
path = file;
usr.bin/fortune/fortune/fortune.c
459
tpath = do_malloc((unsigned int)(strlen(dir) + strlen(file) + 2));
usr.bin/fortune/fortune/fortune.c
460
strcat(strcat(strcpy(tpath, dir), "/"), file);
usr.bin/fortune/fortune/fortune.c
480
file = off_name(file);
usr.bin/fortune/fortune/fortune.c
502
file = off_name(file);
usr.bin/fortune/fortune/fortune.c
505
if (dir == NULL && file[0] != '/') {
usr.bin/fortune/fortune/fortune.c
510
i += add_file(percent, file, *pstr++,
usr.bin/fortune/fortune/fortune.c
515
file, Fortune_path);
usr.bin/fortune/fortune/fortune.c
533
fp->name = file;
usr.bin/fortune/fortune/fortune.c
610
off_name(const char *file)
usr.bin/fortune/fortune/fortune.c
614
new = copy(file, (unsigned int) (strlen(file) + 2));
usr.bin/fortune/fortune/fortune.c
624
is_off_name(const char *file)
usr.bin/fortune/fortune/fortune.c
628
len = strlen(file);
usr.bin/fortune/fortune/fortune.c
630
return (len >= 3 && file[len - 2] == '-' && file[len - 1] == 'o');
usr.bin/fortune/fortune/fortune.c
725
is_dir(const char *file)
usr.bin/fortune/fortune/fortune.c
729
if (stat(file, &sbuf) < 0)
usr.bin/fortune/fortune/fortune.c
744
is_fortfile(const char *file, char **datp, char **posp, int check_for_offend)
usr.bin/fortune/fortune/fortune.c
757
DPRINTF(2, (stderr, "is_fortfile(%s) returns ", file));
usr.bin/fortune/fortune/fortune.c
764
i = strlen(file);
usr.bin/fortune/fortune/fortune.c
765
if (Offend ^ (file[i - 2] == '-' && file[i - 1] == 'o')) {
usr.bin/fortune/fortune/fortune.c
771
if ((sp = strrchr(file, '/')) == NULL)
usr.bin/fortune/fortune/fortune.c
772
sp = file;
usr.bin/fortune/fortune/fortune.c
792
datfile = copy(file, (unsigned int) (strlen(file) + 4)); /* +4 for ".dat" */
usr.bin/fortune/fortune/fortune.c
805
*posp = copy(file, (unsigned int) (strlen(file) + 4)); /* +4 for ".dat" */
usr.bin/from/from.c
100
if (strcmp(file, "-") == 0) {
usr.bin/from/from.c
103
else if ((mbox = fopen(file, "r")) == NULL) {
usr.bin/from/from.c
104
errx(EXIT_FAILURE, "can't read %s", file);
usr.bin/from/from.c
53
const char *file;
usr.bin/from/from.c
61
file = sender = NULL;
usr.bin/from/from.c
69
file = optarg;
usr.bin/from/from.c
83
if (file == NULL) {
usr.bin/from/from.c
86
file = buf;
usr.bin/from/from.c
88
if (!(file = getenv("MAIL"))) {
usr.bin/from/from.c
91
file = pwd->pw_name;
usr.bin/from/from.c
93
"%s/%s", _PATH_MAILDIR, file);
usr.bin/from/from.c
94
file = buf;
usr.bin/getent/getent.c
682
const char *file = NULL;
usr.bin/getent/getent.c
698
file = argv[3];
usr.bin/getent/getent.c
708
if (setutxdb(db, file) != 0)
usr.bin/grep/file.c
170
struct file *
usr.bin/grep/file.c
173
struct file *f;
usr.bin/grep/file.c
232
grep_close(struct file *f)
usr.bin/grep/file.c
63
grep_refill(struct file *f)
usr.bin/grep/file.c
96
grep_fgetln(struct file *f, struct parsec *pc)
usr.bin/grep/grep.h
157
void grep_close(struct file *f);
usr.bin/grep/grep.h
158
struct file *grep_open(const char *path);
usr.bin/grep/grep.h
159
char *grep_fgetln(struct file *f, struct parsec *pc);
usr.bin/grep/grep.h
85
char *file;
usr.bin/grep/queue.c
102
item->file = x->file;
usr.bin/grep/util.c
315
struct file *f;
usr.bin/grep/util.c
343
pc.ln.file = grep_strdup(fn);
usr.bin/grep/util.c
385
free(pc.ln.file);
usr.bin/grep/util.c
413
printf("%s:", pc.ln.file);
usr.bin/grep/util.c
424
free(pc.ln.file);
usr.bin/grep/util.c
743
fputs(line->file, stdout);
usr.bin/grep/util.c
746
printf("%s", line->file);
usr.bin/gzip/gzip.c
1062
copymodes(int fd, const struct stat *sbp, const char *file)
usr.bin/gzip/gzip.c
1083
maybe_warn("couldn't fchown: %s", file);
usr.bin/gzip/gzip.c
1090
maybe_warn("couldn't fchmod: %s", file);
usr.bin/gzip/gzip.c
1095
maybe_warn("couldn't futimens: %s", file);
usr.bin/gzip/gzip.c
1099
maybe_warn("couldn't fchflags: %s", file);
usr.bin/gzip/gzip.c
1169
unlink_input(const char *file, const struct stat *sb)
usr.bin/gzip/gzip.c
1175
if (stat(file, &nsb) != 0)
usr.bin/gzip/gzip.c
1181
unlink(file);
usr.bin/gzip/gzip.c
1233
check_suffix(char *file, int xlate)
usr.bin/gzip/gzip.c
1236
int len = strlen(file);
usr.bin/gzip/gzip.c
1243
sp = file + len - s->ziplen;
usr.bin/gzip/gzip.c
1258
file_compress(char *file, char *outfile, size_t outsize)
usr.bin/gzip/gzip.c
1266
in = open(file, O_RDONLY);
usr.bin/gzip/gzip.c
1268
maybe_warn("can't open %s", file);
usr.bin/gzip/gzip.c
1273
maybe_warn("couldn't stat: %s", file);
usr.bin/gzip/gzip.c
1280
maybe_warn("can't stat %s", file);
usr.bin/gzip/gzip.c
1283
infile_set(file, isb.st_size);
usr.bin/gzip/gzip.c
1288
"skipping", file,
usr.bin/gzip/gzip.c
1295
if (fflag == 0 && (suff = check_suffix(file, 0)) &&
usr.bin/gzip/gzip.c
1298
file, suff->zipped);
usr.bin/gzip/gzip.c
1305
file, suffixes[0].zipped) >= outsize)
usr.bin/gzip/gzip.c
1326
in_size = gz_compress(in, out, &size, basename(file), (uint32_t)isb.st_mtime);
usr.bin/gzip/gzip.c
1357
unlink_input(file, &isb);
usr.bin/gzip/gzip.c
1364
maybe_warnx("leaving original %s", file);
usr.bin/gzip/gzip.c
1371
file_uncompress(char *file, char *outfile, size_t outsize)
usr.bin/gzip/gzip.c
1387
fd = open(file, O_RDONLY);
usr.bin/gzip/gzip.c
1389
maybe_warn("can't open %s", file);
usr.bin/gzip/gzip.c
1393
maybe_warn("can't stat %s", file);
usr.bin/gzip/gzip.c
1400
infile_set(file, in_size);
usr.bin/gzip/gzip.c
1402
strlcpy(outfile, file, outsize);
usr.bin/gzip/gzip.c
1404
maybe_warnx("%s: unknown suffix -- ignored", file);
usr.bin/gzip/gzip.c
1414
maybe_warn("can't read %s", file);
usr.bin/gzip/gzip.c
1423
maybe_warnx("%s: not in gzip format", file);
usr.bin/gzip/gzip.c
1436
maybe_warn("can't read %s", file);
usr.bin/gzip/gzip.c
1445
maybe_warn("can't read %s", file);
usr.bin/gzip/gzip.c
1462
dp = strrchr(file, '/');
usr.bin/gzip/gzip.c
1464
dp = file;
usr.bin/gzip/gzip.c
1468
(int) (dp - file),
usr.bin/gzip/gzip.c
1469
file, (int) rbytes, nf);
usr.bin/gzip/gzip.c
1478
file, (uintmax_t)isb.st_nlink - 1);
usr.bin/gzip/gzip.c
1529
maybe_warn("zdopen for read: %s", file);
usr.bin/gzip/gzip.c
1579
print_list_out(in_size, size, file);
usr.bin/gzip/gzip.c
1623
size = gz_uncompress(fd, zfd, NULL, 0, NULL, file);
usr.bin/gzip/gzip.c
1635
maybe_warnx("%s: uncompress failed", file);
usr.bin/gzip/gzip.c
1675
unlink_input(file, &isb);
usr.bin/gzip/gzip.c
1679
maybe_warnx("%s: unexpected end of file", file);
usr.bin/gzip/gzip.c
1951
handle_file(char *file, struct stat *sbp)
usr.bin/gzip/gzip.c
1956
infile_set(file, sbp->st_size);
usr.bin/gzip/gzip.c
1958
usize = file_uncompress(file, outfile, sizeof(outfile));
usr.bin/gzip/gzip.c
1960
print_test(file, usize != -1);
usr.bin/gzip/gzip.c
1965
gsize = file_compress(file, outfile, sizeof(outfile));
usr.bin/gzip/gzip.c
1973
print_verbage(file, (cflag) ? NULL : outfile, usize, gsize);
usr.bin/gzip/gzip.c
2054
print_verbage(const char *file, const char *nfile, off_t usize, off_t gsize)
usr.bin/gzip/gzip.c
2056
if (file)
usr.bin/gzip/gzip.c
2057
fprintf(stderr, "%s:%s ", file,
usr.bin/gzip/gzip.c
2058
strlen(file) < 7 ? "\t\t" : "\t");
usr.bin/gzip/gzip.c
2068
print_test(const char *file, int ok)
usr.bin/gzip/gzip.c
2073
fprintf(stderr, "%s:%s %s\n", file,
usr.bin/gzip/gzip.c
2074
strlen(file) < 7 ? "\t\t" : "\t", ok ? "OK" : "NOT OK");
usr.bin/gzip/gzip.c
264
static void copymodes(int fd, const struct stat *, const char *file);
usr.bin/indent/args.c
335
FILE *file;
usr.bin/indent/args.c
338
if ((file = fopen(str, "r")) == NULL) {
usr.bin/indent/args.c
342
while ((fgets(line, BUFSIZ, file)) != NULL) {
usr.bin/indent/args.c
347
fclose(file);
usr.bin/last/last.c
150
file = optarg;
usr.bin/last/last.c
187
if (setutxdb(UTXDB_LOG, file) != 0)
usr.bin/last/last.c
188
xo_err(1, "%s", file != NULL ? file : "(default utx db)");
usr.bin/last/last.c
254
xo_emit("\n{:utxdb/%s}", (file == NULL) ? "utx.log" : file);
usr.bin/last/last.c
81
static const char *file = NULL; /* utx.log file */
usr.bin/ldd/ldd.c
103
argv[i++] = strdup(file);
usr.bin/ldd/ldd.c
84
execldd32(char *file, char *fmt1, char *fmt2, int aflag)
usr.bin/lex/initscan.c
286
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
usr.bin/lex/initscan.c
294
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
usr.bin/lex/initscan.c
4673
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
usr.bin/lex/initscan.c
4692
yy_init_buffer( b, file );
usr.bin/lex/initscan.c
4720
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
usr.bin/lex/initscan.c
4727
b->yy_input_file = file;
usr.bin/lex/initscan.c
4739
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
usr.bin/lex/initscan.c
5222
void set_input_file( char *file )
usr.bin/lex/initscan.c
5224
if ( file && strcmp( file, "-" ) )
usr.bin/lex/initscan.c
5226
infilename = xstrdup(file);
usr.bin/lex/initscan.c
5230
lerr( _( "can't open %s" ), file );
usr.bin/localedef/localedef.c
107
FILE *file;
usr.bin/localedef/localedef.c
122
file = fopen(category_file(), "w");
usr.bin/localedef/localedef.c
123
if (file == NULL) {
usr.bin/localedef/localedef.c
127
return (file);
usr.bin/look/look.c
100
file = _path_words;
usr.bin/look/look.c
131
file = *argv++;
usr.bin/look/look.c
136
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
usr.bin/look/look.c
137
err(2, "%s", file);
usr.bin/look/look.c
139
errx(2, "%s: %s", file, strerror(EFBIG));
usr.bin/look/look.c
145
err(2, "%s", file);
usr.bin/look/look.c
149
} while (argc-- > 2 && (file = *argv++));
usr.bin/look/look.c
95
unsigned const char *file;
usr.bin/m4/mdef.h
155
FILE *file;
usr.bin/m4/misc.c
395
f->c = fgetc(f->file);
usr.bin/m4/misc.c
405
f->file = real;
usr.bin/m4/misc.c
423
if (ferror(f->file))
usr.bin/m4/misc.c
425
if (f->file != stdin)
usr.bin/m4/misc.c
426
fclose(f->file);
usr.bin/mail/cmd2.c
154
char *file;
usr.bin/mail/cmd2.c
160
if ((file = snarf(str, &f)) == NULL)
usr.bin/mail/cmd2.c
172
if ((file = expand(file)) == NULL)
usr.bin/mail/cmd2.c
174
printf("\"%s\" ", file);
usr.bin/mail/cmd2.c
176
if (access(file, 0) >= 0)
usr.bin/mail/cmd2.c
180
if ((obuf = Fopen(file, "a")) == NULL) {
usr.bin/mail/cmd2.c
188
warnx("%s", file);
usr.bin/mail/cmd2.c
197
warn("%s", file);
usr.bin/mail/cmdtab.c
79
{ "file", file, T|M|RAWLIST, 0, 1 },
usr.bin/mail/cmdtab.c
80
{ "folder", file, T|M|RAWLIST, 0, 1 },
usr.bin/mail/extern.h
115
int file(void *);
usr.bin/mkcsmapper/yacc.y
121
file : property mapping lns
usr.bin/mkesdb/yacc.y
78
file : property
usr.bin/mkimg/image.c
257
if (fd == ch->ch_u.file.fd &&
usr.bin/mkimg/image.c
259
ofs == (off_t)(ch->ch_u.file.ofs + ch->ch_size)) {
usr.bin/mkimg/image.c
264
ofs = ch->ch_u.file.ofs + ch->ch_size;
usr.bin/mkimg/image.c
274
ch->ch_u.file.ofs = ofs;
usr.bin/mkimg/image.c
275
ch->ch_u.file.fd = fd;
usr.bin/mkimg/image.c
626
error = image_copyout_file(fd, sz, ch->ch_u.file.fd,
usr.bin/mkimg/image.c
627
ch->ch_u.file.ofs + ofs);
usr.bin/mkimg/image.c
68
} file;
usr.bin/mkimg/image.c
717
if (ch->ch_u.file.fd != -1)
usr.bin/mkimg/image.c
718
close(ch->ch_u.file.fd);
usr.bin/mkstr/mkstr.c
310
fgetNUL(char *obuf, int rmdr, FILE *file)
usr.bin/mkstr/mkstr.c
315
while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF)
usr.bin/mkstr/mkstr.c
318
getc(file);
usr.bin/mkstr/mkstr.c
319
return ((feof(file) || ferror(file)) ? 0 : 1);
usr.bin/patch/backupfile.c
104
file_name_length = strlen(file);
usr.bin/patch/backupfile.c
110
this_version = version_number(file, dp->d_name, file_name_length);
usr.bin/patch/backupfile.c
123
make_version_name(const char *file, int version)
usr.bin/patch/backupfile.c
127
if (asprintf(&backup_name, "%s.~%d~", file, version) == -1)
usr.bin/patch/backupfile.c
52
find_backup_file_name(const char *file)
usr.bin/patch/backupfile.c
58
return concat(file, simple_backup_suffix);
usr.bin/patch/backupfile.c
59
tmp_file = strdup(file);
usr.bin/patch/backupfile.c
66
tmp_file = strdup(file);
usr.bin/patch/backupfile.c
81
return concat(file, simple_backup_suffix);
usr.bin/patch/backupfile.c
82
return make_version_name(file, highest_backup + 1);
usr.bin/patch/backupfile.c
92
max_backup_version(const char *file, const char *dir)
usr.bin/patch/backupfile.h
37
char *find_backup_file_name(const char *file);
usr.bin/posixmqcontrol/posixmqcontrol.c
705
usage(FILE *file)
usr.bin/posixmqcontrol/posixmqcontrol.c
707
fprintf(file,
usr.bin/rpcgen/rpc_main.c
209
const char *file;
usr.bin/rpcgen/rpc_main.c
211
if ((file = strrchr(path, '/')) == NULL)
usr.bin/rpcgen/rpc_main.c
212
file = path;
usr.bin/rpcgen/rpc_main.c
214
file++;
usr.bin/rpcgen/rpc_main.c
215
res = xmalloc(strlen(file) + strlen(ext) + 1);
usr.bin/rpcgen/rpc_main.c
216
p = strrchr(file, '.');
usr.bin/rpcgen/rpc_main.c
218
p = file + strlen(file);
usr.bin/rpcgen/rpc_main.c
220
(void) strcpy(res, file);
usr.bin/rpcgen/rpc_main.c
221
(void) strcpy(res + (p - file), ext);
usr.bin/rpcgen/rpc_main.c
449
file_name(const char *file, const char *ext)
usr.bin/rpcgen/rpc_main.c
452
temp = extendfile(file, ext);
usr.bin/rpcgen/rpc_scan.c
454
char *file;
usr.bin/rpcgen/rpc_scan.c
473
p = file = xmalloc(strlen(line) + 1);
usr.bin/rpcgen/rpc_scan.c
481
if (*file == 0) {
usr.bin/rpcgen/rpc_scan.c
483
free(file);
usr.bin/rpcgen/rpc_scan.c
485
*fname = file;
usr.bin/rpcgen/rpc_util.c
266
record_open(const char *file)
usr.bin/rpcgen/rpc_util.c
269
outfiles[nfiles++] = file;
usr.bin/rpcgen/rpc_util.h
179
void record_open(const char *file);
usr.bin/sdiff/edit.c
168
if (!(file = fopen(filename, "r"))) {
usr.bin/sdiff/edit.c
177
nread = fread(buf, sizeof(*buf), sizeof(buf), file);
usr.bin/sdiff/edit.c
180
(ferror(file) || !feof(file))) {
usr.bin/sdiff/edit.c
203
fclose(file);
usr.bin/sdiff/edit.c
86
FILE *file;
usr.bin/sdiff/sdiff.c
1049
printa(FILE *file, size_t line2)
usr.bin/sdiff/sdiff.c
1054
if (!(line = xfgets(file)))
usr.bin/sdiff/sdiff.c
684
xfgets(FILE *file)
usr.bin/sdiff/sdiff.c
690
clearerr(file);
usr.bin/sdiff/sdiff.c
694
if ((l = getline(&s, &linecap, file)) == -1) {
usr.bin/sdiff/sdiff.c
695
if (ferror(file))
usr.bin/sed/main.c
502
struct s_flist *file;
usr.bin/sed/main.c
506
file = files;
usr.bin/sed/main.c
507
while ((file = file->next) != NULL) {
usr.bin/sed/main.c
508
if ((file_fd = fopen(file->fname, "r")) == NULL)
usr.bin/sockstat/main.c
1158
struct file *f;
usr.bin/sockstat/main.c
1160
&(struct file){ .xf_data =
usr.bin/sockstat/main.c
1182
struct file *f;
usr.bin/sockstat/main.c
1192
&(struct file){ .xf_data = p->socket });
usr.bin/sockstat/main.c
1365
struct file *xf;
usr.bin/sockstat/main.c
1645
struct file *xf;
usr.bin/sockstat/main.c
182
RB_ENTRY(file) file_tree;
usr.bin/sockstat/main.c
189
static RB_HEAD(files_t, file) ftree = RB_INITIALIZER(&ftree);
usr.bin/sockstat/main.c
191
file_compare(const struct file *a, const struct file *b)
usr.bin/sockstat/main.c
195
RB_GENERATE_STATIC(files_t, file, file_tree, file_compare);
usr.bin/sockstat/main.c
197
static struct file *files;
usr.bin/sockstat/main.c
902
if ((files = malloc(nfiles * sizeof(struct file))) == NULL)
usr.bin/sort/file.c
526
FILE *file;
usr.bin/sort/file.c
556
if ((file = popen(cmd, mode)) == NULL)
usr.bin/sort/file.c
560
if ((file = fopen(fn, mode)) == NULL)
usr.bin/sort/file.c
566
return (file);
usr.bin/sort/file.c
644
ret->file = openfile(fsrc, "r");
usr.bin/sort/file.c
645
if (ret->file == NULL)
usr.bin/sort/file.c
68
FILE *file;
usr.bin/sort/file.c
682
len = getdelim(&fr->buffer, &fr->bsz, fr->elsymb, fr->file);
usr.bin/sort/file.c
684
if (!feof(fr->file))
usr.bin/sort/file.c
709
closefile(fr->file, fr->fname);
usr.bin/stat/stat.c
215
const char *file;
usr.bin/stat/stat.c
358
file = dname;
usr.bin/stat/stat.c
360
file = "(stdin)";
usr.bin/stat/stat.c
365
file = argv[0];
usr.bin/stat/stat.c
369
j = MIN(2 * sizeof(fhnd), strlen(file));
usr.bin/stat/stat.c
374
rc = hex2byte(&file[j - 2]);
usr.bin/stat/stat.c
392
if ((rc = stat(file, &st)) == -1 &&
usr.bin/stat/stat.c
394
(rc = lstat(file, &st)) == -1)
usr.bin/stat/stat.c
397
rc = lstat(file, &st);
usr.bin/stat/stat.c
404
warn("%s", file);
usr.bin/stat/stat.c
406
output(&st, file, statfmt, fn);
usr.bin/stat/stat.c
446
output(const struct stat *st, const char *file, const char *statfmt, int fn)
usr.bin/stat/stat.c
614
file,
usr.bin/stat/stat.c
639
const char *file,
usr.bin/stat/stat.c
845
if (file == NULL) {
usr.bin/stat/stat.c
850
if (realpath(file, path + 4) == NULL) {
usr.bin/stat/stat.c
867
l = readlink(file, path + 4, sizeof(path) - 4 - 1);
usr.bin/stat/stat.c
934
(void)strlcpy(path, file, sizeof(path));
usr.bin/stat/stat.c
946
file,
usr.bin/stat/stat.c
952
file,
usr.bin/stat/stat.c
962
file,
usr.bin/tail/forward.c
238
show(file_info_t *file)
usr.bin/tail/forward.c
242
while ((ch = getc(file->fp)) != EOF) {
usr.bin/tail/forward.c
243
if (last != file) {
usr.bin/tail/forward.c
245
printfn(file->file_name, 1);
usr.bin/tail/forward.c
246
last = file;
usr.bin/tail/forward.c
252
if (ferror(file->fp)) {
usr.bin/tail/forward.c
253
fclose(file->fp);
usr.bin/tail/forward.c
254
file->fp = NULL;
usr.bin/tail/forward.c
255
ierr(file->file_name);
usr.bin/tail/forward.c
258
clearerr(file->fp);
usr.bin/tail/forward.c
266
file_info_t *file;
usr.bin/tail/forward.c
274
for (i = 0, file = files; i < no_files; i++, file++) {
usr.bin/tail/forward.c
275
if (!file->fp)
usr.bin/tail/forward.c
278
if (fstatfs(fileno(file->fp), &sf) == 0 &&
usr.bin/tail/forward.c
284
if (Fflag && fileno(file->fp) != STDIN_FILENO) {
usr.bin/tail/forward.c
285
EV_SET(&ev[n], fileno(file->fp), EVFILT_VNODE,
usr.bin/tail/forward.c
290
EV_SET(&ev[n], fileno(file->fp), EVFILT_READ,
usr.bin/tail/forward.c
309
file_info_t *file;
usr.bin/tail/forward.c
315
for (i = 0, file = files; i < no_files; i++, file++) {
usr.bin/tail/forward.c
316
if (!file->fp)
usr.bin/tail/forward.c
320
printfn(file->file_name, 1);
usr.bin/tail/forward.c
321
forward(file->fp, file->file_name, style, off, &file->st);
usr.bin/tail/forward.c
326
last = --file;
usr.bin/tail/forward.c
344
for (i = 0, file = files; i < no_files; i++, file++) {
usr.bin/tail/forward.c
345
if (!file->fp) {
usr.bin/tail/forward.c
346
file->fp =
usr.bin/tail/forward.c
347
fileargs_fopen(fa, file->file_name,
usr.bin/tail/forward.c
349
if (file->fp != NULL &&
usr.bin/tail/forward.c
350
fstat(fileno(file->fp), &file->st)
usr.bin/tail/forward.c
352
fclose(file->fp);
usr.bin/tail/forward.c
353
file->fp = NULL;
usr.bin/tail/forward.c
355
if (file->fp != NULL)
usr.bin/tail/forward.c
359
if (fileno(file->fp) == STDIN_FILENO)
usr.bin/tail/forward.c
361
ftmp = fileargs_fopen(fa, file->file_name, "r");
usr.bin/tail/forward.c
365
ierr(file->file_name);
usr.bin/tail/forward.c
366
show(file);
usr.bin/tail/forward.c
367
if (file->fp != NULL) {
usr.bin/tail/forward.c
368
fclose(file->fp);
usr.bin/tail/forward.c
369
file->fp = NULL;
usr.bin/tail/forward.c
378
if (sb2.st_ino != file->st.st_ino ||
usr.bin/tail/forward.c
379
sb2.st_dev != file->st.st_dev ||
usr.bin/tail/forward.c
381
show(file);
usr.bin/tail/forward.c
382
if (file->fp != NULL)
usr.bin/tail/forward.c
383
fclose(file->fp);
usr.bin/tail/forward.c
384
file->fp = ftmp;
usr.bin/tail/forward.c
385
memcpy(&file->st, &sb2,
usr.bin/tail/forward.c
394
for (i = 0, file = files; i < no_files; i++, file++)
usr.bin/tail/forward.c
395
if (file->fp && !show(file))
usr.bin/tail/forward.c
422
ierr(file->file_name);
usr.bin/tail/tail.c
263
file.file_name = fn;
usr.bin/tail/tail.c
264
file.fp = stdin;
usr.bin/tail/tail.c
265
file.st = sb;
usr.bin/tail/tail.c
266
follow(&file, style, off);
usr.bin/tail/tail.c
82
file_info_t file, *filep, *files;
usr.bin/tcopy/tcopy.cc
508
report_total(FILE *file)
usr.bin/tcopy/tcopy.cc
513
fprintf(file, "total length: %ju bytes", tot);
usr.bin/tcopy/tcopy.cc
514
fprintf(file, " time: %.0f s", dur);
usr.bin/tcopy/tcopy.cc
516
fprintf(file, " rate: %.1f kB/s", (double)tot/dur);
usr.bin/tcopy/tcopy.cc
517
fprintf(file, "\n");
usr.bin/tip/tip/value.c
100
vlex(file);
usr.bin/tip/tip/value.c
54
char file[FILENAME_MAX], *cp;
usr.bin/tip/tip/value.c
87
} else if (strlen(cp) + sizeof("/.tiprc") > sizeof(file)) {
usr.bin/tip/tip/value.c
91
snprintf(file, sizeof file, "%s/.tiprc", value(HOME));
usr.bin/tip/tip/value.c
92
if ((fp = fopen(file, "r")) != NULL) {
usr.bin/tip/tip/value.c
95
while (fgets(file, sizeof(file)-1, fp) != NULL) {
usr.bin/tip/tip/value.c
97
printf("set %s", file);
usr.bin/tip/tip/value.c
98
if ((tp = strrchr(file, '\n')))
usr.bin/uniq/uniq.c
147
ifp = file(ifn = argv[0], "r");
usr.bin/uniq/uniq.c
153
ofp = file(ofn = argv[1], "w");
usr.bin/uniq/uniq.c
71
static FILE *file(const char *, const char *);
usr.bin/wc/wc.c
176
show_cnt(const char *file, uintmax_t linect, uintmax_t wordct,
usr.bin/wc/wc.c
196
if (file != stdin_filename)
usr.bin/wc/wc.c
197
xo_emit_h(xop, " {:filename/%s}\n", file);
usr.bin/wc/wc.c
203
cnt(const char *file)
usr.bin/wc/wc.c
217
if (file == NULL) {
usr.bin/wc/wc.c
219
file = stdin_filename;
usr.bin/wc/wc.c
220
} else if ((fd = fileargs_open(fa, file)) < 0) {
usr.bin/wc/wc.c
221
xo_warn("%s: open", file);
usr.bin/wc/wc.c
232
xo_warn("%s: fstat", file);
usr.bin/wc/wc.c
240
show_cnt(file, linect, wordct, charct, llct);
usr.bin/wc/wc.c
254
xo_warn("%s: read", file);
usr.bin/wc/wc.c
259
show_cnt(file, linect, wordct, charct, llct);
usr.bin/wc/wc.c
281
show_cnt(file, linect, wordct, charct, llct);
usr.bin/wc/wc.c
291
xo_warn("%s: read", file);
usr.bin/wc/wc.c
298
show_cnt(file, linect, wordct, charct, llct);
usr.bin/wc/wc.c
307
xo_warn("%s", file);
usr.bin/wc/wc.c
338
xo_warn("%s", file);
usr.bin/wc/wc.c
348
show_cnt(file, linect, wordct, charct, llct);
usr.bin/wc/wc.c
64
static void show_cnt(const char *file, uintmax_t linect, uintmax_t wordct,
usr.bin/what/what.c
44
const char *file;
usr.bin/what/what.c
73
file = *argv++;
usr.bin/what/what.c
74
in = fopen(file, "r");
usr.bin/what/what.c
77
warn("%s", file);
usr.bin/what/what.c
81
printf("%s:\n", file);
usr.bin/xstr/xstr.c
301
fgetNUL(char *obuf, int rmdr, FILE *file)
usr.bin/xstr/xstr.c
306
while (--rmdr > 0 && (c = xgetc(file)) != 0 && c != EOF)
usr.bin/xstr/xstr.c
309
return ((feof(file) || ferror(file)) ? 0 : 1);
usr.bin/xstr/xstr.c
313
xgetc(FILE *file)
usr.bin/xstr/xstr.c
317
return (getc(file));
usr.sbin/ac/ac.c
403
ac(const char *file)
usr.sbin/ac/ac.c
415
if (setutxdb(UTXDB_LOG, file) != 0)
usr.sbin/ac/ac.c
416
err(1, "%s", file);
usr.sbin/arp/arp.c
202
rtn = file(argv[0]);
usr.sbin/arp/arp.c
81
static int file(char *name);
usr.sbin/bhyvectl/bhyvectl.c
291
open_directory(const char *file)
usr.sbin/bhyvectl/bhyvectl.c
296
if ((path = strdup(file)) == NULL)
usr.sbin/bhyvectl/bhyvectl.c
307
snapshot_request(const char *vmname, char *file, bool suspend)
usr.sbin/bhyvectl/bhyvectl.c
312
if ((fd = open_directory(file)) < 0)
usr.sbin/bhyvectl/bhyvectl.c
317
nvlist_add_string(nvl, "filename", basename(file));
usr.sbin/bluetooth/bthidd/bthidd.c
188
write_pid_file(char const *file)
usr.sbin/bluetooth/bthidd/bthidd.c
192
assert(file != NULL);
usr.sbin/bluetooth/bthidd/bthidd.c
194
if ((pid = fopen(file, "w")) == NULL) {
usr.sbin/bluetooth/bthidd/bthidd.c
196
file, strerror(errno), errno);
usr.sbin/bluetooth/bthidd/bthidd.c
211
remove_pid_file(char const *file)
usr.sbin/bluetooth/bthidd/bthidd.c
213
assert(file != NULL);
usr.sbin/bluetooth/bthidd/bthidd.c
215
if (unlink(file) < 0) {
usr.sbin/bluetooth/bthidd/bthidd.c
217
file, strerror(errno), errno);
usr.sbin/bluetooth/bthidd/bthidd.c
52
static int32_t write_pid_file (char const *file);
usr.sbin/bluetooth/bthidd/bthidd.c
53
static int32_t remove_pid_file (char const *file);
usr.sbin/bluetooth/btpand/event.h
106
_event_add(char const *file, int line, struct event *ev,
usr.sbin/bluetooth/btpand/event.h
109
"timeout=%p", file, line, ev, ev->fd, ev->flags, ev->cb,
usr.sbin/bluetooth/btpand/event.h
112
ev->files[1] = file;
usr.sbin/bluetooth/btpand/event.h
119
_event_del(char const *file, int line, struct event *ev)
usr.sbin/bluetooth/btpand/event.h
122
file, line, ev, ev->fd, ev->flags, ev->cb, ev->cbarg);
usr.sbin/bluetooth/btpand/event.h
124
ev->files[2] = file;
usr.sbin/bluetooth/btpand/event.h
93
_event_set(char const *file, int line, struct event *ev, int fd, short flags,
usr.sbin/bluetooth/btpand/event.h
97
file, line, ev, fd, flags, cb, cbarg);
usr.sbin/bluetooth/btpand/event.h
99
ev->files[0] = file;
usr.sbin/bsdinstall/distextract/distextract.c
175
count_files(const char *file)
usr.sbin/bsdinstall/distextract/distextract.c
198
if (span < 1 || strncmp(p, file, span) != 0)
usr.sbin/bsdinstall/distextract/distextract.c
230
snprintf(path, sizeof(path), "%s/%s", distdir, file);
usr.sbin/bsdinstall/distextract/distextract.c
234
"Error while extracting %s: %s\n", file,
usr.sbin/bsdinstall/distextract/distextract.c
252
extract_files(struct bsddialog_fileminibar *file)
usr.sbin/bsdinstall/distextract/distextract.c
274
snprintf(path, sizeof(path), "%s/%s", distdir, file->path);
usr.sbin/bsdinstall/distextract/distextract.c
278
"Error opening %s: %s\n", file->label,
usr.sbin/bsdinstall/distextract/distextract.c
282
file->status = BSDDIALOG_MG_FAILED;
usr.sbin/bsdinstall/distextract/distextract.c
302
file->status = BSDDIALOG_MG_DONE; /*Done*/;
usr.sbin/bsdinstall/distextract/distextract.c
314
"Error while extracting %s: %s\n", file->label,
usr.sbin/bsdinstall/distextract/distextract.c
318
file->status = BSDDIALOG_MG_FAILED; /* Failed */
usr.sbin/bsdinstall/distextract/distextract.c
324
file->read++;
usr.sbin/bsdinstall/distextract/distextract.c
327
if (file->size >= 0)
usr.sbin/bsdinstall/distextract/distextract.c
328
return (file->read * 100 / file->size);
usr.sbin/bsdinstall/distextract/distextract.c
53
static int count_files(const char *file);
usr.sbin/bsdinstall/distextract/distextract.c
54
static int extract_files(struct bsddialog_fileminibar *file);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
955
snmp_import_file(struct snmp_toolinfo *snmptoolctx, struct fname *file)
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
959
snmp_import_init(&(file->cut));
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
960
input_fopen(file->name);
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
962
warnx("Failed to read mappings from file %s", file->name);
usr.sbin/camdd/camdd.c
1032
file_dev = &dev->dev_spec.file;
usr.sbin/camdd/camdd.c
2386
struct camdd_dev_file *file_dev = &dev->dev_spec.file;
usr.sbin/camdd/camdd.c
294
struct camdd_dev_file file;
usr.sbin/camdd/camdd.c
547
struct camdd_dev_file *file_dev = &dev->dev_spec.file;
usr.sbin/certctl/certctl.c
278
RB_ENTRY(file) entry;
usr.sbin/certctl/certctl.c
284
filecmp(const struct file *a, const struct file *b)
usr.sbin/certctl/certctl.c
293
RB_HEAD(file_tree, file);
usr.sbin/certctl/certctl.c
294
RB_GENERATE_STATIC(file_tree, file, entry, filecmp);
usr.sbin/certctl/certctl.c
422
struct file *file, *tmp;
usr.sbin/certctl/certctl.c
434
if ((file = calloc(1, sizeof(*file))) == NULL)
usr.sbin/certctl/certctl.c
436
file->cert = cert;
usr.sbin/certctl/certctl.c
437
for (file->c = 0; file->c < INT_MAX; file->c++)
usr.sbin/certctl/certctl.c
438
if (RB_INSERT(file_tree, &files, file) == NULL)
usr.sbin/certctl/certctl.c
440
if (file->c == INT_MAX)
usr.sbin/certctl/certctl.c
443
cert->path = xasprintf("%08lx.%d", cert->hash, file->c);
usr.sbin/certctl/certctl.c
468
file = RB_MIN(file_tree, &files);
usr.sbin/certctl/certctl.c
476
if (file != NULL) {
usr.sbin/certctl/certctl.c
478
path = file->cert->path;
usr.sbin/certctl/certctl.c
486
if (file != NULL) {
usr.sbin/certctl/certctl.c
488
path = file->cert->path;
usr.sbin/certctl/certctl.c
531
!PEM_write_X509(f, file->cert->x509)) {
usr.sbin/certctl/certctl.c
560
tmp = RB_NEXT(file_tree, &files, file);
usr.sbin/certctl/certctl.c
561
RB_REMOVE(file_tree, &files, file);
usr.sbin/certctl/certctl.c
562
free(file);
usr.sbin/certctl/certctl.c
563
file = tmp;
usr.sbin/certctl/certctl.c
576
write_bundle(const char *dir, const char *file, struct cert_tree *tree)
usr.sbin/certctl/certctl.c
591
info("writing %s/%s", dir, file);
usr.sbin/certctl/certctl.c
595
tmpfile = xasprintf(".%s", file);
usr.sbin/certctl/certctl.c
604
err(1, "%s/%s", dir, tmpfile ? tmpfile : file);
usr.sbin/certctl/certctl.c
608
warn("%s/%s", dir, tmpfile ? tmpfile : file);
usr.sbin/certctl/certctl.c
614
if (ret == 0 && renameat(d, tmpfile, d, file) != 0) {
usr.sbin/certctl/certctl.c
615
warn("%s/%s", dir, file);
usr.sbin/certctl/certctl.c
625
unexpand_path(dir), file, uname, gname, mode, ftell(f));
usr.sbin/certctl/certctl.c
739
char *dir, *file, *sep;
usr.sbin/certctl/certctl.c
744
file = bundle_dest;
usr.sbin/certctl/certctl.c
747
file = sep + 1;
usr.sbin/certctl/certctl.c
750
ret = write_bundle(dir, file, &trusted);
usr.sbin/chown/chown.c
247
chownerr(const char *file)
usr.sbin/chown/chown.c
257
warn("%s", file);
usr.sbin/chown/chown.c
275
warn("%s", file);
usr.sbin/config/config.y
4
struct file_list *file;
usr.sbin/config/main.cc
443
path(const char *file)
usr.sbin/config/main.cc
447
if (file)
usr.sbin/config/main.cc
448
asprintf(&cp, "%s/%s", destdir, file);
usr.sbin/config/main.cc
691
remember(const char *file)
usr.sbin/config/main.cc
696
if ((s = strrchr(file, '/')) != NULL)
usr.sbin/config/main.cc
699
s = ns(file);
usr.sbin/config/main.cc
725
kernconfdump(const char *file)
usr.sbin/config/main.cc
733
r = open(file, O_RDONLY);
usr.sbin/config/main.cc
735
err(EXIT_FAILURE, "Couldn't open file '%s'", file);
usr.sbin/config/main.cc
740
errx(EXIT_FAILURE, "'%s' is a directory", file);
usr.sbin/config/main.cc
750
"| tail -5 | cut -d ' ' -f 2 | paste - - - - -", file);
usr.sbin/config/main.cc
762
errx(EXIT_FAILURE, "%s: incoherent ELF headers", file);
usr.sbin/config/main.cc
766
"INCLUDE_CONFIG_FILE", file);
usr.sbin/config/mkmakefile.cc
83
fl_lookup(char *file)
usr.sbin/config/mkmakefile.cc
88
if (eq(fp->f_fn, file))
usr.sbin/config/mkoptions.cc
139
char *file;
usr.sbin/config/mkoptions.cc
150
file = tooption(name);
usr.sbin/config/mkoptions.cc
170
remember(file);
usr.sbin/config/mkoptions.cc
171
inf = fopen(file, "r");
usr.sbin/config/mkoptions.cc
173
outf = fopen(file, "w");
usr.sbin/config/mkoptions.cc
175
err(1, "%s", file);
usr.sbin/config/mkoptions.cc
221
inw->c_str(), file);
usr.sbin/config/mkoptions.cc
265
outf = fopen(file, "w");
usr.sbin/config/mkoptions.cc
267
err(1, "%s", file);
usr.sbin/cron/cron/user.c
100
e = load_entry(file, log_error, pw, envp);
usr.sbin/cron/cron/user.c
120
fclose(file);
usr.sbin/cron/cron/user.c
54
FILE *file;
usr.sbin/cron/cron/user.c
60
if (!(file = fdopen(crontab_fd, "r"))) {
usr.sbin/cron/cron/user.c
92
while ((status = load_env(envstr, file)) >= OK) {
usr.sbin/cron/lib/entry.c
119
skip_comments(file);
usr.sbin/cron/lib/entry.c
121
ch = get_char(file);
usr.sbin/cron/lib/entry.c
154
ch = get_string(cmd, MAX_COMMAND, file, " \t\n");
usr.sbin/cron/lib/entry.c
232
Skip_Blanks(ch, file);
usr.sbin/cron/lib/entry.c
242
PPC_NULL, ch, file);
usr.sbin/cron/lib/entry.c
252
PPC_NULL, ch, file);
usr.sbin/cron/lib/entry.c
264
PPC_NULL, ch, file);
usr.sbin/cron/lib/entry.c
274
MonthNames, ch, file);
usr.sbin/cron/lib/entry.c
286
DowNames, ch, file);
usr.sbin/cron/lib/entry.c
300
unget_char(ch, file);
usr.sbin/cron/lib/entry.c
311
ch = get_string(username, MAX_COMMAND, file, " \t");
usr.sbin/cron/lib/entry.c
320
Skip_Blanks(ch, file)
usr.sbin/cron/lib/entry.c
321
unget_char(ch, file);
usr.sbin/cron/lib/entry.c
437
ch = get_char(file);
usr.sbin/cron/lib/entry.c
441
switch (ch = get_char(file)) {
usr.sbin/cron/lib/entry.c
467
ch = get_char(file);
usr.sbin/cron/lib/entry.c
473
Skip_Blanks(ch, file)
usr.sbin/cron/lib/entry.c
480
unget_char(ch, file);
usr.sbin/cron/lib/entry.c
488
ch = get_string(cmd, MAX_COMMAND, file, "\n");
usr.sbin/cron/lib/entry.c
516
ch = get_char(file);
usr.sbin/cron/lib/entry.c
530
FILE *file)
usr.sbin/cron/lib/entry.c
553
ch = get_range(bits, low, high, names, ch, file);
usr.sbin/cron/lib/entry.c
555
ch = get_char(file);
usr.sbin/cron/lib/entry.c
562
Skip_Nonblanks(ch, file)
usr.sbin/cron/lib/entry.c
563
Skip_Blanks(ch, file)
usr.sbin/cron/lib/entry.c
580
FILE *file)
usr.sbin/cron/lib/entry.c
594
ch = get_char(file);
usr.sbin/cron/lib/entry.c
598
if (EOF == (ch = get_number(&num1, low, names, ch, file)))
usr.sbin/cron/lib/entry.c
612
ch = get_char(file);
usr.sbin/cron/lib/entry.c
618
ch = get_number(&num2, low, names, ch, file);
usr.sbin/cron/lib/entry.c
629
ch = get_char(file);
usr.sbin/cron/lib/entry.c
638
ch = get_number(&num3, 0, PPC_NULL, ch, file);
usr.sbin/cron/lib/entry.c
668
get_number(int *numptr, int low, const char *names[], int ch, FILE *file)
usr.sbin/cron/lib/entry.c
687
ch = get_char(file);
usr.sbin/cron/lib/entry.c
93
load_entry(FILE *file, void (*error_func)(const char *), struct passwd *pw,
usr.sbin/cron/lib/misc.c
221
get_char(FILE *file)
usr.sbin/cron/lib/misc.c
225
ch = getc(file);
usr.sbin/cron/lib/misc.c
235
unget_char(int ch, FILE *file)
usr.sbin/cron/lib/misc.c
237
ungetc(ch, file);
usr.sbin/cron/lib/misc.c
250
get_string(char *string, int size, FILE *file, char *terms)
usr.sbin/cron/lib/misc.c
254
while (EOF != (ch = get_char(file)) && !strchr(terms, ch)) {
usr.sbin/cron/lib/misc.c
271
skip_comments(FILE *file)
usr.sbin/cron/lib/misc.c
275
while (EOF != (ch = get_char(file))) {
usr.sbin/cron/lib/misc.c
280
ch = get_char(file);
usr.sbin/cron/lib/misc.c
296
ch = get_char(file);
usr.sbin/cron/lib/misc.c
303
unget_char(ch, file);
usr.sbin/cron/lib/misc.c
312
in_file(char *string, FILE *file)
usr.sbin/cron/lib/misc.c
316
rewind(file);
usr.sbin/cron/lib/misc.c
317
while (fgets(line, MAX_TEMPSTR, file)) {
usr.sbin/fwcontrol/fwcontrol.c
501
FILE *file;
usr.sbin/fwcontrol/fwcontrol.c
504
if ((file = fopen(filename, "r")) == NULL)
usr.sbin/fwcontrol/fwcontrol.c
507
fscanf(file, DUMP_FORMAT,
usr.sbin/fwcontrol/fwcontrol.c
511
fclose(file);
usr.sbin/kbdcontrol/kbdcontrol.c
285
get_definition_line(FILE *file, keymap_t *keymap, accentmap_t *accentmap)
usr.sbin/kbdcontrol/kbdcontrol.c
289
yyin = file;
usr.sbin/kbdcontrol/kbdcontrol.c
841
FILE *file;
usr.sbin/kbdcontrol/kbdcontrol.c
862
file = NULL;
usr.sbin/kbdcontrol/kbdcontrol.c
864
for (j=0; postfix[j] && file == NULL; j++) {
usr.sbin/kbdcontrol/kbdcontrol.c
866
file = fopen(name, "r");
usr.sbin/kbdcontrol/kbdcontrol.c
867
if (file != NULL)
usr.sbin/kbdcontrol/kbdcontrol.c
871
if (file == NULL) {
usr.sbin/kbdcontrol/kbdcontrol.c
879
if (get_definition_line(file, &keymap, &accentmap) < 0)
usr.sbin/kbdcontrol/kbdcontrol.c
897
fclose(file);
usr.sbin/kbdcontrol/kbdcontrol.c
908
fclose(file);
usr.sbin/lastlogin/lastlogin.c
114
if (setutxdb(UTXDB_LASTLOGIN, file) != 0)
usr.sbin/lastlogin/lastlogin.c
125
if (setutxdb(UTXDB_LASTLOGIN, file) != 0)
usr.sbin/lastlogin/lastlogin.c
58
static const char *file = NULL;
usr.sbin/lastlogin/lastlogin.c
92
file = optarg;
usr.sbin/lpr/common_source/displayq.c
409
file[0] = '\0';
usr.sbin/lpr/common_source/displayq.c
437
if (copycnt == 0 || strcmp(file, line+1) != 0) {
usr.sbin/lpr/common_source/displayq.c
438
strlcpy(file, line + 1, sizeof(file));
usr.sbin/lpr/common_source/displayq.c
451
if ((file[0] != '\0') && (savedname[0] != '\0')) {
usr.sbin/lpr/common_source/displayq.c
452
show(savedname, file, copycnt);
usr.sbin/lpr/common_source/displayq.c
454
file[0] = '\0';
usr.sbin/lpr/common_source/displayq.c
460
if (file[0] != '\0') {
usr.sbin/lpr/common_source/displayq.c
463
strlcpy(savedname, file, sizeof(savedname));
usr.sbin/lpr/common_source/displayq.c
465
show(savedname, file, copycnt);
usr.sbin/lpr/common_source/displayq.c
74
static char file[MAXNAMLEN+1]; /* print file name */
usr.sbin/lpr/common_source/rmjob.c
185
process(const struct printer *pp, char *file)
usr.sbin/lpr/common_source/rmjob.c
189
if (!chk(file))
usr.sbin/lpr/common_source/rmjob.c
192
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
193
fatal(pp, "cannot open %s", file);
usr.sbin/lpr/common_source/rmjob.c
204
do_unlink(file);
usr.sbin/lpr/common_source/rmjob.c
208
do_unlink(char *file)
usr.sbin/lpr/common_source/rmjob.c
215
ret = unlink(file);
usr.sbin/lpr/common_source/rmjob.c
217
printf(ret ? "cannot dequeue %s\n" : "%s dequeued\n", file);
usr.sbin/lpr/common_source/rmjob.c
224
chk(char *file)
usr.sbin/lpr/common_source/rmjob.c
234
if (strlen(file) < 7 || file[0] != 'c' || file[1] != 'f')
usr.sbin/lpr/common_source/rmjob.c
237
jnum = calc_jobnum(file, &cfhost);
usr.sbin/lpr/common_source/rmjob.c
245
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
257
return(!strcmp(file, current) && isowner(line+1, file, cfhost));
usr.sbin/lpr/common_source/rmjob.c
262
if (*r == jnum && isowner(line+1, file, cfhost))
usr.sbin/lpr/common_source/rmjob.c
268
if (!strcmp(*u, line+1) && isowner(line+1, file, cfhost))
usr.sbin/lpr/common_source/rmjob.c
280
isowner(char *owner, char *file, const char *cfhost)
usr.sbin/lpr/common_source/rmjob.c
289
printf("%s: Permission denied\n", file);
usr.sbin/lpr/lpc/cmds.c
1057
char file[MAXPATHLEN];
usr.sbin/lpr/lpc/cmds.c
1060
lock_file_name(pp, file, sizeof file);
usr.sbin/lpr/lpc/cmds.c
1061
if (stat(file, &stbuf) >= 0) {
usr.sbin/lpr/lpc/cmds.c
1088
fd = open(file, O_RDONLY);
usr.sbin/lpr/lpc/cmds.c
1096
status_file_name(pp, file, sizeof file);
usr.sbin/lpr/lpc/cmds.c
1097
fd = open(file, O_RDONLY|O_SHLOCK);
usr.sbin/lpr/lpd/printjob.c
1001
statrc = lstat(file, &stb);
usr.sbin/lpr/lpd/printjob.c
1004
pp->printer, file);
usr.sbin/lpr/lpd/printjob.c
1007
sfd = open(file, O_RDONLY);
usr.sbin/lpr/lpd/printjob.c
1010
pp->printer, file);
usr.sbin/lpr/lpd/printjob.c
1132
file);
usr.sbin/lpr/lpd/printjob.c
1135
file, copycnt);
usr.sbin/lpr/lpd/printjob.c
1159
trstat_init(pp, file, job_dfcnt);
usr.sbin/lpr/lpd/printjob.c
1173
syslog(LOG_INFO, "%s: %s: changed size", pp->printer, file);
usr.sbin/lpr/lpd/printjob.c
375
printit(struct printer *pp, char *file)
usr.sbin/lpr/lpd/printjob.c
386
if ((cfp = fopen(file, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
387
syslog(LOG_INFO, "%s: fopen(%s): %m", pp->printer, file);
usr.sbin/lpr/lpd/printjob.c
533
pp->printer, file);
usr.sbin/lpr/lpd/printjob.c
589
(void) unlink(file);
usr.sbin/lpr/lpd/printjob.c
604
print(struct printer *pp, int format, char *file)
usr.sbin/lpr/lpd/printjob.c
616
wait4data(pp, file);
usr.sbin/lpr/lpd/printjob.c
618
if (lstat(file, &stb) < 0 || (fi = open(file, O_RDONLY)) < 0) {
usr.sbin/lpr/lpd/printjob.c
620
pp->printer, file, format);
usr.sbin/lpr/lpd/printjob.c
883
sendit(struct printer *pp, char *file)
usr.sbin/lpr/lpd/printjob.c
891
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpd/printjob.c
966
if (err == OK && sendfile(pp, '\2', file, '\0', 1) > 0) {
usr.sbin/lpr/lpd/printjob.c
981
(void) unlink(file);
usr.sbin/lpr/lpd/printjob.c
990
sendfile(struct printer *pp, int type, char *file, char format, int copyreq)
usr.sbin/lpr/lpd/printjob.c
999
wait4data(pp, file);
usr.sbin/lpr/lpd/recvjob.c
310
readfile(struct printer *pp, char *file, size_t size)
usr.sbin/lpr/lpd/recvjob.c
316
fd = open(file, O_CREAT|O_EXCL|O_WRONLY, FILMOD);
usr.sbin/lpr/lpd/recvjob.c
324
f0 = file[0];
usr.sbin/lpr/lpd/recvjob.c
325
file[0] = '\0';
usr.sbin/lpr/lpd/recvjob.c
327
pp->printer, f0, file + 1, strerror(errno));
usr.sbin/lpr/lpd/recvjob.c
346
pp->printer, file);
usr.sbin/lpr/lpd/recvjob.c
353
frecverr("%s: write error on close(%s)", pp->printer, file);
usr.sbin/lpr/lpd/recvjob.c
357
(void) unlink(file);
usr.sbin/lpr/lpr/lpr.c
566
linked(const char *file)
usr.sbin/lpr/lpr/lpr.c
572
if (*file != '/') {
usr.sbin/lpr/lpr/lpr.c
575
while (file[0] == '.') {
usr.sbin/lpr/lpr/lpr.c
576
switch (file[1]) {
usr.sbin/lpr/lpr/lpr.c
578
file += 2;
usr.sbin/lpr/lpr/lpr.c
581
if (file[2] == '/') {
usr.sbin/lpr/lpr/lpr.c
584
file += 3;
usr.sbin/lpr/lpr/lpr.c
591
strncat(buf, file, sizeof(buf) - strlen(buf) - 1);
usr.sbin/lpr/lpr/lpr.c
592
file = buf;
usr.sbin/lpr/lpr/lpr.c
595
ret = symlink(file, dfname);
usr.sbin/lpr/lpr/lpr.c
597
return(ret ? NULL : file);
usr.sbin/lpr/lpr/lpr.c
689
test(const char *file)
usr.sbin/lpr/lpr/lpr.c
695
if (access(file, 4) < 0) {
usr.sbin/lpr/lpr/lpr.c
696
printf("%s: cannot access %s\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
699
if (stat(file, &statb) < 0) {
usr.sbin/lpr/lpr/lpr.c
700
printf("%s: cannot stat %s\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
704
printf("%s: %s is a directory\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
708
printf("%s: %s is an empty file\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
711
if ((fd = open(file, O_RDONLY)) < 0) {
usr.sbin/lpr/lpr/lpr.c
712
printf("%s: cannot open %s\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
722
if ((cp = strrchr(file, '/')) == NULL) {
usr.sbin/lpr/lpr/lpr.c
723
if (checkwriteperm(file,".") == 0)
usr.sbin/lpr/lpr/lpr.c
726
if (cp == file) {
usr.sbin/lpr/lpr/lpr.c
727
fd = checkwriteperm(file,"/");
usr.sbin/lpr/lpr/lpr.c
730
dlen = cp - file + 1;
usr.sbin/lpr/lpr/lpr.c
732
strlcpy(dirpath, file, dlen);
usr.sbin/lpr/lpr/lpr.c
733
fd = checkwriteperm(file, dirpath);
usr.sbin/lpr/lpr/lpr.c
739
printf("%s: %s: is not removable by you\n", progname, file);
usr.sbin/lpr/lpr/lpr.c
745
checkwriteperm(const char *file, const char *directory)
usr.sbin/lpr/lpr/lpr.c
751
stat(file, &stats);
usr.sbin/makefs/cd9660.c
1877
cd9660_copy_stat_info(cd9660node *from, cd9660node *to, int file)
usr.sbin/makefs/cd9660.c
1891
if (file)
usr.sbin/makefs/cd9660.c
1901
cd9660node *parent, int file, int insert)
usr.sbin/makefs/cd9660.c
1917
temp->isoDirRecord->name, sizeof(temp->isoDirRecord->name), file);
usr.sbin/makefs/cd9660.c
1939
if (file)
usr.sbin/makefs/cd9660.c
1947
cd9660_copy_stat_info(parent, temp, file);
usr.sbin/ndp/ndp.c
128
static int file(char *);
usr.sbin/ndp/ndp.c
229
exit(file(optarg) ? 1 : 0);
usr.sbin/newsyslog/newsyslog.c
1811
if (strcmp(fname, inc->file) == 0) {
usr.sbin/newsyslog/newsyslog.c
1820
inc->file = strdup(fname);
usr.sbin/newsyslog/newsyslog.c
212
const char *file; /* Name of file to process */
usr.sbin/newsyslog/newsyslog.c
2488
sizefile(const char *file)
usr.sbin/newsyslog/newsyslog.c
2492
if (stat(file, &sb) < 0)
usr.sbin/newsyslog/newsyslog.c
2502
mtime_old_timelog(const char *file)
usr.sbin/newsyslog/newsyslog.c
2514
if ((dirbuf = strdup(file)) == NULL) {
usr.sbin/newsyslog/newsyslog.c
2515
warn("strdup() of '%s'", file);
usr.sbin/newsyslog/newsyslog.c
2519
if ((logfnamebuf = strdup(file)) == NULL) {
usr.sbin/newsyslog/newsyslog.c
2520
warn("strdup() of '%s'", file);
usr.sbin/newsyslog/newsyslog.c
2541
warn("Cannot stat '%s'", file);
usr.sbin/newsyslog/newsyslog.c
2557
age_old_log(const char *file)
usr.sbin/newsyslog/newsyslog.c
2584
strlcpy(tmp, file, tmpsiz);
usr.sbin/newsyslog/newsyslog.c
2595
if ((p = strrchr(file, '/')) == NULL)
usr.sbin/newsyslog/newsyslog.c
2596
strlcat(tmp, file, tmpsiz);
usr.sbin/newsyslog/newsyslog.c
2600
(void) strlcpy(tmp, file, tmpsiz);
usr.sbin/newsyslog/newsyslog.c
309
static int age_old_log(const char *file);
usr.sbin/newsyslog/newsyslog.c
888
inc->file = conf;
usr.sbin/newsyslog/newsyslog.c
889
if (inc->file == NULL)
usr.sbin/newsyslog/newsyslog.c
890
inc->file = _PATH_CONF;
usr.sbin/newsyslog/newsyslog.c
894
if (strcmp(inc->file, "-") != 0)
usr.sbin/newsyslog/newsyslog.c
895
f = fopen(inc->file, "r");
usr.sbin/newsyslog/newsyslog.c
898
inc->file = "<stdin>";
usr.sbin/newsyslog/newsyslog.c
901
err(1, "%s", inc->file);
usr.sbin/newsyslog/newsyslog.c
904
printf("Processing %s\n", inc->file);
usr.sbin/pkg/rsa.c
46
load_public_key_file(const char *file)
usr.sbin/pkg/rsa.c
52
bp = BIO_new_file(file, "r");
usr.sbin/pkg/rsa.c
54
errx(EXIT_FAILURE, "Unable to read %s", file);
usr.sbin/ppp/chap.c
500
if (*authp->physical->dl->bundle->radius.cfg.file) {
usr.sbin/ppp/chap.c
558
if (*bundle->radius.cfg.file && bundle->radius.msrepstr)
usr.sbin/ppp/chap.c
567
if (*bundle->radius.cfg.file && bundle->radius.repstr)
usr.sbin/ppp/chap.c
598
if (*bundle->radius.cfg.file && bundle->radius.errstr)
usr.sbin/ppp/chap.c
864
if (*bundle->radius.cfg.file) {
usr.sbin/ppp/command.c
2058
if (arg->bundle->radius.alive.interval && !*arg->bundle->radius.cfg.file) {
usr.sbin/ppp/command.c
2221
*arg->bundle->radius.cfg.file = '\0';
usr.sbin/ppp/command.c
2227
strncpy(arg->bundle->radius.cfg.file, argp,
usr.sbin/ppp/command.c
2228
sizeof arg->bundle->radius.cfg.file - 1);
usr.sbin/ppp/command.c
2229
arg->bundle->radius.cfg.file
usr.sbin/ppp/command.c
2230
[sizeof arg->bundle->radius.cfg.file - 1] = '\0';
usr.sbin/ppp/command.c
2347
if (arg->bundle->radius.port_id_type && !*arg->bundle->radius.cfg.file) {
usr.sbin/ppp/ipcp.c
883
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipcp.c
952
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipv6cp.c
489
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/ipv6cp.c
542
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
usr.sbin/ppp/mppe.c
440
if (*r->cfg.file) {
usr.sbin/ppp/mppe.c
465
if (*fp->bundle->radius.cfg.file && fp->bundle->radius.mppe.policy)
usr.sbin/ppp/mppe.c
483
if (*bundle->radius.cfg.file && bundle->radius.mppe.types) {
usr.sbin/ppp/mppe.c
696
if (*bundle->radius.cfg.file && bundle->radius.mppe.recvkey) {
usr.sbin/ppp/mppe.c
752
if (*bundle->radius.cfg.file && bundle->radius.mppe.sendkey) {
usr.sbin/ppp/pap.c
149
if (*bundle->radius.cfg.file && bundle->radius.repstr)
usr.sbin/ppp/pap.c
267
if (*bundle->radius.cfg.file) {
usr.sbin/ppp/radius.c
1106
if (!*r->cfg.file)
usr.sbin/ppp/radius.c
1123
if (rad_config(r->cx.rad, r->cfg.file) != 0) {
usr.sbin/ppp/radius.c
1303
*r->cfg.file ? r->cfg.file : "none");
usr.sbin/ppp/radius.c
1348
if (*bundle->radius.cfg.file && bundle->radius.alive.interval) {
usr.sbin/ppp/radius.c
787
*r->cfg.file = '\0';
usr.sbin/ppp/radius.c
910
if (!*r->cfg.file)
usr.sbin/ppp/radius.c
927
if (rad_config(r->cx.rad, r->cfg.file) != 0) {
usr.sbin/ppp/radius.h
72
char file[PATH_MAX]; /* Radius config file */
usr.sbin/ppp/systems.c
316
ReadSystem(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
332
if (*file == '/')
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
477
system_Select(struct bundle *bundle, const char *name, const char *file,
usr.sbin/ppp/systems.c
482
return ReadSystem(bundle, name, file, prompt, cx, SYSTEM_EXEC);
usr.sbin/ppp/systems.c
49
OpenSecret(const char *file)
usr.sbin/ppp/systems.c
54
snprintf(line, sizeof line, "%s/%s", PPP_CONFDIR, file);
usr.sbin/pw/grupd.c
39
getgrpath(const char * file)
usr.sbin/pw/grupd.c
43
snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file);
usr.sbin/pw/pw.h
70
struct userconf *read_userconfig(char const * file);
usr.sbin/pw/pw.h
71
int write_userconfig(struct userconf *cnf, char const * file);
usr.sbin/pw/pw_conf.c
241
read_userconfig(char const * file)
usr.sbin/pw/pw_conf.c
252
if ((fp = fopen(file, "r")) == NULL)
usr.sbin/pw/pw_conf.c
405
write_userconfig(struct userconf *cnf, const char *file)
usr.sbin/pw/pw_conf.c
415
if (file == NULL) {
usr.sbin/pw/pw_conf.c
418
file = cfgfile;
usr.sbin/pw/pw_conf.c
421
if ((fd = open(file, O_CREAT|O_RDWR|O_TRUNC|O_EXLOCK, 0644)) == -1)
usr.sbin/pw/pw_user.c
1009
unlinkat(conf.rootfd, file + 1, 0);
usr.sbin/pw/pw_user.c
845
char file[MAXPATHLEN];
usr.sbin/pw/pw_user.c
933
snprintf(file, sizeof(file), "/var/cron/tabs/%s", pwd->pw_name);
usr.sbin/pw/pw_user.c
934
if (access(file, F_OK) == 0) {
usr.sbin/pw/pw_user.c
957
snprintf(file, sizeof(file), "%s/%s", _PATH_MAILDIR, pwd->pw_name);
usr.sbin/pw/pwupd.c
43
getpwpath(char const * file)
usr.sbin/pw/pwupd.c
47
snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file);
usr.sbin/pw/pwupd.h
122
char * getpwpath(char const * file);
usr.sbin/pw/pwupd.h
128
char * getgrpath(const char *file);
usr.sbin/setfmac/setfmac.c
230
add_specs(struct label_specs *specs, const char *file, int is_sebsd)
usr.sbin/setfmac/setfmac.c
241
fp = fopen(file, "r");
usr.sbin/setfmac/setfmac.c
243
err(1, "opening %s", file);
usr.sbin/setfmac/setfmac.c
252
err(1, "fgetln on %s", file);
usr.sbin/setfmac/setfmac.c
262
errx(1, "%s ended prematurely", file);
usr.sbin/setfmac/setfmac.c
264
err(1, "failure reading %s", file);
usr.sbin/setfmac/setfmac.c
272
add_spec_line(file, is_sebsd, &spec->entries[--nlines], line);
usr.sbin/setfmac/setfmac.c
278
warnx("%s: read %lu specifications", file,
usr.sbin/setfmac/setfmac.c
302
add_spec_line(const char *file, int is_sebsd, struct label_spec_entry *entry,
usr.sbin/setfmac/setfmac.c
311
errx(1, "%s: need regular expression", file);
usr.sbin/setfmac/setfmac.c
314
errx(1, "%s: need a label", file);
usr.sbin/setfmac/setfmac.c
321
errx(1, "%s: extraneous fields at end of line", file);
usr.sbin/setfmac/setfmac.c
324
err(1, "%s: processing regular expression", file);
usr.sbin/setfmac/setfmac.c
333
errx(1, "%s: %s: %s", file, entry->regexstr, regerrorstr);
usr.sbin/setfmac/setfmac.c
347
errx(1, "%s: invalid mode string: %s", file, modestr);
usr.sbin/setfmac/setfmac.c
378
errx(1, "%s: invalid mode string: %s", file, modestr);
usr.sbin/syslogd/syslogd.c
2321
char file[MAXPATHLEN];
usr.sbin/syslogd/syslogd.c
2362
if (snprintf(file, sizeof(file), "%s/%s", p,
usr.sbin/syslogd/syslogd.c
2363
ent[i]->d_name) >= (int)sizeof(file)) {
usr.sbin/syslogd/syslogd.c
2370
cf2 = fopen(file, "r");
usr.sbin/syslogd/syslogd.c
2373
dprintf("reading %s\n", file);
usr.sbin/tzsetup/tzsetup.c
392
const char *file, struct continent *cont)
usr.sbin/tzsetup/tzsetup.c
410
zp->filename = strdup(file);
usr.sbin/tzsetup/tzsetup.c
456
char *line, *country_list, *tlc, *file, *descr;
usr.sbin/tzsetup/tzsetup.c
507
file = strsep(&line, "\t");
usr.sbin/tzsetup/tzsetup.c
508
cont = find_continent(lineno, file);
usr.sbin/tzsetup/tzsetup.c
514
add_zone_to_country(lineno, cp, descr, file,
usr.sbin/vidcontrol/vidcontrol.c
362
fsize(FILE *file)
usr.sbin/vidcontrol/vidcontrol.c
366
if (fstat(fileno(file), &sb) == 0)
usr.sbin/ypldap/parse.y
119
| grammar error '\n' { file->errors++; }
usr.sbin/ypldap/parse.y
131
struct file *nfile;
usr.sbin/ypldap/parse.y
140
file = nfile;
usr.sbin/ypldap/parse.y
347
file->errors++;
usr.sbin/ypldap/parse.y
352
logit(LOG_CRIT, "%s:%d: %s", file->name, yylval.lineno, msg);
usr.sbin/ypldap/parse.y
441
if ((c = getc(file->stream)) == EOF) {
usr.sbin/ypldap/parse.y
444
if (file == topfile || popfile() == EOF)
usr.sbin/ypldap/parse.y
451
while ((c = getc(file->stream)) == '\\') {
usr.sbin/ypldap/parse.y
452
next = getc(file->stream);
usr.sbin/ypldap/parse.y
457
yylval.lineno = file->lineno;
usr.sbin/ypldap/parse.y
458
file->lineno++;
usr.sbin/ypldap/parse.y
462
if (file == topfile || popfile() == EOF)
usr.sbin/ypldap/parse.y
464
c = getc(file->stream);
usr.sbin/ypldap/parse.y
499
file->lineno++;
usr.sbin/ypldap/parse.y
521
yylval.lineno = file->lineno;
usr.sbin/ypldap/parse.y
55
TAILQ_HEAD(files, file) files = TAILQ_HEAD_INITIALIZER(files);
usr.sbin/ypldap/parse.y
560
file->lineno++;
usr.sbin/ypldap/parse.y
568
file->lineno++;
usr.sbin/ypldap/parse.y
57
TAILQ_ENTRY(file) entry;
usr.sbin/ypldap/parse.y
62
} *file, *topfile;
usr.sbin/ypldap/parse.y
63
struct file *pushfile(const char *, int);
usr.sbin/ypldap/parse.y
649
yylval.lineno = file->lineno;
usr.sbin/ypldap/parse.y
650
file->lineno++;
usr.sbin/ypldap/parse.y
677
struct file *
usr.sbin/ypldap/parse.y
680
struct file *nfile;
usr.sbin/ypldap/parse.y
682
if ((nfile = calloc(1, sizeof(struct file))) == NULL) {
usr.sbin/ypldap/parse.y
711
struct file *prev;
usr.sbin/ypldap/parse.y
713
if ((prev = TAILQ_PREV(file, files, entry)) != NULL)
usr.sbin/ypldap/parse.y
714
prev->errors += file->errors;
usr.sbin/ypldap/parse.y
716
TAILQ_REMOVE(&files, file, entry);
usr.sbin/ypldap/parse.y
717
fclose(file->stream);
usr.sbin/ypldap/parse.y
718
free(file->name);
usr.sbin/ypldap/parse.y
719
free(file);
usr.sbin/ypldap/parse.y
720
file = prev;
usr.sbin/ypldap/parse.y
721
return (file ? 0 : EOF);
usr.sbin/ypldap/parse.y
738
if ((file = pushfile(filename, 1)) == NULL) {
usr.sbin/ypldap/parse.y
741
topfile = file;
usr.sbin/ypldap/parse.y
749
errors = file->errors;