summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Style fixes:Bruce Evans2004-05-141-11/+5
| | | | | | | | | | | Main ones: mostly use conditional expressions in ifdefs instead of a mixture of conditional expressions and nested ifdefs. Nearby ones: - don't do less than echo the code in the comment about libc_r - fixed some internal insertion sort errors and indentation errors. Notes: svn path=/head/; revision=129237
* Fixed some insertion sort errors (external ones only).Bruce Evans2004-05-141-25/+25
| | | | Notes: svn path=/head/; revision=129236
* Use a simpler, faster buffering scheme for partial characters in mbrtowc().Tim J. Robbins2004-05-141-21/+27
| | | | Notes: svn path=/head/; revision=129229
* Do not attempt to build libdisk, libthr and libc_r for arm.Olivier Houchard2004-05-141-3/+8
| | | | Notes: svn path=/head/; revision=129225
* Define iaddr_t and saddr_t for arm.Olivier Houchard2004-05-141-1/+4
| | | | Notes: svn path=/head/; revision=129216
* Use WARNS?=3 for these in the arm case for now, due to toolchain issues.Olivier Houchard2004-05-143-0/+13
| | | | Notes: svn path=/head/; revision=129215
* Import _setjmp.S for arm in libstand.Olivier Houchard2004-05-141-0/+106
| | | | Notes: svn path=/head/; revision=129208
* Import libkvm MD file for arm.Olivier Houchard2004-05-141-0/+103
| | | | Notes: svn path=/head/; revision=129207
* Arm bits for libpthread. It has no chances to work and should be consideredOlivier Houchard2004-05-1410-0/+942
| | | | | | | as stubs. Notes: svn path=/head/; revision=129206
* C runtime support for FreeBSD/arm.Olivier Houchard2004-05-144-0/+169
| | | | Notes: svn path=/head/; revision=129205
* Import the softfloat emulation library, needed for FreeBSD/arm right now.Olivier Houchard2004-05-1439-0/+14975
| | | | | | | | It should become useless when gcc 3.4 will be imported, as libgcc from gcc 3.4 contains this bits for arm. Notes: svn path=/head/; revision=129203
* Import the FreeBSD/arm libc bits.Olivier Houchard2004-05-1453-0/+6228
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=129202
* We use __arm__, not __arm32__.Olivier Houchard2004-05-141-1/+1
| | | | Notes: svn path=/head/; revision=129201
* Define malloc_pageshift and malloc_minsize for arm.Olivier Houchard2004-05-141-0/+4
| | | | Notes: svn path=/head/; revision=129200
* Fixed some minor style bugs.Bruce Evans2004-05-132-14/+20
| | | | Notes: svn path=/head/; revision=129184
* Allow encoding modules to override the default implementations ofTim J. Robbins2004-05-138-9/+113
| | | | | | | | mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the trivial "NONE" encoding. Notes: svn path=/head/; revision=129179
* Update raw byte count statistic correctly.Tim Kientzle2004-05-131-1/+1
| | | | Notes: svn path=/head/; revision=129173
* Add MLINK for newly-added archive_read_extract_set_progress_callback(3).Tim Kientzle2004-05-132-0/+2
| | | | Notes: svn path=/head/; revision=129172
* Add hook for a client-provided progress callback to be invokedTim Kientzle2004-05-136-2/+34
| | | | | | | during lengthy extract operations. Notes: svn path=/head/; revision=129171
* Fix braino in previous: check that the second byte in the characterTim J. Robbins2004-05-132-2/+2
| | | | | | | | buffer is non-null when the character is two bytes long, not when the buffer is two bytes long. Notes: svn path=/head/; revision=129166
* Fix some^Wseveral style bugs from last commit.Peter Edwards2004-05-123-45/+38
| | | | | | | | | | | | | Remove "sys/types.h" as "sys/param.h" is already included Use cast rather than back-pointer to convert from public to private version of FTS data, and so avoid littering fts.h with any of the details. Pointed out By: bde, kientzle Notes: svn path=/head/; revision=129161
* Fix typo.Josef El-Rayes2004-05-121-1/+1
| | | | | | | | Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> PR: docs/66576 Notes: svn path=/head/; revision=129160
* Fix typo.Josef El-Rayes2004-05-121-1/+1
| | | | | | | | Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> PR: docs/66538 Notes: svn path=/head/; revision=129159
* Reduce overhead by calling internal versions of the multibyte conversionTim J. Robbins2004-05-128-11/+19
| | | | | | | functions directly wherever possible. Notes: svn path=/head/; revision=129154
* Move prototypes of various encoding-related functions into a new headerTim J. Robbins2004-05-1216-71/+72
| | | | | | | file to avoid extern'ing them all over the place. Notes: svn path=/head/; revision=129153
* Link radixsort(3) to sradixsort(3), make the latter appear inRuslan Ermilov2004-05-122-1/+2
| | | | | | | the whatis(1) output. Notes: svn path=/head/; revision=129151
* Put crypto-aware version of the library into the right distribution.Ruslan Ermilov2004-05-121-0/+1
| | | | Notes: svn path=/head/; revision=129147
* Document the fact that in a jailed environment, sendto(2) could failChristian S.J. Peron2004-05-111-0/+4
| | | | | | | | | | returning EPERM if the source address specified in the IP header did not match the address bound to the prison. Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=129120
* In the absence of proper validation, at least check that null bytesTim J. Robbins2004-05-114-1/+19
| | | | | | | do not appear as anything but the first byte of a multibyte character. Notes: svn path=/head/; revision=129117
* Fix and clarify unparsable sentence.Diomidis Spinellis2004-05-111-3/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=129113
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-112-8/+28
| | | | | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks Notes: svn path=/head/; revision=129112
* Remove a trailing newline, to behave as documented in syslog(3):Diomidis Spinellis2004-05-101-0/+4
| | | | | | | | | | | | | | | | "A trailing newline is added if none is present." The code in syslogd, stderr, and console output always adds a newline at the EOL. However, the existing code never actually removed a trailing newline, and apparently relied on syslogd to convert it into a space character. Thus, the existing newline was converted to a trailing space at the EOL by syslogd, while stderr, and console output resulted in an empty line. MFC after: 2 weeks Notes: svn path=/head/; revision=129091
* Fixed style bugs in previous commit (bogus forward declaration andBruce Evans2004-05-101-3/+1
| | | | | | | inconsistent capitalization in comments). Notes: svn path=/head/; revision=129081
* Use a binary search to find the range containing a character inTim J. Robbins2004-05-093-20/+34
| | | | | | | | | RuneRange arrays. This is much faster when there are hundreds of ranges (as is the case in UTF-8 locales) and was inspired by a similar change made by Apple in Darwin. Notes: svn path=/head/; revision=129065
* o fix a sentence to match with the synopsis [1]Christian Brueffer2004-05-091-3/+3
| | | | | | | | | | | | o fix grammar nit PR: 66289 [1] Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us> Obtained from: OpenBSD [1] MFC after: 3 days Notes: svn path=/head/; revision=129064
* The FTS_NOSTAT option is an optimisation that reduces the numberPeter Edwards2004-05-083-6/+153
| | | | | | | | | | | | | | | | | | | | | | of stat(2) calls by keeping an eye of the number of links a directory has. It assumes that each subdirectory will have a hard link to its parent, to represent the ".." node, and stops calling stat(2) when all links are accounted for in a given directory. This assumption is really only valid for UNIX-like filesystems: A concrete example is NTFS. The NTFS "i-node" does contain a link count, but most/all directories have a link count between 0 and 2 inclusive. The end result is that find on an NTFS volume won't actually traverse the entire hierarchy of the directories passed to it. (Those with a link count of two are not traversed at all) The fix checks the "UFSness" of the filesystem before enabling the optimisation. Reviewed By: Tim Kientzle (kientzle@) Notes: svn path=/head/; revision=129052
* Add an implementation of copysignl(), a long double version of copysign().Stefan Farfeleder2004-05-074-4/+57
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129040
* Add an MLINK for fabsl().Stefan Farfeleder2004-05-071-1/+1
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129038
* The prototypes for cabs() and cabsf() are in <complex.h>. Fix their arguments'Stefan Farfeleder2004-05-061-8/+11
| | | | | | | | | | types and describe them briefly. Reviewed by: ru, bde Approved by: das (mentor) Notes: svn path=/head/; revision=128999
* A minor refactoring to simplify portability: assign the filenameTim Kientzle2004-05-052-10/+14
| | | | | | | | length to a separate variable so that it will be easier to adapt to systems that don't have d_namlen in struct dirent. Notes: svn path=/head/; revision=128946
* Consistify: #define gets 1 tab character afterwardsTim Kientzle2004-05-038-60/+60
| | | | | | | Pointed out by: Simon Nielsen Notes: svn path=/head/; revision=128855
* Remove bogus FBSDID.David E. O'Brien2004-05-021-3/+1
| | | | Notes: svn path=/head/; revision=128844
* Fix damaged FBSDID.David E. O'Brien2004-05-021-3/+1
| | | | Notes: svn path=/head/; revision=128843
* Merge vfscanf.c, v1.37:David Schultz2004-05-021-8/+7
| | | | | | | - s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/ Notes: svn path=/head/; revision=128822
* Merge vfprintf.c, v1.65:David Schultz2004-05-021-24/+17
| | | | | | | | - s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/ - Remove HEXFLOAT Notes: svn path=/head/; revision=128821
* Add option NO_FP_LIBC, which disables floating-point support inDavid Schultz2004-05-021-0/+3
| | | | | | | | | | | *printf() and *scanf(). Currently, this reduces the size of libc.so by 9K on i386. But the real savings are for static binaries that use *printf() or *scanf() but not strtod(); with an FP-disabled libc, these binaries will not depend on the gdtoa routines, making each binary about 22K smaller. Notes: svn path=/head/; revision=128820
* - To make it easier to compile *printf() and *scanf() withoutDavid Schultz2004-05-022-31/+21
| | | | | | | | | | | | floating-point support, remove default definition of FLOATING_POINT from the source, and change the compile-time option to NO_FLOATING_POINT. - Remove the HEXFLOAT option. It saves an insignificant amount of space (<0.1% of the size of libc on i386) and complicates vfprintf() and checkfmt(). Notes: svn path=/head/; revision=128819
* When *printf() and *scanf() are compiled without floating-pointDavid Schultz2004-05-021-0/+4
| | | | | | | | support, fmtcheck() should not accept format strings that contain floating-point formats. Notes: svn path=/head/; revision=128818
* Include appropriate flag header on Linux.Tim Kientzle2004-05-021-0/+4
| | | | Notes: svn path=/head/; revision=128808
* Create missing directories when extracting hardlinks and symlinks.Tim Kientzle2004-04-301-9/+39
| | | | Notes: svn path=/head/; revision=128743