summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Improve language and code examples.nik2001-02-101-31/+41
| | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at>
* Note that decimal point taken from localeache2001-02-101-0/+3
|
* Note that decimal point taken from locale (SUSv2)ache2001-02-101-0/+3
|
* Take decimal point from locale instead of hardcoded '.' (SUSv2)ache2001-02-101-9/+10
|
* Note that decimal point character taken from locale (SUSv2)ache2001-02-101-0/+3
|
* Use decimal point from localeconv() instead of hardcoded '.' (SUSv2)ache2001-02-101-6/+14
|
* Note the fact that decimal point taken from locale (according to SUSv2)ache2001-02-101-0/+2
|
* Use decimap_point from localeconv() instead of hardcoded '.'ache2001-02-101-1/+4
| | | | Obtained from: inspired by NetBSD strtod
* As temporary workaround for missing *grouping fields parser always return "noache2001-02-101-2/+10
| | | | | grouping" (CHAR_MAX, '\0'). Fixme: grouping parser needs to be implemented.
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outache2001-02-103-7/+7
| | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv()
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)ache2001-02-103-3/+7
|
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,ache2001-02-102-4/+2
| | | | | | | | | | | | LC_NUMERIC fields, but only for *grouping fields - other fields are converted to a chars in localeconv(), so final change is: "-1" -> "127" 127 here is because CHAR_MAX supposed, which is _positive_ (SUSv2 requirement), not negative as 255. It is still a bit of hack. To find real CHAR_MAX will be better to sprintf() it once somewhere in static buffer. *grouping parsing still broken and missing and needs to be implemented.
* NOTE: according to SUSV2 and other implementations, numeric elements inache2001-02-102-4/+8
| | | | | | | | | | | LC_MONETARY, LC_NUMERIC are byte-arrays, not ASCII strings! Fix "C" locale, change "-1" to {CHAR_MAX, '\0'} according to standards. This is only partial fix - locale loading procedure remains broken as before and load too big values for all locales. All numeric strings there should be converted with something like atoi() and placed into bytes. Maybe I do it later, if someone will not fix it faster.
* Implement CODESETache2001-02-091-3/+12
|
* Backout previous commit. Use of spinlocks was not approved.tegge2001-02-093-61/+40
| | | | PR: 15070
* Describe the arguments to gethostbyaddr.nik2001-02-091-1/+46
| | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben
* Back out attempt to implement CRNCYSTR - require additional prefixes accordingache2001-02-091-1/+4
| | | | to SUSV2. Add comment explaining it instead.
* Explicitly mark deprecated entries.ache2001-02-091-12/+9
| | | | | | | Return currency_symbol for CRNCYSTR Return "%r" for T_FMT_AMPM Remove obsoleted comment about c_fmt Return "" for {YES,NO}STR
* mdoc(7) police: prevent generation of the extraru2001-02-091-6/+3
| | | | whitespace after ``i.e.'', use .Rv, update .Dd.
* mdoc(7) police: fixed the weird construct.ru2001-02-091-3/+1
|
* Hardcode c_fmt in a different way since used in nl_langinfo nowache2001-02-084-7/+8
|
* Protect freelists managed by Balloc/Bfree with a spinlock.tegge2001-02-083-40/+63
| | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070
* add lmonetary.?, lnumeric.?, ldpart.?, lmessages.?, nl_langinfo.cphantom2001-02-081-1/+2
| | | | remove lconv.c
* Add SUSv2 compatible nl_langinfo() function. It still need some work, butphantom2001-02-081-0/+130
| | | | this is already usable one.
* Catch up to latest chanage in timelocal structures exporting.phantom2001-02-082-34/+36
|
* Export internal data structures in same manner as numeric/monetary/messagesphantom2001-02-082-8/+14
| | | | | structures exported. Protect timelocal.h from multiple inclusions.
* Make localeconv() actual function. Now it will use LC_MONETARY/LC_NUMERICphantom2001-02-082-79/+65
| | | | information to fill return structure. Remove unused anymore stub.
* Make FreeBSD locale support complete: add support for rest locale categoriesphantom2001-02-089-54/+637
| | | | | | | LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they don't need anymore. Reviewed by: silence on -i18n
* Document the cases in which setreuid changes the saved-user-ID.nectar2001-02-081-0/+5
|
* mdoc(7) police: print #ifdef/#endif literally,ru2001-02-081-3/+3
| | | | and as list items (to get the correct offset).
* mdoc(7) police: C types should be declared with either .Ft or .Vt.ru2001-02-081-1/+3
|
* Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.sobomax2001-02-071-1/+1
| | | | Tested by: knu, sobomax and other #bsdcode'rs
* mdoc(7) police: Change -filled displays (which just happenru2001-02-075-6/+6
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* Fix typo: compatability -> compatibility.asmodai2001-02-062-2/+5
| | | | | | Compatability is not an existing english word. Add $FreeBSD$.
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* Fixed C error(s) in synopsis.bde2001-02-063-2/+3
|
* Fixed errors in prototypes. Many were hiding under mdoc errors.bde2001-02-051-0/+4
|
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.bde2001-02-051-1/+1
|
* Fixed errors in prototypes. Many were hiding under mdoc errors.bde2001-02-051-5/+30
|
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.bde2001-02-051-1/+1
|
* Don't install links for crypt.3 here. There is no crypt.3 here...bde2001-02-051-2/+0
| | | | | Forgotten in: rev.1.58, which was not Submitted by: bde (I requested untangling parts of the crypto mess).
* Remove a sizeof(void *) == sizeof(int) assumption.phk2001-02-041-7/+7
| | | | Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
* Spelling.mckay2001-02-041-1/+1
|
* strcpy -> strlcpy paranoianectar2001-02-021-1/+4
| | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-0152-174/+177
|
* Clean up syscall generation in libc by removing HIDDEN_SYSCALLSdeischen2001-01-2924-254/+79
| | | | | | | | | | | | | | and treating (almost) all system calls the same way: __sys_foo - actual syscall foo, _foo - weak definitions to __sys_foo Change PSEUDO syscalls (currently only _exit and _getlogin) to be __sys_foo (T) and _foo (W). Add $FreeBSD$ to a few files to satisfy commitprep. Suggested by: bde
* s/err1/errx/.ume2001-01-261-2/+2
| | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME
* Comment only change; s/_thread_sys_/__sys_/deischen2001-01-264-8/+8
|
* Comment change only; s/_thread_sys_/__sys_/deischen2001-01-261-1/+1
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-24190-997/+1582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
OpenPOWER on IntegriCloud