cvs commit: src/sys/sys _types.h resource.h

Colin Percival cperciva at tarsnap.com
Thu Oct 20 19:58:34 UTC 2016


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


More information about the svn-src-all mailing list