[Midnightbsd-cvs] src [10613] trunk/lib/libusb: add files
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 9 11:26:33 EDT 2018
Revision: 10613
http://svnweb.midnightbsd.org/src/?rev=10613
Author: laffer1
Date: 2018-06-09 11:26:32 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
add files
Added Paths:
-----------
trunk/lib/libusb/libusb-0.1.pc
trunk/lib/libusb/libusb-1.0.pc
trunk/lib/libusb/libusb-2.0.pc
trunk/lib/libusb/libusb_global_linux.h
Added: trunk/lib/libusb/libusb-0.1.pc
===================================================================
--- trunk/lib/libusb/libusb-0.1.pc (rev 0)
+++ trunk/lib/libusb/libusb-0.1.pc 2018-06-09 15:26:32 UTC (rev 10613)
@@ -0,0 +1,12 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libusb/libusb-0.1.pc 253637 2013-07-25 03:54:08Z rpaulo $
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-0.1
+Description: Library that abstracts ways to access USB devices (v0.1)
+Version: 0.1.0
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
Property changes on: trunk/lib/libusb/libusb-0.1.pc
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/lib/libusb/libusb-1.0.pc
===================================================================
--- trunk/lib/libusb/libusb-1.0.pc (rev 0)
+++ trunk/lib/libusb/libusb-1.0.pc 2018-06-09 15:26:32 UTC (rev 10613)
@@ -0,0 +1,12 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libusb/libusb-1.0.pc 253637 2013-07-25 03:54:08Z rpaulo $
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-1.0
+Description: Library that abstracts ways to access USB devices (v1.0)
+Version: 1.0.9
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
Property changes on: trunk/lib/libusb/libusb-1.0.pc
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/lib/libusb/libusb-2.0.pc
===================================================================
--- trunk/lib/libusb/libusb-2.0.pc (rev 0)
+++ trunk/lib/libusb/libusb-2.0.pc 2018-06-09 15:26:32 UTC (rev 10613)
@@ -0,0 +1,12 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/lib/libusb/libusb-2.0.pc 253637 2013-07-25 03:54:08Z rpaulo $
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libusb-2.0
+Description: Library that abstracts ways to access USB devices (v2.0)
+Version: 2.0.0
+Libs: -L${libdir} -lusb
+Cflags: -I${includedir}
Property changes on: trunk/lib/libusb/libusb-2.0.pc
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/lib/libusb/libusb_global_linux.h
===================================================================
--- trunk/lib/libusb/libusb_global_linux.h (rev 0)
+++ trunk/lib/libusb/libusb_global_linux.h 2018-06-09 15:26:32 UTC (rev 10613)
@@ -0,0 +1,79 @@
+/* $MidnightBSD$ */
+/* $FreeBSD: stable/10/lib/libusb/libusb_global_linux.h 253339 2013-07-14 10:22:00Z hselasky $ */
+/*-
+ * Copyright (c) 2013 Hans Petter Selasky. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#ifndef _LIBUSB_GLOBAL_LINUX_H_
+#define _LIBUSB_GLOBAL_LINUX_H_
+
+#define _XOPEN_SOURCE
+#define _BSD_SOURCE
+#ifdef __linux__
+#define _POSIX_SOURCE
+#endif
+#define _POSIX_C_SOURCE 200809
+
+#include <ctype.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <time.h>
+#include <unistd.h>
+#ifdef __linux__
+#include <alloca.h>
+#endif
+#include <string.h>
+#include <fcntl.h>
+#include <limits.h>
+#include <setjmp.h>
+#include <pthread.h>
+#include <sys/queue.h>
+#include <sys/ioctl.h>
+#include <sys/poll.h>
+#include <sys/time.h>
+#include <dev/usb/usb_endian.h>
+#include <dev/usb/usb_freebsd.h>
+
+#include <compat/linux/linux_ioctl.h>
+
+#define IOUSB(a) FBSD_L##a
+
+#ifndef __aligned
+#define __aligned(x) __attribute__((__aligned__(x)))
+#endif
+
+#ifndef __packed
+#define __packed __attribute__((__packed__))
+#endif
+
+#ifndef strlcpy
+#define strlcpy(d,s,len) do { \
+ strncpy(d,s,len); \
+ ((char *)d)[(len) - 1] = 0; \
+} while (0)
+#endif
+
+#endif /* _LIBUSB_GLOBAL_LINUX_H_ */
Property changes on: trunk/lib/libusb/libusb_global_linux.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list