Lines Matching defs:file

4  * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
67 static char *add_rem_lock; /* lock file */
116 * open file
120 * close file
169 * get one entry at a time from list and append to <filename> file
207 * open file
211 * close file
254 * get one entry at a time from list and append to <filename> file
326 * open file
327 * read thru file, deleting all entries if first
330 * if error, leave original file intact with message
403 /* Build filename for temporary file */
514 /* Make sure that the file is on disk */
530 * if error, leave original file, delete new file
531 * if noerr, replace original file with new file
543 * since there's an error, leave file alone; remove
544 * new file
585 * return pointer to cached name_to_major file - reads file into
594 char *file;
610 * see if the file is already cached - either
615 if (strcmp(ptr->file, filename) == 0)
649 /* allocate struct to cache the file */
657 /* allocate space to cache contents of file */
699 ptr->file = strdup(filename);
700 if (ptr->file == NULL) {
711 /* return value pointer to contents of file */
721 * found in the specificed file (name_to_major/rem_name_to_major).
739 * This routine caches the contents of the name_to_major file on
753 * read the file in - we cache it in case caller wants to
892 * Attempt to create the lock file. Open the file itself,
893 * and not a symlink to some other file.
1008 * exist. Prevent error messages by checking for file existence
1040 /* check minor_perm file : exits and is writable */
1050 /* check driver_aliases file : exits and is writable */
1067 /* check name_to_major file : exists and is writable */
1387 * open file
1391 * close file
1421 /* Build filename for temporary file */
1512 * then the new line should be written to the file if
1532 /* update the file */
1561 * if error, leave original file, delete new file
1562 * if noerr, replace original file with new file
1573 * since there's an error, leave file alone; remove
1574 * new file
1589 * open file
1590 * read thru file, listing all entries if first entry = driver_name
1895 /* make call to update the aliases file */
1963 * search for driver_name in first field of file file_name
1977 /* check alias file for name collision */
2105 /* error reading the alias file */
2160 * write driver_name major_num to name_to_major file
2243 * get maximum major number thru (rem_)name_to_major file on client
2273 * If we can't get major from name_to_major file
2274 * and there is no /etc/rem_name_to_major file,
2360 * Read through the file, marking each major number found