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-05 05:25:08 PST Xref: gmd.de comp.unix.osf.osf1:1856 comp.sys.dec:12689 Path: gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!epeisach From: epeisach@ATHENA.MIT.EDU (Ezra Peisach) Newsgroups: comp.unix.osf.osf1,comp.sys.dec Subject: Re: mount() returns bizarre errno Date: 5 Jan 1994 13:22:02 GMT Organization: Massachusetts Institute of Technology Message-ID: <2geetq$t5m@senator-bedfellow.MIT.EDU> References: NNTP-Posting-Host: paris.mit.edu 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... :-( > >The arguments to mount are: > > mount(MOUNT_NFS, "/nfs/fs-10/u4", M_NOSUID, &nfs_args); > You'll love the answer to this one. OSF on DEC supports bith BSD4.3 and BSD4.4 network structures. For the most part programs don't care which you use, but for using mount - you need the BSD4.4 one.... I placed the following in my program before the header files and all worked: /* The following hack is required for OSF/1 on the alpha as it turns on the BSD 4.4 network sockaddr_in which is used by the kernel NFS mount. See netinet/in.h.... Essentially, the len and family fields were merged and we were trampling over things.... (This is for OSF 1.3) */ #if defined(__osf__) #define _SOCKADDR_LEN 1 #endif Have fun.... Ezra