home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume23 / mlpd / config.h next >
Encoding:
C/C++ Source or Header  |  1991-01-08  |  1.8 KB  |  70 lines

  1. /*
  2.  * Copyright (c) 1990 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Riverside. 
  11.  *
  12.  * NOTE : That's Riverside.  Not Berkeley, not Santa Cruz, not even
  13.  *        Irvine.  Riverside.  Ri - ver - side.
  14.  *
  15.  * The name of the University may not be used to endorse or promote 
  16.  * products derived from this software without specific prior written
  17.  * permission.
  18.  *
  19.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  20.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  21.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  22.  * 
  23.  * MLPD -- Multiple Line Printer Daemon (Version 1.3)
  24.  * SCCS keywords: @(#)config.h    1.3 12/1/90
  25.  */
  26.  
  27. #include <sys/types.h>
  28. #include <sys/socket.h>
  29. #include <sys/un.h>
  30. #include <sys/param.h>
  31. #include <sys/ioctl.h>
  32. #include <sys/time.h>
  33. #include <sys/wait.h>
  34. #include <sys/stat.h>
  35. #include <syslog.h>
  36. #include <time.h>
  37. #ifdef SUN
  38. #include <dirent.h>
  39. #else
  40. #include <sys/dir.h>
  41. #endif
  42. #include <stdio.h>
  43. #include <ctype.h>
  44. #include <errno.h>
  45.  
  46. #define TRUE                 1
  47. #define FALSE                0
  48. #ifdef DEBUG
  49. #define debug(x) fprintf(stderr, "%s", (x))
  50. #else
  51. #define debug(x) fprintf(stderr, "%s", "")
  52. #endif
  53.  
  54. typedef struct 
  55. {
  56.     char *name[512];
  57.     char *directory[512];
  58. } printerstruct;
  59.  
  60. extern char *LP_SPOOL_DIRECTORY;
  61. extern int  TIMEOUT;
  62.  
  63. int init_daemon();
  64. int lock_printer();
  65. int bomb();
  66. int check_prs();
  67. int check_base_printer();
  68. void exit();
  69. char *malloc();
  70.