1 #ifndef __FILE_IO_H
2 # define __FILE_IO_H
3 /*!
4 *  \file file-io.h
5 *  \brief Managing and accessing resource, include and response files header file.
6 */
7 /*
8 *  Copyright (c) 1994, 95, 96, 1997, 2000 Thomas Esken
9 *  Copyright (c) 2010, 2011, 2013 Free Software Foundation, Inc.
10 *
11 *  This software doesn't claim completeness, correctness or usability.
12 *  On principle I will not be liable for ANY damages or losses (implicit
13 *  or explicit), which result from using or handling my software.
14 *  If you use this software, you agree without any exception to this
15 *  agreement, which binds you LEGALLY !!
16 *
17 *  This program is free software; you can redistribute it and/or modify
18 *  it under the terms of the `GNU General Public License' as published by
19 *  the `Free Software Foundation'; either version 3, or (at your option)
20 *  any later version.
21 *
22 *  You should have received a copy of the `GNU General Public License'
23 *  along with this program; if not, write to the:
24 *
25 */
26 
27 
28 
29 /*
30 *  $Id: file-io.h 3.01 2000/06/14 03:00:01 tom Exp $
31 */
32 
33 
34 
35 /*
36 *  GLOBAL functions prototypes.
37 */
38 __BEGIN_DECLARATIONS
39 /*
40 ************************************************** Defined in `file-io.c'.
41 */
42 extern FILE *file_open __P_ ((char **filename,
43 			      const int level,
44 			      const Fmode_enum mode, Bool * bad_sys_include));
45 extern char *file_read_line __P_ ((FILE * fp,
46 				   char **line_buffer,
47 				   int *in_pool,
48 				   char *pool,
49 				   char *ptr_pool,
50 				   const char *filename,
51 				   long *line_number,
52 				   int *line_length,
53 				   const Fmode_enum mode,
54 				   Bool * is_include,
55 				   Bool * is_dvar, Bool * is_tvar));
56 extern char **insert_response_file __P_ ((FILE * fp,
57 					  char *filename,
58 					  const char *opt_list,
59 					  Uint * my_argc_max,
60 					  int *my_argc, char *my_argv[]));
61 extern void
62   write_log_file __P_ ((const char *filename,
63 			const Fmode_enum mode,
64 			const char *mode_txt,
65 			const char *created_txt,
66 			const int argc, char *argv[]));
67 __END_DECLARATIONS
68 #endif /* __FILE_IO_H */
69