NetBSD Problem Report #58805

From www@netbsd.org  Fri Nov  1 23:29:01 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6002E1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  1 Nov 2024 23:29:01 +0000 (UTC)
Message-Id: <20241101232859.663BE1A923B@mollari.NetBSD.org>
Date: Fri,  1 Nov 2024 23:28:59 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: unistd.h: missing getresuid/getresgid/setresuid/setresgid
X-Send-Pr-Version: www-1.0

>Number:         58805
>Category:       standards
>Synopsis:       unistd.h: missing getresuid/getresgid/setresuid/setresgid
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 01 23:30:01 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The ResBSD Foundation
>Environment:
>Description:
`The getresuid() function shall store the real user ID, effective user ID, and saved set-user-ID of the calling process in the locations pointed to by the arguments ruid, euid, and suid, respectively.'

https://pubs.opengroup.org/onlinepubs/9799919799/functions/getresuid.html

`The getresgid() function shall store the real group ID, effective group ID, and saved set-group-ID of the calling process in the locations pointed to by the arguments rgid, egid, and sgid, respectively.'

https://pubs.opengroup.org/onlinepubs/9799919799/functions/getresgid.html

`The setresuid() function shall set the real user ID, effective user ID, and saved set-user-ID of the calling process to the values specified by ruid, euid, and suid, respectively.'

https://pubs.opengroup.org/onlinepubs/9799919799/functions/setresuid.html

`The setresgid() function shall set the real group ID, effective group ID, and saved set-group-ID of the calling process to the values specified by rgid, egid, and sgid, respectively.'

https://pubs.opengroup.org/onlinepubs/9799919799/functions/setresgid.html
>How-To-Repeat:
standards coding
>Fix:
Yes, please!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.