filearg
struct filearg *fa;
struct filearg *fa;
struct filearg *cur;
SLIST_ENTRY(filearg) next;
SLIST_HEAD(fileargs, filearg);
struct filearg *fa;
match(struct filearg *fa, struct kinfo_file *kf)
struct filearg *fa;
extern char *filearg[MAXFILEC];
filearg[i] = NULL;
if (filearg[0] != NULL) {
if (unveil(filearg[0], "rwc") == -1) {
if ((origdir = dirname(filearg[0])) == NULL) {
if (filearg[1] != NULL)
if (unveil(filearg[1], "r") == -1) {
for (open_patch_file(filearg[1]); there_is_another_patch();
outname = xstrdup(filearg[0]);
scan_input(filearg[0]);
free(filearg[0]);
filearg[0] = NULL;
char *filearg[MAXFILEC];
filearg[filec] = xstrdup(optarg);
filearg[0] = xstrdup(*Argv++);
filearg[filec] = xstrdup(*Argv++);
while (filearg[0] == NULL) {
filearg[0] = xstrdup(bestguess);
filearg[0] = fetchname(buf, &exists, 0);
free(filearg[0]);
filearg[0] = fetchname(bestguess, &exists, 0);
if (filearg[0] == NULL) {
filearg[0] = posix_name(names, ok_to_create_file);
filearg[0] = best_name(names, ok_to_create_file);
if (filearg[0] != NULL)
bestguess = xstrdup(filearg[0]);
goto filearg;
filearg: arglen = strlen(arg);