Searched refs:fa (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-current/lib/libcasper/services/cap_fileargs/
H A Dcap_fileargs.h55 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 !
[all...]
H A Dcap_fileargs.c60 fileargs_get_lstat_cache(fileargs_t *fa, const char *name, struct stat *sb) argument
66 assert(fa != NULL);
67 assert(fa->fa_magic == FILEARGS_MAGIC);
70 if (fa->fa_cache == NULL)
73 nvl = dnvlist_get_nvlist(fa->fa_cache, name, NULL);
89 fileargs_get_fd_cache(fileargs_t *fa, const char *name) argument
95 assert(fa != NULL);
96 assert(fa->fa_magic == FILEARGS_MAGIC);
99 if (fa->fa_cache == NULL)
102 if ((fa
130 fileargs_set_cache(fileargs_t *fa, nvlist_t *nvl) argument
138 fileargs_fetch(fileargs_t *fa, const char *name, const char *cmd) argument
199 fileargs_t *fa; local
252 fileargs_t *fa; local
274 fileargs_t *fa; local
314 fileargs_open(fileargs_t *fa, const char *name) argument
353 fileargs_fopen(fileargs_t *fa, const char *name, const char *mode) argument
365 fileargs_lstat(fileargs_t *fa, const char *name, struct stat *sb) argument
412 fileargs_realpath(fileargs_t *fa, const char *pathname, char *reserved_path) argument
447 fileargs_free(fileargs_t *fa) argument
464 fileargs_unwrap(fileargs_t *fa, int *flags) argument
[all...]
/freebsd-current/bin/mv/tests/
H A Dlegacy_test.sh141 mkf fa
142 mv fa ${FS}fb
144 ckf fa ${FS}fb
145 cknt fa
149 mkf fa
152 mv fa fb ${FS}1/2/3
154 ckf fa ${FS}1/2/3/fa
156 cknt fa
162 mkf 1/2/3/fa
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_fileactions.c101 posix_spawn_file_actions_t fa; local
109 posix_spawn_file_actions_init(&fa);
110 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
112 posix_spawn_file_actions_addopen(&fa, fileno(stdout),
114 err = posix_spawn(&pid, "/bin/cat", &fa, NULL, args, NULL);
115 posix_spawn_file_actions_destroy(&fa);
135 posix_spawn_file_actions_init(&fa);
136 posix_spawn_file_actions_addopen(&fa, fileno(stdin),
138 posix_spawn_file_actions_addopen(&fa, fileno(stdout),
140 err = posix_spawn(&pid, "/bin/cat", &fa, NUL
196 posix_spawn_file_actions_t fa; local
231 posix_spawn_file_actions_t fa; local
271 posix_spawn_file_actions_t fa; local
308 posix_spawn_file_actions_t fa; local
358 posix_spawn_file_actions_t fa; local
396 posix_spawn_file_actions_t fa; local
[all...]
/freebsd-current/lib/libcasper/services/cap_fileargs/tests/
H A Dfileargs_test.c91 test_file_open(fileargs_t *fa, const char *file, int *fdp) argument
95 fd = fileargs_open(fa, file);
107 test_file_fopen(fileargs_t *fa, const char *file, const char *mode, argument
112 pfile = fileargs_fopen(fa, file, mode);
124 test_file_lstat(fileargs_t *fa, const char *file) argument
129 if (fileargs_lstat(fa, file, &fasb) < 0)
151 test_file_realpath_static(fileargs_t *fa, const char *file) argument
155 if (fileargs_realpath(fa, file, fapath) == NULL)
167 test_file_realpath_alloc(fileargs_t *fa, const char *file) argument
172 fapath = fileargs_realpath(fa, fil
190 test_file_realpath(fileargs_t *fa, const char *file) argument
286 fileargs_t *fa; local
333 fileargs_t *fa; local
380 fileargs_t *fa; local
425 fileargs_t *fa; local
460 fileargs_t *fa; local
510 fileargs_t *fa; local
560 fileargs_t *fa; local
604 fileargs_t *fa; local
636 fileargs_t *fa; local
667 fileargs_t *fa; local
715 fileargs_t *fa; local
[all...]
/freebsd-current/lib/libc/gen/
H A Dposix_spawn.c205 process_file_actions(const posix_spawn_file_actions_t fa) argument
211 STAILQ_FOREACH(fae, &fa->fa_list, fae_list) {
221 const posix_spawn_file_actions_t *fa; member in struct:posix_spawn_args
257 if (psa->fa != NULL) {
258 psa->error = process_file_actions(*psa->fa);
275 const posix_spawn_file_actions_t *fa,
315 psa.fa = fa;
374 const posix_spawn_file_actions_t *fa,
378 return (do_posix_spawn(pid, path, fa, s
274 do_posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[], int use_env_path) argument
373 posix_spawn(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
382 posix_spawnp(pid_t *pid, const char *path, const posix_spawn_file_actions_t *fa, const posix_spawnattr_t *sa, char * const argv[], char * const envp[]) argument
397 posix_spawn_file_actions_t fa; local
409 posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *fa) argument
429 posix_spawn_file_actions_addopen(posix_spawn_file_actions_t * __restrict fa, int fildes, const char * __restrict path, int oflag, mode_t mode) argument
460 posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *fa, int fildes, int newfildes) argument
483 posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *fa, int fildes) argument
505 posix_spawn_file_actions_addchdir_np(posix_spawn_file_actions_t * __restrict fa, const char *__restrict path) argument
528 posix_spawn_file_actions_addfchdir_np(posix_spawn_file_actions_t *__restrict fa, int fildes) argument
549 posix_spawn_file_actions_addclosefrom_np(posix_spawn_file_actions_t * __restrict fa, int from) argument
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Drename9.sh102 struct stat fb, tb, fa, ta;
113 bzero(&fa, sizeof(fa));
132 stat(fromFile, &fa);
149 if (fa.st_ino != 0)
152 "%jd\n", fromFile, (uintmax_t)fa.st_ino,
153 (uintmax_t)fa.st_nlink, fa.st_blocks);
/freebsd-current/tests/sys/cddl/zfs/tests/acl/trivial/
H A Dzfs_acl_find_001_pos.ksh82 fa=$(usr_exec $FIND $INI_DIR -type f -name ${f##*/} \
84 if [[ $fa != $af ]]; then
H A Dzfs_acl_find_002_neg.ksh87 fa=$(usr_exec $FIND $INI_DIR -type f -name ${f##*/} \
89 if [[ $fa == attribute.$j ]]; then
/freebsd-current/contrib/one-true-awk/
H A Dproto.h41 extern fa *makedfa(const char *, bool);
42 extern fa *mkdfa(const char *, bool);
43 extern int makeinit(fa *, bool);
49 extern void cfoll(fa *, Node *);
53 extern int match(fa *, const char *);
54 extern int pmatch(fa *, const char *);
55 extern int nematch(fa *, const char *);
56 extern bool fnematch(fa *, FILE *, char **, int *, int);
64 extern int cgoto(fa *, int, int);
65 extern void freefa(fa *);
[all...]
H A Db.c79 #define NFA 128 /* cache this many dynamic fa's */
80 fa *fatab[NFA];
116 static int get_gototab(fa*, int, int);
117 static int set_gototab(fa*, int, int, int);
118 static void clear_gototab(fa*, int);
144 resize_state(fa *f, int state)
186 fa *makedfa(const char *s, bool anchor) /* returns dfa for reg expr s */
189 fa *pfa;
224 fa *mkdfa(const char *s, bool anchor) /* does the real work of making a dfa */
228 fa *
[all...]
/freebsd-current/usr.bin/brandelf/
H A Dbrandelf.c73 fileargs_t *fa; local
133 fa = fileargs_init(argc, argv, flags, 0, &rights, FA_OPEN);
134 if (fa == NULL)
145 if ((fd = fileargs_open(fa, argv[0])) < 0) {
187 fileargs_free(fa);
/freebsd-current/usr.bin/head/
H A Dhead.c79 fileargs_t *fa; local
116 fa = fileargs_init(argc, argv, O_RDONLY, 0,
118 if (fa == NULL)
131 if ((fp = fileargs_fopen(fa, *argv, "r")) == NULL) {
152 fileargs_free(fa);
/freebsd-current/contrib/atf/atf-c/detail/
H A Dtext_test.c115 struct fail_at *fa = data; local
118 if (fa->failpos == fa->curpos)
121 fa->curpos++;
172 struct fail_at fa; local
173 fa.failpos = 3;
174 fa.curpos = 0;
176 word_fail_at, &fa);
179 ATF_REQUIRE(fa.curpos == 3);
/freebsd-current/contrib/elftoolchain/strings/
H A Dstrings.c93 int handle_file(fileargs_t *fa, const char *);
107 fileargs_t *fa; local
198 fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN);
199 if (fa == NULL)
204 fileargs_free(fa);
213 if (handle_file(fa, *argv) != 0)
218 fileargs_free(fa);
224 handle_file(fileargs_t *fa, const char *name) argument
231 pfile = fileargs_fopen(fa, name, "rb");
/freebsd-current/sys/netpfil/ipfw/
H A Dip_fw_table_value.c278 struct flush_args *fa; local
284 fa = (struct flush_args *)arg;
286 ta = fa->ta;
287 memset(&fa->tent, 0, sizeof(fa->tent));
288 tent = &fa->tent;
289 error = ta->dump_tentry(fa->astate, fa->ti, e, tent);
293 ch = fa->ch;
308 struct flush_args fa; local
[all...]
/freebsd-current/usr.bin/tail/
H A Dextern.h77 extern fileargs_t *fa;
H A Dtail.c57 fileargs_t *fa; variable
168 fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN);
169 if (fa == NULL)
210 filep->fp = fileargs_fopen(fa, filep->file_name, "r");
225 if ((fp = fileargs_fopen(fa, fn, "r")) == NULL ||
269 fileargs_free(fa);
/freebsd-current/usr.bin/wc/
H A Dwc.c56 static fileargs_t *fa; variable
120 fa = fileargs_init(argc, argv, O_RDONLY, 0,
122 if (fa == NULL)
164 fileargs_free(fa);
216 } else if ((fd = fileargs_open(fa, file)) < 0) {
/freebsd-current/contrib/libfido2/src/
H A Du2f.c760 fido_assert_t *fa, size_t idx, int *ms)
770 if ((r = key_lookup(dev, fa->rp_id, key_id, &found, ms)) != FIDO_OK) {
781 if (fido_blob_set(&fa->stmt[idx].id, key_id->ptr, key_id->len) < 0) {
787 if (fa->up == FIDO_OPT_FALSE) {
793 if ((r = do_auth(dev, &fa->cdh, fa->rp_id, key_id, &sig, &ad,
799 if (fido_assert_set_authdata(fa, idx, ad.ptr, ad.len) != FIDO_OK ||
800 fido_assert_set_sig(fa, idx, sig.ptr, sig.len) != FIDO_OK) {
815 u2f_authenticate(fido_dev_t *dev, fido_assert_t *fa, int *ms) argument
821 if (fa
759 u2f_authenticate_single(fido_dev_t *dev, const fido_blob_t *key_id, fido_assert_t *fa, size_t idx, int *ms) argument
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_009_pos.ksh40 # 2. Verify that 'zfs unmount -a' will fail and 'zfs unmount -fa' will succeed
98 log_mustnot zfs unmount -fa
101 log_must zfs unmount -fa
/freebsd-current/stand/libsa/
H A Dnfs.c97 struct nfsv3_fattrs fa; member in struct:nfsv3_readdir_repl
115 struct nfsv3_fattrs fa; /* all in network order */ member in struct:nfs_iodesc
309 bcopy(&repl->fhplusattr[pos], &newfd->fa, sizeof(newfd->fa));
329 struct nfsv3_fattrs fa; member in struct:repl
400 struct nfsv3_fattrs fa; member in struct:repl
508 nfs_root_node.fa.fa_type = htonl(NFDIR);
509 nfs_root_node.fa.fa_mode = htonl(0755);
510 nfs_root_node.fa.fa_nlink = htonl(2);
552 if (currfd->fa
[all...]
/freebsd-current/sys/dev/dpaa2/
H A Ddpaa2_buf.c132 struct dpaa2_fa *fa; local
181 fa = (struct dpaa2_fa *)buf->vaddr;
182 fa->magic = DPAA2_MAGIC;
183 fa->buf = buf;
/freebsd-current/bin/cat/
H A Dcat.c64 static fileargs_t *fa; variable
143 fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0,
146 if (fa == NULL)
248 fd = fileargs_open(fa, path);
450 if (fileargs_realpath(fa, path, rpath) == NULL)
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/
H A Dzfs_unmount_009_pos.ksh40 # 2. Verify that 'zfs unmount -a' will fail and 'zfs unmount -fa' will succeed
108 log_must $ZFS unmount -fa

Completed in 249 milliseconds

123