home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 May / pcp151c.iso / misc / src / install / modutils / depmod / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-06  |  1.7 KB  |  76 lines

  1. /* Copyright 1996 Free Software Foundation, Inc.
  2.    Contributed by Marcin Dalecki <dalecki@sub994.sub.uni-goettingen.de>
  3.  
  4.    This file is part of the Linux modutils.
  5.  
  6.    This program is free software; you can redistribute it and/or modify it
  7.    under the terms of the GNU General Public License as published by the
  8.    Free Software Foundation; either version 2 of the License, or (at your
  9.    option) any later version.
  10.  
  11.    This program is distributed in the hope that it will be useful, but
  12.    WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.    General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software Foundation,
  18.    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  19.  
  20. #ifndef MISC_H
  21. #define MISC_H
  22.  
  23. #ident "$Id: misc.h,v 1.1.1.1 1998/01/06 20:51:07 ewt Exp $"
  24.  
  25. #include <stdio.h>
  26.  
  27. #include "module.h"
  28.  
  29. #define kernel_sym  old_kernel_sym
  30.  
  31. /*
  32.  * Globally used data definitions.
  33.  */
  34.  
  35. extern int flag_debug;
  36.  
  37. /*
  38.  * String manipulation utilities.
  39.  */
  40.  
  41. extern char *strip_o (char *fname);
  42.  
  43. extern char *resolve_string (const char *str, char *buf, int size);
  44.  
  45. /*
  46.  * File manipulation
  47.  */
  48.  
  49. extern char *read_and_preprocess_file (const char *);
  50. char *get_concat_line (char *from, int *lines);
  51.  
  52. /*
  53.  * Error logging facilities.
  54.  */
  55.  
  56. extern int log;
  57.  
  58. void
  59. error (const char *fmt,...)
  60. #ifdef __GNUC__
  61. __attribute__ ((format (printf, 1, 2)))
  62. #endif
  63. ;
  64.  
  65.      void
  66.        lprintf (const char *fmt,...)
  67. #ifdef __GNUC__
  68. __attribute__ ((format (printf, 1, 2)))
  69. #endif
  70. ;
  71.  
  72.      extern void
  73.        setsyslog (const char *program);
  74.  
  75. #endif /* MISC_H */
  76.