Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 1999 14:19:50 +0100
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Assar Westerlund <assar@sics.se>
Cc:        net@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: Patches for socket.h
Message-ID:  <19991121141950.F48139@daemon.ninth-circle.org>
In-Reply-To: <5l903sn2e8.fsf@foo.sics.se>
References:  <19991120213713.N41154@daemon.ninth-circle.org> <5l903sn2e8.fsf@foo.sics.se>

next in thread | previous in thread | raw e-mail | index | archive | help
-On [19991121 04:00], Assar Westerlund (assar@sics.se) wrote:
>Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> writes:
>
>> One caveat for now is the sa_family_t type, which would be the type for
>> sa_family in the sockaddr struct.
>
>typedef u_char sa_family_t or is it more complicated than that?

Sorry for not correctly answering it last night.

No, that's not it.

According to SUSv2:

The <sys/socket.h> header defines the unsigned integral type
sa_family_t.

So there will be a typedef unsigned int sa_family_t; and not of u_char.

Wrt socklen_t, the spec wants it to be at least 32 bits in size, so I
could choose it to be u_int32_t or unsigned int, I am still somewhat in
doubt what to prefer.  For now I settled on POSIX compliant types.

See http://home.wxs.nl/~asmodai/socket.patch since it grew a bit in size
and didn't feel like spamming the list with it.

The coming extensions to this patch will include updates manual pages
and more clearifications and consistency clean-ups.

Thanks for testing.  Please let me know if something borks, I made world
and kernel a few times and it works here, but I can't test everything.
ssh and NFS still work here.

-- 
Jeroen Ruigrok van der Werven/Asmodai                  asmodai(at)wxs.nl
The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>;
Network/Security Specialist        BSD: Technical excellence at its best
Learn e-mail netiquette: http://www.lemis.com/email.html
Once sent from the Golden Hall...


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991121141950.F48139>