Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: mount() returns bizarre errno
Date: Tue, 4 Jan 1994 06:48:27 GMT	[thread overview]
Message-ID: <CJ3Ewr.KBK@news.iastate.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... :-(
}
}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


  reply	other threads:[~1994-01-04  6:48 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 [this message]
1994-01-05 13:22 ` Ezra Peisach
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