Lines Matching refs:fa
57 int fileargs_lstat(fileargs_t *fa, const char *name, struct stat *sb);
58 int fileargs_open(fileargs_t *fa, const char *name);
59 char *fileargs_realpath(fileargs_t *fa, const char *pathname,
61 void fileargs_free(fileargs_t *fa);
62 FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode);
65 cap_channel_t *fileargs_unwrap(fileargs_t *fa, int *fdflags);
78 fileargs_t *fa;
80 fa = malloc(sizeof(*fa));
81 if (fa != NULL) {
82 fa->fa_flags = flags;
83 fa->fa_mode = mode;
86 return (fa);
100 fileargs_t *fa;
102 fa = fileargs_init(0, NULL,
109 return (fa);
119 #define fileargs_lstat(fa, name, sb) \
121 #define fileargs_open(fa, name) \
122 open(name, fa->fa_flags, fa->fa_mode)
123 #define fileargs_realpath(fa, pathname, reserved_path) \
127 FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode)
129 (void) fa;
132 #define fileargs_free(fa) (free(fa))
143 fileargs_unwrap(fileargs_t *fa, int *fdflags)
147 *fdflags = fa->fa_flags;
149 fileargs_free(fa);