Commit Graph

5723 Commits

Author SHA1 Message Date
itojun
b648355aae put _RuneLocale pointer into mbstate_t for better thread safeness 2000-12-30 05:05:57 +00:00
itojun
f864e401f9 fix shlib function name for a.out case 2000-12-30 05:05:25 +00:00
itojun
bb0bfe5b30 initialize mbstate_t properly. 2000-12-30 04:13:25 +00:00
itojun
31f5853be4 pull in libc/string/strl*.c. i still don't think it necessary, but
based on popular demand...
2000-12-30 03:00:51 +00:00
matthias
c7a662aae7 Cosmetics. Use _ASM_LABEL for cerror. 2000-12-29 23:16:42 +00:00
matthias
beff37f457 Implement 64 bit version of syscall. 2000-12-29 23:16:18 +00:00
bjh21
5aefcfdc06 Create shared ARM source for libc, and move arm26 port over to using it.
The code is (almost) a direct copy of the current arm26 sources.
It's identical to the current arm32 sources, with the following exceptions:
 - _C_LABEL is used on references to C labels from assembler.
 - Function returns in assembler have APCS-26 versions in #ifdef __APCS_26__.
 - It uses SoftFloat 2a rather than SoftFloat 1a.

The first two of these should be inconsequential.  I believe that SoftFloat 2a
should work on arm32 and be backward-compatible with existing code, but this
is not obviously true.  For now, arm32 remains using its own bits of libc.
2000-12-29 20:13:44 +00:00
kleink
6b94677e25 Sprinkle some __restrict into <wchar.h>. 2000-12-29 15:26:33 +00:00
kleink
81ab746b71 Sprinkle some __restrict into stdio. 2000-12-29 15:22:48 +00:00
bjh21
a88be20997 We no longer have _C_FUNC: Use _C_LABEL instead. 2000-12-29 13:39:39 +00:00
thorpej
e9c2ed11fe Add names for some ICMP and TCP protocol header offsets:
- icmptype (offset of ICMP type field)
	- icmpcode (offset of ICMP code field)
	- tcpflags (offset of TCP flags field)
and field values:
	- icmp-echoreply, icmp-unreach, icmp-sourcequench,
	  icmp-redirect, icmp-echo, icmp-routeradvert,
	  icmp-routersolicit, icmp-timxceed, icmp-paramprob,
	  icmp-tstamp, icmp-tstampreply, icmp-ireq, icmp-ireqreply,
	  icmp-maskreq, icmp-maskreply
	- tcp-fin, tcp-syn, tcp-rst, tcp-push, tcp-ack, tcp-urg

This allows expressions like the following:

	icmp[0] = 3
	(tcp[13] & 0x02) != 0

to be written as:

	icmp[icmptype] = icmp-unreach
	(tcp[tcpflags] & tcp-syn) != 0

which is a bit more user-friendly for e.g. writing packet filter rules.
2000-12-28 22:12:07 +00:00
thorpej
f3b5a7d293 Add support for the DLT_RAWAF() data link type. 2000-12-28 22:04:22 +00:00
bjh21
40906c10a4 Sync with arm32: remove ovbcopy entry point. 2000-12-28 18:33:54 +00:00
bjh21
9d5c6f8887 RCSID cleanup. 2000-12-28 18:27:24 +00:00
itojun
4ab94d919b sync citrus Id part with citrus repository. 2000-12-28 05:27:35 +00:00
itojun
2ea22179ea switch locale module API, from s{get,put}rune to wcrtomb/mbrtowc.
handle intermediate mbstate_t more correctly.
no externally-visible changes here.
2000-12-28 05:22:27 +00:00
augustss
a5fd97f0e6 Repair hid_parse_usage_in_page() after format string cleanup: use fmtcheck(). 2000-12-28 01:22:40 +00:00
itojun
762873adfc re-enable citrus (rune)locale support.
XXX please clean and recompile libc if you get this revision.  UPDATE=yes
may leave obsolete *.o.
2000-12-27 00:57:03 +00:00
itojun
b0a406db08 arg mistake to memset 2000-12-26 06:12:09 +00:00
itojun
8e1213a45e convert old style LC_CTYPE ctype table into runelocale table 2000-12-26 00:34:49 +00:00
itojun
6ddc3c8680 read in tolower/ctype table. do not mixup toupper/tolower. 2000-12-26 00:30:51 +00:00
itojun
713f7a31e1 libc has strlcat/tpy 2000-12-25 23:59:07 +00:00
itojun
f7a43f545d strlcpy/cat is in libc 2000-12-25 23:53:25 +00:00
itojun
bb629fd1e5 byte default, use (non-citrus) singlebyte locale. if we compile
ld.elf_so with citrus locale, it bombs.
XXX this is shortterm workaround.  if you are willing to test citrus locale,
use RUNE=yes in libc/locale/Makefile.inc.
2000-12-25 23:30:58 +00:00
itojun
67819708f5 indentation 2000-12-25 09:25:15 +00:00
itojun
eeed3beffb return _INVALID_RUNE if wchar_t > 0xff, on sgetrune. 2000-12-25 01:39:48 +00:00
jmc
b4f129a4ea Update to 69 with the inclusion of the wmem* stuff in string. (shl.mi had
already been updated in sets but this got missed somehow..)
2000-12-24 23:36:51 +00:00
itojun
37fc5e01b9 fix LC_ALL behavior again... 2000-12-24 22:24:04 +00:00
itojun
e04ee8e939 split wide char section, just for readability/future possibility for .if 2000-12-24 03:45:04 +00:00
itojun
383f218a51 move wcs* and wmem* from lib/libc/locale to lib/libc/string. 2000-12-23 23:14:33 +00:00
jdolecek
2c10cd6472 bump libedit minor - added some public stuff for readline emulation 2000-12-23 22:07:16 +00:00
jdolecek
4acffb6417 completion_matches(): fix a off-by-one bug, fix variable name typo
implement displaying of possible completions, add hook to display the list
	on second rl_complete() invocation in row (typically, double <TAB>)

