startdaemon.c (50479) | startdaemon.c (78146) |
---|---|
1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)startdaemon.c 8.2 (Berkeley) 4/17/94"; 37#endif 38static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)startdaemon.c 8.2 (Berkeley) 4/17/94"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/usr.sbin/lpr/common_source/startdaemon.c 50479 1999-08-28 01:35:59Z peter $"; | 39 "$FreeBSD: head/usr.sbin/lpr/common_source/startdaemon.c 78146 2001-06-12 16:38:20Z gad $"; |
40#endif /* not lint */ 41 42 43#include <sys/param.h> 44#include <sys/socket.h> 45#include <sys/uio.h> 46#include <sys/un.h> 47 --- 7 unchanged lines hidden (view full) --- 55 56extern uid_t uid, euid; 57 58/* 59 * Tell the printer daemon that there are new files in the spool directory. 60 */ 61 62int | 40#endif /* not lint */ 41 42 43#include <sys/param.h> 44#include <sys/socket.h> 45#include <sys/uio.h> 46#include <sys/un.h> 47 --- 7 unchanged lines hidden (view full) --- 55 56extern uid_t uid, euid; 57 58/* 59 * Tell the printer daemon that there are new files in the spool directory. 60 */ 61 62int |
63startdaemon(pp) 64 const struct printer *pp; | 63startdaemon(const struct printer *pp) |
65{ 66 struct sockaddr_un un; 67 register int s, n; 68 char c; 69 70 s = socket(PF_LOCAL, SOCK_STREAM, 0); 71 if (s < 0) { 72 warn("socket"); --- 38 unchanged lines hidden --- | 64{ 65 struct sockaddr_un un; 66 register int s, n; 67 char c; 68 69 s = socket(PF_LOCAL, SOCK_STREAM, 0); 70 if (s < 0) { 71 warn("socket"); --- 38 unchanged lines hidden --- |