Andrey Slusar <anrays(a)gmail.com> writes:
Sun, 23 Jan 2005 08:27:24 -0500, Vin Shelton wrote:
> > Configure tests is not needed. From FreeBSD's sys/types.h:
> > ,----
> > [...]
> > | #ifndef _RLIM_T_DECLARED
> > | typedef __rlim_t rlim_t; /* resource limit */
> > | #define _RLIM_T_DECLARED
> > | #endif
> > [...]
> > `----
> >
> QUERY
> Do any other systems have this declaration? Neither my Linux system
> nor my Solaris systems do.
My patch is check _RLIM_T_DECLARED, and when it is defined, use the
rlim_t type for resource limit data. In Linux this is not defined,
lim_data type is unsigned long type. Why this is incorrect?
Well, it may be correct, but it has a very narrow benefit: it looks to me
like it's only for cleanliness; FreeBSD still compiles, right? And if
no other systems have it, then I don't think it's worth the effort.
Regards,
Vin