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

  1. /* Error logging facilities.
  2.    Copyright 1996, 1997 Linux International.
  3.  
  4.    Contributed by Richard Henderson <rth@tamu.edu>
  5.  
  6.    This file is part of the Linux modutils.
  7.  
  8.    This program is free software; you can redistribute it and/or modify it
  9.    under the terms of the GNU General Public License as published by the
  10.    Free Software Foundation; either version 2 of the License, or (at your
  11.    option) any later version.
  12.  
  13.    This program is distributed in the hope that it will be useful, but
  14.    WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.    General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with this program; if not, write to the Free Software Foundation,
  20.    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  21.  
  22.  
  23. #ifndef MODUTILS_LOGGER_H
  24. #define MODUTILS_LOGGER_H 1
  25.  
  26. #ident "$Id: logger.h,v 1.1.1.1 1998/01/06 20:51:07 ewt Exp $"
  27.  
  28. extern int errors;
  29. extern const char *error_file;
  30.  
  31. void error(const char *fmt, ...)
  32. #ifdef __GNUC__
  33.   __attribute__((format(printf, 1, 2)))
  34. #endif
  35.   ;
  36.  
  37. void lprintf(const char *fmt, ...)
  38. #ifdef __GNUC__
  39.   __attribute__((format(printf, 1, 2)))
  40. #endif
  41.   ;
  42.  
  43. void setsyslog(const char *program);
  44.  
  45. #endif
  46.