summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-09-20according to ingo, it isn;t a problem to have empty [BDS]q macros, soJason McIntyre
revert that part of yesterday's diffs;
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-17don't try to get the current stream postion when the device is stopped,Alexandre Ratchov
and don't generate clock ticks (ie don't invoke the sio_onmove(3) call-back).
2010-09-12Since the stack layout changes from gcc3 to gcc4, change the inline asm toMark Kettenis
deal with this. ok miod@
2010-09-11there's a missing full stop here too, which seems to be because ofJason McIntyre
another local variation;
2010-09-11remove a duplicate line; thomas dickey has confirmed this issue is notJason McIntyre
present in upstream sources, so it must be a local bug;
2010-09-10observe the following spelling:Jason McIntyre
- 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;
2010-09-09Use mandoc instead of groff to build PostScript manuals; note thatIngo Schwarze
these are not built by default, but only built when MANPS is set. kristaps@ and jmc@ agree with the idea, and the patch doesn't bother deraadt@ at all
2010-09-08Make tcpdump of pflog interfaces work with 'net <net>' expression.Kenneth R Westerback
My problem, canacar@'s fix. ok sthen@ canacar@
2010-09-07Document EBUSY return when attempting to open a cua device thatTodd C. Miller
someone else already has open. OK jmc@
2010-09-07do not use .B, which is man(7), not mdoc(7); and stop .Tn abuseIngo Schwarze
feedback and ok jmc@, ok millert@
2010-09-07- O_NOFOLLOW is no longer non-posix; from thomas klausnerJason McIntyre
- bump posix revision and remove xpg; from millert ok millert
2010-09-06Enable wide character support in ncurses. It is built into libcurses,Nicholas Marriott
libform, libmenu, libpanel and each library is also linked to a corresponding "w" version. This is a major bump for all four libraries. Thanks to landry, stsp, sthen, naddy, oga, Martin Pieuchot, and anyone else I've forgotten for testing. ok naddy krw deraadt
2010-09-01Oracle has re-licensed sunrpc under a three-clause BSD license.Todd C. Miller
Update our sources appropriately. OK deraadt@ jsg@
2010-08-30Fix from upstream to make all backends reinit on event_reinit(). ThisNicholas Marriott
was not being done for poll and select, so after fork they would remain using the same socketpair for signal notification, leading to a race between the two processes to read from it and hangs. Problem originally reported by kili@. ok gilles
2010-08-24backout VIS_HEX. guenther@ points out that the C89 \xff encodingDamien Miller
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.
2010-08-23update to tzcode2010k from elsie.nci.nih.gov; OK miod@Todd C. Miller
2010-08-23Check for duplicate variables in the environment when setting a valueTodd C. Miller
via setenv() or putenv(). OK miod@
2010-08-21Two new flags: VIS_ALL - encode all characters, not just invisible onesDamien Miller
and VIS_HEX - use C89 \xff style hexadecimal encoding. Teach unvis(3) how to deal with the hex encoding. feedback and ok millert@ chl@
2010-08-20polish the code: remove few unused #includes, add missing ones,Alexandre Ratchov
fix NULL vs 0, etc. No behaviour change.
2010-08-19Introduce an MI kern.consdev sysctl that will replace the MDMark Kettenis
machdep.console_device that's only implemented on a few architectures. ok deraadt@, miod@
2010-08-06If audio interrupts are missed (as this happens on some MP systemsAlexandre Ratchov
now), play and record directons may be out of sync, and since the play direction is used as clock source, we may end up with data ariving _before_ the time it was recorded. This breaks the sndio ``device model'' and most full-duplex apps relying on it, starting with aucat in its default mode. Workaround this by using the direction that's ahead as clock source, ensuring that recorded data never arrives before the clock tick it was recorded. This prevents apps from crashing but won't fix stuttering caused by missed interrupts. ok deraadt@
2010-08-05The UTF-8 decoder should not accept byte sequences which decode to unicodeStefan Sperling
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
2010-08-05Regenerate files that were affected by changes to asn1_compile that werePhilip Guenthe
made years ago. ok deraadt@
2010-08-03When the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()Stefan Sperling
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
2010-08-01add missing header needed by strcmp()Charles Longeau
add missing prototype ok stsp@
2010-07-29Remove stray newline, fix $OpenBSD$; ok deraadtStefan Sperling
2010-07-28Sync hcreate(3) with NetBSD, adding some caveats.Ray Lai
OK jmc
2010-07-27Remove a stray space. No binary change.Marco Peereboom
2010-07-27Replace the single-byte placeholders for the multi-byte/wide-characterStefan Sperling
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
2010-07-27fix some spacing issues; noted by kristapsJason McIntyre
2010-07-27Properly handle the size field in pflog link headerCan Erkin Acar
when generating the filter. This will allow the pflog header to be extended without adding a new link type. No change to generated code for other link types. ok henning@
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
2010-07-24Add a newline to the input we feed to cpp to get rid of its 'no newlinePhilip Guenthe
at end of file' warnings. Simplify the shell quoting to make it easier to read while we're at it "looks allright" beck@
2010-07-22getopt_long.c replaced getopt.c 6+ years ago; we can retireBret Lambert
the REPLACE_GETOPT macro, at long last ok millert@
2010-07-21remove unnecessary ``return 0'' statements,Alexandre Ratchov
from Remco <remco at d-compu.dyndns.org>, thanks!
2010-07-19Add barebones manual pages for cimag(3), conj(3) and cproj(3)Todd C. Miller
OK kettenis@ jmc@
2010-07-19Fix the cproj family to not return garbage on finite arguments.Philip Guenthe
ok millert@
2010-07-18Use crealf() and cimagf() instead of creal() and cimag() when thePhilip Guenthe
argument is a float. Eliminate a cast rendered superfluous as a result. ok kettenis@, millert@
2010-07-17Move some macros in <msdosfs/denode.h> to outside the #ifdef _KERNELPhilip Guenthe
so that libkvm doesn't need to define that, thereby avoiding some warnings. ok miod@
2010-07-17Correct the #includes to avoid warnings in <rpc/svc.h>Philip Guenthe
ok miod@
2010-07-17add missing header needed by event_warn()Charles Longeau
ok nicm@
2010-07-15More delimiters that need quoting inside macros, hunted down by jmc@,Ingo Schwarze
who asked me to commit because he is just running out of the door.
2010-07-15add two new members to structs audio_encoding and audio_prinfo.Jacob Meuser
for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
2010-07-13update our recommended hash function to sha256 and note md5 is broken.Ted Unangst
ok deraadt jmc millert sobrado
2010-07-13no more rmd160(1);Jason McIntyre
2010-07-13Fix PR 6417: if we're starting a thread and there's no other threadsPhilip Guenthe
running, then we need to start a gc thread...except when this is the very call to start a gc thread! "This works for me" marc@
2010-07-13Fix PR 6376: restore more thread library state if execve fails,Philip Guenthe
including the scheduling timer, sigmask, fd nonblocking status, and handling of the signals used by the thread library. ok marc@, additional testing by ajacoutot@
2010-07-12Update to 1.4.14b.Nicholas Marriott
From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
2010-07-12After forking, clear the 'thread joining this one' pointer in the child,Philip Guenthe
as the child only has the one thread remaining. ok marc@