summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-11-25use an unsigned char instead, to avoid lots of castsTheo de Raadt
2013-11-25Use iswupper() for wide characters, not isupper(); ok deraadtStefan Sperling
2013-11-24most obvious unsigned char casts for ctypeTheo de Raadt
ok jca krw ingo
2013-11-22unsigned char casts for ctype macrosTheo de Raadt
ok martynas
2013-11-22doc nit okay millert@Marc Espie
2013-11-22obvious cast for isspace()Theo de Raadt
2013-11-22don't use PAGE_SIZE, it is not portable. Ted can polish this afterTheo de Raadt
if he wants, but let us get the tree building.
2013-11-21Fix a big memory leak in libfuse.Sylvestre Gallon
Spotted by sthen@ With some input from stsp@ and tested by mpk@ and sthen@ ok sthen@, stsp@
2013-11-21remove dead assignment as reported by llvm.Federico G. Schwindt
2013-11-21handle the fourth vararg value to sem_openTed Unangst
ok zhuk and presumably fgsch who just sent me a similar diff
2013-11-21use -Wmissing-prototypesAlexandre Ratchov
2013-11-20shared semaphore fixes. first, eliminate the sem inside a sem indirection.Ted Unangst
it's not needed (mindless holdover from earlier prototype). everything is simpler and sem_init shared semaphores even work now (confirmed by sthen). correct the einval checks to not deref a pointer before the null check. in sem_open, if we created the semaphore, we need to initialize the spinlock.
2013-11-20spelling fix;Jason McIntyre
2013-11-20this implementation may now be capable of shared semaphoresTed Unangst
2013-11-20more detail on error conditionsTed Unangst
2013-11-20oops, forgot about unnamed shared semsTed Unangst
2013-11-20zhuk and i have slightly different styles. unify and consistifyTed Unangst
2013-11-19tweak previous;Jason McIntyre
2013-11-19move -Wxxx flags from CFALGS to COPTSAlexandre Ratchov
suggested by deraadt
2013-11-19slightly betterTed Unangst
2013-11-18boilerplate documentationTed Unangst
2013-11-18interprocess semaphores ala sem_open. mostly following in the patternTed Unangst
of shm_open. with some additions and fixes from zhuk.
2013-11-18add missing prototypesAlexandre Ratchov
2013-11-17Mark internal symbols as hidden. This removes symbols from the ABI,Philip Guenther
albeit ones no one should be using, so major bump the shlib. ok kettenis@ ports testing by landry@
2013-11-16In getdiskbyname() set partition size with DL_SETPSIZE(). Make sureKenneth R Westerback
d_secperunith and p_offseth are set to 0 since they can't be read from disktab and lower 32 bits (d_secperunit and p_offset) are read directly from the input.
2013-11-16_kvm_syserr() is printf-like tooPhilip Guenther
2013-11-16ANSIfy a declarationPhilip Guenther
2013-11-16Prep for hidden visibility: move the vnode/file related functionPhilip Guenther
declarations, including _kvm_getftype(), into a new header, kvm_file.h, so that we don't have to pull <sys/vnode.h> into all the .c files. No more extern function declaration in .c files. ok millert@
2013-11-15getpwnam_r() and getpwuid_r() reopen the passwd even when called withSebastian Benoit
setpassent(stayopen). Bug found and fixed by Erik Lax <erik-AT-halon-DOT-se> ok millert@ guenther@
2013-11-13Prefix by '_' symbols that are not part of the API.Alexandre Ratchov
ok deraadt, guenther
2013-11-13repair prototypesTheo de Raadt
reviewed by chris
2013-11-13fix_options() is not used by anything; remove API, crank majorTheo de Raadt
ok sthen
2013-11-13document that ibuf_write() and msgbuf_write() can now return EAGAINSebastian Benoit
from and with deraadt@
2013-11-13original bug diagnosed by sthen: automatic retry in msgbuf_write onSebastian Benoit
EAGAIN causes spinning. fix from claudio: "Let msgbuf_write return -1 with errno EAGAIN. The users then must check if this was the case and readd the event or poll again. The current handling in the imsg code is wrong for sure." ok gilles
2013-11-13Remove redundant extern "C" {...}. ok deraadt@Jeremie Courreges-Anglas
2013-11-13Document the negative errno quirk used by callbacks in struct fuse_operations.Stefan Sperling
ok syl
2013-11-13use sysctl vm.psstrings to calculate stack bounds, rather than USRSTACK.Theo de Raadt
long discussions with guenther, kurt, kettenis etc etc etc
2013-11-13correct types for arguments to the x509 functionsTheo de Raadt
ok markus
2013-11-13oops should not be staticTheo de Raadt
2013-11-13bring in protoTheo de Raadt
2013-11-13bring in math.h to provide prototypesTheo de Raadt
2013-11-12Trick the compiler that volatile temporary is used while raisingMartynas Venckus
the underflow.
2013-11-12remove dead filesEric Faurot
ok deraadt@
2013-11-12Declare __p1evll and __polevll protos in math_private.h instead ofMartynas Venckus
redeclaring each time in ld{80,128}. Pointed out by theo.
2013-11-12put the _readdir_unlocked() prototype in an obvious placeTheo de Raadt
2013-11-12Add parentheses around comparison in operand of ^. Pointed out by theo.Martynas Venckus
2013-11-12Add explicit braces to avoid ambiguous else. Pointed out by theo.Martynas Venckus
2013-11-12Apply format __attribute__ to _kvm_err() and fix the errors that it detects.Philip Guenther
Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data. ok deraadt@ millert@
2013-11-12ANSI prototypesTheo de Raadt
2013-11-12a __fputwc_unlock() prototype was available in fvwrite.h, so use thatTheo de Raadt