summaryrefslogtreecommitdiffstats
path: root/lib/libc/yp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* grammar fixes from Varik "The Genuine Article!!!" Valefor;jmc2020-12-031-3/+3
|
* there is no function called ypclnt(3), but yp_bind(3) exists...deraadt2019-08-302-24/+11
|
* Stop publicly declaring _yp_dobind() and struct dom_binding, closing outguenther2016-05-302-3/+4
| | | | | | a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
* _yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longerguenther2016-05-292-5/+5
| | | | | | exported, so declare them as hidden to avoid pointless GOT relocations ok millert@ deraadt@
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-7/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* remove the "YP server for domain %s not responding, still trying" code.deraadt2015-11-261-15/+1
| | | | | | | | | For years, it talked to stderr. That was wrong. Then it was converted to opening /dev/tty, which is also wrong (pledge says so). Upon reconsideration people in these more modern times have adapted to all sorts of services not being available, so axe the alert and retry silently. ok beck
* update NAME section to include all documented functions,jmc2015-11-101-3/+3
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* xdr_ypresp_all_seq() does not need to be exported by libc, we can make itderaadt2015-09-281-4/+4
| | | | | | | | local static. (Does not need to be exported by librpcsvc either, since it is pre-rpcgen and simply %-commented). A few callers use this via yp_all() -- that interface remains untouched. ports trawl by sthen guenther watched me gnash my teeth in croatia
* Wrap _yp_check() and _yp_unbind() so internal calls go direct and they're weakguenther2015-09-143-5/+9
|
* Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weakguenther2015-09-135-5/+12
|
* Put a private copy of the ypresp_allfn/ypresp_data interface into ypservderaadt2015-09-112-5/+5
| | | | | | (which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
* rather than assuming stderr is alive, open + dprintf to /dev/ttyderaadt2015-09-051-5/+15
| | | | ok guenther millert
* All these files include <stdlib.h>, so do not need to castderaadt2015-08-201-2/+2
| | | | malloc/calloc/realloc* returns.
* Move to the <limits.h> universe.deraadt2015-01-1630-60/+39
| | | | review by millert, binary checking process with doug, concept with guenther
* change _yp_domain[] to HOST_NAME_MAX+1, and re-arrange those who includederaadt2015-01-142-4/+4
| | | | it to get limits.h early enough
* obvious cases of missing .An;schwarze2014-09-081-3/+3
| | | | | found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
* add missing whitespace between .Fa macro argument and trailing punctuationschwarze2014-07-131-3/+3
|
* use calloc, from Benjamin Baiertedu2014-05-251-3/+2
|
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-25/+25
|
* Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,millert2013-09-301-2/+2
| | | | MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-051-6/+6
|
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-291-2/+2
| | | | ok otto
* fix a potential memory leak found by zinovik@schwarze2010-04-021-39/+30
| | | | | | | | | while here, make sure each error path sets YP_YPERR and make the function shorter and easier to read by using the idiom "if (error) goto fail" everywhere in the loop and by putting xdr_free in exactly one place near the end ok deraadt@
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-2/+2
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* Two minor bug fixes rotting in my tree:schwarze2009-11-011-11/+8
| | | | | | | | | (1) When the second malloc in yp_next fails, do not leak the memory allocated by the first one. Same fix as yp_first.c rev. 1.9. (2) When compiled with YPMATCHCACHE, do not fail the lookup when reserving memory for the cache fails. Instead, just return the correct result without caching it. ok millert@
* YP client functions do not allocate memory when they fail;schwarze2009-06-121-3/+4
| | | | wording tweaked by jmc@
* fix a minor memory leak spotted by deraadt@; ok millert@ deraadt@schwarze2009-06-071-8/+6
|
* In case of memory exhaustion, ypmatch_add may both leak memory and leaveschwarze2009-06-061-36/+28
| | | | | | invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@
* malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR;schwarze2009-06-051-3/+3
| | | | ok millert@
* improve yp_bind(3) error reporting after clnttcp_create(3) failure:schwarze2009-06-051-3/+10
| | | | | | map ECONNREFUSED -> YPERR_YPBIND, ENOMEM -> YPERR_RESRC, else YPERR_YPERR while here, malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR ok millert@
* An empty sting cannot be used as a YP domain name,schwarze2009-06-051-1/+3
| | | | | so treat it similarly to a failing call to getdomainname. ok millert@
* fix two obvious typosschwarze2009-06-041-4/+4
|
* Take advantage of the surprise libc bump to bring inschwarze2009-06-033-1/+123
| | | | | | | | YP group(5) exclusion, i.e. support -groupname:*:: in /etc/group. Such groups will be excluded from later +:*::, in just the same was as it is already done for passwd(5). I have been running this since the autumn of 2008. Discussed with several (including deraadt@, millert@, jmc@).
* document yp_maplist(); from Ingo Schwarzejmc2008-12-222-7/+23
| | | | ok deraadt
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-9/+2
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* typo.sobrado2008-05-241-3/+3
|
* Check snprintf(3) return value for error or truncation.moritz2007-09-171-2/+7
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - remove rcsidespie2005-08-0530-302/+32
| | | | | | | - put all the YPMATCHCACHE code into a #ifdef, proper - remove all extra header files that are not needed okay deraadt@
* - fix a listjmc2003-07-071-3/+2
| | | | - remove .Pp before .Bd
* Move static funcion and variable declarations from header to themarc2003-06-252-18/+13
| | | | | .c file where they are used. Gets rid of YPMATCHCACHE define. Sure deraadt@
* remove terms 3 & 4 on my own softwarederaadt2003-06-0231-188/+32
|
* typos;jmc2003-05-071-4/+4
|
* spellingderaadt2002-09-041-2/+2
|
* if ypmatch_add sees short keys or values, abort earlyderaadt2002-07-311-1/+4
|
* ansideraadt2002-07-2031-166/+81
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-5/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-4/+4
|
* KNFderaadt2002-01-021-9/+8
|
* more pid_t usederaadt2002-01-021-3/+4
|