phantom
712f94325c
Don't use hardcoded struct size, use offsetof() instead (make size calculations
...
dynamic)
2001-02-11 15:09:31 +00:00
phantom
8106c1b06a
Don't try to convert grouping strings in case if C or POSIX locale
...
was explicitly specified.
Submitted by: ache
2001-02-11 15:07:26 +00:00
phantom
9e607edc06
make it possible to specify grouping number from range 0..CHAR_MAX,
...
not only one-digit number
2001-02-10 20:22:45 +00:00
phantom
543414aafd
Use "namespace.h" and "un-namespace.h"
...
Requested by: deischen
2001-02-10 19:57:26 +00:00
phantom
d4e3ae3d2b
. Fix semantics of grouping (LC_MONETARY::mon_grouping,
...
LC_NUMERIC::grouping) values.
. Always set __XXX_changed flags then loading numeric & monetary locale
categories to allow localeconv() to use C locale also.
2001-02-10 15:36:46 +00:00
ru
07f08bc934
mdoc(7) police: polishing.
2001-02-10 10:51:39 +00:00
ru
491030fdcc
mdoc(7) police: mark LC_NUMERIC with .Dv.
2001-02-10 10:26:52 +00:00
nik
677b714f57
Improve language and code examples.
...
PR: docs/24961
Submmitted by: Tony Finch <dot@dotat.at>
2001-02-10 07:48:01 +00:00
ache
0e7900a440
Note that decimal point taken from locale
2001-02-10 06:42:32 +00:00
ache
d616751a35
Note that decimal point taken from locale (SUSv2)
2001-02-10 06:32:03 +00:00
ache
6679201fe7
Take decimal point from locale instead of hardcoded '.' (SUSv2)
2001-02-10 06:25:33 +00:00
ache
dbf0a463e4
Note that decimal point character taken from locale (SUSv2)
2001-02-10 05:52:59 +00:00
ache
29f5f24614
Use decimal point from localeconv() instead of hardcoded '.' (SUSv2)
2001-02-10 05:46:05 +00:00
ache
2cb0d28611
Note the fact that decimal point taken from locale (according to SUSv2)
2001-02-10 05:16:41 +00:00
ache
4060fa06fa
Use decimap_point from localeconv() instead of hardcoded '.'
...
Obtained from: inspired by NetBSD strtod
2001-02-10 05:05:09 +00:00
ache
cf38bc80e0
As temporary workaround for missing *grouping fields parser always return "no
...
grouping" (CHAR_MAX, '\0').
Fixme: grouping parser needs to be implemented.
2001-02-10 04:32:55 +00:00
ache
3e4ec8e5b2
According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back out
...
all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in
strtol() in cnv()
2001-02-10 03:31:23 +00:00
ache
b8bd5d2b44
Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)
2001-02-10 02:00:56 +00:00
ache
0ec6d3ee51
Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,
...
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.
2001-02-10 01:38:18 +00:00
ache
55d37192a4
NOTE: according to SUSV2 and other implementations, numeric elements in
...
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.
2001-02-10 00:43:32 +00:00
ache
65bbb059b2
Implement CODESET
2001-02-09 22:43:39 +00:00
tegge
172bac8699
Backout previous commit. Use of spinlocks was not approved.
...
PR: 15070
2001-02-09 20:31:48 +00:00
nik
c90a746254
Describe the arguments to gethostbyaddr.
...
PR: docs/24225
Submitted by: Joakim Henriksson <jurduth@ludd.luth.se>
Patch from: ben
2001-02-09 19:06:25 +00:00
ache
8060d7461b
Back out attempt to implement CRNCYSTR - require additional prefixes according
...
to SUSV2. Add comment explaining it instead.
2001-02-09 18:39:17 +00:00
ache
5026efeb4d
Explicitly mark deprecated entries.
...
Return currency_symbol for CRNCYSTR
Return "%r" for T_FMT_AMPM
Remove obsoleted comment about c_fmt
Return "" for {YES,NO}STR
2001-02-09 18:16:12 +00:00
ru
cc4427cd1a
mdoc(7) police: prevent generation of the extra
...
whitespace after ``i.e.'', use .Rv, update .Dd.
2001-02-09 12:47:23 +00:00
ru
feaf463d56
mdoc(7) police: fixed the weird construct.
2001-02-09 09:08:53 +00:00
ache
90521c24f8
Hardcode c_fmt in a different way since used in nl_langinfo now
2001-02-08 20:55:38 +00:00
tegge
d93ead21a2
Protect freelists managed by Balloc/Bfree with a spinlock.
...
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
2001-02-08 20:22:28 +00:00
phantom
dd4c526765
add lmonetary.?, lnumeric.?, ldpart.?, lmessages.?, nl_langinfo.c
...
remove lconv.c
2001-02-08 17:13:24 +00:00
phantom
043f9a3fa1
Add SUSv2 compatible nl_langinfo() function. It still need some work, but
...
this is already usable one.
2001-02-08 17:12:03 +00:00
phantom
028f19b91b
Catch up to latest chanage in timelocal structures exporting.
2001-02-08 17:08:13 +00:00
phantom
fe9086e23b
Export internal data structures in same manner as numeric/monetary/messages
...
structures exported.
Protect timelocal.h from multiple inclusions.
2001-02-08 17:06:37 +00:00
phantom
d35a50f010
Make localeconv() actual function. Now it will use LC_MONETARY/LC_NUMERIC
...
information to fill return structure. Remove unused anymore stub.
2001-02-08 17:03:01 +00:00
phantom
e396ac20a4
Make FreeBSD locale support complete: add support for rest locale categories
...
LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they
don't need anymore.
Reviewed by: silence on -i18n
2001-02-08 16:58:53 +00:00
nectar
a7ec51af6e
Document the cases in which setreuid changes the saved-user-ID.
2001-02-08 12:43:33 +00:00
ru
2b9e4b5e9b
mdoc(7) police: print #ifdef/#endif literally,
...
and as list items (to get the correct offset).
2001-02-08 10:40:42 +00:00
ru
a1870463d8
mdoc(7) police: C types should be declared with either .Ft or .Vt.
2001-02-08 10:22:35 +00:00
sobomax
010d4c2499
Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.
...
Tested by: knu, sobomax and other #bsdcode'rs
2001-02-07 17:34:48 +00:00
ru
5addfd60d6
mdoc(7) police: Change -filled displays (which just happen
...
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.
2001-02-07 13:45:30 +00:00
asmodai
7dcfea0100
Fix typo: compatability -> compatibility.
...
Compatability is not an existing english word.
Add $FreeBSD$.
2001-02-06 12:04:54 +00:00
asmodai
47a2266000
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
Submitted to look at by: kris
2001-02-06 10:39:38 +00:00
bde
9f31431f35
Fixed C error(s) in synopsis.
2001-02-06 00:02:32 +00:00
bde
88cfc8e9de
Fixed errors in prototypes. Many were hiding under mdoc errors.
2001-02-05 15:24:34 +00:00
bde
4846f5fbda
Fixed C error(s) in synopsis. Many were hiding under mdoc errors.
2001-02-05 15:19:56 +00:00
bde
fa4a1ef18e
Fixed errors in prototypes. Many were hiding under mdoc errors.
2001-02-05 15:11:09 +00:00
bde
a4f13fcee9
Fixed C error(s) in synopsis. Many were hiding under mdoc errors.
2001-02-05 15:00:21 +00:00
bde
070f4b4369
Don't install links for crypt.3 here. There is no crypt.3 here...
...
Forgotten in: rev.1.58, which was not Submitted by: bde (I requested
untangling parts of the crypto mess).
2001-02-05 14:55:14 +00:00
phk
098a0a97ed
Remove a sizeof(void *) == sizeof(int) assumption.
...
Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
2001-02-04 10:06:24 +00:00
mckay
f01b7a4774
Spelling.
2001-02-04 02:05:16 +00:00