summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getservbyname.c
Commit message (Collapse)AuthorAgeFilesLines
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-281-101/+0
| | | | | | | | databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
* - make reentrant version of netdb functions glibc style API, andume2006-04-151-11/+23
| | | | | | | expose them to outside of libc. - make netdb functions NSS friendly. Reviewed by: arch@ and current@ (no objection)
* rename the NIS related fields to have yp_ prefix.ume2005-04-181-4/+4
| | | | Suggested by: delphij
* libc-internal interfaces should have two underscores in frontume2005-04-171-1/+1
| | | | | | of their names. Pointed out by: das
* - add getserv{byname,byport,ent}_r for internal use within libc.ume2005-04-151-21/+29
| | | | | | - make getserv{byname,byport,ent} thread-safe. Reviewed by: gnn
* Remove 'register' keyword.obrien2002-03-211-2/+4
|
* General -Wall warning cleanup, part I.jkh1996-07-121-1/+1
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Improve NIS performace of getservbyname() and getservbyport(). Both thesewpaul1996-06-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | functions are implimented as wrappers around getservent(), which means it's up to getservent() to do all the work. The NIS support in getservent() only allows it to scan through the services.byname map one entry at a time until it finds the requested service name/port. This can be painfully slow due to the overhead involved (lots and lots of successive RPCs). To fix this, we allow getservbyname() and getservbyport() to signal getservent() that if NIS is turned on (there's a '+' in /etc/services), the usual yp_first()/yp_next() linear search should be abandoned and yp_match() used instead. This causes getservent() to immediately locate the requested entry instead of wasting time groping through the whole map. The downside is that this trick is accomplished by exporting a couple of pointers from getservent.c which getservbyname.c and getservbyport.c can preset in order to tell getservent() what to do. If all three functions were in the same source module, then the extra cruft could be delcared static to avoid poluting the global symbol space. Maybe they should be combined anyway. For now I've settled on prepending lots of underscores.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+65
OpenPOWER on IntegriCloud