summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Don't use hardcoded struct size, use offsetof() instead (make size calculationsAlexey Zelkin2001-02-111-5/+7
| | | | | | | dynamic) Notes: svn path=/head/; revision=72360
* Don't try to convert grouping strings in case if C or POSIX localeAlexey Zelkin2001-02-112-2/+2
| | | | | | | | | was explicitly specified. Submitted by: ache Notes: svn path=/head/; revision=72359
* make it possible to specify grouping number from range 0..CHAR_MAX,Alexey Zelkin2001-02-101-3/+9
| | | | | | | not only one-digit number Notes: svn path=/head/; revision=72333
* Use "namespace.h" and "un-namespace.h"Alexey Zelkin2001-02-101-0/+2
| | | | | | | Requested by: deischen Notes: svn path=/head/; revision=72331
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,Alexey Zelkin2001-02-105-15/+84
| | | | | | | | | LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also. Notes: svn path=/head/; revision=72321
* mdoc(7) police: polishing.Ruslan Ermilov2001-02-101-32/+43
| | | | Notes: svn path=/head/; revision=72314
* mdoc(7) police: mark LC_NUMERIC with .Dv.Ruslan Ermilov2001-02-104-5/+9
| | | | Notes: svn path=/head/; revision=72313
* Improve language and code examples.Nik Clayton2001-02-101-31/+41
| | | | | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=72311
* Note that decimal point taken from localeAndrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72301
* Note that decimal point taken from locale (SUSv2)Andrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72297
* Take decimal point from locale instead of hardcoded '.' (SUSv2)Andrey A. Chernov2001-02-101-9/+10
| | | | Notes: svn path=/head/; revision=72291
* Note that decimal point character taken from locale (SUSv2)Andrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72290
* Use decimal point from localeconv() instead of hardcoded '.' (SUSv2)Andrey A. Chernov2001-02-101-6/+14
| | | | Notes: svn path=/head/; revision=72289
* Note the fact that decimal point taken from locale (according to SUSv2)Andrey A. Chernov2001-02-101-0/+2
| | | | Notes: svn path=/head/; revision=72288
* Use decimap_point from localeconv() instead of hardcoded '.'Andrey A. Chernov2001-02-101-1/+4
| | | | | | | Obtained from: inspired by NetBSD strtod Notes: svn path=/head/; revision=72287
* As temporary workaround for missing *grouping fields parser always return "noAndrey A. Chernov2001-02-101-2/+10
| | | | | | | | grouping" (CHAR_MAX, '\0'). Fixme: grouping parser needs to be implemented. Notes: svn path=/head/; revision=72284
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outAndrey A. Chernov2001-02-103-7/+7
| | | | | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv() Notes: svn path=/head/; revision=72283
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)Andrey A. Chernov2001-02-103-3/+7
| | | | Notes: svn path=/head/; revision=72273
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,Andrey A. Chernov2001-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. Notes: svn path=/head/; revision=72272
* NOTE: according to SUSV2 and other implementations, numeric elements inAndrey A. Chernov2001-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. Notes: svn path=/head/; revision=72271
* Implement CODESETAndrey A. Chernov2001-02-091-3/+12
| | | | Notes: svn path=/head/; revision=72263
* Backout previous commit. Use of spinlocks was not approved.Tor Egge2001-02-093-61/+40
| | | | | | | PR: 15070 Notes: svn path=/head/; revision=72254
* Describe the arguments to gethostbyaddr.Nik Clayton2001-02-091-1/+46
| | | | | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben Notes: svn path=/head/; revision=72251
* Back out attempt to implement CRNCYSTR - require additional prefixes accordingAndrey A. Chernov2001-02-091-1/+4
| | | | | | | to SUSV2. Add comment explaining it instead. Notes: svn path=/head/; revision=72245
* Explicitly mark deprecated entries.Andrey A. Chernov2001-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 Notes: svn path=/head/; revision=72243
* mdoc(7) police: prevent generation of the extraRuslan Ermilov2001-02-091-6/+3
| | | | | | | whitespace after ``i.e.'', use .Rv, update .Dd. Notes: svn path=/head/; revision=72214
* mdoc(7) police: fixed the weird construct.Ruslan Ermilov2001-02-091-3/+1
| | | | Notes: svn path=/head/; revision=72205
* Hardcode c_fmt in a different way since used in nl_langinfo nowAndrey A. Chernov2001-02-084-7/+8
| | | | Notes: svn path=/head/; revision=72183
* Protect freelists managed by Balloc/Bfree with a spinlock.Tor Egge2001-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 Notes: svn path=/head/; revision=72179
* add lmonetary.?, lnumeric.?, ldpart.?, lmessages.?, nl_langinfo.cAlexey Zelkin2001-02-081-1/+2
| | | | | | | remove lconv.c Notes: svn path=/head/; revision=72170
* Add SUSv2 compatible nl_langinfo() function. It still need some work, butAlexey Zelkin2001-02-081-0/+130
| | | | | | | this is already usable one. Notes: svn path=/head/; revision=72169
* Catch up to latest chanage in timelocal structures exporting.Alexey Zelkin2001-02-082-34/+36
| | | | Notes: svn path=/head/; revision=72168
* Export internal data structures in same manner as numeric/monetary/messagesAlexey Zelkin2001-02-082-8/+14
| | | | | | | | structures exported. Protect timelocal.h from multiple inclusions. Notes: svn path=/head/; revision=72167
* Make localeconv() actual function. Now it will use LC_MONETARY/LC_NUMERICAlexey Zelkin2001-02-082-79/+65
| | | | | | | information to fill return structure. Remove unused anymore stub. Notes: svn path=/head/; revision=72166
* Make FreeBSD locale support complete: add support for rest locale categoriesAlexey Zelkin2001-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 Notes: svn path=/head/; revision=72165
* Document the cases in which setreuid changes the saved-user-ID.Jacques Vidrine2001-02-081-0/+5
| | | | Notes: svn path=/head/; revision=72160
* mdoc(7) police: print #ifdef/#endif literally,Ruslan Ermilov2001-02-081-3/+3
| | | | | | | and as list items (to get the correct offset). Notes: svn path=/head/; revision=72157
* mdoc(7) police: C types should be declared with either .Ft or .Vt.Ruslan Ermilov2001-02-081-1/+3
| | | | Notes: svn path=/head/; revision=72156
* Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.Maxim Sobolev2001-02-071-1/+1
| | | | | | | Tested by: knu, sobomax and other #bsdcode'rs Notes: svn path=/head/; revision=72128
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-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. Notes: svn path=/head/; revision=72126
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-062-2/+5
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* Fixed C error(s) in synopsis.Bruce Evans2001-02-063-2/+3
| | | | Notes: svn path=/head/; revision=72064
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-0/+4
| | | | Notes: svn path=/head/; revision=72048
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72047
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-5/+30
| | | | Notes: svn path=/head/; revision=72046
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72045
* Don't install links for crypt.3 here. There is no crypt.3 here...Bruce Evans2001-02-051-2/+0
| | | | | | | | Forgotten in: rev.1.58, which was not Submitted by: bde (I requested untangling parts of the crypto mess). Notes: svn path=/head/; revision=72044
* Remove a sizeof(void *) == sizeof(int) assumption.Poul-Henning Kamp2001-02-041-7/+7
| | | | | | | Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com> Notes: svn path=/head/; revision=71987
* Spelling.Stephen McKay2001-02-041-1/+1
| | | | Notes: svn path=/head/; revision=71978