From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tarta.nabijaczleweli.xyz (unknown [139.28.40.42]) by sourceware.org (Postfix) with ESMTP id 259603858D28 for ; Tue, 7 Dec 2021 21:48:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 259603858D28 Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id 813E620AE; Tue, 7 Dec 2021 22:48:13 +0100 (CET) Date: Tue, 7 Dec 2021 22:48:12 +0100 From: =?utf-8?B?0L3QsNCx?= To: "Alejandro Colomar (man-pages)" Cc: libc-alpha@sourceware.org, Jakub Wilk , Zack Weinberg , Stefan Puiu , Michael Kerrisk Subject: Re: [PATCH] sys/types.h: Define new types: [s]nseconds_t Message-ID: <20211207214812.mfeab56wxuiwsrff@tarta.nabijaczleweli.xyz> References: <20211207111957.8087-1-alx.manpages@gmail.com> <20211207131750.h2quh3di6ml3psbz@tarta.nabijaczleweli.xyz> <114d5ecb-d64e-0b62-4aea-88cc31da80ea@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gt3br4lgd2djug6c" Content-Disposition: inline In-Reply-To: <114d5ecb-d64e-0b62-4aea-88cc31da80ea@gmail.com> User-Agent: NeoMutt/20211029 X-Spam-Status: No, score=4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, FSL_BULK_SIG, KAM_INFOUSMEBIZ, KAM_SHORT, PDS_OTHER_BAD_TLD, PDS_RDNS_DYNAMIC_FP, RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK, RDNS_DYNAMIC, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Dec 2021 21:48:19 -0000 --gt3br4lgd2djug6c Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 07, 2021 at 07:20:07PM +0100, Alejandro Colomar (man-pages) wro= te: > As Zack suggested, an unsigned version is probably unnecessary, so I'll u= se > nsec_t for the patches, as you used in your draft. I like short names, a= nd > also signed types. Great, this, if lands, will give glibc free compatibility with C2X. > On 12/7/21 14:17, =D0=BD=D0=B0=D0=B1 wrote: > > You can find my current draft: > > https://srhtcdn.githack.com/~nabijaczleweli/wg14/blob/868d3e096db0fe= 4378d77cd67215bed56045196d/N%3F%3F%3F%3F.pdf > It looks good. Thanks :0 > Would you mind sharing the source code of your pdf? I'm curious to learn= to > write those papers. https://git.sr.ht/~nabijaczleweli/wg14/tree, but note that this is /far/ =66rom a "good" or "normal" set-up =E2=80=92 most people use TeX, and are proficient at it because they have a collegial education; I started using groff -mom yesterday at 3am because I needed to make a PDF and I'd remembered reading it was the strongest successor to -ms. FTR: The PDF linked above was made at revision ee254af. > Also, please CC me when you have any news on that :) Will do. > > accepting this would mean just a > > typedef decltype(struct timespec::tv_nsec) nsec_t; > > to make the implementation C2X conformant again. > Hmm, not sure if it would be better for glibc to define nsec_t in terms of > timespec, or the other way around. I had in mind something like the > following: I just meant that as an abstract short-hand form, decomposing to roughly what you've out-lined below, yes. Best, =D0=BD=D0=B0=D0=B1 --gt3br4lgd2djug6c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEfWlHToQCjFzAxEFjvP0LAY0mWPEFAmGv1pkACgkQvP0LAY0m WPGfyhAAi1/uJ7Tf0MU8YQXlZvprVcXLaHLE+wD8AJ+CTCvw1dVpKCLkdj6HWSEK bKqBXzMPSBIZl/tVjrIyYWbZq//DgW/s5rIsxvG4ZVPdYKOVDc9xC26zQWXTf/q0 Nh0ekjQSMVtSzLx/0lT8Mkyb2k7i4hCapCiqd6V+BFbkhopAnk6n9qnshsvzYDvh teO17EzTlUR2V9YO3XzsynQYsCqUd5ssNAt+5V8YznG/Hr8Y2j9wQfO/jrPnk569 O6+OqJcwfHlbH8j80q2sUMWK3tPNk2LPegBEeIRf7UCyf+8bPUu89gb7oVu23sZP QnUAG4RdFaGASmQNDAt26A+FSmiYPo97N6oktcV+K60D1VkUAVp5W5Qb6uM8g60F /N6lSuzpKZ7Pn0CAnugIlTuTBGvrcx846WsM0lFKoebQX2V9VV1Wg7o/2rkFxGtz 6CUP8zOWR7q45ySEKbJRKr5ObI6dGUQLu50dnmnOIqZLcU6yz3M/ZscZW8PZUGGB TmVuvdPqGUqq98AI4yGX4qwjNoS/eVo/z9dQ2pxMZDSulsnADC1Q4DloJE1aD9kJ o1O/3kJI4vcH+TEjgiPnmiruoDpE6whWppPfmY1IHhGJ84k3fpAUWEr1aHk3zWeu fMvYhLZrYQfIxFgC3lQjW3Hg8hukoQouibYiLZ5KzSM/1lkoo90= =lnhj -----END PGP SIGNATURE----- --gt3br4lgd2djug6c--