Lines Matching refs:file
3 * This file may be used under the terms of the MIT License.
7 This file is used by three different components with different needs:
20 The file has to be recompiled for every component separately, so that
399 load_driver_settings_from_file(int file, const char *driverName)
403 // Allocate a buffer and read the whole file into it.
409 if (fssh_fstat(file, &stat) < FSSH_B_OK)
414 if (text != NULL && fssh_read(file, text, stat.fssh_st_size) == stat.fssh_st_size) {
636 int file = -1;
675 file = fssh_open(path, FSSH_O_RDONLY);
677 file = fssh_open(driverName, FSSH_O_RDONLY);
679 if (file < FSSH_B_OK) {
684 handle = load_driver_settings_from_file(file, driverName);
690 fssh_close(file);
695 /** Loads a driver settings file using the full path, instead of
710 int file;
715 file = fssh_open(path, FSSH_O_RDONLY);
716 if (file < FSSH_B_OK)
719 handle = load_driver_settings_from_file(file);
721 fssh_close(file);