On 11/08/04 10:05, Dag-Erling Smorgrav wrote:
> des         2004-11-08 18:05:43 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/sys              _types.h resource.h
>   Log:
>   Document why rlim_t needs to be a signed type.
>   Define RLIM_INFINITY as INT64_MAX instead of hand-rolling it.

>From r137390:
> -typedef      __int64_t       __rlim_t;       /* resource limit (XXX not 
> unsigned) */
> +typedef      __int64_t       __rlim_t;       /* resource limit - 
> intentionally */
> +                                     /* signed, because of legacy code */
> +                                     /* that uses -1 for RLIM_INFINITY */

Is it time to drop compatibility for code which was "legacy" 12 years ago
in order to conform to the POSIX stipulation that rlim_t should be unsigned?

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to