summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getcap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-2/+2
|
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-211-5/+4
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* remove null check before free. from Michael McConvilletedu2015-09-141-17/+9
| | | | ok semarie
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-131-1/+12
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* When fopen()ing internal to libc (the API doesn't support the useguenther2014-09-151-4/+4
| | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@
* Fix toprec handling in cgetnext(). OK otto@millert2011-10-141-4/+9
|
* Use stdio in getent() and reuse pfp from tcgetnext when calling getent().millert2011-07-101-36/+37
| | | | Cuts cap_mkdb system time in half. OK nicm@
* Speed up cgetnext() by passing the record we want to parse in tomillert2011-07-061-92/+110
| | | | | getent() as toprec. Make cap_mkdb faster when building termcap.db. OK nicm@
* Handle empty terminal names more gracefully.hugh2006-05-151-1/+3
| | | | Variously OK.
* Simplify cgetnext(3) by using strcspn(3).ray2006-03-221-11/+6
| | | | OK jaredy@ and otto@
* In all these cases pfp != NULL. I also sneaked in some KNF.ray2006-03-181-4/+4
| | | | Okay jaredy, millert@, and otto@
* Don't dereference NULL pointer if file is truncated.ray2006-03-101-1/+6
| | | | | | Sync with cap_mkdb(1). ok otto and millert
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* ansify function definitions and zap some `register'jfb2004-05-181-44/+16
| | | | ok millert@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* 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
|
* o kill some extra whitespacemillert2001-09-221-92/+81
| | | | | | | | | | | | | o remove remaining strcpy()s to avoid false positives when auditing o fix by one in a malloc() size param o fix buffer overflow in cgetnext() reported by Jouko Pynnonen o avoid needlessly setting errno to ENOMEM and when we *do* set it be sure to do so right before the return() o check snprintf() return value when building up a .db pathname and fall back to the text version if it the .db path is too long. o add a missing check for malloc() return value o kill register o memmove(), not bcopy()
* Add new cgetusedb() function to toggle reading of .db files in getcap(3).millert2001-06-181-3/+21
| | | | | | Needed for cap_mkdb to really DRT when given several input files or an output file with a different name from the input file. cvs: ----------------------------------------------------------------------
* avoid double fclose()deraadt2000-11-221-3/+2
|
* constify getcap(3). This fixes a warning in libcurses and doesn'tmillert1999-02-251-17/+28
| | | | | really change the API since those parameters that was been constified really are not modified by getcap(3) routines.
* realloc repairderaadt1998-08-141-14/+51
|
* zap FILE * after closing itderaadt1998-03-191-1/+2
|
* some -Wallmillert1998-03-191-3/+3
|
* do not ferror() after fclose(); dholland@eecs.harvard.eduderaadt1998-03-171-3/+5
|
* wrong NULLderaadt1997-09-121-2/+2
|
* merge in getcap change by grr, in rev 1.8deraadt1997-07-281-24/+32
|
* revert until the change gets evaluated by more peoplederaadt1997-07-271-32/+24
|
* Make correct distinction between "entry not found" and "no capability files",grr1997-07-271-24/+32
| | | | and allow looking through multiple databases, even if one is the *.db case.
* trailing blankskstailey1997-07-231-13/+13
|
* tabifykstailey1997-07-231-12/+12
|
* return -2 if can't open database like man page says.millert1997-06-101-2/+2
|
* mem leak, from lidl@va.pubnix.comderaadt1997-02-011-3/+5
|
* Remove dead codetholo1996-09-151-6/+2
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+1051