Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1242592ybt; Sun, 14 Jun 2020 15:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1eR/xFkiL3GkuS6b0mDfhqSi1Edic4v/6aeKE9qtygGddppTz9tWsXlk0Gm0N815sEjED X-Received: by 2002:a05:6402:545:: with SMTP id i5mr21742243edx.179.1592175136044; Sun, 14 Jun 2020 15:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592175136; cv=none; d=google.com; s=arc-20160816; b=WJHuOdaPEba+OQIOr2Zyj+zP07BSr5HSlG/32irsh+zITTHyLxBBKdgEZFFlTZCwi2 9zQllAoME4/znAlI7511hAtUPmb8fxuGypli8xGSMG2ahz50Jce1x6Zw8OtvLIXMbEt9 eOPof8EvHiAgdJLLDJCmAalUHPbMzeAmx9hY8MWIkC6RX+C75Fe0PyhZ1aCAosNtFmN8 Ly/wtOUtmKw4U8onccQOxe5cVPu7uPcTWo6eu75pnOxuhoi3bCNX34WvWHUD5LMVAXV4 L75eUXYhhJH/HlJorNI2Cho/1reDpmb/TTOlZqHy5SR5SQx0ja+85qeL+CdFm+pzb2Pc 3C1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=747e7dCIb0B8/zV3l1bvj5mabWdEE9xAgpdVS/I6KpA=; b=lZuC7lFvdzHwJggA/Ii2RF9XlE29Ij4UglU4UlHIS+uP5OfEjkiXZsD8FLQJBp/f9G ExP1psxpjNK5cvxkjjLkRv3K92EjKeVv+X/F7iimBBRCWaaQhaT79TisvcaJOvuxYwOb Jv9ixana2VRlwkB8SFd4ZV/uf1ufJXdmkF/JkX9tna8Cte3rTZgWL7428/kVJHSr2Ub6 lQL2P5icX1YN9Sn9nbLx29Nk73YkmnbIyM8geI3YiPJvCz3eIOHpATk2QQ7LozVqcfAK T7q5gkyZXcXksXzJbB+RR5R44zlkg/xShet5OquFc/q99LIvt4fFn2fC6CYe/cvn5Le3 LJAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd26si7927857ejb.136.2020.06.14.15.51.30; Sun, 14 Jun 2020 15:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbgFNWrz (ORCPT + 99 others); Sun, 14 Jun 2020 18:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727928AbgFNWrz (ORCPT ); Sun, 14 Jun 2020 18:47:55 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A90C05BD43; Sun, 14 Jun 2020 15:47:54 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jkbPH-008wE4-VA; Sun, 14 Jun 2020 22:47:16 +0000 Date: Sun, 14 Jun 2020 23:47:15 +0100 From: Al Viro To: "Alexander A. Klimov" Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Jakub Kicinski , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: Good idea to rename files in include/uapi/ ? Message-ID: <20200614224715.GJ23230@ZenIV.linux.org.uk> References: <9feded75-4b45-2821-287b-af00ec5f910f@al2klimov.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9feded75-4b45-2821-287b-af00ec5f910f@al2klimov.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 14, 2020 at 09:41:17PM +0200, Alexander A. Klimov wrote: > Hello there! > > At the moment one can't checkout a clean working directory w/o any changed > files on a case-insensitive FS as the following file names have lower-case > duplicates: And if you use a filesystem that is limited to 14 characters in name (or that weird 8 + 3 thing) you'll also have problems. Doctor, it hurts when I do it... > Also even on a case-sensitive one VIm seems to have trouble with editing > both case-insensitively equal files at the same time. So file a bug report against vim. Or use a vi variant without such a problem (FWIW, nvi has nothing of that sort). > I was going to make a patch renaming the respective duplicates, but I'm not > sure: > > *Is it a good idea to rename files in include/uapi/ ?* It is not. Strictly speaking, C99 allows implementation to consider the header names differing only in case as refering to the same file, but then it allows to ignore everything between the 8th character and the first dot in those. Not done on Unices, so #include is not going to pick /usr/include/shite.h If it's used by any userland code, that's it - changing the name (in any fashion) will break that userland code. If it isn't, it shouldn't have been in include/uabi in the first place.