summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.stsp2011-04-249-1807/+4
|
* remove STANDARDS section, as this function does not conform to any;jmc2011-04-241-6/+2
| | | | | | | prompted by deraadt original issue (mandoc has no support for \*(Px) reported by Matthew Dempsky; kristaps and ingo are looking at whether to add support for the Px or not;
* Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.stsp2011-04-249-4/+1807
| | | | | | Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor bump for libc. ok kettenis espie
* Merge the same fix for hppa64; reminded by miod@:martynas2011-04-231-2/+2
| | | | | Sticky flags are in the left half of fpsr;  not the undefined bits in the right half.  OK miod@.
* Do not document FP_X_IOV--it's an alpha-only thing. Similarly likemartynas2011-04-231-3/+2
| | | | we don't document the i386/amd64 denormalization exception.
* Sticky flags are in the left half of fpsr; not the undefined bitsmartynas2011-04-221-2/+2
| | | | in the right half. OK miod@.
* Clarify SO_SPLICE semantics in setsockopt(2).bluhm2011-04-221-7/+10
| | | | ok jmc@
* Make this code actually compile on hppa64.jsing2011-04-219-79/+79
| | | | ok kettenis@
* Rework setjmp so that it works for hppa64.jsing2011-04-211-67/+67
| | | | ok kettenis@
* Provide reasonable gdtoa headers.jsing2011-04-212-2/+15
| | | | ok kettenis@
* Make SYS.h actually compile on hppa64.jsing2011-04-211-14/+14
| | | | ok kettenis@
* Don't use 'n' for the length of multibyte chars, because it is the lengthyasuoka2011-04-211-2/+3
| | | | | | of wide characters. This will fix a problem of uim-fep pre-edit display. OK stsp@
* Fix spacing nit.matthew2011-04-191-3/+3
| | | | ok jmc@
* Do not over-specify the return value.schwarze2011-04-191-5/+6
| | | | | | Instead, just document what POSIX requires. Reminded of the problem by joachimschipper dot nl, Feedback from matthew@, krw@, deraadt@, and ok deraadt@.
* Remove wrong check.ariane2011-04-151-10/+1
| | | | | | | | | | | | | HPPA longjmp tests that the env parameter < the current stack pointer. The test relies on the stack being at the end of the memory space. This test is wrong for a couple of reasons: - the main stack is at 0x78000000-0x80000000, but allocations between 0x80000000-0xc0000000 are available to the program, - pthread stacks may be at any place in the address space, allowing a heap-allocated env parameter to fail the check. ok deraadt@, kettenis@, guenther@ at least
* wcwidth() must return -1 if the character is not printable.stsp2011-04-151-2/+4
| | | | | Diff from Alexander Polakov. OK phessler@
* document MAP_TRYFIXED. short version: don't use it. prodded by deraadt.tedu2011-04-111-2/+11
|
* On the a.out architectures, WEAK_ALIAS does an implicit _C_LABEL()deraadt2011-04-093-6/+6
| | | | ok miod
* a_syms is an int, not a pointer; ok miodderaadt2011-04-081-2/+2
|
* 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@.
* 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
|
* 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.
* Replace the old, broken KERN_PROC ABI and its matching functionsguenther2011-03-121-14/+4
| | | | | | | | | 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
* 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@
* Fix __cxa_finalize() so that calling __cxa_finalize(NULL) properlymatthew2011-03-021-2/+2
| | | | | | invokes handlers registered with __cxa_atexit(). "seems right" deraadt@
* 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@
* 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@
* Correctly escape a literal colon in an enclosure;schwarze2011-01-242-6/+6
| | | | the \: roff escape is an optional line break.
* 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@
* 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@