From patchwork Mon Jul 22 11:31:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1134846 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-103870-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="meQvGfXu"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45sfZN6Tcpz9s7T for ; Mon, 22 Jul 2019 21:31:24 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; q=dns; s=default; b=rXwPNkPvy7yhW8HD Ce0EdpGCTcL+B4f36ikiBvxKxqvqKNHiaP609+SyPqdw6QDT7qXs5Mf39G1jFQDc e7f6+Fou0g4FyNdv9Trzb0C15vlGlP0hBqVMwF6remgaM189pmrBT8911xyThziy NqDJWdeZCiwvM795Riqq7AR+Qxc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; s=default; bh=IK2Z7L484qGnNLnxjj3v+X qghig=; b=meQvGfXudufQ1+Z7+Gvkhi+tW16qysK2iwuK2Ec//kSzhuLiXQL6lg WklKgc7Yr3wr4jzEgjyciHlS0K5iPtEEorGS9PlLOBWN3CgdTSOEMTZiL08MQM+v mH453TRVR2wRFeWYpCVtL9Ps9AoB8pUGCfuqKHCOL4ruDcAhCiMOo= Received: (qmail 73426 invoked by alias); 22 Jul 2019 11:31:18 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 73414 invoked by uid 89); 22 Jul 2019 11:31:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*Ad:U*davem X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org, Sergei Trofimovich Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , "David S. Miller" , mtk.manpages@gmail.com, linux-man@vger.kernel.org Subject: [PATCH glibc] Linux: Include in under __USE_MISC Date: Mon, 22 Jul 2019 13:31:12 +0200 Message-ID: <87ftmys3un.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Historically, (which is included from ) provided ioctl operations for sockets. User code accessed them through . The kernel UAPI headers have removed these definitions in favor of . This commit makes them available via again. [[[ This is related to this thread: From: Sergei Trofimovich Subject: linux-headers-5.2 and proper use of SIOCGSTAMP To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, libc-alpha@sourceware.org Cc: Arnd Bergmann , "David S. Miller" , mtk.manpages@gmail.com, linux-man@vger.kernel.org Date: Sat, 20 Jul 2019 17:48:44 +0100 (1 day, 18 hours, 40 minutes ago) Message-ID: <20190720174844.4b989d34@sf> I have tried to verify this against our 3.10 kernel headers and the 5.2 headers, and I do not see any failures in glibc itself (the latter with build-many-glibcs.py). Impact on application code is unclear at this point, of course. This patch depends on the earlier Linux 5.2 compatibility patch which introduced . ]]] 2019-07-22 Florian Weimer * sysdeps/unix/sysv/linux/bits/socket.h [__USE_MISC]: Include . diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 082f8b9031..ff5b705f41 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -352,6 +352,7 @@ struct ucred #ifdef __USE_MISC # include # include +# include #else # define SO_DEBUG 1 # include