summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use __attribute__ ((aligned (16)), to make sure the FPU state is alignedkettenis2010-06-301-3/+3
| | | | | | | | | on a 128-bit boundary like we do on amd64. The padding within the struct made sure the state was properly aligned *within* the struct, but since the alignment restriction on the struct itself was only 64-bit, the required alignment was not guaranteed. We just got lucky. ok oga@, guenther@
* there's no tcsh page in base, so don;t bother xr'ing it;jmc2010-06-301-6/+3
|
* tweak previous;jmc2010-06-301-4/+2
|
* Update libedit to bring it into sync with the latest version from NetBSD.nicm2010-06-3056-2365/+5824
| | | | ok deraadt
* use a union to align the dns answer buffer until gcc4 is fixedderaadt2010-06-291-5/+8
|
* RTHREADS option is gone, now it's a sysctl. spotted by jmctedu2010-06-291-5/+4
|
* briefly document kern.rthreadstedu2010-06-291-2/+6
|
* Fail instead of lying if a process asks sysctl()'s KERN_PROC2 orguenther2010-06-292-2/+13
| | | | | | | KERN_FILE2 (or their libkvm wrappers) for more information than the running implementation knows how to provide. ok millert@ deraadt@
* use a union to align the dns answer buffer until gcc4 is fixedderaadt2010-06-291-5/+8
|
* Make unsetenv(NULL) and unsetenv("") give EINVAL, per POSIX. ok deraadt@naddy2010-06-291-1/+5
|
* VIA xcrypt for amd64, simpler version of a diff from deraadtjsg2010-06-292-12/+38
| | | | | | | | | with suggestions from miod. The codepath doesn't seem to be called yet, this will be investigated later. looks good miod@, ok deraadt@
* add missing headers needed for close() and ioctl().chl2010-06-281-1/+3
| | | | ok krw@ millert@
* Instead of (manually) closing the _thread_kern_pipe before callingguenther2010-06-272-6/+20
| | | | | execve(), just set the close-on-exec flag. Fixes PRs 6183 and 6376. ok marc@, "seems clearly better" tedu@
* Add the extendedKeyUsage flags serverAuth and clientAuth. Newer Windowsreyk2010-06-261-0/+3
| | | | | | | | version require these flags to accept the X.509 certificates from the gateway or client; I just add both flags to make it work in both cases and verified it with win7, for example when authenticating against iked. go ahead beck@
* sync libexpat with upstream. mostly formating cleanup, no binary change.eric2010-06-265-85/+86
| | | | ok deraadt nicm
* remove support for the old pflog format, replaced in 2003henning2010-06-262-36/+2
| | | | ok ryan theo & herr reyksminister
* Protect against multiple inclusion, from Christiano F. Haesbaert.nicm2010-06-231-1/+6
| | | | ok deraadt@
* If a request to opendev(3) is given in the form of a disklabel UID,jsing2010-06-181-3/+51
| | | | | | | | | | open /dev/diskmap and perform a DIOCMAP ioctl in order to open the actual device. As a result, all programs which make use of opendev(3) can now operate with disklabel UIDs. Feedback from millert@ ok millert@ krw@ thib@
* don't prime server buffers, because it's ugly and conceptuallyratchov2010-06-051-4/+6
| | | | | complicated. Instead, request clients to provide enough samples and start with buffers full.
* don't send clock ticks while buffers are being primedratchov2010-06-051-5/+8
|
* Don't send the initial position as a clock tick with a negative delta.ratchov2010-06-051-9/+12
| | | | | Add a new ``initial position'' message which is simpler. No bahaviour change, except effects of the protocol version crank.
* typo in a commentderaadt2010-06-031-2/+2
|
* Avoid using and end pointer since strnlen(string, -1) is legalmillert2010-06-021-4/+3
| | | | | and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@
* Hide the timeout_* macros under an EVENT_DEPRECATED ifdef. These namesnicm2010-05-311-1/+11
| | | | | | | | invite conflicts, they are rarely used, can trivially be replaced by evtimer_*, and are deprecated and removed from event.h in later libevent versions. ok guenther deraadt
* typo; Ian McWilliamsthen2010-05-281-3/+3
|
* If the stack size attribute isn't larger than the guard-page sizeguenther2010-05-261-1/+3
| | | | | | attribute then make pthread_create() return EINVAL instead of whatever was in errno on entry (possibly making it appear it succeeded when it really failed). Encountered by Jung (moorang at gmail.com).
* Move imsg into libutil and add a man page.nicm2010-05-266-5/+1250
| | | | | | | | Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
* Switch amd64 and sparc64 over to gcc4; bump libc major to deal with the ABIkettenis2010-05-261-2/+2
| | | | | | | corner cases that were fixed in gcc4, and changes in libgcc that we may have missed. ok kettenis@
* oops - forgot to check for trailing whitespace;jmc2010-05-261-2/+2
|
* reword the 'D' dump bit to make it clear that the malloc.out file needsthib2010-05-261-4/+5
| | | | | | | to exist before exit for malloc to dump stats in it. tweaks from jmc@ ok otto@,jmc@
* Make sure that we really mark the FPU registers clean.kettenis2010-05-251-2/+2
| | | | ok deraadt@
* complete any pending message when the device is stoppedratchov2010-05-251-11/+16
|
* drop samples or insert silence in sun_revents(). Otherwise, inratchov2010-05-251-18/+54
| | | | | | | full-duplex, we may detect a xrun in the play direction and discard the clock tick, this would cause sio_revents() to return POLLIN without the clock being advanced, causing apps relying on the clock for flow control to enter a busy loop.
* Add HISTORY section, mostly for strnlen() but include strlen() formillert2010-05-241-2/+11
| | | | completeness (verified).
* Remove strndup and strnlen now that libc includes its own.millert2010-05-212-4/+2
| | | | | Bump the major version to avoid problems if someone updates libkrb5 without updating libc first. OK deraadt@
* remove unused variable.chl2010-05-211-2/+1
| | | | ok millert@ tedu@
* remove unused variablechl2010-05-191-2/+1
| | | | ok nicm@
* tweak previous;jmc2010-05-194-20/+16
|
* add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromtedu2010-05-1814-27/+325
| | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous.
* Document return values, based on a diff from Ross Richardson.nicm2010-05-141-3/+8
| | | | ok jmc
* Defer installing signal handlers until echo is disabled so that wemillert2010-05-141-39/+41
| | | | | | get suspended normally when not the foreground process. Fix potential infinite loop when restoring terminal settings if process is in the background when restore occurs. OK miod@
* merge fixes from upstream (up to rev 1.167)eric2010-05-131-12/+17
| | | | | | notably fix a regression in parsing DTD parameter entities. ok miod@ nicm@
* another Os out of order;jmc2010-05-091-2/+2
|
* if the sample rate the hardware will use is different than thejakemsr2010-05-091-4/+20
| | | | | | | | requested sample rate, scale the block/buffer sizes so the block/ buffer sizes the hardware will use are the same amount of *time* as the requested block/buffer sizes. ok ratchov@
* Mark _MCOUNT_DECL as __used to prevent gcc4 from optimizing it away when itkettenis2010-05-091-2/+2
| | | | | | is only referenced from inline asm. ok jsg@
* Document that el_init can return NULL on failure, PR 6374 from rueda atnicm2010-05-091-3/+5
| | | | | | devio.us. ok jmc
* Do not return success when the IPv6 address has a :: and 8 hex sections.claudio2010-05-061-3/+4
| | | | | | ::1:2:3:4:5:6:7:8 for example. PR 6277, fix by Jun KAWAI (kwj at vlax net) OK henning, gilles, jsing (who also reminded me to remove the now wrong comment about superfluous ::)
* Tweak inline asm to prevent gcc4 from optimizing away crucial bits of it.kettenis2010-05-058-24/+24
| | | | ok miod@
* document when the _timed{rd,wr}lock functions first appeared; from bradjmc2010-05-032-4/+12
| | | | ok guenther
* When running in pic mode we don't have enough general registers for alljsg2010-05-032-2/+2
| | | | | | | | | | | | the xcrypt inputs, hence the dance which is done to make this work. The constraint for the key however was "mr" which is both from memory and from a general register, it seems gcc3 went with the former and gcc4 went with the later in the pic case, so change the constraint for the key to just "m" which gives us more efficient code that both gcc3 and gcc4 are happy with. ok kettenis@