lp.h (216372) | lp.h (241852) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95 | 1/* 2 * Copyright (c) 1983, 1993 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95 |
30 * $FreeBSD: head/usr.sbin/lpr/common_source/lp.h 216372 2010-12-11 09:38:12Z joel $ | 30 * $FreeBSD: head/usr.sbin/lpr/common_source/lp.h 241852 2012-10-22 03:31:22Z eadler $ |
31 */ 32 33#include <sys/queue.h> 34#include <time.h> 35#include <netdb.h> 36 37/* 38 * All this information used to be in global static variables shared --- 205 unchanged lines hidden (view full) --- 244 * Command codes used in the protocol. 245 */ 246#define CMD_CHECK_QUE '\1' 247#define CMD_TAKE_THIS '\2' 248#define CMD_SHOWQ_SHORT '\3' 249#define CMD_SHOWQ_LONG '\4' 250#define CMD_RMJOB '\5' 251 | 31 */ 32 33#include <sys/queue.h> 34#include <time.h> 35#include <netdb.h> 36 37/* 38 * All this information used to be in global static variables shared --- 205 unchanged lines hidden (view full) --- 244 * Command codes used in the protocol. 245 */ 246#define CMD_CHECK_QUE '\1' 247#define CMD_TAKE_THIS '\2' 248#define CMD_SHOWQ_SHORT '\3' 249#define CMD_SHOWQ_LONG '\4' 250#define CMD_RMJOB '\5' 251 |
252/* 253 * seteuid() macros. 254*/ 255#define PRIV_START { \ 256 if (seteuid(uid) != 0) err(1, "seteuid failed"); \ 257} 258#define PRIV_END { \ 259 if (seteuid(euid) != 0) err(1, "seteuid failed"); \ 260} 261 262 |
|
252#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ 253 254__BEGIN_DECLS 255struct dirent; 256 257void blankfill(int _tocol); 258int calc_jobnum(const char *_cfname, const char **_hostpp); 259char *checkremote(struct printer *_pp); --- 44 unchanged lines hidden --- | 263#include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */ 264 265__BEGIN_DECLS 266struct dirent; 267 268void blankfill(int _tocol); 269int calc_jobnum(const char *_cfname, const char **_hostpp); 270char *checkremote(struct printer *_pp); --- 44 unchanged lines hidden --- |