summaryrefslogtreecommitdiff
path: root/lib/libc/yp
AgeCommit message (Collapse)Author
2016-05-30Stop publicly declaring _yp_dobind() and struct dom_binding, closing outPhilip Guenther
a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
2016-05-29_yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longerPhilip Guenther
exported, so declare them as hidden to avoid pointless GOT relocations ok millert@ deraadt@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
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
2015-11-26remove the "YP server for domain %s not responding, still trying" code.Theo de Raadt
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
2015-11-10update NAME section to include all documented functions,Jason McIntyre
or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
2015-09-28xdr_ypresp_all_seq() does not need to be exported by libc, we can make itTheo de Raadt
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
2015-09-14Wrap _yp_check() and _yp_unbind() so internal calls go direct and they're weakPhilip Guenther
2015-09-13Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weakPhilip Guenther
2015-09-11Put a private copy of the ypresp_allfn/ypresp_data interface into ypservTheo de Raadt
(which uses it in a strange way..) thereby making it possible to static the interface in libc. ok guenther
2015-09-05rather than assuming stderr is alive, open + dprintf to /dev/ttyTheo de Raadt
ok guenther millert
2015-08-20All these files include <stdlib.h>, so do not need to castTheo de Raadt
malloc/calloc/realloc* returns.
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther
2015-01-14change _yp_domain[] to HOST_NAME_MAX+1, and re-arrange those who includeTheo de Raadt
it to get limits.h early enough
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2014-07-13add missing whitespace between .Fa macro argument and trailing punctuationIngo Schwarze
2014-05-25use calloc, from Benjamin BaierTed Unangst
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,Todd C. Miller
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzeTed Unangst
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2010-04-02fix a potential memory leak found by zinovik@Ingo Schwarze
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@
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentMiod Vallat
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@
2009-11-01Two minor bug fixes rotting in my tree:Ingo Schwarze
(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@
2009-06-12YP client functions do not allocate memory when they fail;Ingo Schwarze
wording tweaked by jmc@
2009-06-07fix a minor memory leak spotted by deraadt@; ok millert@ deraadt@Ingo Schwarze
2009-06-06In case of memory exhaustion, ypmatch_add may both leak memory and leaveIngo Schwarze
invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@
2009-06-05malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR;Ingo Schwarze
ok millert@
2009-06-05improve yp_bind(3) error reporting after clnttcp_create(3) failure:Ingo Schwarze
map ECONNREFUSED -> YPERR_YPBIND, ENOMEM -> YPERR_RESRC, else YPERR_YPERR while here, malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR ok millert@
2009-06-05An empty sting cannot be used as a YP domain name,Ingo Schwarze
so treat it similarly to a failing call to getdomainname. ok millert@
2009-06-04fix two obvious typosIngo Schwarze
2009-06-03Take advantage of the surprise libc bump to bring inIngo Schwarze
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@).
2008-12-22document yp_maplist(); from Ingo SchwarzeJason McIntyre
ok deraadt
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-05-24typo.Igor Sobrado
2007-09-17Check snprintf(3) return value for error or truncation.Moritz Jodeit
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-05-31convert to new .Dd format;Jason McIntyre
2005-08-05- remove rcsidMarc Espie
- put all the YPMATCHCACHE code into a #ifdef, proper - remove all extra header files that are not needed okay deraadt@
2003-07-07- fix a listJason McIntyre
- remove .Pp before .Bd
2003-06-25Move static funcion and variable declarations from header to theMarco S Hyman
.c file where they are used. Gets rid of YPMATCHCACHE define. Sure deraadt@
2003-06-02remove terms 3 & 4 on my own softwareTheo de Raadt
2003-05-07typos;Jason McIntyre
2002-09-04spellingTheo de Raadt
2002-07-31if ypmatch_add sees short keys or values, abort earlyTheo de Raadt
2002-07-20ansiTheo de Raadt
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-02KNFTheo de Raadt
2002-01-02more pid_t useTheo de Raadt
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel