Deleted Added
full compact
id.c (52487) id.c (53241)
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * 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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
3 * 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

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.sbin/ppp/id.c 52487 1999-10-25 13:31:42Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/id.c 53241 1999-11-16 21:57:34Z brian $
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32
33#include <sys/ioctl.h>
34#include <fcntl.h>

--- 229 unchanged lines hidden (view full) ---

264
265 ID0set0();
266 result = kill(pid, sig);
267 log_Printf(LogID0, "%d = kill(%d, %d)\n", result, (int)pid, sig);
268 ID0setuser();
269 return result;
270}
271
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <sys/un.h>
32
33#include <sys/ioctl.h>
34#include <fcntl.h>

--- 229 unchanged lines hidden (view full) ---

264
265 ID0set0();
266 result = kill(pid, sig);
267 log_Printf(LogID0, "%d = kill(%d, %d)\n", result, (int)pid, sig);
268 ID0setuser();
269 return result;
270}
271
272#ifdef KLDSYM_LOOKUP
272#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
273int
274ID0kldload(const char *dev)
275{
276 int result;
277
278 ID0set0();
279 result = kldload(dev);
280 log_Printf(LogID0, "%d = kldload(\"%s\")\n", result, dev);
281 ID0setuser();
282 return result;
283}
284#endif
273int
274ID0kldload(const char *dev)
275{
276 int result;
277
278 ID0set0();
279 result = kldload(dev);
280 log_Printf(LogID0, "%d = kldload(\"%s\")\n", result, dev);
281 ID0setuser();
282 return result;
283}
284#endif