Lines Matching refs:filename

201 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
204 const char *filename, FILE *fp);
995 * filename const char * The name of the new file to record the
1009 int _glh_save_history(GlHistory *glh, const char *filename, const char *comment,
1025 if(!glh || !filename || !comment) {
1034 fp = fopen(filename, "w");
1036 return _glh_cant_save_history(glh, "Can't open", filename, NULL);
1060 return _glh_cant_save_history(glh, "Error writing", filename, fp);
1068 return _glh_cant_save_history(glh, "Error writing", filename, fp);
1076 return _glh_cant_save_history(glh, "Error writing", filename, NULL);
1085 * sprintf("%s %s (%s)", message, filename, strerror(errno)). It then
1090 * message const char * A message to be followed by the filename.
1091 * filename const char * The name of the offending output file.
1098 const char *filename, FILE *fp)
1100 _err_record_msg(glh->err, message, filename, " (",
1145 * filename const char * The name of the file to read from.
1155 int _glh_load_history(GlHistory *glh, const char *filename, const char *comment,
1173 if(!glh || !filename || !comment || !line) {
1191 fp = fopen(filename, "r");
1204 return _glh_cant_load_history(glh, filename, lineno,
1216 return _glh_cant_load_history(glh, filename, lineno,
1229 return _glh_cant_load_history(glh, filename, lineno,
1241 return _glh_cant_load_history(glh, filename, lineno,
1249 return _glh_cant_load_history(glh, filename, lineno, "Read error", fp);
1254 return _glh_cant_load_history(glh, filename, lineno,
1277 static int _glh_cant_load_history(GlHistory *glh, const char *filename,
1288 _err_record_msg(glh->err, filename, ":", lnum, ":", message, END_ERR_MSG);