problem with gethostname() under 4.1

Rob McNicholas robm at janus.Berkeley.EDU
Sat Jan 26 08:02:57 AEST 1991


Hi,

I am trying to get nfswatch running on my DECstation 3100 (24 meg,
ultrix 4.1, Rev. 52).  However, the program always immediately exits
with a "No such file or directory" error.  Using gdb, I have
traced the error down to a "gethostname" call.  When run from the
debugger, I get this output:

(gdb)
154             if (gethostname(myhost, sizeof(myhost)) < 0) {
(gdb)
gethostname () (../gethostname.s line 18)
../gethostname.s: No such file or directory.


Anyone have any ideas?

Thanks in advance,

- Rob

Rob McNicholas			Computer Systems Support Group, U.C. Berkeley
robm at janus.berkeley.edu		....!ucbvax!janus!robm
Home: 415/339-1514		Work: 415/642-8633



More information about the Comp.unix.ultrix mailing list