From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 43F6B3858C52 for ; Wed, 4 Oct 2023 13:06:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43F6B3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1696424766; bh=6557hC7TOvn/5GuuXbjkmVF43/UazyEealYX7gzZdy8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=m8ZZw1et/DjvXP0Gw1P7Ow+rwxyfvypCX2CMqCTHPIRX12BjY/vVG0YcdPb/ug+GB QKq2gzKI/1UeOqvRbzFbtgRlv4CvAvGFprBmQhM5hD6NWTOh/U4AFKI86RFGKkQB84 XtC4LDdZN3rRBs2q9dhkuACyXzVlaQlmyjINCkmg= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id BB63766D8A; Wed, 4 Oct 2023 09:06:05 -0400 (EDT) Message-ID: <4b80d08c6263790f1694085c0f5a862c883fbd67.camel@xry111.site> Subject: Re: [PATCH] posix: Deprecate group_member for Linux From: Xi Ruoyao To: Joe Simmons-Talbott , libc-alpha@sourceware.org Date: Wed, 04 Oct 2023 21:06:03 +0800 In-Reply-To: <20230921162057.3610289-1-josimmon@redhat.com> References: <20230921162057.3610289-1-josimmon@redhat.com> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 2023-09-21 at 12:20 -0400, Joe Simmons-Talbott wrote: > diff --git a/sysdeps/unix/sysv/linux/group_member.h b/sysdeps/unix/sysv/l= inux/group_member.h > new file mode 100644 > index 0000000000..9b24569d4e > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/group_member.h > @@ -0,0 +1,27 @@ > +/* Copyright (C) 2023 Free Software Foundation, Inc. > +=C2=A0=C2=A0 This file is part of the GNU C Library. > + > +=C2=A0=C2=A0 The GNU C Library is free software; you can redistribute it= and/or > +=C2=A0=C2=A0 modify it under the terms of the GNU Lesser General Public > +=C2=A0=C2=A0 License as published by the Free Software Foundation; eithe= r > +=C2=A0=C2=A0 version 2.1 of the License, or (at your option) any later v= ersion. > + > +=C2=A0=C2=A0 The GNU C Library is distributed in the hope that it will b= e useful, > +=C2=A0=C2=A0 but WITHOUT ANY WARRANTY; without even the implied warranty= of > +=C2=A0=C2=A0 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=C2=A0 = See the GNU > +=C2=A0=C2=A0 Lesser General Public License for more details. > + > +=C2=A0=C2=A0 You should have received a copy of the GNU Lesser General P= ublic > +=C2=A0=C2=A0 License along with the GNU C Library; if not, see > +=C2=A0=C2=A0 .=C2=A0 */ > + > +#ifndef _GROUP_MEMBER_H > +#define _GROUP_MEMBER_H 1 > + > +#ifdef __USE_GNU > +/* Return nonzero iff the calling process is in group GID.=C2=A0 Depreca= ted */ > +extern int group_member (__gid_t __gid) __THROW > + __attribute_deprecated__; Maybe `__attribute_deprecated_msg__ ("may overflow the stack")` is better? And should we have an alternate interface to replace it? > +#endif > + > +#endif /* GROUP_MEMBER_H */ --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University