getservbyname() call

John Sin jsin at island.seas.ucla.edu
Sat Dec 23 01:17:08 AEST 1989


I have just finished porting "timed" to A/UX, and I've ran into a small
problem.  First time I ran it, I got a message "timed/udp service not
available" because getservbyname( "timed", "udp") returns NULL.  So I 
added a line in /etc/services thus:
	timed     525/udp     timeserver
However, I found that it still does not recognize this service.  I've
already rebooted (soft boot) the machine, but that didn't make any
difference.  

My understanding is that getservbyname() call only looks at the file
/etc/services, but is there some other file I need to change, or is this a
bug?

I also found that if I delete a line from /etc/services - say, smtp -
getservbyname() still can find smtp.

Looks to me like a bug, but I wanted to know what others think.
I'm running Mac IIx (with 68030 processor upgrade) and AUX 1.1.

Speaking of bugs, gettimeofday(), in it's timezone struct, returns
number of SECONDS from GMT zone, not MINUTES as dictated in the man page.
Also, the C compiler goes into infinite loop when dealing with some switch
statemetns.  Finally, default sendmail.cf file is a trash - it can send
mail, but it can not receive any mail (I refuse to speak to myself is the
error message) from our other machines.

Any comments will be appreciated.

John Sin
John (Jonghoon) Sin       (Above opinions are my own and etc, etc, etc...)
UCLA SEASnet Facilities   InterNet: jsin at seas.ucla.edu
2567 Boelter Hall         UUCP: ...!(uunet,ucbvax,rutgers)!seas.ucla.edu!jsin
Los Angeles, CA. 90024    (213) 825-3556



More information about the Comp.unix.aux mailing list