Commit Graph

6341 Commits

Author SHA1 Message Date
ru
2d26a73daf mdoc(7) police: tidy up the formatting. 2002-08-09 12:07:17 +00:00
ru
054dc890a2 mdoc(7) police: punctuation. 2002-08-09 11:36:48 +00:00
ru
c01a69ddeb mdoc(7) police: sort xrefs. 2002-08-09 11:33:23 +00:00
ru
c3f12a4818 mdoc(7) police: punctuation. 2002-08-09 11:24:21 +00:00
ru
869e635bad mdoc(7) police: whitespace nits. 2002-08-09 11:17:56 +00:00
ru
9e9b1b85ae mdoc(7) police: laundry. 2002-08-09 11:15:49 +00:00
ru
0cacae3055 mdoc(7) police: laundry. 2002-08-09 11:06:03 +00:00
phk
e1f27f13db Make sure we set errno sensibly in case of failure.
Spotted by:	ache
2002-08-09 10:16:24 +00:00
phk
523fe00262 Introduce a new error return code:
#define EDOFUS          88              /* Programming error */
This can be used to signal error situations which indicate that the
program logic or assumptions is deficient.
2002-08-09 10:15:48 +00:00
ache
0702e07843 Add safeguards to never use errno == 0 as setrunelocale() error return code 2002-08-09 08:22:29 +00:00
rwatson
9cc94e456c Update TE policy and MAC text conversion routines to support partial
label updates.  Biba and MLS already supported this.  This permits the
userland library to submit relative updates on MAC labels, rather
than submitting an entire label to replace the current label.  This
also requires changes to the MAC modules, which are forthcoming.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-08-09 03:09:38 +00:00
rwatson
c65adec684 X-ref mac.3. 2002-08-09 03:03:08 +00:00
kan
4a9710a06d Use '_end' symbol instead of 'end' to initialize minbrk and curbrk
variables. Both symbols are set to the same value by the linker,
and _end symbol has less chances to clash with application defined
global symbols.

alpha, ia64 and sparc64 ports already use _end, i386 is now
consistent with them.

Reviewed by:	bde
Approved by:	obrien
Reported by:	pirzyk
2002-08-08 17:28:07 +00:00
ache
79ec2feeed Rewrite locale loading procedures, so any load failure will not affect
currently cached data.  It allows a number of nice things, like: removing
fallback code from single locale loading, remove memory leak when LC_CTYPE
data loaded again and again, efficient cache use, not only for
setlocale(locale1); setlocale(locale1), but for setlocale(locale1);
setlocale("C"); setlocale(locale1) too (i.e.  data file loaded only once).
2002-08-08 05:51:54 +00:00
mike
18df7c3f79 Implement POSIX.1-2001 (XSI)'s ulimit(3).
Submitted by:	Kyle Martin <mkm@ieee.org>
2002-08-08 04:50:36 +00:00
ache
af2928ecd6 Set errno to ENOMEM for strdup too (due to malloc errno bug) 2002-08-07 23:52:28 +00:00
ache
85c22fded0 Always set errno to ENOMEM after malloc failed (as workaround).
Our malloc sometimes forget to set errno, f.e. for size overflow case.
2002-08-07 22:03:46 +00:00
ache
3e9de67100 Reset __mb_cur_max to 1 when "C" or "POSIX" locales loaded after multibyte one 2002-08-07 20:49:25 +00:00
ache
b201e9010d Fix wrong address when EucInfo > "variable" size 2002-08-07 20:20:56 +00:00
archie
3fbb1e3cbf Correct an inaccuracy in this man page regarding detecting empty fields.
MFC after:	2 days
2002-08-07 20:08:50 +00:00
wollman
d5128d65e4 Document file descriptor reopening and current standardization status. 2002-08-07 18:03:30 +00:00
ache
eec8e25da2 Style fixes in preparation for rewritting 2002-08-07 18:02:45 +00:00
ache
667facf7e8 Style fixes 2002-08-07 16:49:20 +00:00
ache
91c4ffbf9e Style fixes in preparation of code rewritting 2002-08-07 16:45:23 +00:00
ache
e764c21376 Close descriptor, if error happens in loadCat() 2002-08-07 07:02:37 +00:00
tjr
98d924bef2 Build iswctype.c and manual pages for the functions it defines. 2002-08-06 00:49:59 +00:00
mike
a2eeb2ff2c o Fix a memory leak.
o Rewrite validmsgverb() so that it works (I'm not sure how it escaped
  my original testing).
