Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: epeisach@ATHENA.MIT.EDU (Ezra Peisach)
Subject: Re: mount() returns bizarre errno
Date: 5 Jan 1994 13:22:02 GMT	[thread overview]
Message-ID: <2geetq$t5m@senator-bedfellow.MIT.EDU> (raw)
In-Reply-To: CJ2uxr.C0w@news.iastate.edu

In article <CJ2uxr.C0w@news.iastate.edu> 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




      parent reply	other threads:[~1994-01-05 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-03 23:37 mount() returns bizarre errno John Hascall
1994-01-04  6:48 ` John Hascall
1994-01-05 13:22 ` Ezra Peisach [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox