Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!sdcc6!sdcc4!heather From: heather@sdcc4.ucsd.edu (Heather Ebey) Newsgroups: comp.sys.hp Subject: comsat porting problem Keywords: BSD comsat Message-ID: <12844@sdcc6.ucsd.edu> Date: 28 Sep 90 23:10:21 GMT Sender: news@sdcc6.ucsd.edu Lines: 47 Nntp-Posting-Host: sdcc4.ucsd.edu Second request (to wider audience). I don't know if this is a porting problem, an HP problem or an installation oversight. Has anyone been successful in getting the BSD comsat (biff server) running under under HPUX 7.0 on a HP9000/800S? I can get it to compile just fine. I put the following line in /etc/services: biff 512/udp comsat and the following in /etc/inetd.conf: comsat dgram udp wait root /usr/local/etc/comsat comsat Then, I even went so far as to inetd -k (after inetd -c) and restart inetd. My inetd.log shows: Service: comsat/udp Executable: comsat which leads me to believe that inetd is happy. netstat -a shows biff as an udp protocol. udp 0 0 *.biff *.* Checking for last access time (after sending myself countless mail messages), it appears that comsat is never run by inetd and I'm not getting notification. [I have biff y (checked it).] Is there some magic that I haven't remembered? Right now, I'm ifdef'ing out BSD (had compiled with -lBSD) stuff and rewriting in termio(7) ioctl calls. Having problems with this one: (void)ioctl(fileno(tp), TIOCGETP, >tybuf); cr = (gttybuf.sg_flags&CRMOD) && !(gttybuf.sg_flags&RAW) ? "" : "\r"; Got as far as (I think ??): struct termio gttybuf; if ( (ioctl(fileno(tp), TCGETA, >tybuf)) < 0) { ...err stuff deleted } cr = (gttybuf.c_oflag&OCRNL) && (gttybuf.c_lflag&ICANON) ? "" : "\r"; Does anyone know if these lines are correct translations? Thanks. --Heather -- ======= hebey@ucsd.edu ======= (ucsd!sdcc4!heather) Heather Ebey, Unix Systems Support Voice: (619)534-7987 UC San Diego, Instructional Computing Center, 0110, La Jolla, CA 92093-0110 =======