Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix Yet Another 16 byte stack alignment bug. Thankfully, this one is | peter | 2004-03-31 | 2 | -10/+10 |
| | | | | | | | | | | | solved by a simple 'make world'. The signalcontext function was going to the trouble of generating an even 16 byte alignment, but in fact it needed to be odd aligned to simulate the 8-byte return address having been pushed by the caller. This fixes yet another group of crashes in applications using libpthread. And yet again, it was my fault all along. While here, rename the duplicate internal ctx_wrapper() functions to makectx_wrapper() and sigctx_wrapper() so that traces aren't ambiguous. | ||||
* | When a dynamic NSS module is built and linked against a thread | nectar | 2004-03-30 | 3 | -23/+43 |
| | | | | | | | | | | | | | library, it may pull in that thread library at run time. If the process started out single-threaded, this could cause attempts to release locks that do not exist. Guard against this possibility by checking __isthreaded before invoking thread primitives. A similar problem remains if the process is linked against one thread library, but the NSS module is linked against another. This can only be avoided by careful design of the NSS module. Submitted by: Sean McNeil <sean@mcneil.com> (mostly; bugs are mine) | ||||
* | Add cross-references to isideogram(3), isphonogram(3), isrune(3), | tjr | 2004-03-30 | 1 | -1/+6 |
| | | | | isspecial(3) and wctype(3). | ||||
* | Add basic manual pages for isideogram(), isphonogram(), isrune() | tjr | 2004-03-30 | 5 | -1/+235 |
| | | | | and isspecial(). | ||||
* | Trim cross-references. | tjr | 2004-03-30 | 1 | -15/+2 |
| | |||||
* | Document the isnumber() and ishexnumber() functions, and explain how they | tjr | 2004-03-30 | 2 | -13/+34 |
| | | | | differ (at least in theory) from isdigit() and isxdigit(). | ||||
* | Remove duplicate MLINK. | tjr | 2004-03-29 | 1 | -1/+1 |
| | |||||
* | Recognize the "rune" character class in wctype(). | tjr | 2004-03-27 | 2 | -6/+8 |
| | |||||
* | Document the existence of NET_RT_IFMALIST. | bms | 2004-03-25 | 1 | -0/+7 |
| | | | | Reviewed by: ru | ||||
* | [troff] removed the unnecessary use of \_ escapes. | ru | 2004-03-25 | 1 | -96/+96 |
| | |||||
* | Add locking so that arc4random(3) functions are all reentrant for | green | 2004-03-24 | 1 | -10/+54 |
| | | | | | | pthreads. Submitted by: Christian S.J. Peron <maneo@bsdpro.com> | ||||
* | Document incorrect handling of multibyte characters. | tjr | 2004-03-21 | 1 | -1/+7 |
| | |||||
* | Mention that funopen() uses fpos_t incorrectly in the BUGS section. | tjr | 2004-03-20 | 1 | -1/+9 |
| | |||||
* | Improve documentation for fgetpos() and fsetpos(), and discourage | tjr | 2004-03-20 | 1 | -13/+21 |
| | | | | users from assuming that fpos_t is an integral type. | ||||
* | Shave-off troff cycles by invoking .Fa only once. | dds | 2004-03-19 | 1 | -3/+1 |
| | | | | | Submitted by: ru MFC after: 1 week | ||||
* | Do not redundantly set the stream orientation in getc(), putc(), and | tjr | 2004-03-19 | 6 | -6/+12 |
| | | | | related functions - __sgetc() and __sputc() will set it when necessary. | ||||
* | Update list of macros defined in <stdio.h>. | tjr | 2004-03-17 | 1 | -1/+17 |
| | |||||
* | Re-add description of putc() macro (back out rev. 1.13.) | tjr | 2004-03-17 | 1 | -2/+8 |
| | |||||
* | Re-add text that says getc() is a macro (back out rev. 1.16.) | tjr | 2004-03-17 | 1 | -1/+2 |
| | |||||
* | Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(), | tjr | 2004-03-17 | 6 | -34/+12 |
| | | | | | | | ferror(), fileno() and clearerr(), using the value of __isthreaded to decide between the fast inline single-threaded code and the more general function equivalent. This gives most of the performance benefits of the old unsafe macros while preserving thread safety. | ||||
* | Use unions to avoid violating C99 strict aliasing rules. | des | 2004-03-16 | 6 | -43/+50 |
| | |||||
* | Refer to "wide characters" instead of "wide-characters". | tjr | 2004-03-16 | 3 | -15/+15 |
| | |||||
* | Sort MLINKS. | tjr | 2004-03-16 | 1 | -1/+1 |
| | | | | Noticed by: ru | ||||
* | Add fairly minimal documentation for the nmount() syscall. | tjr | 2004-03-16 | 2 | -3/+35 |
| | |||||
* | Don't try to pass off a struct sockaddr as a struct sockaddr_in when it | des | 2004-03-15 | 1 | -2/+2 |
| | | | | | | | may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr. This brings us yet another step closer to a clean -O2 build. | ||||
* | Document additional reasons that sysctl(3) can return ENOMEM (due to | truckman | 2004-03-15 | 1 | -0/+11 |
| | | | | vslock() failure). | ||||
* | Make this compile with -O2. A proper fix would use a struct to represent | des | 2004-03-15 | 1 | -22/+22 |
| | | | | | vectors, instead of requiring the caller to keep track of element size and count and pass them in by reference. | ||||
* | Whitespace nits. | des | 2004-03-15 | 1 | -4/+4 |
| | |||||
* | Set stream orientation in ungetc() instead of __ungetc(). This avoids | tjr | 2004-03-10 | 1 | -2/+1 |
| | | | | | setting it redundantly when called from ungetwc(), vfscanf() etc., which already set the orientation. | ||||
* | Remove duplicate check for EOF from ungetc(); __ungetc() already checks. | tjr | 2004-03-10 | 1 | -2/+0 |
| | |||||
* | Call __sputc() directly in fputc() instead of taking an expensive | tjr | 2004-03-10 | 1 | -1/+1 |
| | | | | detour through putc(). | ||||
* | Call __sgetc() directly in getchar() instead of taking an expensive | tjr | 2004-03-10 | 1 | -1/+1 |
| | | | | detour through getc(). | ||||
* | Set the stream orientation explicitly in fgetln() instead of relying on | tjr | 2004-03-10 | 1 | -0/+1 |
| | | | | __srefill() to do it. | ||||
* | Set stream orientation in puts(). | tjr | 2004-03-10 | 1 | -0/+2 |
| | |||||
* | Backout the previous revision due to objections. | jb | 2004-03-09 | 2 | -10/+4 |
| | |||||
* | On 4.X it was possible for an application to initialise a local FILE | jb | 2004-03-09 | 2 | -4/+10 |
| | | | | | | | | | structure and call stdio functions. In 5.X this was broken when FILE locking was introduced into libc. This change makes most (relevant) stdio functions work again when the _extra file in FILE isn't initialised (and can't be without a libc function to do it since the __sFILEX structure is private to libc). | ||||
* | Rearrange (centralize) initialization of mallocs internals to always be | phk | 2004-03-07 | 1 | -19/+13 |
| | | | | | | done before the first call, even if this is a malloc(0) call. PR: 62859 | ||||
* | Merge some fixes from NetBSD's getopt.3 v1.31: | ache | 2004-03-06 | 1 | -43/+88 |
| | | | | cleanup, add more sections, better explanation, declaration | ||||
* | Merge some fixes from NetBSD's getopt.c v1.26: | ache | 2004-03-06 | 1 | -26/+43 |
| | | | | | | | | cleanups, handling 'ls -l-', handling '--*' Note this is in the same time back out of our v1.3 "Don't print an error message if the bad option is '?'" because it directly violates POSIX. | ||||
* | Fix typo, was 'W'; instead of `W;' | ache | 2004-03-06 | 1 | -1/+1 |
| | |||||
* | Make GNU-compatible following case: | ache | 2004-03-06 | 2 | -23/+27 |
| | | | | single '-' in command line and '-' (non-first) in options | ||||
* | Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) | markm | 2004-03-05 | 4 | -8/+8 |
| | | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64 | ||||
* | Document missing EFAULT errno value. | dds | 2004-03-03 | 1 | -0/+8 |
| | | | | MFC after: 2 weeks | ||||
* | Make return code in noarg case GNU-compatible | ache | 2004-03-03 | 2 | -20/+24 |
| | |||||
* | Be more GNU-compatible in diagnostics | ache | 2004-03-03 | 1 | -11/+61 |
| | |||||
* | If handed a file pointer we can't write to, set errno properly to EBADF | jkh | 2004-03-02 | 1 | -1/+4 |
| | | | | | | | in order to get SUSv2 conformant behavior in higher level calls like fputs() and puts(). Reviewed by: bde | ||||
* | makecontext lib call. | grehan | 2004-03-02 | 3 | -3/+167 |
| | | | | Submitted by: Suleiman Souhlal <refugee@segfaulted.com> | ||||
* | Improve GNU compatibility in several places, use internal GNU_COMPATIBLE | ache | 2004-03-01 | 2 | -29/+49 |
| | | | | | | | define for it. Don't catch POSIXLY_CORRECT env. into static variable, it can be changed on the fly by program. Use P1003.2 standartized illoptchar[] | ||||
* | Comment out things related to getopt() replacement we not use | ache | 2004-03-01 | 1 | -36/+36 |
| | |||||
* | Change "-"-started options when POSIX_CORRECTLY is set handling | ache | 2004-03-01 | 1 | -17/+17 |
| | | | | | in favour of GNU instead of NetBSD, because configure's use us and expect GNU. |