Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | snprintf/vsnprintf return < 0 on error, rather than -1. | 2019-07-03 | 1 | -2/+2 | |
| | |||||
* | Delete casts to off_t and size_t that are implied by assignments | 2016-09-21 | 1 | -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 McConville | 2015-09-14 | 1 | -17/+9 | |
| | | | | ok semarie | ||||
* | Wrap <stdlib.h> so that calls go direct and the symbols not in the | 2015-09-13 | 1 | -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 use | 2014-09-15 | 1 | -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@ | 2011-10-14 | 1 | -4/+9 | |
| | |||||
* | Use stdio in getent() and reuse pfp from tcgetnext when calling getent(). | 2011-07-10 | 1 | -36/+37 | |
| | | | | Cuts cap_mkdb system time in half. OK nicm@ | ||||
* | Speed up cgetnext() by passing the record we want to parse in to | 2011-07-06 | 1 | -92/+110 | |
| | | | | | getent() as toprec. Make cap_mkdb faster when building termcap.db. OK nicm@ | ||||
* | Handle empty terminal names more gracefully. | 2006-05-15 | 1 | -1/+3 | |
| | | | | Variously OK. | ||||
* | Simplify cgetnext(3) by using strcspn(3). | 2006-03-22 | 1 | -11/+6 | |
| | | | | OK jaredy@ and otto@ | ||||
* | In all these cases pfp != NULL. I also sneaked in some KNF. | 2006-03-18 | 1 | -4/+4 | |
| | | | | Okay jaredy, millert@, and otto@ | ||||
* | Don't dereference NULL pointer if file is truncated. | 2006-03-10 | 1 | -1/+6 | |
| | | | | | | Sync with cap_mkdb(1). ok otto and millert | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | ansify function definitions and zap some `register' | 2004-05-18 | 1 | -44/+16 | |
| | | | | ok millert@ | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -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. | 2002-02-16 | 1 | -4/+4 | |
| | |||||
* | o kill some extra whitespace | 2001-09-22 | 1 | -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). | 2001-06-18 | 1 | -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() | 2000-11-22 | 1 | -3/+2 | |
| | |||||
* | constify getcap(3). This fixes a warning in libcurses and doesn't | 1999-02-25 | 1 | -17/+28 | |
| | | | | | really change the API since those parameters that was been constified really are not modified by getcap(3) routines. | ||||
* | realloc repair | 1998-08-14 | 1 | -14/+51 | |
| | |||||
* | zap FILE * after closing it | 1998-03-19 | 1 | -1/+2 | |
| | |||||
* | some -Wall | 1998-03-19 | 1 | -3/+3 | |
| | |||||
* | do not ferror() after fclose(); dholland@eecs.harvard.edu | 1998-03-17 | 1 | -3/+5 | |
| | |||||
* | wrong NULL | 1997-09-12 | 1 | -2/+2 | |
| | |||||
* | merge in getcap change by grr, in rev 1.8 | 1997-07-28 | 1 | -24/+32 | |
| | |||||
* | revert until the change gets evaluated by more people | 1997-07-27 | 1 | -32/+24 | |
| | |||||
* | Make correct distinction between "entry not found" and "no capability files", | 1997-07-27 | 1 | -24/+32 | |
| | | | | and allow looking through multiple databases, even if one is the *.db case. | ||||
* | trailing blanks | 1997-07-23 | 1 | -13/+13 | |
| | |||||
* | tabify | 1997-07-23 | 1 | -12/+12 | |
| | |||||
* | return -2 if can't open database like man page says. | 1997-06-10 | 1 | -2/+2 | |
| | |||||
* | mem leak, from lidl@va.pubnix.com | 1997-02-01 | 1 | -3/+5 | |
| | |||||
* | Remove dead code | 1996-09-15 | 1 | -6/+2 | |
| | | | | | | Remove unused variables Silence some warnings lint(1) is your friend | ||||
* | Fix RCS ids | 1996-08-19 | 1 | -7/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+1051 | |