Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!batcomputer!cornell!uw-beaver!rice!katzo.rice.edu!zdenko From: zdenko@katzo.rice.edu (zdenko tomasic) Newsgroups: comp.sys.mips Subject: Re: /bsd43/usr/include omission? Summary: it's there, just obscured Message-ID: <1991Jun27.154128.11325@rice.edu> Date: 27 Jun 91 15:41:28 GMT References: <2543@cluster.cs.su.oz.au> Sender: news@rice.edu (News) Organization: Rice University Lines: 39 In article <2543@cluster.cs.su.oz.au> bruce@cs.su.oz (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? > >Cheers, >bruce. > >Bruce Janson Email: bruce@cs.su.oz.au >Basser Department of Computer Science Phone: +61-2-692-3272 >University of Sydney, N.S.W., 2006, AUSTRALIA Fax: +61-2-692-3838 Well, there is really no need to fix anything. bsd43_ is actually an empty macro and sockaddr_in structure is really on its own in /bsd43/usr/include/netinet/in.h. Sockets are BSD invention anyway. Perhaps, the reason for bsd43_ being empty is to serve as a reminder that you are now in the BSD style .h file as symbolic links may confuse you unless you are very much on your toes. It can also guard against wrong or inconsistent inclusion (mixing sysv and bsd carelessly), since if bsd43_ is not defined the bsd43_structures do not exist and you've got compiler error. -- ___________________________________________________________________ Zdenko Tomasic, Rice U., Chem. Dept., P.O. Box 1892, Houston, Tx 77251 INTERNET: zdenko@katzo.rice.edu ___________________________________________________________________