public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] posix: Add group_member2 and deprecate group_member
@ 2023-10-12 15:34 Joe Simmons-Talbott
  2023-10-12 15:34 ` [PATCH 1/2] posix/group_member: Add group_member2 with error return Joe Simmons-Talbott
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Joe Simmons-Talbott @ 2023-10-12 15:34 UTC (permalink / raw)
  To: libc-alpha; +Cc: Joe Simmons-Talbott

Add group_member2 which uses a scratch_buffer rather than alloca and
returns -1 on error and sets errno.  Replace the alloca usage in
group_member with a scratch_buffer and call __fortify_fail when
allocation fails.  Deprecate group_member for Linux.

Joe Simmons-Talbott (2):
  posix/group_member: Add group_member2 with error return.
  posix: Deprecate group_member for Linux

 include/unistd.h                       |  1 +
 posix/Makefile                         |  4 +++
 posix/group_member.c                   | 32 ++++++++++++++++++++
 posix/group_member.h                   | 29 ++++++++++++++++++
 posix/tst-group_member.c               | 41 +++++++++++++++++++++++++
 posix/tst-group_member2.c              | 42 ++++++++++++++++++++++++++
 posix/unistd.h                         |  6 ++--
 sysdeps/unix/sysv/linux/group_member.h | 27 +++++++++++++++++
 8 files changed, 179 insertions(+), 3 deletions(-)
 create mode 100644 posix/group_member.h
 create mode 100644 posix/tst-group_member.c
 create mode 100644 posix/tst-group_member2.c
 create mode 100644 sysdeps/unix/sysv/linux/group_member.h

-- 
2.39.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-12 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 15:34 [PATCH 0/2] posix: Add group_member2 and deprecate group_member Joe Simmons-Talbott
2023-10-12 15:34 ` [PATCH 1/2] posix/group_member: Add group_member2 with error return Joe Simmons-Talbott
2023-10-12 15:34 ` [PATCH 2/2] posix: Deprecate group_member for Linux Joe Simmons-Talbott
2023-10-12 16:59 ` [PATCH 0/2] posix: Add group_member2 and deprecate group_member Joseph Myers
2023-10-12 19:44   ` Joe Simmons-Talbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).