Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | getpwnam_r() and getpwuid_r() reopen the passwd even when called with | 2013-11-15 | 1 | -7/+3 | |
| | | | | | | | setpassent(stayopen). Bug found and fixed by Erik Lax <erik-AT-halon-DOT-se> ok millert@ guenther@ | ||||
* | Prefix by '_' symbols that are not part of the API. | 2013-11-13 | 13 | -143/+142 | |
| | | | | ok deraadt, guenther | ||||
* | repair prototypes | 2013-11-13 | 5 | -70/+61 | |
| | | | | reviewed by chris | ||||
* | fix_options() is not used by anything; remove API, crank major | 2013-11-13 | 3 | -104/+3 | |
| | | | | ok sthen | ||||
* | document that ibuf_write() and msgbuf_write() can now return EAGAIN | 2013-11-13 | 1 | -3/+9 | |
| | | | | from and with deraadt@ | ||||
* | original bug diagnosed by sthen: automatic retry in msgbuf_write on | 2013-11-13 | 1 | -3/+3 | |
| | | | | | | | | | | | 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 | ||||
* | Remove redundant extern "C" {...}. ok deraadt@ | 2013-11-13 | 1 | -8/+1 | |
| | |||||
* | Document the negative errno quirk used by callbacks in struct fuse_operations. | 2013-11-13 | 1 | -1/+6 | |
| | | | | ok syl | ||||
* | use sysctl vm.psstrings to calculate stack bounds, rather than USRSTACK. | 2013-11-13 | 1 | -18/+31 | |
| | | | | long discussions with guenther, kurt, kettenis etc etc etc | ||||
* | correct types for arguments to the x509 functions | 2013-11-13 | 1 | -5/+6 | |
| | | | | ok markus | ||||
* | oops should not be static | 2013-11-13 | 1 | -2/+2 | |
| | |||||
* | bring in proto | 2013-11-13 | 1 | -1/+2 | |
| | |||||
* | bring in math.h to provide prototypes | 2013-11-13 | 3 | -3/+6 | |
| | |||||
* | Trick the compiler that volatile temporary is used while raising | 2013-11-12 | 3 | -0/+12 | |
| | | | | the underflow. | ||||
* | remove dead files | 2013-11-12 | 11 | -7785/+0 | |
| | | | | ok deraadt@ | ||||
* | Declare __p1evll and __polevll protos in math_private.h instead of | 2013-11-12 | 10 | -27/+30 | |
| | | | | redeclaring each time in ld{80,128}. Pointed out by theo. | ||||
* | put the _readdir_unlocked() prototype in an obvious place | 2013-11-12 | 2 | -4/+4 | |
| | |||||
* | Add parentheses around comparison in operand of ^. Pointed out by theo. | 2013-11-12 | 2 | -10/+10 | |
| | |||||
* | Add explicit braces to avoid ambiguous else. Pointed out by theo. | 2013-11-12 | 10 | -18/+27 | |
| | |||||
* | Apply format __attribute__ to _kvm_err() and fix the errors that it detects. | 2013-11-12 | 3 | -43/+57 | |
| | | | | | | | Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data. ok deraadt@ millert@ | ||||
* | ANSI prototypes | 2013-11-12 | 1 | -3/+3 | |
| | |||||
* | a __fputwc_unlock() prototype was available in fvwrite.h, so use that | 2013-11-12 | 4 | -8/+7 | |
| | |||||
* | both files contain a function which should only be static. | 2013-11-12 | 2 | -4/+4 | |
| | | | | not cranking libc over this (unless an issue is found in ports) | ||||
* | permute15() should be static. Not cranking libc now, because it is | 2013-11-12 | 1 | -2/+2 | |
| | | | | not urgent. | ||||
* | insert the proper arguments into a prototype | 2013-11-12 | 1 | -2/+2 | |
| | |||||
* | avoid arithetic on void * | 2013-11-12 | 1 | -4/+4 | |
| | | | | ok guenther otto | ||||
* | internalize some functions so that they do not need prototypes | 2013-11-12 | 1 | -4/+4 | |
| | | | | ok ratchov | ||||
* | ANSI prototype | 2013-11-12 | 1 | -2/+2 | |
| | |||||
* | pull in missing includes (math.h, unistd.h, stdlib.h) needed for | 2013-11-12 | 8 | -8/+17 | |
| | | | | prototypes | ||||
* | pull in stdlib.h as required | 2013-11-12 | 1 | -1/+2 | |
| | |||||
* | add proto for amd64 case; unify otherwise | 2013-11-12 | 2 | -3/+5 | |
| | |||||
* | ttyslot() needs <stdlib.h> | 2013-11-12 | 1 | -2/+3 | |
| | | | | ok guenther | ||||
* | a missing prototypes | 2013-11-12 | 1 | -1/+6 | |
| | | | | and don't act like an unknown vnode type is "ok" | ||||
* | In fuse_loop(), use ssize_t to store return values from read(2) and write(2). | 2013-11-11 | 1 | -6/+6 | |
| | | | | ok syl@ | ||||
* | The kernel and ld.so have passed 0 in r0 for use as the cleanup | 2013-11-10 | 1 | -11/+6 | |
| | | | | | | | | | | 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@ | ||||
* | The kernel and ld.so have passed 0 in r7 for use as the cleanup | 2013-11-10 | 1 | -19/+5 | |
| | | | | | | | | | 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@ | ||||
* | The kernel and ld.so pass 0 in %rdx for use as the cleanup callback | 2013-11-10 | 1 | -11/+6 | |
| | | | | | | | | 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@ | ||||
* | Simplify fuse_unmount(). No functional change. | 2013-11-09 | 1 | -7/+3 | |
| | | | | ok jung@ | ||||
* | Properly check realpath() return value during argv processing in libfuse. | 2013-11-09 | 1 | -3/+8 | |
| | | | | tweak & ok syl@ | ||||
* | add fuse_invalidate() and fuse_setup() functions. | 2013-11-07 | 2 | -11/+33 | |
| | | | | ok tedu@ | ||||
* | Nowadays, seekdir(3) doesn't call _readdir_unlocked(). | 2013-11-06 | 2 | -14/+7 | |
| | | | | | | Consequently, the "skipdeleted" argument is always == 1. Remove it, effectively reverting readdir.c rev. 1.14. ok millert@ guenther@ | ||||
* | Search the userland buffer of dirent structures before falling back to | 2013-11-06 | 2 | -26/+46 | |
| | | | | | | | 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@ | ||||
* | Handle fuse client private data. Needed by encfs. | 2013-11-06 | 3 | -3/+6 | |
| | | | | | | Bump shlib_version. ok stsp@. | ||||
* | Cleanup, no functional change: | 2013-11-05 | 4 | -41/+12 | |
| | | | | | | | | 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@ | ||||
* | Make sure seekdir(3) works even when dirp->dd_buf still contains some | 2013-11-05 | 1 | -1/+2 | |
| | | | | | | | | | | | | | 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@ | ||||
* | fuse_opt_insert_arg() can take empty string as argument. | 2013-11-04 | 1 | -2/+2 | |
| | | | | | unbreak ntfs-3g. ok pirofti@ | ||||
* | NaN -> \*(Na | 2013-11-03 | 7 | -23/+23 | |
| | | | | | {infinity, inf} -> \*(If OK jmc@ | ||||
* | remove unnecessary spinlock that slowed down pthread_getspecific. | 2013-11-02 | 1 | -4/+2 | |
| | | | | original report and fix provided by John Carr. ok guenther kettenis | ||||
* | Oops, utime() is section 3, not 2 | 2013-11-02 | 1 | -2/+2 | |
| | | | | noted by jmc@ | ||||
* | Fix lie that predated NetBSD: the struct stat time padding affected | 2013-11-02 | 1 | -3/+3 | |
| | | | | | | utime() usage, not utimes() ok deraadt@ |