linux_ioctl.c (108541) | linux_ioctl.c (109623) |
---|---|
1/* 2 * Copyright (c) 1994-1995 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/* 2 * Copyright (c) 1994-1995 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/compat/linux/linux_ioctl.c 108541 2003-01-02 02:19:10Z alfred $ | 28 * $FreeBSD: head/sys/compat/linux/linux_ioctl.c 109623 2003-01-21 08:56:16Z alfred $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/sysproto.h> 34#include <sys/cdio.h> 35#include <sys/dvdio.h> 36#include <sys/consio.h> --- 2378 unchanged lines hidden (view full) --- 2415 * create a new element. 2416 */ 2417 TAILQ_FOREACH(he, &handlers, list) { 2418 if (he->func == h->func) 2419 break; 2420 } 2421 if (he == NULL) { 2422 MALLOC(he, struct handler_element *, sizeof(*he), | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/sysproto.h> 34#include <sys/cdio.h> 35#include <sys/dvdio.h> 36#include <sys/consio.h> --- 2378 unchanged lines hidden (view full) --- 2415 * create a new element. 2416 */ 2417 TAILQ_FOREACH(he, &handlers, list) { 2418 if (he->func == h->func) 2419 break; 2420 } 2421 if (he == NULL) { 2422 MALLOC(he, struct handler_element *, sizeof(*he), |
2423 M_LINUX, M_WAITOK); | 2423 M_LINUX, 0); |
2424 he->func = h->func; 2425 } else 2426 TAILQ_REMOVE(&handlers, he, list); 2427 2428 /* Initialize range information. */ 2429 he->low = h->low; 2430 he->high = h->high; 2431 he->span = h->high - h->low + 1; --- 31 unchanged lines hidden --- | 2424 he->func = h->func; 2425 } else 2426 TAILQ_REMOVE(&handlers, he, list); 2427 2428 /* Initialize range information. */ 2429 he->low = h->low; 2430 he->high = h->high; 2431 he->span = h->high - h->low + 1; --- 31 unchanged lines hidden --- |