Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | All these files include <stdlib.h>, so do not need to cast | 2015-08-20 | 1 | -3/+3 | |
| | | | | malloc/calloc/realloc* returns. | ||||
* | Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@ | 2015-02-05 | 1 | -2/+2 | |
| | |||||
* | Move to the <limits.h> universe. | 2015-01-16 | 1 | -3/+5 | |
| | | | | review by millert, binary checking process with doug, concept with guenther | ||||
* | obvious reallocarray() | 2014-10-08 | 1 | -3/+3 | |
| | |||||
* | add some prototypes, casts, includes, parenthesis, and whatnot to | 2013-04-17 | 1 | -2/+3 | |
| | | | | silence some warnings. | ||||
* | Change scandir()'s 'select' argument from | 2012-11-29 | 1 | -2/+2 | |
| | | | | | | | | | int (*)(struct dirent *) to int (*)(const struct dirent *) to match POSIX. ok millert@, ports check by naddy@ | ||||
* | Make DIR a private type within libc, give it the same underlying | 2012-03-22 | 1 | -1/+2 | |
| | | | | | | typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@ | ||||
* | Update alphasort() and scandir()'s argument types to match POSIX: | 2012-03-22 | 1 | -5/+5 | |
| | | | | | | | use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@ | ||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -2/+2 | |
| | |||||
* | It seems st_size is not always a good estimator for the number of | 2007-06-26 | 1 | -5/+7 | |
| | | | | | | | | | | | | | | | | directory entries. ZFS, for instance, sets st_size to the number of entries. Use the same algorithm for the initial estimate but keep a minimum to prevent a divide by zero. When the buffer is filled, instead of re-using the same flawed algorithm, double the buffer size. Also add check for integer overflow. Bug reported by Ed Ravin, ZFS testing environment provided by Bryan Allen. OK 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 | -9/+4 | |
| | | | | ok millert@ | ||||
* | don't leak memory. free and netbsd via Patrick Latifi | 2004-03-05 | 1 | -29/+37 | |
| | |||||
* | 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. | ||||
* | malloc paranoia; it is unlikely that any filesystem will support | 2002-07-30 | 1 | -1/+7 | |
| | | | | | enough directory entries to cause a problem but it is good form anyway. deraadt@ OK. | ||||
* | 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 | -3/+3 | |
| | |||||
* | realloc repair | 1998-08-14 | 1 | -3/+9 | |
| | |||||
* | copy d_type; giles@nemeton.com.au | 1997-07-24 | 1 | -1/+2 | |
| | |||||
* | 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/+141 | |