Subject: Re: Further tests on x11 7.2.0
To: None <>
From: Christian Biere <>
List: tech-pkg
Date: 12/21/2006 18:14:51
Vincent wrote:
> Jeremy C. Reed a écrit :
> >>"u_long" type is not defined unless _NETBSD_SOURCE is defined too. That 
> >>happens while a C file includes unistd.h that prototypes some functions 
> >>with u_long, u_short, etc.
> >
> >I reported this and was told this was a problem in NetBSD. I emailed 
> >current-users@ NetBSD twice to ask about it but received no feedback.
> Well, that is at least partly understandable. Userland programs 
> shouldn't use u_long without knowing exactly how many bytes it occupies. 

I'd think it's just a short-hand for "unsigned long int" along with ULong,
Ulong, ulong or even ul. While it's nice for typing I doubt it's useful to keep
them as there are no official short-hands and you're likely to run into
#define/typedef trouble sooner or later. Even if there are prototypes using
these which don't want to modify, you can just use unsigned long as they are
identical and will cause no compiler warnings.