Subject: standards/25216: sys/resource.h posix compliance on getpriority/setpriority
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <murray@river-styx.org>
List: netbsd-bugs
Date: 04/18/2004 02:45:55
>Number: 25216
>Category: standards
>Synopsis: sys/resource.h posix compliance on getpriority/setpriority
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: standards-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 18 02:46:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Murray Armfield
>Release: NetBSD-current
>Organization:
>Environment:
NetBSD ra 2.0C NetBSD 2.0C (RA.MP) #0: Mon Apr 12 23:28:47 EST 2004 admin@ra:/usr/obj/sys/arch/i386/compile/RA.MP i386
>Description:
posix headers for resource.h use the type id_t, not int for one of the parameters to getpriority and setpriority.
Oh and while I'm here, NetBSD seems to be missing the resource limit
define RLIMIT_AS which is the address space size, also part of posix
standard in resource.h
>How-To-Repeat:
Inspect sys/resource.h and posix standard
>Fix:
__BEGIN_DECLS
-int getpriority __P((int, int));
+int getpriority __P((int, id_t));
int getrlimit __P((int, struct rlimit *));
int getrusage __P((int, struct rusage *));
-int setpriority __P((int, int, int));
+int setpriority __P((int, id_t, int));
int setrlimit __P((int, const struct rlimit *));
__END_DECLS
Additional patching required for source tree. This is just the resource.h bit of it
>Release-Note:
>Audit-Trail:
>Unformatted: