Lines Matching refs:fa
55 int fileargs_lstat(fileargs_t *fa, const char *name, struct stat *sb);
56 int fileargs_open(fileargs_t *fa, const char *name);
57 char *fileargs_realpath(fileargs_t *fa, const char *pathname,
59 void fileargs_free(fileargs_t *fa);
60 FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode);
63 cap_channel_t *fileargs_unwrap(fileargs_t *fa, int *fdflags);
76 fileargs_t *fa;
78 fa = malloc(sizeof(*fa));
79 if (fa != NULL) {
80 fa->fa_flags = flags;
81 fa->fa_mode = mode;
84 return (fa);
98 fileargs_t *fa;
100 fa = fileargs_init(0, NULL,
107 return (fa);
117 #define fileargs_lstat(fa, name, sb) \
119 #define fileargs_open(fa, name) \
120 open(name, fa->fa_flags, fa->fa_mode)
121 #define fileargs_realpath(fa, pathname, reserved_path) \
125 FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode)
127 (void) fa;
130 #define fileargs_free(fa) (free(fa))
141 fileargs_unwrap(fileargs_t *fa, int *fdflags)
145 *fdflags = fa->fa_flags;
147 fileargs_free(fa);