commit | 9501adff2455446aa6ce017525c9d747be67c115 | [log] [tgz] |
---|---|---|
author | Aymeric Vincent <aymericvincent@free.fr> | Thu Feb 28 22:38:21 2019 +0100 |
committer | Nathan Hjelm <hjelmn@me.com> | Thu Apr 04 21:19:07 2019 -0600 |
tree | 493760ed89dfab449fc77489f38b8e7da0995fb4 | |
parent | a0b5d27fa7f2bba11965e2b70533f925a5772808 [diff] |
Initialize the non-control endpoint fds in netbsd_open() Not all users of libusb use libusb_claim_interface(), and in that case, the NetBSD backend fails to open() the necessary /dev/ugenX.Y and will try to send ioctl()s to fd 0, which fortunately fails. This unbreaks e.g. openocd on NetBSD. Closes #539 Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)