o Document nextcomp().
2002-08-05 19:36:09 +00:00
tjr
3045dd93bd Add missing prototypes for extension functions to the SYNOPSIS. 2002-08-05 11:02:04 +00:00
tjr
f497534ce2 Use In macro instead of Fd. Add crossref to wctype(3). Refer to 1003.1-2001
in STANDARDS section. Document functions which are extensions to the standard.
2002-08-05 10:50:39 +00:00
tjr
f46620921a Use the In macro instead of Fd. Add crossref to wctrans(3). Refer to
1003.1-2001 in STANDARDS section.
2002-08-05 10:48:05 +00:00
tjr
fb27dc7d9f Implement the missing <wctype.h> functions: isw*() (iswalnum() etc.),
towlower() and towupper() required by ISO C90 Amd. 1.

iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(),
iswrune() and iswspecial() have also been implemented for consistency
with the BSD extensions in <ctype.h>.
2002-08-05 10:45:23 +00:00
ache
d8308553eb Reject encoding > ENCODING_LEN at early stage instead of truncating it.
Use ptr == NULL instead of !ptr in few places.
Move saverr declaration to global section.
2002-08-05 09:58:45 +00:00
tjr
d3fd6b9974 Manual pages for wide character classification (isw*) and case conversion
(tow*) functions from NetBSD, unmodified except for the addition of $FreeBSD$.

Obtained from:	NetBSD
2002-08-05 08:04:58 +00:00
mike
4a94c14eee Implement POSIX.1-2001 (XSI)'s fmtmsg(3). 2002-08-05 06:49:58 +00:00
ache
c4541fa787 Try harder to check lang as path component (".", "..", / inside).
Try harder to not overwrite failure errno.
style(9) whitespace reformatting for code readability.
2002-08-04 14:03:59 +00:00
tjr
20a53a858b Change wctype_t to an unsigned type to avoid warnings. 2002-08-04 12:43:53 +00:00
tjr
cf85691cdb Add the ISO C90 Amd. 1 wctrans(3) and towctrans(3) functions. 2002-08-04 12:09:08 +00:00
tjr
cf46308bbf Add btowc(3) to SEE ALSO section. 2002-08-04 11:02:21 +00:00
ache
a96dd1fe9f Use errno to indicate failure reason.
Remove incomplete checks for 'name' and 'PatchLocale', they must be
already checked at this point.
2002-08-04 09:37:28 +00:00
bde
6448cde819 Fixed some style bugs (unsorting of MLINKS, and more than 1 assignment to
MAN per section).
2002-08-04 07:54:41 +00:00
obrien
0f6051060e Updated libc/libc_r that fixes the FreeBSD-SA-02:28.resolv resolver bug.
Submitted by:	Trevor Johnson <trevor@jpj.net>
2002-08-04 05:51:05 +00:00
ache
a3f41ddb94 Rewrite loadlocale() to eliminate LOAD_CATEGORY macro to save space. 2002-08-04 04:29:54 +00:00
ache
e6dac6fc83 Nonexistent SIZE_MAX -> SIZE_T_MAX 2002-08-04 04:11:48 +00:00
tjr
5526f51762 Signal an error instead of giving the caller less memory than they asked
for when num * size would cause integer overflow.

MFC after:	1 week
2002-08-04 02:52:11 +00:00
ache
9d7c2ac1fd Add ERRORS section according to POSIX (no errors) 2002-08-03 17:20:45 +00:00
ache
8a9b80f372 Catch empty encoding name too 2002-08-03 17:09:21 +00:00
ache
d72f1f4923 Fix return codes to match what setrunelocale() returns 2002-08-03 16:26:47 +00:00
ache
e01d9e52fc Preserve errno in fallback code 2002-08-03 15:56:25 +00:00
tjr
ce6de52497 Add ISO C90 Amd. 1 btowc(3) and wctob(3) functions. 2002-08-03 13:49:55 +00:00
tjr
272176b1a0 Correct use of Nm macro in NAME section and a broken cross reference. 2002-08-03 12:39:41 +00:00