tshiozak
b50ac1a74f
fix lib/22023 - there were references to uninitialized variables.
2003-07-01 08:33:06 +00:00
wiz
b93a29cdaa
Fixes to make these man page look nice with groff-1.19.
2003-06-30 19:12:31 +00:00
christos
6363afb646
use __attribute__((__packed__)) instead of __packed.
2003-06-30 17:54:13 +00:00
kleink
5a44432bf1
Sprinkle some restrict.
2003-06-30 15:14:17 +00:00
wiz
03cb7d2b4f
Remove .UC -- not Berkeley Distribution man pages.
2003-06-30 14:18:56 +00:00
tshiozak
a8076e0474
add #include "config.h" when these files are built as parts of host tools.
2003-06-30 12:32:21 +00:00
wiz
23ea338b1b
Use a better width argument.
2003-06-30 12:02:08 +00:00
tshiozak
cba952da4e
u_int*_t -> uint*_t.
...
I would like to use stdint.h, but it is too modern for the host tools.
u_int*_t are more popular under UNIX-like systems, although they are
not backed up with any standards.
(src/tools/compat/stdint.h is maybe necessary.)
2003-06-29 17:30:07 +00:00
jdc
5572bca927
Make the refresh complete in the presence of multiple sub-windows.
...
Match function names in the debug output.
2003-06-28 21:11:43 +00:00
wiz
a8f1dff65a
Add Ns.
2003-06-27 18:57:09 +00:00
wiz
e19fe12b03
Remove superfluous comma.
2003-06-27 18:01:08 +00:00
wiz
b50ca43043
Pa Aq -> Aq Pa; Sy Pa -> Sy.
2003-06-27 17:59:33 +00:00
tshiozak
82d5554eda
sync with the last change for citrus_hash.h.
2003-06-27 17:53:31 +00:00
tshiozak
2aa99730ce
make sure to use LIST_* macros defined in sys/queue.h.
...
pointed out by yamt@netbsd.
2003-06-27 17:43:15 +00:00
wiz
cc45dace72
Use Aq Pa instead of Fd \*[Lt]...\*[Gt].
2003-06-27 15:33:24 +00:00
yamt
d71154b0e4
in _citrus_ctype_btowc_fallback() and _citrus_ctype_wctob_fallback(),
...
use enough size byte arrays, instead of abusing mbstate_t.
just pedantic. no functional change is involved.
2003-06-27 14:52:25 +00:00
wiz
e414629c30
Pa Aq -> Aq Pa so that both work.
2003-06-27 14:50:31 +00:00
wiz
2b8b2a8b6f
Quote question mark and brace.
2003-06-27 14:24:16 +00:00
wiz
2e906114a3
Remove superfluous "".
2003-06-27 14:23:24 +00:00
wiz
3e884db9b9
Quote question mark.
2003-06-27 14:03:45 +00:00
wiz
6e5644d28c
Aq Pa instead of Pa Aq.
2003-06-27 13:58:51 +00:00
wiz
2a0c101d51
Remove superfluous semicolon.
2003-06-27 13:23:11 +00:00
wiz
551b587f30
End sentence with a dot.
2003-06-27 13:17:02 +00:00
wiz
1f45225df4
Fix typo in macro name, and remove a trailing comma.
2003-06-27 13:05:08 +00:00
wiz
6f235494c5
Fix typos in macro names.
2003-06-27 13:02:27 +00:00
yamt
8822a3e83e
$NetBSD $ -> $NetBSD$
2003-06-27 12:55:13 +00:00
wiz
1ff0ecb2a4
This man page is in section 2, not 3.
2003-06-27 12:23:08 +00:00
wiz
b0e8e1d6c7
SYNOPSIS is not a good place for C comments;
...
also, simplify macro usage.
2003-06-27 12:04:36 +00:00
wiz
e0c3e5d8e2
This man page is in section 2, not 3.
2003-06-27 11:51:07 +00:00
itojun
c7ca01fc7d
i guess the original intent was this...
2003-06-27 08:58:18 +00:00
itojun
877654378b
memset() after null check
2003-06-27 08:56:07 +00:00
itojun
29aff1f984
clear memory after malloc()
2003-06-27 08:50:47 +00:00
tshiozak
284734d7ec
bump libc version because of iconv.
2003-06-27 06:05:08 +00:00
tshiozak
ff5c3e6895
Citrus iconv support(4)
...
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
- bump libc minor.
- add iconv data files.
- create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00
itojun
7a580d5968
clear malloc'ed memory. sync w/kame
2003-06-27 03:40:44 +00:00
nathanw
6a0c6dddb7
Preferentially read context pointer from pt_trapuc.
2003-06-26 21:51:59 +00:00
dsl
14b491c2c5
Stop refresh(subwin) doing refresh on the other subwin's created before it.
...
(If nothing else the cursor would get left in the wrong place).
Fix some if (!flags & MASK) checks.
2003-06-26 17:17:10 +00:00
dsl
b70727e760
Error attempts at nested subwindows, the data structures don't support them.
...
I can't quite decide whether the X/Open Curses Issue 4, version 2 needs them.
2003-06-26 17:13:55 +00:00
wiz
f899ab9b92
There is no FreeBSD-3.3.0, only FreeBSD-3.3.
2003-06-26 12:25:22 +00:00
tshiozak
f3995f1ad3
correct wcrtomb(3) - it is not conforming to standard on handling L'\0'.
...
This change also affects Citrus iconv engine.
2003-06-26 12:09:56 +00:00
tshiozak
f77c39f209
make sure that key is case-insensitive.
2003-06-26 12:05:04 +00:00
dsl
c7ba282830
Stop blank line being added when newline is processed with __ISPASTEOL set.
2003-06-26 10:22:33 +00:00
wiz
5231f1f288
Remove trailing whitespace.
2003-06-26 10:01:18 +00:00
wiz
85cf615bd0
Work around a warning from groff-1.19.
2003-06-26 10:00:24 +00:00
wiz
73d12a57ca
Fix typo in macro.
2003-06-26 09:50:49 +00:00
nathanw
9639eeaf54
Adapt to pt_trapuc: change STACK_SWITCH to check for a value in pt_trapuc
...
and use it preferentially to a value in pt_uc, clearing it once on the new
stack. Move stores into pt_uc back to before the stack switch; storing
after the stack switch opened a one-instruction race condition where an upcall
that had just started a chain could be preempted again, and would bomb when
restarted due to its pt_uc not yet having been updated. Now that pt_trapuc
is what the upcall code writes to, it is safe to store to pt_uc before
switching stacks.
Remove obsolete pt_sleepuc code.
2003-06-26 01:45:31 +00:00
nathanw
487eb7e193
Initialize pt_trapuc in pthread__initthread().
2003-06-26 01:30:39 +00:00
nathanw
1414a095ac
Remove PT_SLEEPUC and add PT_TRAPUC.
2003-06-26 01:29:28 +00:00
nathanw
81a27fd0b2
Adapt to pt_trapuc: Store context obtained from upcalls there, clear it
...
in switchto targets and vitims, and print it in debug messages (including
indication of whether a context is trap or user context).
Remove obsolete pt_sleepuc handling.
2003-06-26 01:28:14 +00:00
nathanw
1af6125572
Clear pt_trapuc when idling threads.
2003-06-26 01:26:39 +00:00
nathanw
2534cd2bea
Introduce a new pointer, pt_trapuc, that stores thread context captured
...
by the kernel. Separating this from pt_uc makes it possible to avoid a race
condition in pt_uc management near the STACK_SWITCH part of pthread__switch()
and pthread__locked_switch().
Remove pt_sleepuc pointer, which was made obsolete by the previous round of
UC juggling but still present in the assembler files.
2003-06-26 01:26:11 +00:00
nathanw
3ca7487c30
More printf format size tweaks.
2003-06-25 23:26:00 +00:00
nathanw
4a9ac109f0
Complain clearly if SA syscalls aren't avaliable.
2003-06-25 23:23:27 +00:00
tshiozak
d710132b4b
Citrus iconv support(2)
...
add new plugin modules and bump minor (because of some new I/Fs).
2003-06-25 10:38:01 +00:00
tshiozak
04e58308a3
Citrus iconv support (1)
...
add core engine of Citrus iconv and some support routines.
- iconv core (citrus_iconv)
- coded character set mapper (csmapper)
- encoding scheme database (esdb)
- standard encoding scheme handler (stdenc)
- basic character set manipulation utilities (bcs)
- mmap based infrastructure (citrus_lookup/_mmap/_memstream/_db)
- some source codes of new plugins (not built yet)
2003-06-25 09:51:26 +00:00
nathanw
39f9ecfa06
Oops, reordering the PT_STATE/PT_SWITCHTOUC/PT_SWITCHTO assembly
...
killed a live value too soon. Fix by using a different register for
the PT_STATE immediate.
2003-06-24 18:54:56 +00:00
nathanw
96458e8892
Update the switch_return point name in the static case.
2003-06-23 22:50:23 +00:00
christos
40e148ef6b
PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation.
2003-06-23 21:32:33 +00:00
uwe
b92f152573
First bits of SH3 support. Only _context_u.S is implemented (passess
...
cu[1-6] tests), the pthread_switch.S is stubbed out for now.
Code posted by Christian Groessler (cpg at aladdin dot de) to port-sh3.
2003-06-23 19:34:43 +00:00
christos
d695477b73
PR/21963: MAEKAWA Masahide: Don't free(dirp) before its last use.
2003-06-23 14:35:38 +00:00
uwe
439470c9f0
Registers _REG_Ri defines are numbered backwards, so when we fill
...
r4-r7 with arguments, use the correct *minus* i to compute the i-th
register index.
2003-06-23 10:45:20 +00:00
jdc
11f267a000
Add noqiflush() and qiflush()
...
Fixes PR lib/20037.
2003-06-20 06:58:53 +00:00
jdc
c521d02fce
Add keyname().
...
Fixes PR lib/20033.
Allow SMALL to be defined, to reduce the size of the library.
2003-06-20 06:56:29 +00:00
christos
96759472a4
provide a definition for __attribute__
2003-06-19 16:19:42 +00:00
christos
9b8791db6c
From michael@moria.de:
...
Fix realloc case where we could be running out of space if too many matches.
2003-06-19 16:04:57 +00:00
christos
839ca00b3c
From michael@moria.de:
...
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
martin
f546abe798
Catch up with Nathan's changes to other archs.
2003-06-17 23:18:48 +00:00
nathanw
876d7e7eec
Dodge a potential race condition in pthread__debuglog_printf(). It's
...
still possible for multiple threads to write into the same space, but
they shouldn't be able to corrupt the write pointer in the process.
Also, check for pointer-lapping a bit more carefully in the wrap
vs. non-wrap case.
2003-06-16 21:24:48 +00:00
martin
aba86b525b
Catch up with changes Nathan did to other archs.
2003-06-15 17:11:36 +00:00
scw
7d221cb560
Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
2003-06-13 08:07:03 +00:00
scw
04f197eae9
Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
...
Compile-tested only.
2003-06-13 07:45:17 +00:00
itojun
3abc10868f
add $NetBSD$
2003-06-13 04:09:18 +00:00
lukem
34795551b8
add const qualifiers to match md{2,4,5}.h
2003-06-13 01:28:41 +00:00
nathanw
4bd45b7b3b
Oops, that's switch_return_point, not locked_return_point. The perils
...
of cut-and-paste.
2003-06-12 23:19:27 +00:00
provos
0275e3fef4
enable building the library and the regression test
2003-06-12 23:18:07 +00:00
provos
f67349cc61
fix warnings
2003-06-12 23:07:58 +00:00
nathanw
aa6f5de228
STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;
...
increase to match.
2003-06-12 23:01:17 +00:00
nathanw
eb6ba6fbef
Apply switch-away fix and previous save-PT_UC from new stack fix.
2003-06-12 23:00:28 +00:00
provos
13993283c2
import of libevent; an event abstraction library that supports kqueue and
...
poll on NetBSD.
2003-06-12 22:54:25 +00:00
fvdl
1a31b8db4d
Apply Nathan's switch-away fix.
2003-06-12 22:03:18 +00:00
nathanw
b43f1c7405
In pthread__resolve_locks(), change the conditions for removing a normal
...
thread from the continuation chain: Not only must it have released all
spinlocks, but it must have signaled completion by finishing pthread__switch
or by having stored into pt_switchto.
Together with the previous pthread_switch.S changes, this fixes a couple of
crasehes caused by race conditions in the examination and use of pt_next,
and by switching to empty pt_switchtouc's.
2003-06-12 21:49:42 +00:00
nathanw
f866ba061d
Two fixes:
...
* In switch-away cases, write PT_SWITCHTO last (after PT_SWITCHTOUC), so
that pthread__resolve_locks() doesn't see an empty SWITCHTOUC value. This
also permits pthread__resolve_locks() to use the presence of PT_SWITCHTO
as a sign that the thread has done all of its necessary chain work.
* Make the return-point of pthread__switch global and visible, so that its
address can be compared to the PC of a thread, again as a sign that its
chain-work is done.
(other architectures in progress, after they get the *previous* asm fix...)
2003-06-12 21:46:03 +00:00
nathanw
edc79413b1
Don't need to set the MSR field here; _INITCONTEXT_U_MD() takes care
...
of that where necessary.
2003-06-12 19:09:45 +00:00
wiz
a484727e05
Adapt to current sys/socket.h. Noted by MAEKAWA Masahide in PR 21849.
2003-06-11 07:11:09 +00:00
jdc
44d2f865a0
Mark all lines on new pads as dirty. This ensures that we draw blank
...
(untouched) lines when the pad is refreshed.
2003-06-09 06:58:11 +00:00
thorpej
e714d726a6
$NetBSD$, not $Header$.
2003-06-08 06:44:28 +00:00
yamt
795dfe8877
- change default message size for udp to UDPMSGSIZE(8800) from 8192.
...
(to be compatible with pre-TIRPC)
- bump message size limit to 256k.
from FreeBSD's rev.1.3.
2003-06-07 07:41:41 +00:00
nathanw
877f89857f
Tiny bit of infrastructure for ABI-supported thread-ID storage.
2003-06-06 21:06:07 +00:00
nathanw
1809ee5c2c
Fix typo in comment.
2003-06-06 19:35:03 +00:00
wiz
aeeb4fe3d0
Grammar, spelling, markup fixes from jmc@openbsd.
2003-06-06 13:42:49 +00:00
wiz
4ed8aa82ed
Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. From jmc@openbsd.
2003-06-06 13:33:17 +00:00
itojun
7a5741651c
- sync up MLD declaration with RFC3542 (s/MLD6/MLD/)
...
- routing header declaration with RFC3542
(note: sizeof(ip6_rthdr0) has changed!)
also, sync up with RFC2460 routing header definition (no "strict" source
routing mode any more)
part of advanced API update (RFC2292 -> 3542).
2003-06-06 08:13:43 +00:00
itojun
e72a5afeb3
KNF.
2003-06-06 06:43:18 +00:00
yamt
675f9cd51a
add a missing release_fd_lock.
2003-06-06 00:48:45 +00:00
matt
362ac6119e
Only return CC_EOF if ^D (VEOF) was the only thing on the line. Otherwise
...
beep and don't do anything else. This mimics the behavor of ^D outside in
normal terminal mode. (^D in vi scrolls forwards and as such isn't
appropriate to emulation)
2003-06-04 20:14:05 +00:00
nathanw
33314cffa1
Make infrastructure for man pages.
2003-06-03 21:34:00 +00:00
nathanw
5581819638
Man pages for libpthread, adapted from FreeBSD by Stephen Degler.
2003-06-03 21:33:06 +00:00
nathanw
380bb3a8b0
Man pages for libpthread, written by Stephen Degler.
2003-06-03 21:31:36 +00:00
uwe
0bbb587407
Add atoll(3) to libnbcompat. We need it when building target's gcc
...
for a 64-bit target on a 32-bit host.
NB: There seems to be a bug in either gcc itself or the way we import
it, b/c the incorrect #define HAVE_ATOLL is picked from (e.g. for
sparc64) gnu/usr.bin/gcc/arch/sparc64/auto-host.h - so when gen*
auxilary (host) programs are built in gnu/usr.bin/gcc/backend, they
incorrectly pick-up target's HAVE_ATOLL.
For now providing atoll(3) in libnbcompat is a simple and sufficient
workaround.
2003-06-03 03:16:48 +00:00
christos
dc1665b80b
Add pthread_attr_getstack{,size,addr} needed by jdk
2003-06-02 16:59:26 +00:00