From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e4ec54bbb6854afd X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,e4ec54bbb6854afd X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-03 23:08:29 PST Xref: gmd.de comp.unix.osf.osf1:1848 comp.sys.dec:12663 Newsgroups: comp.unix.osf.osf1,comp.sys.dec Path: gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Subject: Re: mount() returns bizarre errno Message-ID: Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA References: Date: Tue, 4 Jan 1994 06:48:27 GMT In article john@iastate.edu (John Hascall) writes: }I have an application which calls mount() which I am attempting to port }from Ultrix to OSF/1 and the mount() routine is returning errno=46 } EPFNOSUPPORT ``Protocol family not supported'' }which is, of course, not mentioned in the man page... :-( } }And the structure nfs_args contains: } addr } sin_family = 2 } sin_port = 2049 } sin_addr = 129.186.160.160 : : Thanks to Dave King @ DEC for pointing out this little OSF/1 perversion in /usr/include/netinet/in.h: #if defined(_SOCKADDR_LEN) || defined(_KERNEL) struct sockaddr_in { u_char sin_len; u_char sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; }; #else struct sockaddr_in { u_short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; }; #endif John -- John Hascall ``An ill-chosen word is the fool's messenger.'' Systems Software Engineer Project Vincent Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551