Deleted Added
full compact
id.c (53298) id.c (53535)
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 53298 1999-11-17 21:12:35Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/id.c 53535 1999-11-21 23:27:23Z 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>
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>
35#ifndef NONETGRAPH
36#include <netgraph.h>
37#endif
35#include <signal.h>
36#include <stdarg.h>
37#include <stdio.h>
38#include <string.h>
39#include <sysexits.h>
40#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
41#include <sys/linker.h>
42#endif

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

291
292 ID0set0();
293 result = kldload(dev);
294 log_Printf(LogID0, "%d = kldload(\"%s\")\n", result, dev);
295 ID0setuser();
296 return result;
297}
298#endif
38#include <signal.h>
39#include <stdarg.h>
40#include <stdio.h>
41#include <string.h>
42#include <sysexits.h>
43#if defined(__FreeBSD__) && !defined(NOKLDLOAD)
44#include <sys/linker.h>
45#endif

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

294
295 ID0set0();
296 result = kldload(dev);
297 log_Printf(LogID0, "%d = kldload(\"%s\")\n", result, dev);
298 ID0setuser();
299 return result;
300}
301#endif
302
303#ifndef NONETGRAPH
304int
305ID0NgMkSockNode(const char *name, int *cs, int *ds)
306{
307 int result;
308
309 ID0set0();
310 result = NgMkSockNode(name, cs, ds);
311 log_Printf(LogID0, "%d = NgMkSockNode(\"%s\", &cs, &ds)\n",
312 result, name ? name : "");
313 ID0setuser();
314 return result;
315}
316#endif