Sun, 23 Jan 2005 10:47:00 -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.
May by this is a presented in other BSD systems - NetBSD, OpenBSD,
DragonflyBSD and other. I am not checked this.
--
Regards,
Andrey.