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
58 * Checks for the existance of a nologin file in the login_cap
61 * it tries to print out the default nologin file, and, if such
68 const char *file;
70 /* Do we ignore a nologin file? */
74 /* Note that <file> will be "" if there is no nologin capability */
75 if ((file = login_getcapstr(lc, "nologin", "", NULL)) == NULL)
79 * *file is true IFF there was a "nologin" capability
81 * file exists, and is readable. E.g., /.nologin exists.
83 if ((*file && auth_cat(file)) || auth_cat(_PATH_NOLOGIN))
90 * Checks for the readability of <file>; if it can be opened for
92 * it returns 0 (meaning no nologin file).
96 auth_cat(const char *file)
101 if ((fd = open(file, O_RDONLY)) < 0)