syslog.c (11606) | syslog.c (11659) |
---|---|
1/* 2 * Copyright (c) 1983, 1988, 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35/* 36static char sccsid[] = "From: @(#)syslog.c 8.4 (Berkeley) 3/18/94"; 37*/ 38static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 1988, 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35/* 36static char sccsid[] = "From: @(#)syslog.c 8.4 (Berkeley) 3/18/94"; 37*/ 38static const char rcsid[] = |
39 "$Id$"; | 39 "$Id: syslog.c,v 1.6 1995/10/21 07:05:01 peter Exp $"; |
40#endif /* LIBC_SCCS and not lint */ 41 42#include <sys/types.h> 43#include <sys/socket.h> 44#include <sys/syslog.h> 45#include <sys/uio.h> 46#include <netdb.h> 47 --- 79 unchanged lines hidden (view full) --- 127 128void 129vsyslog(pri, fmt, ap) 130 int pri; 131 register const char *fmt; 132 va_list ap; 133{ 134 register int cnt; | 40#endif /* LIBC_SCCS and not lint */ 41 42#include <sys/types.h> 43#include <sys/socket.h> 44#include <sys/syslog.h> 45#include <sys/uio.h> 46#include <netdb.h> 47 --- 79 unchanged lines hidden (view full) --- 127 128void 129vsyslog(pri, fmt, ap) 130 int pri; 131 register const char *fmt; 132 va_list ap; 133{ 134 register int cnt; |
135 register char ch, *p, *t; | 135 register char ch, *p; |
136 time_t now; 137 int fd, saved_errno; 138 char *stdp, tbuf[2048], fmt_cpy[1024]; 139 FILE *fp, *fmt_fp; 140 struct bufcookie tbuf_cookie; 141 struct bufcookie fmt_cookie; 142 143#define INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID --- 169 unchanged lines hidden --- | 136 time_t now; 137 int fd, saved_errno; 138 char *stdp, tbuf[2048], fmt_cpy[1024]; 139 FILE *fp, *fmt_fp; 140 struct bufcookie tbuf_cookie; 141 struct bufcookie fmt_cookie; 142 143#define INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID --- 169 unchanged lines hidden --- |