summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'miod2011-04-063-6/+6
| | | | for chars.
* Add support for per-rthread base-offset for the %fs selector on amd64.guenther2011-04-054-4/+186
| | | | | | | | | | | Add pcb_fsbase to the PCB for tracking what the value for the thread is, and ci_cur_fsbase to struct cpu_info for tracking the CPU's current value for FS.base, then on return to user-space, skip the setting if the CPU has the right value already. Non-threaded processes without TLS leave FS.base zero, which can be conveniently optimized: setting %fs zeros FS.base for fewer cycles than wrmsr. ok kettenis@
* Fix the previous commit: define ___cerror, no __cerrorguenther2011-04-051-4/+4
| | | | tested by otto@; ok miod@
* Add AI_FQDN flag to getaddrinfo(3). Prompted by discussions with djm@matthew2011-04-052-22/+46
| | | | | | | | | | about cert checking in OpenSSH. Man page wording tweaks thanks to jmc@. ok henning@, jmc@; positive feedback from djm@, ajacoutat@ Committing now to reuse guenther@'s libc minor bump instead of cranking it again, as suggested by deraadt@.
* Make wcwidth() callers cope with -1 return value. Doesn't affect the build yet.stsp2011-04-042-4/+8
| | | | ok nicm
* Add a wcswidth man page (based on FreeBSD), and fix the implementationstsp2011-04-043-5/+68
| | | | | to return -1 in case of an unprintable character. ok nicm jmc
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-0430-74/+104
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* Don't fill the ctype tab with Latin-1 information in UTF-8 locales.stsp2011-04-031-11/+20
| | | | | | | Single byte sequences other than ASCII are not valid UTF-8, so they should test false in single-byte ctype functions like isprint(). Remove some dead #ifdef'd code while here. ok phessler nicm mikeb
* Add wcwidth(3) man page. ok nicmstsp2011-04-032-2/+63
|
* Make sure everything run from .init and .fini sections gets a properly alignedkettenis2011-03-311-2/+3
| | | | | | stack. ok fgsch@
* Make sure everything run from .init and .fini sections gets a properly alignedkettenis2011-03-301-2/+3
| | | | | | stack. ok deraadt@, fgsch@
* Add icmptype and tcpflags support to the grammargiovanni2011-03-281-1/+25
| | | | ok claudio@ jsing@
* back out previous commit.beck2011-03-251-665/+0
| | | | | | | | | | | "if you have checked this I am ok with it" does not mean 1) not to pay attention to breaking news after I tell you that and 2) not to get ok's from the others this had been shown to. I am absolutely not ok with thig going in with only *my* ok. There's a reason why we want more than one ok on important commits ok deraadt@ for the backout
* Add the following certs:dhill2011-03-251-0/+665
| | | | | | | | | | | | | | DigiCert High Assurance CA-3 Go Daddy Secure Certification Authority COMODO High-Assurance Secure Server CA Equifax Secure Certificate Authority VeriSign Class 3 Public Primary Certification Authority - G5 Entrust Certification Authority - L1C Entrust.net Secure Server Certification Authority cross checked with mozilla ok beck@
* This script doesn't need write access to $curdir. Just check existence.matthieu2011-03-241-3/+3
| | | | Fixes build on NFS src with no root access. ok jasper@
* tweak for clarity, ok millert@, jmc@espie2011-03-211-4/+4
|
* nl_types.h doesn't need to be #included to use nl_langinfo(). Pointedguenther2011-03-161-3/+2
| | | | out by Andres Perera (andres.p at zoho.com)
* Remove evaluation of PATH_LOCALE environment variable because it can bestsp2011-03-154-13/+6
| | | | | | abused to cause an integer overflow and serves no real purpose. Found by Alexander Schrijver. ok millert deraadt
* try to document these functions betterderaadt2011-03-141-24/+23
| | | | | discussed with millert and guenther ok guenther
* Fix handling of VIS_ALL: in vis(), actually encode all charactersguenther2011-03-132-6/+11
| | | | | | | as requested and give a correct estimate when they don't all fit, and in unvis() decode them instead of erroring ok nicm@, deraadt@
* Sync ctype definitions for the UTF-8 locale to FreeBSD, fixing width ofstsp2011-03-131-3/+3
| | | | | | | | various zero-width characters (e.g. diacritical marks). Also fix runetype mask definitions so that mklocale interprets zero width properly. Diff from Alexander Polakov. Character definition changes checked against Unicode 5.2 by me. ok matthew nicm
* In the original sparc V7 book (and in the v8 book), the divrem leaf code usedderaadt2011-03-122-4/+4
| | | | | | | | | | | | | | | | | | | | | | | local registers for a few temporaries. This was changed to use two global registers. Maybe to permit use in-kernel without conflicting with the register V7 register window handlers. (Was this done by Chris Torek? Is this related to Gordon Irlam's work? Or was it in NetBSD? Hard to tell because NetBSD removed their original cvs tree.) In V8 the ABI was tightened; more global registers became offlimits in different ways. We started supporting sun4m, and did not consider this. As a result, the global registers chosen are the wrong choice. In particular, %g7 is a poor choice for upcoming TLS work. It looks like it is safer to use %g5 and %g6 since these functions are "system software". All re-entrant parts of the system save it. On sparc64 these functions are in libc per ABI requirement, but are unused. On sparc, they occur in bootblocks (no reentrancy), kernel (reentrancy saves globals; kernel is not ABI compliant), userland libc (signal handlers save globals), and ld.so (symbol binding is not re-entrant on its own). Discussed rather extensively with guenther, kettenis, miod and drahn.
* missing word;jmc2011-03-121-1/+2
|
* Replace the old, broken KERN_PROC ABI and its matching functionsguenther2011-03-127-384/+70
| | | | | | | | | in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
* Provide wrappers for the new I386_{GET,SET}_{FS,GS}BASE sysarch() calls.guenther2011-03-127-1/+366
| | | | In some sense, these are mainly to give names to hang manpages from.
* Stilistic improvement: use clean mdoc(7) .Qq enclosures rather thanschwarze2011-03-091-8/+8
| | | | | | | | | | | (correct, but ugly) low-level roff(7) quoting of quote characters. As a side effect, this avoids ugly formatting caused by a nasty mandoc(1) bug with roff(7) quoting in mdoc(7) documents. Of course, that bug will ultimately get fixed as well, but that can't be done quickly. Reported by Tim van der Molen <tbvdm at xs4all dot nl> ok jmc@
* Add a kernel man page sosplice(9) for the socket splicing implementation.bluhm2011-03-081-3/+4
| | | | ok jmc@
* wrong type for variable; spotted by christian.siebert@cs.tu-chemnitz.dederaadt2011-03-061-3/+3
| | | | ok guenther
* Fix PR 6267: recheck POSIXLY_CORRECT each time getopt_long() starts a newguenther2011-03-053-44/+16
| | | | | | | | argv and don't suppress the handling of leading '-' in optstring when POSIXLY_CORRECT is set. Based on patch from Eric Blake. ok and manpage update from millert@, manpage ok jmc@
* Correct msgbuf_write() example. OK jmc@ and nicm@claudio2011-03-051-3/+3
|
* Remove expired certs.dhill2011-03-031-174/+0
| | | | ok beck@ fgsch@
* Fix __cxa_finalize() so that calling __cxa_finalize(NULL) properlymatthew2011-03-021-2/+2
| | | | | | invokes handlers registered with __cxa_atexit(). "seems right" deraadt@
* netbsd -r1.75: Fix argument for EL_EDITOR; from Jess Thrysoeejmc2011-03-021-3/+3
| | | | ok nicm
* SOCK_SEQPACKET is only valid for the AF_BLUETOOTH now, andmikeb2011-02-241-4/+3
| | | | | | | SOCK_RDM is a dead SysV compatibility option that is not described anywhere in the man page so don't reference it. ok claudio
* An attempt to open an append-only file without O_APPEND results in EPERM.millert2011-02-181-2/+10
| | | | OK jmc@ guenther@
* Fix typo, setreseuid -> setresuidweerd2011-02-111-3/+3
| | | | ok otto@, jmc@
* fix for CVE-2011-0014 "OCSP stapling vulnerability";djm2011-02-102-2/+14
| | | | | | ok markus@ jasper@ miod@ AFAIK nothing in base uses this, though apache2 from ports may be affected.
* Put a limit on recursion during matching, and reject input of size greaterstsp2011-02-101-3/+29
| | | | | or equal PATH_MAX. Based on similar fix made in NetBSD. ok miod@ millert@
* Update after fix for kernel/6547. SETVAL and SETALL can return ERANGE now.fgsch2011-02-021-3/+16
| | | | jmc@ ok.
* Document the kernel option SOCKET_SPLICE and the socket optionbluhm2011-01-311-2/+56
| | | | | SO_SPLICE for zero-copy socket splicing. ok jmc@
* Make the pthread scheduler block signals while restoring a newlystsp2011-01-251-1/+12
| | | | | selected thread's state. Fixes random qemu crashes. ok miod@
* Put -I${includedir} back into Cflags so configure script tests likenaddy2011-01-251-4/+8
| | | | | | | test -n "`pkg-config --cflags openssl`" don't assume that OpenSSL isn't available. ok miod@, sthen@, ajacoutot@, djm@
* Correctly escape a literal colon in an enclosure;schwarze2011-01-242-6/+6
| | | | the \: roff escape is an optional line break.
* - simplify, krb5 handling is not needed.jasper2011-01-212-27/+8
| | | | prompted by brad
* over written -> overwrittenlum2011-01-211-3/+3
| | | | ok jmc@
* Fix typo, %F pattern corresponds to %Y-%m-%d (the ISO 8601 date format),landry2011-01-191-2/+2
| | | | | not %Y/%m/%d. Found while debugging geo/gpx-viewer. ok millert@ jasper@
* - missing leading '.' before 'It'.jasper2011-01-191-3/+3
| | | | spotted by landry@
* Merge a change from ncurses upstream to correctly recalculate a formnicm2011-01-181-1/+4
| | | | | | | field size on set. Fixes an issue found by canacar@ who provided a similar fix. ok canacar
* superceded -> superseded;jmc2011-01-141-3/+3
|
* avoid some integer overflows mostly with GLOB_APPEND and GLOB_DOOFFSdjm2011-01-121-4/+12
| | | | | | and sanity check arguments (these will be unnecessary when we switch struct glob members from being type into to size_t in the future); "looks ok" tedu@ feedback guenther@