standards/62388: sys/resource.h does not pull in dependencies
Matthias Andree
matthias.andree at gmx.de
Thu Feb 5 06:20:21 PST 2004
>Number: 62388
>Category: standards
>Synopsis: sys/resource.h does not pull in dependencies
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-standards
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 05 06:20:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Matthias Andree
>Release: FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #80: Wed Feb 4 11:48:06 CET 2004 root at libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386
>Description:
POSIX shows this SYNOPSIS (omitting angle brackets to support send-pr)
#include sys/resource.h
int getrlimit(int resource, struct rlimit *rlp);
int setrlimit(int resource, const struct rlimit *rlp);
FreeBSD however needs sys/types.h and sys/time.h in addition to that.
>How-To-Repeat:
Use this in an autoconf script and run autoconf, then ./configure
AC_CHECK_TYPES([rlim_t],,,[#include <sys/resource.h>])
This works virtually everywhere, Linux, Solaris, SunOS 4.1, but not on FreeBSD
>Fix:
Have sys/resource.h include the relevant portions of sys/types.h and sys/time.h
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-standards
mailing list