Author: kib Date: Tue Feb 14 17:44:30 2017 New Revision: 313734 URL: https://svnweb.freebsd.org/changeset/base/313734
Log: Add RLIM_SAVED_MAX and RLIM_SAVED_CUR symbols. Define them as RLIM_INFINITY. This is allowed by POSIX in case all resource limits are representable in an object of type rlim_t. Since we do not allow negative rlim_t, with some strength this definition is conforming. We are not conforming fully still because POSIX requires rlim_t to be unsigned type. Fixing this without breaking ABI to redefine RLIM_INFINITY is impossible. PR: 209729 Submitted by: [email protected] Exp-run done by: antoine MFC after: 2 weeks Modified: head/sys/sys/resource.h Modified: head/sys/sys/resource.h ============================================================================== --- head/sys/sys/resource.h Tue Feb 14 17:13:23 2017 (r313733) +++ head/sys/sys/resource.h Tue Feb 14 17:44:30 2017 (r313734) @@ -119,8 +119,8 @@ struct __wrusage { #define RLIM_NLIMITS 15 /* number of resource limits */ #define RLIM_INFINITY ((rlim_t)(((__uint64_t)1 << 63) - 1)) -/* XXX Missing: RLIM_SAVED_MAX, RLIM_SAVED_CUR */ - +#define RLIM_SAVED_MAX RLIM_INFINITY +#define RLIM_SAVED_CUR RLIM_INFINITY /* * Resource limit string identifiers _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
