Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Any Win32 porting clues?
From: doug () hcsw org
Date: Tue, 27 May 2008 16:17:20 -0700

On Tue, May 27, 2008 at 11:09:34PM +0200 or thereabouts,  mixter () gmail com wrote:
Currently, I'm stuck with missing definitions....

ncat\sys_wrap.h(41) : error C2061: syntax error : identifier 'socklen_t'

I think this might help:

http://curl.haxx.se/mail/lib-2007-03/0131.html

Incidentally, socklen_t was kinda a POSIX mistake. From accept(2):

Quoting Linus Torvalds: _Any_ sane library _must_ have "socklen_t" be the same size as int. Anything else breaks any 
BSD socket layer stuff. POSIX initially _did_ make it a size_t, and I (and hopefully others, but obviously not too 
many) complained to them very loudly indeed. Making it a size_t is completely broken, exactly because size_t very 
seldom is the same size as "int" on 64-bit architectures, for example. And it _has_ to be the same size as "int" 
because that's what the BSD socket interface is. Anyway, the POSIX people eventually got a clue, and created 
"socklen_t". They shouldn't have touched it in the first place, but once they did they felt it had to have a named type 
for some unfathomable reason (probably somebody didn't like losing face over having done the original stupid thing, so 
they silently just renamed their blunder).

(Native
Windows one of the few things in development I've managed to avoid in
many years;)

Ah yes, in a perfect world. :)

Best,

Doug

Attachment: signature.asc
Description: Digital signature


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]