summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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
2013-11-12both files contain a function which should only be static.Theo de Raadt
not cranking libc over this (unless an issue is found in ports)
2013-11-12permute15() should be static. Not cranking libc now, because it isTheo de Raadt
not urgent.
2013-11-12insert the proper arguments into a prototypeTheo de Raadt
2013-11-12avoid arithetic on void *Theo de Raadt
ok guenther otto
2013-11-12internalize some functions so that they do not need prototypesTheo de Raadt
ok ratchov
2013-11-12ANSI prototypeTheo de Raadt
2013-11-12pull in missing includes (math.h, unistd.h, stdlib.h) needed forTheo de Raadt
prototypes
2013-11-12pull in stdlib.h as requiredTheo de Raadt
2013-11-12add proto for amd64 case; unify otherwiseTheo de Raadt
2013-11-12ttyslot() needs <stdlib.h>Theo de Raadt
ok guenther
2013-11-12a missing prototypesTheo de Raadt
and don't act like an unknown vnode type is "ok"
2013-11-11In fuse_loop(), use ssize_t to store return values from read(2) and write(2).Stefan Sperling
ok syl@
2013-11-10The kernel and ld.so have passed 0 in r0 for use as the cleanupPhilip Guenther
callback for about a year, so it's safe to make __start() pass that as the cleanup argument to ___start(), and have *that* conditionally pass it to atexit(). Eliminate the no-longer-used obj and ps_strings arguments to position things correctly, simplifying the ASM wrapper slightly. ok kettenis@ miod@; testing patrick@
2013-11-10The kernel and ld.so have passed 0 in r7 for use as the cleanupPhilip Guenther
callback for about a year, so it's safe to make __start() treat that as the cleanup argument and conditionally pass it to atexit(). Eliminate the no-longer-used obj and ps_strings arguments to position things correctly, which lets us eliminate the ASM wrapper completely. ok kettenis@ miod@
2013-11-10The kernel and ld.so pass 0 in %rdx for use as the cleanup callbackPhilip Guenther
for about a year, so it's safe to add the test and atexit() call. While here, drop the no-longer-used obj and ps_strings and the asm to set those up, switch from sys/param.h to limits.h, and ANSIfy. ok kettenis@
2013-11-09Simplify fuse_unmount(). No functional change.Stefan Sperling
ok jung@
2013-11-09Properly check realpath() return value during argv processing in libfuse.Stefan Sperling
tweak & ok syl@
2013-11-07add fuse_invalidate() and fuse_setup() functions.Sylvestre Gallon
ok tedu@
2013-11-06Nowadays, seekdir(3) doesn't call _readdir_unlocked().Ingo Schwarze
Consequently, the "skipdeleted" argument is always == 1. Remove it, effectively reverting readdir.c rev. 1.14. ok millert@ guenther@
2013-11-06Search the userland buffer of dirent structures before falling back toIngo Schwarze
getdents(2). No functional change, but considerable speedup in many cases, see http://marc.info/?l=openbsd-tech&m=138369623117934 for some approximate numbers. ok guenther@, "good diagnosis" deraadt@
2013-11-06Handle fuse client private data. Needed by encfs.Sylvestre Gallon
Bump shlib_version. ok stsp@.
2013-11-05Cleanup, no functional change:Ingo Schwarze
1. avoid code duplication in rewinddir() by calling seekdir() directly 2. move __seekdir() into seekdir() and _telldir_unlocked() into telldir() Both functions were called from nowhere else. 3. remove some unused #include directives and one unused function prototype ok otto@ millert@
2013-11-05Make sure seekdir(3) works even when dirp->dd_buf still contains someIngo Schwarze
pending entries: At the time of the lseek(2), also invalidate the buffer in order to force getdents(2) during the next readdir(3). Because this throws away buffered data that could still be used in some cases, this is not particularly efficient, but at least it works; i will suggest optimizations soon. Bug found when investigating perl-5.18.1/t/op/threads-dirh.t that was reported broken by Andrew Fresh <andrew at afresh1 dot com>. ok guenther@ deraadt@
2013-11-04fuse_opt_insert_arg() can take empty string as argument.Sylvestre Gallon
unbreak ntfs-3g. ok pirofti@
2013-11-03NaN -> \*(NaMartynas Venckus
{infinity, inf} -> \*(If OK jmc@
2013-11-02remove unnecessary spinlock that slowed down pthread_getspecific.Ted Unangst
original report and fix provided by John Carr. ok guenther kettenis
2013-11-02Oops, utime() is section 3, not 2Philip Guenther
noted by jmc@
2013-11-02Fix lie that predated NetBSD: the struct stat time padding affectedPhilip Guenther
utime() usage, not utimes() ok deraadt@
2013-11-02out of place word; discussed with jmc and guentherTheo de Raadt
2013-11-02.Xr clock_gettimeMarc Espie
okay deraadt@
2013-11-02Update the fuse_opt to have option like -h working.Sylvestre Gallon
ok ajacoutot@
2013-11-02finish xref linking clock_gettime and getitimerTed Unangst
2013-11-01Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directlyPhilip Guenther
ok deraadt@
2013-11-01Add missing bitfields needed by gvfs.Sylvestre Gallon
Bump pkg_config version to 2.8.0 ok ajacoutot@
2013-11-01reduce use of <sys/user.h>Theo de Raadt
ok guenther millert
2013-11-01enable fuse.Sylvestre Gallon
ok deraadt@
2013-10-28kill kame version symbols and sysctlTheo de Raadt
ports tree grep run by sthen
2013-10-25close(fd), then set errnoTed Unangst
2013-10-24Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.Philip Guenther
Use useconds_t in the ualarm() declaration. Bump libstdc++ major to be sure there isn't ABI issues. ok deraadt@ jca@ jmc@ millert@ ports testing by landry@
2013-10-23In pthread_kill()/pthread_cancel(), hold the target thread's flagsPhilip Guenther
lock across the kill, so that it can't exit (and its tid be reused!) before the kill() discussed with tedu@ marc@