This addresses the completion part of lib/11581 by Richard Earnshaw.
2000-12-23 22:02:20 +00:00
itojun
1da6122f1e make printf-variant work with stateful encodings. 2000-12-23 13:19:31 +00:00
itojun
d888b02030 overhaul.
(1) alloate two mbstate_t, for input/output, per a file stream.
(2) correct inbound escape sequence processing.
cope with incomplete string better.  keep intermediate state for single shifts.
let C0/C1 go through.

XXX for (1), we should expand FILE structure, but is possible only with
libc major # bump.
2000-12-23 12:37:18 +00:00
itojun
7448c8b5b4 avoid duplicated free() on initialization failure 2000-12-23 11:53:46 +00:00
itojun
bbbc605b71 change _INVALID_RUNE value - the old value (0xfffd) was selected when
rune_t was 16bit.

XXX PLEASE REBUILD YOUR LOCALE DEFINITION FILES BY:
# cd share/mklocale; make clean depend; make; make install
2000-12-23 10:52:34 +00:00
itojun
48fa1b17ab error code check mistake in LC_CTYPE handling 2000-12-23 08:22:40 +00:00
jdolecek
38f7c1d48b adapt to latest struct proc, struct sigacts, struct sigctx changes 2000-12-22 23:11:19 +00:00
itojun
ce0a5e58ed cope with runeglue.c failure better 2000-12-22 22:51:22 +00:00
itojun
85339e75d6 for setlocale(LC_CTYPE) failure, make sure to return NULL. 2000-12-22 22:28:09 +00:00
jdc
7a083b2f6e Libcurses minor bump. 2000-12-22 17:08:32 +00:00
jdc
c9e9551689 Revert the change to the `pc' capability from the previous change. Pointed
out in email by Thomas Dickey.
2000-12-22 17:07:12 +00:00
jdolecek
b5590faec8 previous change was not complete enough, so finish and make more correct:
for LC_ALL, return success if at least on of categories was loaded
successfully, error if no category was loaded; in the latter case, we don't
need to back off locale changes, since none happened
2000-12-22 16:50:08 +00:00
jdolecek
675dc9d35b __setlocale(): ignore errors in locale category load for LC_ALL - doing so
is not useful. This is same change as in rev 1.17.
2000-12-22 15:25:11 +00:00
itojun
6d24d8c968 set errno on wcrtomb() encoding error, on EILSEQ. 2000-12-22 06:29:40 +00:00
itojun
4d799da3d4 mbrlen is equivalent to mbrtowc with 1st arg NULL (mentioned in spec). 2000-12-22 06:24:15 +00:00
itojun
ab9a937270 add wcsl{cat,cpy} 2000-12-22 05:23:27 +00:00
itojun
2c828fd4c7 add wcsl{cat,cpy} - outside of ISO/IEC 9899:1999,
but i believe it should be there.
2000-12-22 05:21:40 +00:00
itojun
f4f13f67be ad manpage for wide character string manipulation (wmem*/wcs*) 2000-12-22 04:59:41 +00:00
itojun
d74cd8caeb manpage for tow*. 2000-12-22 02:18:58 +00:00