summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix printing of long doubles to match the size thatAndrew Gallatin2004-07-192-11/+8
| | | | | | | | | | | | | | | | gcc is using. This fixes devstat consumers (like vmstat, iostat, systat) so they don't print crazy zillion digit numbers for disk transfers and bandwidth. According to gcc, long doubles are 64-bits, rather than 128 bits like the SVR4 ABI spec wants them to be.. Note that MacOSX also treats long doubles as 64-bits, and not 128 bits, so we are in good company. Reviewed by: das Approved by: grehan Notes: svn path=/head/; revision=132421
* prgregset_t changed type from being a typedef of struct reg to anMarcel Moolenaar2004-07-191-1/+1
| | | | | | | | array of one element of type struct reg. Change the argument to libc_r_md_getgregs() accordingly. Notes: svn path=/head/; revision=132409
* Enable libpthread build for powerpcPeter Grehan2004-07-191-1/+1
| | | | Notes: svn path=/head/; revision=132401
* PPC MD bits for KSE. Runs test cases OK. Crippled to 1:1 mode forPeter Grehan2004-07-1916-0/+1640
| | | | | | | the time being. Notes: svn path=/head/; revision=132400
* Add signalcontext, required by KSE.Peter Grehan2004-07-192-1/+104
| | | | Notes: svn path=/head/; revision=132399
* The new program counter should go into the trapframe's srr0 andPeter Grehan2004-07-191-1/+1
| | | | | | | not the link register, which was lucky enough to work. Notes: svn path=/head/; revision=132398
* Update paths to reg*.c and regex2.h. Add a target to build regex.h.Tim J. Robbins2004-07-191-1/+3
| | | | Notes: svn path=/head/; revision=132390
* Update for removal of cclass.h. Trim some useless targets. Invoke mkhTim J. Robbins2004-07-191-34/+6
| | | | | | | with "sh mkh" so it works if the script is not executable. Notes: svn path=/head/; revision=132389
* Update for recent changes to struct re_guts. Disable printing the contentsTim J. Robbins2004-07-191-38/+5
| | | | | | | of OANYOF sets for the moment. Notes: svn path=/head/; revision=132388
* Remove unused files.Tim J. Robbins2004-07-192-12/+0
| | | | Notes: svn path=/head/; revision=132387
* Make FLT_ROUNDS correctly reflect the dynamic rounding mode.David Schultz2004-07-196-3/+80
| | | | Notes: svn path=/head/; revision=132383
* Fix two bugs in the signbit() macro, which was implemented last year:David Schultz2004-07-195-9/+31
| | | | | | | | | | | - It was added to libc instead of libm. Hopefully no programs rely on this mistake. - It didn't work properly on large long doubles because its argument was converted to type double, resulting in undefined behavior. Notes: svn path=/head/; revision=132382
* Replace seven nominally MD implementations of frexp() that are brokenDavid Schultz2004-07-1816-456/+65
| | | | | | | for subnormals with one implementation that works. Notes: svn path=/head/; revision=132366
* This library is not WARNS=2 clean for -O2 builds, because we includeMarcel Moolenaar2004-07-181-1/+1
| | | | | | | | | headers from libpthread that are not WARNS=2 clean for -O2 builds. Lower the WARNS level to 1. This is the highest level possible for now. Notes: svn path=/head/; revision=132361
* Correct the mess I made by committing from the wrong tree. MostMarcel Moolenaar2004-07-185-33/+33
| | | | | | | | | | | | notably, this restores some of the contents in thread_db.h as well as David Xu's copyright notice. This also fixes the includes in the MD libpthread files which Scott tried to provide a quick fix for. Pointy hat: marcel Notes: svn path=/head/; revision=132360
* Try to fix ia64 and alpha compiles. I don't have either equipment firedScott Long2004-07-182-0/+14
| | | | | | | up now, but it appears to be the same problem and solution as sparc64. Notes: svn path=/head/; revision=132352
* Add missing #includes so that this can compile. Obtained from the i386 version.Scott Long2004-07-181-0/+7
| | | | Notes: svn path=/head/; revision=132351
* Remove claim of conformance to IEEE Std. 1003.2. Replace it with a listTim J. Robbins2004-07-181-7/+12
| | | | | | | | | | of features required by the standard that the current implementation does not support. PR: 57911 (related) Notes: svn path=/head/; revision=132349
* Remove claim of conformance to IEEE Std. 1003.2. Replace it with a listTim J. Robbins2004-07-181-3/+7
| | | | | | | | | | of features required by the standard that the current implementation does not support. PR: 57911 Notes: svn path=/head/; revision=132343
* Hook libthread_db into the build, except for arm and powerpc.Marcel Moolenaar2004-07-181-2/+6
| | | | | | | | Porting libthread_db to arm and/or powerpc is easy enough, but we don't build gdb on those platforms yet. Notes: svn path=/head/; revision=132335
* Define _libthr_debug for use by libthread_db.Marcel Moolenaar2004-07-181-0/+9
| | | | Notes: svn path=/head/; revision=132334
* Don't include lock.h and pthread_md.h when we're being included byMarcel Moolenaar2004-07-182-0/+4
| | | | | | | libthread_db. Both headers are included seperately. Notes: svn path=/head/; revision=132333
* Add rudimentary support and stubs for libthr and libc_r on alpha, amd64,Marcel Moolenaar2004-07-1822-1178/+1851
| | | | | | | | | | | | | | | | | | | | | | | | i386, ia64 and sparc64. Add stubs for alpha, amd64, ia64 and sparc64 for libpthread. Restructure the source files to avoid unnecessary use of subdirectories that also force us to use non-portable compilation flags to deal with the uncommon compilation requirements (building archive libraries for linkage into a shared library). The libpthread support has been copied from the original local and cleaned-up to make them WARNS=2 clean. that also force us to use non-portable compilation flags to deal with the uncommon compilation requirements (building archive libraries for linkage into a shared library). The libpthread support has been copied from the original local and cleaned-up to make them WARNS=2 clean. Tested on: amd64, i386, ia64 Notes: svn path=/head/; revision=132332
* Add the const qualifier to the prgregset_t argument for the *setregs*Marcel Moolenaar2004-07-174-4/+4
| | | | | | | functions. Notes: svn path=/head/; revision=132301
* Fix minor namespace pollution: The prototypes for f{dim,max,min}(),Stefan Farfeleder2004-07-171-6/+6
| | | | | | | | nearbyint(), round() and trunc() shouldn't be visible when compiling with -D_XOPEN_SOURCE=500. Notes: svn path=/head/; revision=132292
* Fix typo: carat -> caret.Tim J. Robbins2004-07-171-1/+1
| | | | Notes: svn path=/head/; revision=132288
* Document the MSG_DONTWAIT flag.Hartmut Brandt2004-07-161-1/+8
| | | | Notes: svn path=/head/; revision=132257
* Tweak the conditions under which certain gcc builtins are used:David Schultz2004-07-161-2/+2
| | | | | | | | | | | | | | | - Unlike the builtin relational operators, builtin floating-point constants were not available until gcc 3.3, so account for this.[1] - Apparently some versions of the Intel C Compiler fallaciously define __GNUC__ without actually being compatible with the claimed gcc version. Account for this, too.[2] [1] Noticed by: Christian Hiris <4711@chello.at> [2] Submitted by: Alexander Leidinger <Alexander@Leidinger.net> Notes: svn path=/head/; revision=132246
* Add a cross reference to fgetwln(3).Tim J. Robbins2004-07-161-0/+1
| | | | Notes: svn path=/head/; revision=132243
* Add fgetwln(), a wide character version of fgetln().Tim J. Robbins2004-07-163-2/+192
| | | | Notes: svn path=/head/; revision=132242
* Rename slbexpand() to __slbexpand() and make it available outsideTim J. Robbins2004-07-162-4/+5
| | | | | | | of fgetln.c (non-static). Notes: svn path=/head/; revision=132241
* Clarify getfsstat(2) usage.Alfred Perlstein2004-07-161-1/+6
| | | | | | | | | | | | The getfsstat(2) function expects a buffer and a count, and returns a count. The confusing part is that the count it takes is a byte count, while the return value is a count of the number of structures it has filled out. Spell this out. Notes: svn path=/head/; revision=132231
* Add my initial work of libthread_db. The library is used by gdb to debugDavid Xu2004-07-159-0/+2030
| | | | | | | | threaded process. Current, only libpthread is supported, but macrel will work on it to support libthr and libc_r. Notes: svn path=/head/; revision=132172
* Style: rename 'mkdirpath' so it's clearer exactly what it does.Tim Kientzle2004-07-151-22/+27
| | | | | | | (To be precise, it creates the parent dir of the provided path.) Notes: svn path=/head/; revision=132168
* Copy lwp id to thread mailbox.David Xu2004-07-142-0/+2
| | | | Notes: svn path=/head/; revision=132128
* Call kse_switchin to switch context when being debugged.David Xu2004-07-139-55/+158
| | | | Notes: svn path=/head/; revision=132125
* Remove unused symbols.David Xu2004-07-132-28/+0
| | | | Notes: svn path=/head/; revision=132124
* Export necessary symbols to debugger.David Xu2004-07-131-7/+4
| | | | Notes: svn path=/head/; revision=132123
* Let debugger check signal, make SIGINFO works.David Xu2004-07-132-24/+50
| | | | Notes: svn path=/head/; revision=132122
* If _libkse_debug is not zero, activate thread mode.David Xu2004-07-132-0/+12
| | | | Notes: svn path=/head/; revision=132121
* Add code to support thread debugging.David Xu2004-07-1310-88/+292
| | | | | | | | | | | | | | | | | | 1. Add global varible _libkse_debug, debugger uses the varible to identify libpthread. when the varible is written to non-zero by debugger, libpthread will take some special action at context switch time, it will check TMDF_DOTRUNUSER flags, if a thread has the flags set by debugger, it won't be scheduled, when a thread leaves KSE critical region, thread checks the flag, if it was set, the thread relinquish CPU. 2. Add pq_first_debug to select a thread allowd to run by debugger. 3. Some names prefixed with _thr are renamed to _thread prefix. which is allowed to run by debugger. Notes: svn path=/head/; revision=132120
* Remove an entry from the BUGS section: we have multibyte characterTim J. Robbins2004-07-121-2/+0
| | | | | | | support now. Notes: svn path=/head/; revision=132031
* kse_switchin ABI was changed in kernel.David Xu2004-07-122-6/+4
| | | | Notes: svn path=/head/; revision=132021
* Make regular expression matching aware of multibyte characters. The generalTim J. Robbins2004-07-125-324/+478
| | | | | | | | | | | | | | | | | | | | idea is that we perform multibyte->wide character conversion while parsing and compiling, then convert byte sequences to wide characters when they're needed for comparison and stepping through the string during execution. As with tr(1), the main complication is to efficiently represent sets of characters in bracket expressions. The old bitmap representation is replaced by a bitmap for the first 256 characters combined with a vector of individual wide characters, a vector of character ranges (for [A-Z] etc.), and a vector of character classes (for [[:alpha:]] etc.). One other point of interest is that although the Boyer-Moore algorithm had to be disabled in the general multibyte case, it is still enabled for UTF-8 because of its self-synchronizing nature. This greatly speeds up matching by reducing the number of multibyte conversions that need to be done. Notes: svn path=/head/; revision=132019
* Add a new error code, REG_ILLSEQ, to indicate that a regular expressionTim J. Robbins2004-07-122-1/+5
| | | | | | | contains an illegal multibyte character sequence. Notes: svn path=/head/; revision=132017
* Document the new PT_LWPINFO request. In fact, the request is so newMarcel Moolenaar2004-07-121-0/+19
| | | | | | | | it hasn't even been implemented yet. I just wanted to be the first to try a new approach to development ;-) Notes: svn path=/head/; revision=132012
* Update the README notes to include the current list of supportedTim Kientzle2004-07-121-49/+47
| | | | | | | formats and remove some outdated comments about library limitations. Notes: svn path=/head/; revision=132003
* Remove incomplete support for multi-character collating elements. RemoveTim J. Robbins2004-07-112-262/+8
| | | | | | | unused character category calculations. Notes: svn path=/head/; revision=131973
* Correct a brain-o in extract_dir: mkdirpath() and mkdir(2) areTim Kientzle2004-07-101-2/+4
| | | | | | | not interchangable. Notes: svn path=/head/; revision=131902
* Unbreak alpha: On alpha a long double is the same as a double andMarcel Moolenaar2004-07-101-0/+4
| | | | | | | | | consequently the exponent is only 11 bits. Testing whether the exponent equals 32767 in that case only effects to compiler warnings and thus build breakage. Notes: svn path=/head/; revision=131898