libusb10.c (203774) | libusb10.c (203815) |
---|---|
1/* $FreeBSD: head/lib/libusb/libusb10.c 203774 2010-02-11 08:30:43Z wkoszek $ */ | 1/* $FreeBSD: head/lib/libusb/libusb10.c 203815 2010-02-13 09:45:50Z wkoszek $ */ |
2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 | 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 |
28#include <sys/fcntl.h> 29#include <sys/ioctl.h> 30#include <sys/queue.h> 31 |
|
28#include <assert.h> | 32#include <assert.h> |
29#include <stdlib.h> 30#include <unistd.h> 31#include <stdio.h> | 33#include <errno.h> |
32#include <poll.h> 33#include <pthread.h> | 34#include <poll.h> 35#include <pthread.h> |
34#include <errno.h> 35#include <sys/ioctl.h> 36#include <sys/fcntl.h> 37#include <sys/queue.h> | 36#include <stdio.h> 37#include <stdlib.h> 38#include <unistd.h> |
38 39#include "libusb20.h" 40#include "libusb20_desc.h" 41#include "libusb20_int.h" 42#include "libusb.h" 43#include "libusb10.h" 44 45static pthread_mutex_t default_context_lock = PTHREAD_MUTEX_INITIALIZER; --- 1316 unchanged lines hidden --- | 39 40#include "libusb20.h" 41#include "libusb20_desc.h" 42#include "libusb20_int.h" 43#include "libusb.h" 44#include "libusb10.h" 45 46static pthread_mutex_t default_context_lock = PTHREAD_MUTEX_INITIALIZER; --- 1316 unchanged lines hidden --- |