From owner-p4-projects@FreeBSD.ORG Mon Nov 1 08:42:27 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 08B531065674; Mon, 1 Nov 2010 08:42:27 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6B03106566B for ; Mon, 1 Nov 2010 08:42:26 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id A363E8FC15 for ; Mon, 1 Nov 2010 08:42:26 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id oA18gQa3067242 for ; Mon, 1 Nov 2010 08:42:26 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id oA18gQBK067239 for perforce@freebsd.org; Mon, 1 Nov 2010 08:42:26 GMT (envelope-from hselasky@FreeBSD.org) Date: Mon, 1 Nov 2010 08:42:26 GMT Message-Id: <201011010842.oA18gQBK067239@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 185296 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 08:42:27 -0000 http://p4web.freebsd.org/@@185296?ac=10 Change 185296 by hselasky@hselasky_laptop001 on 2010/11/01 08:41:32 LibUSB documentation. PR: usb/151851 Affected files ... .. //depot/projects/usb/src/lib/libusb/libusb.3#27 edit Differences ... ==== //depot/projects/usb/src/lib/libusb/libusb.3#27 (text+ko) ==== @@ -380,10 +380,14 @@ .Pp .Ft int .Fn libusb_control_transfer "libusb_device_handle *devh" "uint8_t bmRequestType" "uint8_t bRequest" "uint16_t wValue" "uint16_t wIndex" "unsigned char *data" "uint16_t wLength" "unsigned int timeout" -Perform a USB control transfer. Returns 0 on success, LIBUSB_ERROR_TIMEOUT -if the transfer timeout, LIBUSB_ERROR_PIPE if the control request was not -supported, LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and -LIBUSB_ERROR code on other failure. +Perform a USB control transfer. Returns the actual number of bytes +transferred on success in the range from and including zero until and +including +.Xa wLength . +On error a libusb error code is returned, for example +LIBUSB_ERROR_TIMEOUT if the transfer timeout, LIBUSB_ERROR_PIPE if the +control request was not supported, LIBUSB_ERROR_NO_DEVICE if the +device has been disconnected or LIBUSB_ERROR code on other failure. . .Pp .Ft int