Lines Matching defs:file
3 This file is part of the SANE package.
28 the executable file might be covered by the GNU General Public
41 This file is part of the canon_pp backend, supporting Canon FBX30P
84 /* create a calibration file and give it initial values */
85 static int init_cal(char *file);
188 * Read information from config file: pixel weight location and default
212 * file which does not specify scanner
225 "weight file is "
232 * this calibration file */
243 * file string */
249 " file is '%s'"
426 * just have to load the weights file...*/
620 "calibration file. Try recalibrating and if "
1471 /* Weights file now on a per-scanner basis */
1743 * init_cal(): Try to create a calibration file
1747 static int init_cal(char *file)
1752 if ((f = open(file, O_CREAT | O_WRONLY, 0600)) < 0)
1757 * find the last / in the file path, and try
1759 if ((tmp = strrchr(file, '/')) == NULL)
1761 path = strdup(file);
1762 *(path + (tmp-file)) = '\0';
1767 if ((f = open(file, O_CREAT | O_WRONLY, 0600)) < 0)
1843 * wasn't no-such-file, or we can't create the file.. */
1847 DBG(2,"fix_weights_file: error stating cal file"
1877 DBG(2,"fix_weights_file: file is read-only, "
1886 DBG(10,"fix_weights_file: Calibration file is good "