From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 4216F3858031; Fri, 16 Jun 2023 19:49:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4216F3858031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1686944969; bh=kVZ657I5NztOBx/JobGxAr3qHLTM/tBHEchma4d8UmY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=bAm/Ife27yiDMvvK5KFYAsqnIVRV0uOTVxug8f5Xi01Hp1264OFn1HCxr9VK4lOYx ytiss/4G30WLdcTtWzHUbsPIDh95pQ1xzpsAIfmkPOtnf7k03ayzGqjowcJL9ixC5D Aod7T2KsNldPSQTvo264iBUKgcOHCi5sM9CekUoQ= Received: by calimero.vinschen.de (Postfix, from userid 500) id 7ED79A80940; Fri, 16 Jun 2023 21:49:27 +0200 (CEST) Date: Fri, 16 Jun 2023 21:49:27 +0200 From: Corinna Vinschen To: Philippe Cerfon Cc: cygwin-patches@cygwin.com Subject: Re: [PATCH] include/cygwin/limits.h: add XATTR_{NAME,SIZE,LIST}_MAX Message-ID: Reply-To: cygwin-patches@cygwin.com Mail-Followup-To: Philippe Cerfon , cygwin-patches@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: On Jun 16 17:43, Philippe Cerfon wrote: > Hey. > > On Fri, Jun 16, 2023 at 5:04 PM Corinna Vinschen > wrote: > > Oh well. Now that I see it in real life, my idea to use the entire > > expression inline wasn't that great, it seems... > > ^^ > > > > I didn't want to keep MAX_EA_NAME_LEN because now that we have an > > official name for the value, having an unofficial name using a different > > naming convention is a bit weird. > > > > On the other hand, having a macro for the expression certainly looks > > much cleaner. Also, only one place to change (should a change ever be > > necessary). > > Does both make sense. > > > > Sorry about that. > > No worries :-) > > > > What do you think about something like _XATTR_NAME_MAX_ONDISK_? > > Really with trailing/leading underscores? If you try to keep it out of > the "official namespace", then I'd would perhaps make more sense to > mark this as being cygwin specific like CYGWIN_XATTR_NAME_MAX_ONDISK > or so? > Also - may be nitpicking - but storage is not really guaranteed to be > a disk anymore. Maybe ONSTORAGE instead? But admittedly ONDISK sounds > more common ("on disk format", etc.). You're right, of course. Disk is just like everyone talks about it. Even a SSD has "disk" in it's name :) > > I can also just push the patches and we discuss this further afterwards, > > your call. > > Well you know the naming convention used in your code much better than I do. > > Attached patches use _XATTR_NAME_MAX_ONDISK_ as you proposed. > > Just pick whichever name you like best, and either tell me and I > provide a new patch, or just sed 's/_XATTR_NAME_MAX_ONDISK_/foobar/g' > (+ maybe align text wrapping of comments if necessary). Let's keep it at that. I pushed your patchset. Thanks! Corinna