Lines Matching defs:file
1 /* $NetBSD: file.c,v 1.1 2020/05/16 18:31:45 christos Exp $ */
31 __FBSDID("$FreeBSD: head/bin/setfacl/file.c 333065 2018-04-27 15:25:24Z emaste $");
33 __RCSID("$NetBSD: file.c,v 1.1 2020/05/16 18:31:45 christos Exp $");
46 * read acl text from a file and return the corresponding acl
51 FILE *file;
61 file = stdin;
64 file = fopen(filename, "r");
65 if (file == NULL)
69 len = fread(buf, (size_t)1, sizeof(buf) - 1, file);
71 if (ferror(file) != 0) {
72 fclose(file);
74 } else if (feof(file) == 0) {
75 fclose(file);
79 fclose(file);