summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* the posix regex mistake is here to stay. ok deraadttedu2010-11-212-16/+2
|
* Add CAVEATS section documenting error handling caveats.stsp2010-11-201-2/+9
| | | | tweak and ok jmc, tedu
* Make KERN_CPTIME return an avarage number of ticks across all CPUsmikeb2010-11-191-4/+3
| | | | tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
* tweak previous;jmc2010-11-081-3/+3
|
* Add %F, %g, %G, %u, %z (extended) and %Z.jasper2010-11-082-9/+334
| | | | | | | This is mostly a sync with NetBSD. tested in a bulk build by landry@ ok millert@
* - the nroff workaround is no longer neededjmc2010-10-291-19/+22
| | | | - use some Fn and \*(Gt
* Change basep parameter of getdirentries() to be off_t *, not long *millert2010-10-282-3/+3
| | | | | | | | so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
* remove skipjack and cast from the libc; ok deraadtmikeb2010-10-283-1053/+2
|
* support _SC_HOST_NAME_MAX; from bradderaadt2010-10-282-3/+9
| | | | a libc crank is happening in < 24 hours
* Remove the EXAMPLE, since *noone* should use this non-portable APIderaadt2010-10-271-38/+11
| | | | | directly -- it exists for libc use only. Tell people to use readdir(3). discussed with millert
* print the pointer value that caused the error (if available); okotto2010-10-211-47/+54
| | | | deraadt@ nicm@ (on an earlier version)
* The ssizearg member of union arg is pointless if it isn't of type ssize_tguenther2010-10-171-2/+2
| | | | Noted by Claus Assmann
* update struct statfs; from Vladimir Kirillovjmc2010-10-161-20/+30
|
* tcp.sendspace & tcp.recvspace buttons are gone.claudio2010-10-111-12/+2
|
* Extend GLOB_LIMIT to cover readdir and stat and bump the malloc limitnicm2010-10-082-31/+72
| | | | | | | | | | | from ARG_MAX to 64K. Fixes glob-using programs (notably ftp) able to be triggered to hit resource limits. Idea from a similar NetBSD change, original problem reported by jasper@. ok millert tedu jasper
* Retire Skipjackmikeb2010-10-061-3/+3
| | | | | | | | | | | There's not much use for the declassified cipher from the 80's with a questionable license these days. According to the FIPS drafts, Skipjack reaches its EOL in December 2010. The libc portion will be removed after the ports hackathon. djm and thib agree, no objections from deraadt Thanks to jsg for digging up FIPS drafts.
* Provide a WEAK_ALIAS macro in <machine/asm.h> for the few platformsguenther2010-10-015-14/+12
| | | | | | | that didn't already have one, and then immediately use it in libc's SYS.h ok miod@
* Update to tzcode2010m from elsie.nci.nih.govmillert2010-09-271-1/+47
|
* oops, don't free array before freeing members; spotted by dkrause@djm2010-09-261-2/+2
|
* Make gcvt() better match printf("%g") behavior, it now passes regress.millert2010-09-251-11/+23
| | | | OK deraadt@
* document GLOB_KEEPSTAT in the RETURN VALUES and STANDARDS sections.djm2010-09-251-3/+14
|
* Bump libc major for ABI changes.millert2010-09-241-1/+1
|
* Bump fts_level from short to int and add a spare short so thingsmillert2010-09-242-5/+5
| | | | line up nicely. OK deraadt@
* Provide IRIX-compatible get_fpc_csr() and set_fpc_csr() for mips, althoughmiod2010-09-242-2/+46
| | | | | | | | we don't provide the silly union to decompose the value. This will allow userland to flip the ``flush denormalized to zero'' setting, which apparently is being relied upon by tcl. Asked by jasper@ a long time ago. Riding upon the upcoming libc major crank.
* Add timingsafe_bcmp(3) to libc, mention that it's already in thematthew2010-09-244-7/+64
| | | | | | kernel in kern(9), and remove it from OpenSSH. ok deraadt@, djm@
* add a GLOB_KEEPSTAT option that retains a copy of the struct statdjm2010-09-242-16/+77
| | | | | | | | | | | information that is looked up while matching glob(3)s Keeping this information around can make a big difference when fetching it is expensive, e.g. in sftp which uses GLOB_ALTDIRFUNC feedback millert@ jmc@ "get it in before the libc crank" deraadt@
* Implement if_freenameindex() as a real function as required by posix.claudio2010-09-241-1/+7
| | | | OK deraadt@, millert@
* according to ingo, it isn;t a problem to have empty [BDS]q macros, sojmc2010-09-201-3/+3
| | | | revert that part of yesterday's diffs;
* more wacky macro fixing;jmc2010-09-192-40/+40
|
* observe the following spelling:jmc2010-09-1015-66/+66
| | | | | | | | | - wide character (noun) - wide-character (adjective) this is the "fix of least resistance", and appears to be in line with posix style; a tiny fix still needed for curses, but i'll mail that upstream;
* Document EBUSY return when attempting to open a cua device thatmillert2010-09-071-1/+4
| | | | someone else already has open. OK jmc@
* do not use .B, which is man(7), not mdoc(7); and stop .Tn abuseschwarze2010-09-074-357/+142
| | | | feedback and ok jmc@, ok millert@
* - O_NOFOLLOW is no longer non-posix; from thomas klausnerjmc2010-09-071-8/+5
| | | | | | - bump posix revision and remove xpg; from millert ok millert
* Oracle has re-licensed sunrpc under a three-clause BSD license.millert2010-09-0144-1268/+1283
| | | | Update our sources appropriately. OK deraadt@ jsg@
* backout VIS_HEX. guenther@ points out that the C89 \xff encodingdjm2010-08-243-73/+10
| | | | | | | | | idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
* update to tzcode2010k from elsie.nci.nih.gov; OK miod@millert2010-08-2316-105/+233
|
* Check for duplicate variables in the environment when setting a valuemillert2010-08-232-11/+24
| | | | via setenv() or putenv(). OK miod@
* Two new flags: VIS_ALL - encode all characters, not just invisible onesdjm2010-08-213-12/+77
| | | | | | | | and VIS_HEX - use C89 \xff style hexadecimal encoding. Teach unvis(3) how to deal with the hex encoding. feedback and ok millert@ chl@
* Introduce an MI kern.consdev sysctl that will replace the MDkettenis2010-08-191-2/+5
| | | | | | machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
* The UTF-8 decoder should not accept byte sequences which decode to unicodestsp2010-08-051-1/+9
| | | | | | | | | code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 ok phessler, millert, miod, deraadt
* When the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()stsp2010-08-031-15/+9
| | | | | | | | | | | | | | | | | | | | | is supposed to ignore the 'n' parameter and return the number of wide characters needed to represent the given multi-byte character sequence. However, in the special case where 'pwcs' is NULL and 'n' is zero, our mbsrtowcs() implementation for single-byte locales mistakenly returned zero. Before the UTF-8 locale was added, this bug was invisible to callers of mbstowcs() because mbstowcs() handled this special case itself. But our new mbstowcs() implementation simply forwards to the locale-specific mbsrtowcs() implementation and expects it to do the right thing. The "awesome" window manager's "Run:" command prompt uses mbstowcs() to measure how many (possibly multi-byte) characters a user has typed, and due to this bug would always be tricked into thinking the user had entered zero characters when a single-byte locale was used. Found after prodding by dcoppa. ok deraadt sthen espie
* add missing header needed by strcmp()chl2010-08-012-2/+6
| | | | | | add missing prototype ok stsp@
* Remove stray newline, fix $OpenBSD$; ok deraadtstsp2010-07-292-3/+2
|
* Sync hcreate(3) with NetBSD, adding some caveats.ray2010-07-281-12/+67
| | | | OK jmc
* Remove a stray space. No binary change.marco2010-07-271-2/+2
|
* Replace the single-byte placeholders for the multi-byte/wide-characterstsp2010-07-2724-155/+1259
| | | | | | | | | | | | | | | | | | | | | | | | | | | conversion interfaces of libc (mbrtowc(3) and friends) with new implementations that internally call an API based on NetBSD's citrus. This allows us to support locales with multi-byte character encodings. Provide two implementations of the citrus-based API: one based on the old single-byte placeholders for use with our existing single-byte character locales (C, ISO8859-*, KOI8, CP1251, etc.), and one that provides support for UTF-8 encoded characters (code based on FreeBSD's implementation). Install the en_US.UTF-8 ctype locale support file, and allow the UTF-8 ctype locale to be enabled via setlocale(3) (export LC_CTYPE='en_US.UTF-8'). A lot of programs, especially from ports, will now start using UTF-8 if the UTF-8 locale is enabled. Use at your own risk, and please report any breakage. Note that ncurses-based programs cannot display UTF-8 right now, this is being worked on. To prevent install media growth, add vfprintf(3) and mbrtowc(3) to libstubs. The mbrtowc stub was copied unchanged from its old single-byte placeholder. vfprintf.c doesn't need to be copied, just put in .PATH (hint by fgsch@). Testing by myself, naddy, sthen, nicm, espie, armani, Dmitrij D. Czarkoff. ok matthieu espie millert sthen nicm deraadt
* fix some spacing issues; noted by kristapsjmc2010-07-271-7/+6
|
* Add a newline to the input we feed to cpp to get rid of its 'no newlineguenther2010-07-241-3/+3
| | | | | | | at end of file' warnings. Simplify the shell quoting to make it easier to read while we're at it "looks allright" beck@
* getopt_long.c replaced getopt.c 6+ years ago; we can retireblambert2010-07-221-7/+1
| | | | | | the REPLACE_GETOPT macro, at long last ok millert@
* Correct the #includes to avoid warnings in <rpc/svc.h>guenther2010-07-171-2/+3
| | | | ok miod@