From owner-svn-src-stable-9@freebsd.org Sun Jun 14 08:33:36 2020 Return-Path: Delivered-To: svn-src-stable-9@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CCF6D333E17 for ; Sun, 14 Jun 2020 08:33:36 +0000 (UTC) (envelope-from info@hwinfotech.net) Received: from bin.hwinfotech.net (bin.hwinfotech.net [192.99.237.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49l75r1SVSz475K for ; Sun, 14 Jun 2020 08:33:36 +0000 (UTC) (envelope-from info@hwinfotech.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=dkim; d=hwinfotech.net; h=Message-ID:Date:Subject:From:Reply-To:To:MIME-Version:Content-Type:List-Unsubscribe:List-Id; i=info@hwinfotech.net; bh=z0bN+wVb1cLoIXvZs6+uQvdk8Q8=; b=g2nHT3liiVVuwQvrH3mEQbywakp8tw2LCxquHlMznePwNpSP813KJJkWqV0fYYk0An937BWZ41J6 vecrrsSoKZpbc86crnLYv+RnftgyWcIVzJYsYq2vjg1udgPmt+NOCyu3NtxZOy1ehJc27xyYrhWO jMYvby3MLEqbzsRafNA= DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=dkim; d=hwinfotech.net; b=qk0Vhm0iq7tpwHye7HgCCZ0Nflaq9BlFQQXHnvXD+1AsATtp3DtRhQd2oCSqKHIJktUQP0gyMSXe 39bnywfJNMgKlfNg/l1HeFWE16OLuDLMEezn+rt3Gr1OL8qmaOUpjpexABJY5zkCEsXCU4o3e4YF fOUK5VfxkyZIagUwPkQ=; Message-ID: <5c5361e33edd117ea2cdf841a2584d96@hwinfotech.net> Date: Sun, 14 Jun 2020 08:33:34 +0000 Subject: Website and Mobile App Development From: HW Infotech Reply-To: HW Infotech To: "svn-src-stable-9@freebsd.org" MIME-Version: 1.0 X-Sender: info@hwinfotech.net X-Report-Abuse: Please report abuse for this campaign here: http://app.hwinfotech.net/index.php/campaigns/ok072mq8cc88f/report-abuse/dd296hm0jzd67/of838s06hz004 X-Receiver: svn-src-stable-9@freebsd.org X-Fxyn-Tracking-Did: 0 X-Fxyn-Subscriber-Uid: of838s06hz004 X-Fxyn-Mailer: SwiftMailer - 5.4.x X-Fxyn-EBS: http://app.hwinfotech.net/index.php/lists/block-address X-Fxyn-Delivery-Sid: 3 X-Fxyn-Customer-Uid: pp359780cbfd3 X-Fxyn-Customer-Gid: 0 X-Fxyn-Campaign-Uid: ok072mq8cc88f Precedence: bulk Feedback-ID: ok072mq8cc88f:of838s06hz004:dd296hm0jzd67:pp359780cbfd3 X-Rspamd-Queue-Id: 49l75r1SVSz475K X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hwinfotech.net header.s=dkim header.b=g2nHT3li; dmarc=pass (policy=none) header.from=hwinfotech.net; spf=pass (mx1.freebsd.org: domain of info@hwinfotech.net designates 192.99.237.65 as permitted sender) smtp.mailfrom=info@hwinfotech.net X-Spamd-Result: default: False [-4.22 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[info@hwinfotech.net]; R_DKIM_ALLOW(-0.20)[hwinfotech.net:s=dkim]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:192.99.237.65:c]; PRECEDENCE_BULK(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.972]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MANY_INVISIBLE_PARTS(0.05)[1]; NEURAL_HAM_MEDIUM(-0.93)[-0.928]; DKIM_TRACE(0.00)[hwinfotech.net:+]; DMARC_POLICY_ALLOW(-0.50)[hwinfotech.net,none]; NEURAL_HAM_SHORT(-1.36)[-1.359]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16276, ipnet:192.99.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.33 List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2020 08:33:36 -0000 We have =E2=9C=85 500+ clone ScriptHi, I am Waseem From HW Infotech. = =C2=A0 Please share your phone number or Skype id, Whatsapp if you are = looking to develop a clone of any website. Work in the following area := =E2=9C=85 Clone Script for any Website and Mobile APP -Development and= Digital Marketing for App, Web, Software Clone Scripts =E2=9C=85Readym= ade Script for useful product -Shop Website Templates, Clone Scripts, & M= arketplace Software | HW Infotech =E2=9C=85Software Requirement Specifica= tion Documentation =E2=9C=85A wireframe design for Website, ERP, Product = &Mobile app =E2=9C=85PHP Framework & MYSQL, HTML5, CSS3, JavaScript, jQue= ry, XML, JSON. =E2=9C=85eCommerce, WordPress,Magento,Open Cart, Joomla, M= agento 2, Prestashop =E2=9C=85Mobile APP- Android, IOS, Phone Gap and F= lutter =E2=9C=85SEO, SMO, and PPC =E2=9C=85Install and config the proje= ct =E2=9C=85Plugin: Customize and create a new plugin =E2=9C=85Migrate = & Upgrade: sustainable development and long-term =E2=9C=85WHM Panel serve= r configuration =E2=9C=85Server Optimization =E2=9C=85Website and Serve= r Penetration testing =E2=9C=85Load Balancing and Failover clustering Ser= ver =E2=9C=85Mail Server configuration for bulk emailing Contact us - H= ire A Developer | Web and App Development Services | HW Infotech Regard= s Waseem www.hwinfotech.com=C2=A0=C2=A0Gurugram | California |London|Va= ncouver|Abuja | Melbourne http://app.hwinfotech.net/index.php/lists/dd2= 96hm0jzd67/unsubscribe/of838s06hz004/ok072mq8cc88f From owner-svn-src-stable-9@freebsd.org Tue Jun 16 12:22:04 2020 Return-Path: Delivered-To: svn-src-stable-9@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 706F633645F; Tue, 16 Jun 2020 12:22:03 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49mS4T1gG7z3bl0; Tue, 16 Jun 2020 12:22:00 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 12E13F26A; Tue, 16 Jun 2020 12:21:59 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 05GCLxgQ053032; Tue, 16 Jun 2020 12:21:59 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05GCLx1Q052550; Tue, 16 Jun 2020 12:21:59 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <202006161221.05GCLx1Q052550@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Tue, 16 Jun 2020 12:21:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r362224 - in stable: 10/lib/libusb 11/lib/libusb 12/lib/libusb 9/lib/libusb X-SVN-Group: stable-9 X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: in stable: 10/lib/libusb 11/lib/libusb 12/lib/libusb 9/lib/libusb X-SVN-Commit-Revision: 362224 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 12:22:06 -0000 Author: kevans Date: Tue Jun 16 12:21:55 2020 New Revision: 362224 URL: https://svnweb.freebsd.org/changeset/base/362224 Log: MFC r361977: libusb: improve compatibility Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API. Descriptions and functionality for these derived from the documentation at [0]. The current set of capabilities are all supported by libusb. These were detected as missing after updating net/freerdp to 2.1.1, which attempted to use both. [0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html Modified: stable/9/lib/libusb/Makefile stable/9/lib/libusb/libusb.3 stable/9/lib/libusb/libusb.h stable/9/lib/libusb/libusb10.c Directory Properties: stable/9/ (props changed) stable/9/lib/ (props changed) stable/9/lib/libusb/ (props changed) Changes in other areas also in this revision: Modified: stable/10/lib/libusb/Makefile stable/10/lib/libusb/libusb.3 stable/10/lib/libusb/libusb.h stable/10/lib/libusb/libusb10.c stable/11/lib/libusb/Makefile stable/11/lib/libusb/libusb.3 stable/11/lib/libusb/libusb.h stable/11/lib/libusb/libusb10.c stable/12/lib/libusb/Makefile stable/12/lib/libusb/libusb.3 stable/12/lib/libusb/libusb.h stable/12/lib/libusb/libusb10.c Directory Properties: stable/10/ (props changed) stable/11/ (props changed) stable/12/ (props changed) Modified: stable/9/lib/libusb/Makefile ============================================================================== --- stable/9/lib/libusb/Makefile Tue Jun 16 12:16:35 2020 (r362223) +++ stable/9/lib/libusb/Makefile Tue Jun 16 12:21:55 2020 (r362224) @@ -44,6 +44,7 @@ CFLAGS+= -DCOMPAT_32BIT MLINKS += libusb.3 libusb_get_version.3 MLINKS += libusb.3 libusb_init.3 MLINKS += libusb.3 libusb_exit.3 +MLINKS += libusb.3 libusb_has_capability.3 MLINKS += libusb.3 libusb_strerror.3 MLINKS += libusb.3 libusb_error_name.3 MLINKS += libusb.3 libusb_set_debug.3 Modified: stable/9/lib/libusb/libusb.3 ============================================================================== --- stable/9/lib/libusb/libusb.3 Tue Jun 16 12:16:35 2020 (r362223) +++ stable/9/lib/libusb/libusb.3 Tue Jun 16 12:21:55 2020 (r362224) @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 23, 2016 +.Dd June 16, 2020 .Dt LIBUSB 3 .Os .Sh NAME @@ -60,6 +60,33 @@ failure. Deinitialise libusb. Must be called at the end of the application. Other libusb routines may not be called after this function. +.Pp +.Ft int +.Fn libusb_has_capability "uint32_t capability" +This function checks the runtime capabilities of +.Nm . +This function will return non-zero if the given +.Fa capability +is supported, 0 if it is not supported. +The valid values for +.Fa capability +are: +.Bl -tag -width LIBUSB_CAP -offset indent +.It Va LIBUSB_CAP_HAS_CAPABILITY +.Nm +supports +.Fn libusb_has_capability . +.It Va LIBUSB_CAP_HAS_HOTPLUG +.Nm +supports hotplug notifications. +.It Va LIBUSB_CAP_HAS_HID_ACCESS +.Nm +can access HID devices without requiring user intervention. +.It Va LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER +.Nm +supports detaching of the default USB driver with +.Fn libusb_detach_kernel_driver . +.El .Pp .Ft const char * .Fn libusb_strerror "int code" Modified: stable/9/lib/libusb/libusb.h ============================================================================== --- stable/9/lib/libusb/libusb.h Tue Jun 16 12:16:35 2020 (r362223) +++ stable/9/lib/libusb/libusb.h Tue Jun 16 12:21:55 2020 (r362224) @@ -49,6 +49,7 @@ enum libusb_class_code { LIBUSB_CLASS_AUDIO = 1, LIBUSB_CLASS_COMM = 2, LIBUSB_CLASS_HID = 3, + LIBUSB_CLASS_PHYSICAL = 5, LIBUSB_CLASS_PTP = 6, LIBUSB_CLASS_IMAGE = 6, LIBUSB_CLASS_PRINTER = 7, @@ -173,6 +174,21 @@ enum libusb_bos_type { LIBUSB_BT_CONTAINER_ID = 4, }; +enum libusb_capability { + /* libusb supports libusb_has_capability(). */ + LIBUSB_CAP_HAS_CAPABILITY = 0, + /* Hotplug support is available. */ + LIBUSB_CAP_HAS_HOTPLUG, + /* Can access HID devices without requiring user intervention. */ + LIBUSB_CAP_HAS_HID_ACCESS, + + /* + * Supports detaching of the default USB driver with + * libusb_detach_kernel_driver(). + */ + LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER, +}; + enum libusb_error { LIBUSB_SUCCESS = 0, LIBUSB_ERROR_IO = -1, @@ -432,6 +448,7 @@ const char *libusb_strerror(int code); const char *libusb_error_name(int code); int libusb_init(libusb_context ** context); void libusb_exit(struct libusb_context *ctx); +int libusb_has_capability(uint32_t capability); /* Device handling and enumeration */ Modified: stable/9/lib/libusb/libusb10.c ============================================================================== --- stable/9/lib/libusb/libusb10.c Tue Jun 16 12:16:35 2020 (r362223) +++ stable/9/lib/libusb/libusb10.c Tue Jun 16 12:21:55 2020 (r362224) @@ -1705,3 +1705,18 @@ libusb_error_name(int code) return ("LIBUSB_ERROR_UNKNOWN"); } } + +int +libusb_has_capability(uint32_t capability) +{ + + switch (capability) { + case LIBUSB_CAP_HAS_CAPABILITY: + case LIBUSB_CAP_HAS_HOTPLUG: + case LIBUSB_CAP_HAS_HID_ACCESS: + case LIBUSB_CAP_SUPPORTS_DETACH_KERNEL_DRIVER: + return (1); + default: + return (0); + } +}