summaryrefslogtreecommitdiffstats
path: root/lib/libc/yp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* o) We always close .Bl and .Bd tags;mpech2001-08-061-2/+2
| | | | | | | | | | 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
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* Another round of man page cleanup, this time to remove more hard sentenceaaron2000-10-181-37/+50
| | | | breaks and getting rid of short lines, making these files easier to work with.
* implimented -> implementedtodd2000-03-151-2/+2
|
* Suffix "i.e." and "e.g." with a comma. Just another really picky man pageaaron2000-03-141-2/+2
| | | | | commit, as we want our documentation to be as consistently formatted as possible (it's getting there :-)).
* fix include list; dogcow@redback.comderaadt1999-11-301-1/+2
|
* More <sys/file.h> vs. <fcntl.h> and open() flags fixes.millert1999-08-171-2/+2
|
* - remove all trailing whitespaceaaron1999-07-091-2/+2
| | | | | | | | | | * except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
* fix more comma splices that involve misuse of conjunctive adverbspjanzen1999-03-111-2/+2
|
* make function names the correct casederaadt1999-02-271-2/+2
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+2
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* for yp_match() and yp_next(), do not permit keys longer than YPMAXRECORDderaadt1998-01-201-3/+4
|
* null/NUL; lukemderaadt1997-06-131-5/+9
|
* possible buf oflowderaadt1997-04-291-2/+3
|
* that cannot be rightderaadt1997-02-051-2/+2
|
* encourage a few more udp whacks at the serverderaadt1997-01-281-2/+2
|
* an entire an entiredownsj1996-12-281-2/+2
|
* Clean up lint and compile warningstholo1996-12-143-6/+6
|
* never bitch about first failurederaadt1996-12-034-14/+19
|
* Remove dead codetholo1996-09-152-3/+4
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-1931-122/+61
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* check for port 20deraadt1996-08-051-4/+6
|