Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!wje From: wje@redwood.mips.com (William J. Earl) Newsgroups: comp.sys.mips Subject: Re: /bsd43/usr/include omission? Message-ID: <5172@spim.mips.COM> Date: 27 Jun 91 17:35:51 GMT References: <2543@cluster.cs.su.oz.au> Sender: news@mips.COM Reply-To: wje@redwood.mips.com (William J. Earl) Organization: MIPS Computer Systems Inc. Lines: 35 Nntp-Posting-Host: redwood.mips.com In-reply-to: bruce@cs.su.oz (Bruce Janson) Originator: wje@redwood.mips.com In article <2543@cluster.cs.su.oz.au>, bruce@cs (Bruce Janson) writes: > Under RISC/os 4.52: > > $ cd /bsd43/usr/include > $ find . -print | xargs egrep 'bsd43_\(sockaddr_in\)|bsd43_sockaddr_in' > ../saio/ei.h: struct bsd43_(sockaddr_in) ei_srcaddr; /* source address of last packet */ > ../saio/ei.h: struct bsd43_(sockaddr_in) ei_dstaddr; /* destination address for transmits */ > ../sys/mount.h: struct bsd43_(sockaddr_in) *addr; /* file server address */ > $ > > All of which are uses of the declared structure but there appears to be > no definition. Under some circumstances it would be nice if the bsd43 > include files could stand alone as definitions of structures with names > of the form "bsd43_..." and this is mostly true -- the above example > is the first exception that I have found. Any chance that this could > be fixed in time for RISC/os 5.0? This is not really broken. "bsd43_(sockaddr_in)" compiles to "sockaddr_in" in -systype bsd43. sockaddr_in is declared in /bsd43/usr/include/netinet/in.h. Also, saio/ei.h is not really used in user mode as far as I know. We just left it in for backward compatibility with UMIPS-BSD 2.1. We mechanically inserted all the bsd43_(*) and bsd43_* prefixes in implementing RISC/os 4.0, as a development expedient. As time has permitted, we have gradually pruned them, mainly by switching to common header files among systypes. For example, the net and netinet directories, which once had separate versions in and , now have identical files (actually symbolic links). -- William J. Earl wje@mips.com MIPS Computer Systems 408-524-8172 930 Arques Avenue, M/S 1-03 FAX 408-524-8401 Sunnyvale, CA 94088-3650