C warning that I can't seem to track down

Mel Wilson mwilson-4YeSL8/OYKRWk0Htik3J/w at public.gmane.org
Wed Aug 9 12:14:03 UTC 2006


bob wrote:
> Of course.    I'll try that once I get back to my system with the newer GCC 
> installed.
> 
> Thanks.
> 
> bob
> PS.
> Still can't believe how obtuse the Linux headers have become since I last 
> looked in any detail.    Maybe Google can tell me where socklen_t is actually 
> defined ... 

:-/

mwilson at darkstar:/usr/include$ grep socklen_t *
netdb.h:extern struct hostent *gethostbyaddr (__const void *__addr, 
__socklen_t __len,
netdb.h:extern int gethostbyaddr_r (__const void *__restrict __addr, 
__socklen_t __len,
netdb.h:  socklen_t ai_addrlen;         /* Length of socket address.  */
netdb.h:                        socklen_t __salen, char *__restrict 
__host,
netdb.h:                        socklen_t __hostlen, char *__restrict 
__serv,
netdb.h:                        socklen_t __servlen, unsigned int 
__flags);
unistd.h:# ifndef __socklen_t_defined
unistd.h:typedef __socklen_t socklen_t;
unistd.h:#  define __socklen_t_defined


So there it is, in unistd.h

Now if we only knew what __socklen_t was, we'd be set.  Obtuse?
yeah, I sort of agree.

         Mel.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list