lpd.c (31492) | lpd.c (39084) |
---|---|
1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42#if 0 43static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95"; 44#endif 45static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 29 unchanged lines hidden (view full) --- 38 The Regents of the University of California. All rights reserved.\n"; 39#endif /* not lint */ 40 41#ifndef lint 42#if 0 43static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95"; 44#endif 45static const char rcsid[] = |
46 "$Id: lpd.c,v 1.8 1997/09/24 06:47:54 charnier Exp $"; | 46 "$Id: lpd.c,v 1.9 1997/12/02 20:45:54 wollman Exp $"; |
47#endif /* not lint */ 48 49/* 50 * lpd -- line printer daemon. 51 * 52 * Listen for a connection and perform the requested operation. 53 * Operations are: 54 * \1printer\n --- 46 unchanged lines hidden (view full) --- 101#include "lp.h" 102#include "lp.local.h" 103#include "pathnames.h" 104#include "extern.h" 105 106int lflag; /* log requests flag */ 107int from_remote; /* from remote socket */ 108 | 47#endif /* not lint */ 48 49/* 50 * lpd -- line printer daemon. 51 * 52 * Listen for a connection and perform the requested operation. 53 * Operations are: 54 * \1printer\n --- 46 unchanged lines hidden (view full) --- 101#include "lp.h" 102#include "lp.local.h" 103#include "pathnames.h" 104#include "extern.h" 105 106int lflag; /* log requests flag */ 107int from_remote; /* from remote socket */ 108 |
109int main __P((int, char **)); |
|
109static void reapchild __P((int)); 110static void mcleanup __P((int)); 111static void doit __P((void)); 112static void startup __P((void)); 113static void chkhost __P((struct sockaddr_in *)); 114static int ckqueue __P((struct printer *)); 115static void usage __P((void)); 116/* From rcmd.c: */ --- 517 unchanged lines hidden --- | 110static void reapchild __P((int)); 111static void mcleanup __P((int)); 112static void doit __P((void)); 113static void startup __P((void)); 114static void chkhost __P((struct sockaddr_in *)); 115static int ckqueue __P((struct printer *)); 116static void usage __P((void)); 117/* From rcmd.c: */ --- 517 unchanged lines hidden --- |