summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2006-04-02be more careful checking for (off_t)-1 as the failure condition fromTheo de Raadt
lseek(), not just any old -1; ok millert
2006-04-02sprinkle a socklen_tTheo de Raadt
2006-04-01- Plug huge mem leak; mostly samba was suffering.Otto Moerbeek
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code that implements this will be made faster in a later commit. - We loose documented behaviour (after closedir() the telldir() positions are not valid anymore). This was never in Posix, and most other systems have nothing like it. Diff originally from Paul Thorn, rewritten by me using some FreeBSD code. "slap it in" deraadt@
2006-03-31No longer need limits.hTodd C. Miller
2006-03-31nfds is not constrained by OPEN_MAX for nftw(), only ftw()Todd C. Miller
2006-03-31sprinkle a bit of ARGSUSEDTheo de Raadt
2006-03-31internal API newgetbroadcastnets() does not need a sockTheo de Raadt
2006-03-31Document NET_RT_STATS.Claudio Jeker
2006-03-31(char)to{upper,lower}()Theo de Raadt
2006-03-31ARGSUSED where neededTheo de Raadt
2006-03-31oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);Theo de Raadt
is not valid code; found by lint
2006-03-31Gently cast to make lint happy.Dale Rahn
2006-03-31Be kind to lint, and specify the correct width on these constants.Dale Rahn
2006-03-31after we changed mode_t to be an int, the devname() man page wasTheo de Raadt
updated but the function itself never was; ok millert
2006-03-29Xr to strtonum(3), because vice versa is already the caseAlexander von Gernler
ok jmc@ otto@
2006-03-26Add warning about malloc(num * size) and recommend calloc() instead,Ray Lai
or if malloc must be used suggest check. Get rid of "one". OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
2006-03-25Fix description of KERN_VNODE, okay deraadt@Pedro Martelletto
2006-03-22Pass size of correct variable to memset().Ray Lai
From Alexey Dobriyan. OK otto@
2006-03-22Simplify cgetnext(3) by using strcspn(3).Ray Lai
OK jaredy@ and otto@
2006-03-19Fix a mem leak and a potential NULL deref; from NetBSD's coverity analysis.Otto Moerbeek
ok millert@
2006-03-19Remove extraneous cast to malloc call in fgetln example.Ray Lai
OK otto@
2006-03-18In all these cases pfp != NULL. I also sneaked in some KNF.Ray Lai
Okay jaredy, millert@, and otto@
2006-03-15spelling, jon@vexed.seTheo de Raadt
2006-03-15Removes extraneous variables from getopt(3). Inspired by one ofRay Lai
David Hill's diffs. ok otto
2006-03-14add italian nls; from jwk@xtf.itTheo de Raadt
2006-03-14missing newlineTheo de Raadt
2006-03-13Clean the correct file. ok deraadt@Moritz Jodeit
2006-03-13Correctly check for the exit value of getopt(1) and don'tMoritz Jodeit
overwrite it with the value from ``set''. ok millert@
2006-03-12if a system call has no arguments, declare it (void), so that lint isTheo de Raadt
happier; ok moritz
2006-03-12Cleanup to avoid a save errno dance; from Andrey Matveev; ok pat@Otto Moerbeek
jaredy@ ray@
2006-03-10Don't dereference NULL pointer if file is truncated.Ray Lai
Sync with cap_mkdb(1). ok otto and millert
2006-02-22Avouid a race in atexit() handling by introducing a lock. ProblemOtto Moerbeek
originally reported by Gergely Kovacs; help from dhartmei@; ok tedu@ millert@
2006-02-18Update to tzcode2006a; primarily just cast and const fixes.Todd C. Miller
2006-02-14quick path for free(0)Marc Espie
`looks to be safe' millert, okay tedu.
2006-02-06typos from alexey dobriyan;Jason McIntyre
2006-01-30document posixness;Jason McIntyre
fixes pr #4996, from joachim schipper;
2006-01-25Fix a memory leak that could be trigged by a read errorTodd C. Miller
Update the count of currently cached pages in mpool_delete() Use CIRCLEQ_EMPTY in the loop that delets the lru cache Don't update the pageread statistic if there was a read error With aaron@, OK krw@
2006-01-24Add missing break; in a switch case statement from r1.7 pread() changes. FromAaron Campbell
dhelder AT arbor.net. millert@ ok
2006-01-19make offset parameter to pwrite apparent in description.Marc Espie
okay jmc@
2006-01-18Clarify. Based on a diff by millert@, with additional input from miod@.Tom Cosgrove
ok millert@
2006-01-18make the PROT_ list a little nicer;Jason McIntyre
2006-01-18missing auxillary verbJacob Meuser
"yes, that is correct." jmc@ (a while back)
2006-01-18add a piece of text, copied here so that people can think about it:Theo de Raadt
+Nor will all implementations guarantee to give exactly the requested +permissions; more permissions may be granted than requested by +.Fa prot . ok miod jmc
2006-01-17Include param.h for MAXHOSTNAMELENTodd C. Miller
2006-01-17Include limits.h directly instead of depending on another headerTodd C. Miller
to include it for us.
2006-01-17Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENTodd C. Miller
2006-01-16use standard type uint32_t, instead of BSD-specific u_int32_tMarc Espie
tell user to get it through stdint.h (note old sys/types.h still works, for now). okay millert@, jmc@
2006-01-15back out previous - imaxabs is already listed;Jason McIntyre
2006-01-14Xr imaxabs()Todd C. Miller
2006-01-14fix the .Fn line; ok millertJason McIntyre