Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!ucsd!ucbvax!janus.Berkeley.EDU!robm From: robm@janus.Berkeley.EDU (Rob McNicholas) Newsgroups: comp.unix.ultrix Subject: problem with gethostname() under 4.1 Message-ID: <40589@ucbvax.BERKELEY.EDU> Date: 25 Jan 91 21:02:57 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: robm@janus.Berkeley.EDU (Rob McNicholas) Organization: Computer Systems Support Group, U.C. Berkeley, Berserkeley, CA Lines: 24 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@janus.berkeley.edu ....!ucbvax!janus!robm Home: 415/339-1514 Work: 415/642-8633