From owner-freebsd-net Sun Nov 21 5:20:14 1999 Delivered-To: freebsd-net@freebsd.org Received: from smtp02.wxs.nl (smtp02.wxs.nl [195.121.6.60]) by hub.freebsd.org (Postfix) with ESMTP id 6A6AB1519E; Sun, 21 Nov 1999 05:20:04 -0800 (PST) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.196.130]) by smtp02.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA48D9; Sun, 21 Nov 1999 14:19:58 +0100 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id OAA48986; Sun, 21 Nov 1999 14:19:51 +0100 (CET) (envelope-from asmodai) Date: Sun, 21 Nov 1999 14:19:50 +0100 From: Jeroen Ruigrok/Asmodai To: Assar Westerlund Cc: net@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: Patches for socket.h Message-ID: <19991121141950.F48139@daemon.ninth-circle.org> References: <19991120213713.N41154@daemon.ninth-circle.org> <5l903sn2e8.fsf@foo.sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <5l903sn2e8.fsf@foo.sics.se> Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [19991121 04:00], Assar Westerlund (assar@sics.se) wrote: >Jeroen Ruigrok/Asmodai 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 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 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