Lines Matching defs:file
15 * notice immediately at the beginning of the file, without modification,
23 * 5. Modifications may be freely made to this file providing the above
55 * Checks for the existence of a nologin file in the login_cap
58 * it tries to print out the default nologin file, and, if such
65 const char *file;
67 /* Do we ignore a nologin file? */
71 /* Note that <file> will be "" if there is no nologin capability */
72 if ((file = login_getcapstr(lc, "nologin", "", NULL)) == NULL)
76 * *file is true IFF there was a "nologin" capability
78 * file exists, and is readable. E.g., /.nologin exists.
80 if ((*file && auth_cat(file)) || auth_cat(_PATH_NOLOGIN))
87 * Checks for the readability of <file>; if it can be opened for
89 * it returns 0 (meaning no nologin file).
93 auth_cat(const char *file)
98 if ((fd = open(file, O_RDONLY | O_CLOEXEC)) < 0)