drochner
598cd4e454
fix siginfo adaption -- the "compat_16" prefix
...
shouldn't be exposed as a symbol
2004-03-26 21:24:14 +00:00
drochner
85fa9b7250
fix references to the syscall formerly known as SYS___sigreturn14
2004-03-26 20:35:37 +00:00
drochner
67f778a2c4
fix references to the syscall formerly known as SYS___sigreturn14
2004-03-26 19:36:40 +00:00
drochner
954d4024f6
sigreturn14 is just for compatibility, not referenced by any new code
2004-03-26 19:31:05 +00:00
drochner
606b8ac15b
disembowel -- there is no kernel support anyway
2004-03-26 19:26:23 +00:00
he
2f47eb75f7
Modify this so that it actually compiles with gcc2.
2004-03-26 12:53:58 +00:00
wiz
073b7ea121
Bump date for previous; new sentence, new line;
...
remove duplicate word and fix a punctuation typo.
2004-03-25 20:02:04 +00:00
atatat
29e15c7932
Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
...
sysctl(8) into libc, making the minor number jump. Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc. That oughta cover it.
2004-03-25 19:36:26 +00:00
atatat
44afe14cb6
Unwind the nested designators for fields within structs within structs
...
(or unions). This should really be put back once we're all using gcc3
for everything, since that makes it look a *lot* cleaner.
2004-03-25 18:36:49 +00:00
drochner
65626c5d91
kill sigcontext passing to signal handlers, we don't have to worry
...
about compatibility
2004-03-25 14:21:29 +00:00
jdc
8dded85639
Change TSTP handler back to using signal().
...
This fixes a problem where vi would not suspend.
Also, make sure that the signal handlers aren't set or removed multiple times.
Finally, add debug output when the signal handlers are set and removed.
2004-03-25 07:35:40 +00:00
wiz
5f31e2f50a
Use Aq instead of \*[Lt]\*[Gt]; \- for a minus; remove
...
superfluous comma.
2004-03-25 01:13:32 +00:00
lha
8b387b156a
Fix a problem where pthread_kill can set a signal while the process
...
have the signal blocked, this ends up making target thread getting
later stuck in a loop if it uses pthread_sigmask.
ok, cl and christos
2004-03-24 20:01:37 +00:00
atatat
ce0d7254d4
Description framework for user-level sysctl nodes. Still haven't
...
written the descriptions.
2004-03-24 19:31:46 +00:00
snj
27d4257287
Bump date for last; avoid direct use of &, < and >; drop trailing space.
2004-03-24 19:10:46 +00:00
atatat
4723bb21ba
Bring sysctl man pages up to date (wrt new query interface, the
...
versioning, and descriptions).
2004-03-24 18:22:30 +00:00
atatat
c6abd47f96
New node version and layout. This should take care of the netbsd32
...
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
2004-03-24 17:21:02 +00:00
atatat
d42aae36c0
The new sysctl query interface returns the same information as the old
...
one, but you must pass in an empty node that indicates the version
you're using.
2004-03-24 16:34:34 +00:00
atatat
9b4aa5d493
Remove my private hack for watching how sysctl works. That's not
...
supposed to be there.
2004-03-24 16:29:10 +00:00
wiz
f3fef0b660
Increase width in tables so this displays more nicely.
2004-03-24 16:14:36 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
jdc
dd5d3aabfc
Add (missing) mvgetch() and mvwgetch() manual pages.
2004-03-23 21:56:53 +00:00
jdc
34e5b04618
Clarify the getch() family return values.
...
Add (missing) mvgetch() and mvwgetch().
2004-03-23 21:53:34 +00:00
jdc
3d248dff59
Change the values of ERR and OK.
...
This makes our getch() and related functions conform to SUSv2.
Also fixes PR lib/15920.
XXX: This causes an API incompatability, but comes less than 27 hours after
the libcurses major number was incremented, so should have minimal impact.
2004-03-23 21:35:29 +00:00
jdc
92cd5d7a66
We should check against NULL here.
...
From Brett Lymn.
2004-03-23 21:17:20 +00:00
pk
8a0244288a
Call PIC_PROLOGUE only once.
2004-03-23 19:07:40 +00:00
pk
dc7908cc61
Store the correct boolean value in sc_onstack.
2004-03-23 18:54:03 +00:00
pk
5e5e68672c
The sc_g1, sc_o0 members in the jmp_buf aren't used.
2004-03-23 18:47:55 +00:00
pk
de8223fe4d
Since libpthread may want to interpose signal handling, we can't directly
...
invoke the sigprocmask syscall trap. So build a stack frame and call
the signal handling functions by name.
2004-03-23 18:46:47 +00:00
drochner
a8c94ef1d3
simplify: it doesn't need an i387 to kill a sign bit
2004-03-23 17:11:35 +00:00
drochner
3219cdc550
replace the last occurence of an "int 0x80" syscall
2004-03-23 16:33:47 +00:00
drochner
cd85223ee2
save errno while trying to install a !SA_SIGINFO trampoline -- this
...
is expected to fail with !COMPAT_16 kernels, and we shouldn't
overwrite errno in this case
2004-03-23 16:19:40 +00:00
pk
d82ce85d20
Fix comment: g6 => o1
2004-03-23 16:13:27 +00:00
simonb
2b5fd0669b
Actually compile __longjmp14.c.
2004-03-23 12:31:52 +00:00
simonb
02082ea642
Restore the PC as well; also use mcontext register defines for accessing
...
the mcontext.
2004-03-23 12:31:17 +00:00
pooka
ae16b8b42b
update for 4.08
2004-03-23 08:40:36 +00:00
simonb
769814bf89
Use setcontext() instead of sigreturn() to implement longjmp().
2004-03-23 02:21:49 +00:00
simonb
339695cff5
Put the jmpbuf's FPCR in the ucontext, not the other way around.
2004-03-23 01:42:53 +00:00
simonb
270fda2783
Fix <tab> nits.
2004-03-23 01:41:47 +00:00
wiz
cb35afd77e
No comma in an enumeration of only two elements.
2004-03-22 19:51:18 +00:00
jdc
d1f213e76e
"New sentence, new line".
2004-03-22 19:11:28 +00:00
jdc
1dd2c9a89b
Increment major number (to 5) because of the libcurses major number change
...
and because of the change to key definitions in menu.h.
2004-03-22 19:01:28 +00:00
jdc
c73d2721d1
Change the key definitions so that they no longer collide with the ones in
...
libform. Do this because the library major number is changing (the libcurses
major number is changing).
Suggested by Brett Lymn,
2004-03-22 19:01:09 +00:00
jdc
ad95b1541c
Increment major number (to 4) because of the libcurses major number change
...
and because of the change to match_enum().
2004-03-22 19:00:09 +00:00
jdc
582694413f
Correct the fourth parameter to match_enum() to "exact" instead of "no blanks".
...
From Brett Lymn.
Part of the fix for PR bin/24604.
2004-03-22 18:59:48 +00:00
jdc
abf59ded7e
Increment major number (to 6) because of the change to KEY_MAX,
2004-03-22 18:57:58 +00:00
jdc
140349e83f
Because we are changing the libcurses major number, remove can_change_colors()
...
and change the attribute definitions so that we can support more colour pairs.
2004-03-22 18:57:38 +00:00
jdc
efc30049d8
Add KEY_RESIZE support and a SIGWINCH handler.
...
Fixes PR bin/20032.
This requires a change to KEY_MAX, which affects libform and libmenu, so we
need to change libcurses major number.
2004-03-22 18:57:10 +00:00
martin
f85414fd31
Simplify slightly and fix a comment.
2004-03-22 18:35:51 +00:00
wiz
848e689872
Typo fix, from skrueger at europe com.
2004-03-22 13:41:09 +00:00
pk
3aa621c910
Use setcontext() instead of sigreturn() to implement longjmp().
2004-03-22 12:35:04 +00:00
groo
19aa054c0d
Actually install the new man pages.
2004-03-22 00:48:04 +00:00
matt
4b376ded6a
Change longjmp on VAX (ELF) to use setcontext instead of sigreturn14.
2004-03-21 18:19:52 +00:00
matt
ca145383c7
Change longjmp to use setcontext instead of sigreturn14. Change setjmp
...
to use symbolic offsets via assym.h
2004-03-21 18:04:27 +00:00
mrg
3b66f6e642
clean up my copyright
2004-03-21 05:47:44 +00:00
mrg
05cd119306
remove my copyright statement
2004-03-21 05:46:42 +00:00
groo
80ddfc8cb9
update documentation from 0.9.7b to 0.9.7d
2004-03-20 21:48:44 +00:00
kleink
78a2369a15
Make casing in previous consistent.
2004-03-19 19:30:23 +00:00
kleink
ddfc3e5143
%% doesn't write anything; a literal % is matched. Noted by Hubert Feyrer.
2004-03-19 19:28:08 +00:00
scw
d25d657094
sigreturn14 is deprecated, so don't use it in longjmp.
2004-03-17 00:35:08 +00:00
wiz
789ce34c16
Remove duplicate article.
2004-03-16 19:51:08 +00:00
snj
9bfae9c898
Spelling fixes.
2004-03-16 19:27:35 +00:00
snj
dcf4b5a2bf
Spelling fix.
2004-03-16 19:26:56 +00:00
snj
668bade8ea
Spelling fixes.
2004-03-16 19:25:39 +00:00
snj
83b07697ca
Spelling fix.
2004-03-16 19:20:20 +00:00
snj
066778123d
Drop trailing whitespace.
2004-03-16 19:08:15 +00:00
wiz
f812f7e9a5
Fix off-by-one, okayed by jdc.
2004-03-16 10:58:25 +00:00
wiz
0cc0ff5935
Drop trailing space.
2004-03-16 09:46:36 +00:00
jdc
a02733d775
s/can_change_colors/can_change_color/
2004-03-16 07:55:05 +00:00
jdc
424b4f06a5
Clarify colour values that can be passed to init_pair().
2004-03-16 07:54:32 +00:00
jdc
ed325dfb85
Accept any negative number of init_pair(). Noticed by Peter Bex.
...
Swap red/blue and yellow/cyan if necessary in assume_default_colors().
2004-03-16 07:52:43 +00:00
jdc
a61e837cb5
gcc -Wuninitialized
2004-03-16 07:49:01 +00:00
jdc
404624e2be
We no longer need <signal.h>.
2004-03-16 07:48:18 +00:00
jdc
72d6b43902
s/colour/color/. From Douwe Keila.
2004-03-16 07:46:24 +00:00
jdc
6db03ed922
Minor style change.
2004-03-16 07:44:31 +00:00
yamt
936455ecbc
"Upcall handlers should be registered" -> "An upcall handler ..."
...
as only one handler can be registered.
2004-03-14 23:05:09 +00:00
wiz
60f9cb09db
Begin sentences with uppercase letters.
2004-03-14 20:57:49 +00:00
he
99f69b6c5f
It appears that <sys/lock.h> requires <sys/types.h>, so include that as well.
2004-03-14 12:49:31 +00:00
snj
ae6d7048fe
Spelling fix.
2004-03-14 10:36:09 +00:00
snj
63b1d00163
Fix macro usage and a slight English problem.
2004-03-14 10:22:06 +00:00
snj
cd1f209f54
English fix.
2004-03-14 10:21:22 +00:00
snj
2fdc7bef13
English improvements.
2004-03-14 10:20:43 +00:00
snj
4e8e4580a2
Fix macro usage, use Dv for SA_FLAG_STACKINFO, and English nits.
2004-03-14 10:19:59 +00:00
snj
bcba66f310
Minor English nits.
2004-03-14 10:18:33 +00:00
yamt
e71ca4ef99
some manpages of scheduler activation syscalls.
2004-03-14 09:18:45 +00:00
cl
f3f745b9af
fix comment for recent pthread_stack* var rename
2004-03-14 01:20:01 +00:00
cl
f2f106648c
add libpthread part of concurrency support for SA on MP systems
...
- enable concurrency according to environment variable PTHREAD_CONCURRENCY
- add idle VP wakeup if there are additional jobs and idle VPs
- make reidlequeue per VP
- enable spinning for locks
- fix race condition in alarm processing
- fix race condition in mutex locking
- make debugging output line buffered and add VP prefix to debug lines
2004-03-14 01:19:41 +00:00
wiz
15d1617c9e
Two grammar fixes from jmc@openbsd.
2004-03-13 23:46:37 +00:00
uebayasi
456930e651
Don't convert text if *.mo doesn't specify codeset.
...
Analyzed by Takehiko Nozaki, tested by Sean Davis, OK'ed by yamt.
2004-03-13 04:58:04 +00:00
enami
4604becb77
Sprinkle cast to prevent unwanted sign extension. Some of those actually
...
makes sed invoked during build process an out of bound array access.
2004-03-12 22:34:09 +00:00
drochner
ca430e5111
Really, there is no need to use the old int0x80 syscall entry just for
...
getcontext(). There are some registers not properly saved with the
new syscall entry, but these are calee-saved, scratch or meaningless.
It's the setcontext() return path what matters.
2004-03-09 20:21:22 +00:00
skrll
337520b409
Include bsd.own.mk before testing MKPIC
2004-03-09 20:04:00 +00:00
drochner
294b4fa9f2
we also have to reset bits in the i387 status
...
as required
2004-03-09 17:16:13 +00:00
drochner
b79602af35
-clear status bits in mxcsr as required
...
-return the old accumulated status bits
2004-03-05 16:27:56 +00:00
lukem
a19008b17f
Explicitly use base 10 when parsing numbers, to enforce the "decimal number"
...
semantics that the comments referred to and as per dd(1) (which was the
origin of this functionality).
2004-03-05 05:58:29 +00:00
wiz
49bcfb35d8
Call it Adler-32 consistently. From jmc@openbsd.
2004-03-05 01:30:52 +00:00
wiz
06588a00dd
Sort SEE ALSO, drop trailing space.
2004-03-04 23:49:31 +00:00
wiz
61e64d47d4
Sort SEE ALSO.
2004-03-04 23:47:56 +00:00
kleink
a19b383778
libc.so.12.113: isinf(), isnan().
2004-03-04 23:43:56 +00:00
kleink
8e54f10bf7
* Turn isinf(3) and isnan(3) into C99-style macros.
...
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
enami
119b5f631a
Don't call end{serv,proto}ent_r() on return. It results dangling pointer.
2004-03-04 02:30:41 +00:00
matt
eeabd92cc2
Add UC_STACK and stack_t related definitions.
2004-03-04 00:16:47 +00:00
matt
71f2db14c8
Use this to symbolically get into ucontext_t and struct sigcontext.
2004-03-03 22:58:34 +00:00
matt
3bd8b208cf
Add support to generate an assym.h if corresponding ARCHDIR contains a
...
genassym.cf.
2004-03-03 22:57:26 +00:00
matt
afc5614967
Copy this from libpthread so arch-specific .S files can use assym.h
2004-03-03 22:56:04 +00:00
thorpej
1cda93b426
Use the new RAS_*() macros.
2004-03-03 21:06:07 +00:00
drochner
4634f0716d
Don't zero a floating point variable on entry -- this causes the FPU to
...
be allocated needlessly by almost every program (at least on i386/amd64).
2004-03-03 11:19:05 +00:00
itojun
ca0ee478c7
use "%s" for err(), do not pass pointer directly. Pedro Martelletto
2004-03-01 23:06:21 +00:00
drochner
1dd7501db3
blow this up by sticking a copyright notice to it
2004-03-01 20:56:05 +00:00
drochner
c5bc0dada8
optimize this: we can use %ra for relocation directly
...
(saves 1 insn)
2004-03-01 20:43:19 +00:00
drochner
9560ce9b0f
we need a silly trampoline to make _resumecontext work
2004-03-01 19:26:29 +00:00
drochner
293e83e97e
get the offset to gp right
2004-03-01 18:32:51 +00:00
drochner
e9ee155221
Get the stack alignment right: the stack arguments must start
...
at a 16-byte aligned address, the return address is at an
"odd" address.
approved by fvdl
2004-02-28 15:57:21 +00:00
drochner
a839ccc650
alignment trouble: uc_link is at offset 8
2004-02-27 21:23:05 +00:00
christos
ac4e17d0c7
Better fix for rl_prep_terminal() from Gerry Swislow.
2004-02-27 14:52:18 +00:00
enami
5a257984e5
Fix indent and other whitespace usage.
2004-02-26 23:01:15 +00:00
drochner
37d3fd292f
the char we fill with shouldn't be sign-extended
...
(the way the length argument is dealt with looks suspicious
too, but this would only have an effect for >=2G fields)
this can probably be optimized...
2004-02-26 20:50:06 +00:00
drochner
3cac582c48
fix copyback from fp stack - we need 64 bits
2004-02-26 19:19:06 +00:00
taca
5509874609
Semantic fix for allocation size for malloc() and realloc() previously
...
modified. Allocation unit isn't sizeof(char **) but sizeof(char *).
Noted by Geoff Wing.
2004-02-25 06:28:10 +00:00
christos
e79fe4ef48
Fix allocation size bug from Takahiro Kambe.
2004-02-24 15:28:07 +00:00
wiz
73e1501b98
parameter with two es. From Peter Postma.
2004-02-24 15:22:01 +00:00
wiz
85746c6759
Spell interrupt with two rs. From Peter Postma.
2004-02-24 15:16:04 +00:00
wiz
f05e6f1a3a
occured -> occurred. From Peter Postma.
2004-02-24 15:12:51 +00:00
christos
d3516aeed5
- fix a memory leak on the current line buffer.
...
- fix a memory leak on realloc failure.
2004-02-23 16:06:52 +00:00
uwe
ad788cab09
In gcc3 world the "millicode" must be provided by libgcc*.a, so don't
...
include it in libc.
2004-02-22 01:05:49 +00:00
cl
e9598cefd0
Actually test pthread__dbg to check if another gdb is attached (and not
...
pthread__tsd_destructors whose address happens to be in addr).
2004-02-21 20:48:11 +00:00
christos
9f2ccd7938
Separate tty separation from the prompt printing function. From Gerry Swislow.
2004-02-21 16:42:30 +00:00
christos
2b03200f1f
servent_r/protoent_r additions
2004-02-19 19:31:06 +00:00
christos
d68ecdf1c9
getservent_r/getprotoent_r
2004-02-19 19:27:53 +00:00
christos
ec210d4a19
Implement the non-reentrant ones using the reentrant ones.
...
Name files by function name.
2004-02-19 19:27:26 +00:00
christos
7782337bb7
_r functions for services and protocols; also add the inet_cidr_* function
...
which will come next.
2004-02-19 19:22:51 +00:00
christos
8059eed1bc
Re-entrant versions of services and prorocols functions.
2004-02-19 19:21:44 +00:00
atatat
42d379d041
Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro.
2004-02-19 03:57:56 +00:00
lukem
aff9207208
document svcudp_create
2004-02-16 02:39:36 +00:00
christos
146f07a922
Fix the non working unctrl mess:
...
1. delete the incorrect duplicate macro from unctrl.h
2. move unctrl macros from curses.h to unctrl.h and make curses.h include
unctrl.h in curses.h instead of duplicating their definition.
3. constify unctrl arrays; make length unsigned.
2004-02-14 18:23:45 +00:00
simonb
216a472c99
Use -fPIC only if MKPIC isn't "no".
2004-02-14 08:41:58 +00:00
simonb
fb8a44d89d
Don't build lcrt.o (version of crt0.o that looks in /libexec/ for the
...
shared linker) if we have MKPIC=no.
2004-02-14 07:48:37 +00:00
wiz
e3fc4b66c3
Spell the plural of suffix "suffixes", not "suffices".
...
Inspired by PR 24400 by Todd Vierling.
2004-02-13 17:56:17 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
wiz
0568bf7421
Uppercase CPU.
2004-02-13 09:55:51 +00:00
kleink
d141a7411d
Forgot to build signbit() library parts in previous; noticed by mrg.
2004-02-12 10:28:28 +00:00
nathanw
26ed28badd
td_thr_getregs(): Return errors when the requested bit of register state
...
isn't in the ucontext.
td_thr_getregs(), td_thr_setregs(): Use "xreg" macros when defined.
2004-02-11 21:07:18 +00:00
nathanw
94fc83a6be
Add ucontext conversion macros for an "extra" register set.
2004-02-11 21:04:10 +00:00
jmmv
70eabe78c3
List sys/param.h as a prerequisite of sys/sysctl.h. Bump date.
2004-02-10 12:48:48 +00:00
lukem
6dbd72c053
MAKEVERBOSE messages
2004-02-08 22:52:41 +00:00
nathanw
193a376007
Test pt_blockgen against pt_unblockgen, not against itself, to check
...
for blocked-in-kernel situations.
2004-02-03 20:26:16 +00:00
nathanw
0a6afcc70d
Rename pt_stacksize, pt_stacksize_lg, and pt_stackmask to pthread_*. External
...
symbols can't start with pt_, as that is in the application namespace.
2004-02-02 20:36:18 +00:00
nathanw
b2f27acb27
Do all the symbol lookups at td_open() time and cache them in the td_proc_st.
...
Make the stacksize lookups and data part of td_proc_st rather than global state.
2004-02-02 20:08:27 +00:00
uebayasi
fa3c270527
Minor KNF.
2004-01-31 16:56:12 +00:00
wiz
9af86fc6f2
Fix two typos, and remove a superfluous comma.
2004-01-30 16:03:50 +00:00
wiz
7fcc4d6c6b
Sort SEE ALSO.
2004-01-30 15:38:47 +00:00
christos
fa6c746b59
cross reference sticky(7)
2004-01-30 15:31:27 +00:00
wiz
375b7a6d24
Use -literal instead of -unfilled Bds; replace OpenBSD with .Ox;
...
<> -> \*[Lt]\*[Gt].
2004-01-29 15:23:09 +00:00
mrg
42d0909cf9
add two functions to zlib: gzopenfull() and gzdopenfull() that both take
...
additional "const char *savename" and "u_int32_t mtime" parameters that
are written out into the gzip header in the mtime field and as the original
filename.
2004-01-29 13:08:19 +00:00
itojun
4348bc0770
whitespace KNF
2004-01-29 08:25:28 +00:00
tsarna
72489e1ea0
uuidgen(2) syscall. Originally from FreeBSD, ported by John Franklin in
...
PR#23470, with minor updates by me. This is only the syscall support
from that PR, for now.
Changes: port over fix from FreeBSD for multicast address generation.
Changed bcopy to memcpy. For now, #ifdef notyet the portions of
kern_uuid.c that are meant to be used by (currently nonexistent) other
things in the kernel. Added syscall to COMPAT_FREEBSD as well, though
that's currently not useful, as any program new enough to use this call
also uses other syscalls we don't (yet) emulate.
2004-01-29 02:00:02 +00:00
lukem
b763e0987d
Use the correct parameters when building the YP map name in _yp_getnetbyaddr().
...
Fixes getnetbyaddr() when reading from YP. From Brian Ginsbach in email.
2004-01-29 01:39:15 +00:00
lukem
b776c8e6bb
Retain the euid of the target user whilst reading the
...
.rhosts file. This allows it to have a mode of 600
and still function correctly even when used on an NFS
client with uid 0 mapped to another (anonymous) UID.
Patch from Brian Ginsbach <ginsbach@cray.com>,
and fixes [bin/14880] from Darren Reed <darrenr@>.
2004-01-27 11:46:34 +00:00
lukem
c5a53802fe
Use syslog(3) instead of err(3) to log errors.
...
Based on email conversation with Brian Ginsbach.
Add '%option never-interactive' to nslexer.l, to prevent isatty() from
being called unnecessarily.
Per discussion on current-users@ between Christian Biere and Greg Woods.
2004-01-25 16:38:15 +00:00
wiz
cef0afe940
Lots of grammar and wording changes from jmc@openbsd, with some
...
additional consistency changes by me.
2004-01-24 16:58:54 +00:00
wiz
36f4f7f5c3
Misc fixes from jmc@openbsd.
2004-01-24 15:33:43 +00:00
martin
9ee271adfd
If the syscall fails, the carry bit will be set - not the zero bit.
2004-01-23 13:45:43 +00:00
blymn
316f67d63e
Add defines MIN_FORM_COMMAND and MAX_FORM_COMMAND for ncurses
...
compatibility. This closes PR 20029.
2004-01-23 13:01:17 +00:00
jmmv
be85fac5e9
Fix typo: 'Each characters' -> 'Each character'
2004-01-21 12:40:14 +00:00
jonathan
f0d1f46d5b
Do runtime dynamic binary-search for maximum obtainable bpf capture
...
size (via BIOCSBLEN). Obtained from FreeBSD 4.x; originally from
http://www.tcpdump.org's version of libpcap.
Taken verbatim from the FreeBSD 4.9 version, lint and all, other than
increasing the maximum size from 32Kibyte to an extremely generous
4Mibytes. We assume root will configure the in-kernel maximum value
sensibly on small-memory machines.
2004-01-20 23:31:20 +00:00
matt
1373fa4222
s/sgn/sign (compiles now)
2004-01-20 19:41:30 +00:00
matt
8863e1ea05
Make these compile too.
2004-01-20 19:33:19 +00:00
matt
2758365e99
Make these compile.
2004-01-20 19:29:43 +00:00
yamt
0cb9ad6acb
fix a comment; nl_langinfo(CODESET) belongs to LC_CTYPE, not LC_MESSAGES.
2004-01-20 12:04:48 +00:00
wiz
071711957c
Use standard comment format. Fix typo. From Douwe Kiela.
2004-01-20 08:31:46 +00:00
wiz
81a9cc23f5
Add function descriptions. From Douwe Kiela.
2004-01-20 08:30:55 +00:00
wiz
4d74fb0ff9
Improve function descriptions. From Douwe Kiela.
2004-01-20 08:30:41 +00:00
wiz
60c0778ca6
Grammer fix. From Douwe Kiela.
2004-01-20 08:29:29 +00:00
wiz
c365bab896
Mini KNF. From Douwe Kiela.
2004-01-20 08:29:09 +00:00
wiz
27297af537
Fix recurring typo in comments. From Douwe Kiela.
2004-01-20 08:28:26 +00:00
wiz
3a7de20e0d
Add mv{,w}inch{,n}str. From Douwe Kiela.
2004-01-20 08:27:47 +00:00
wiz
a99c798fbb
Add mv{,w}inch{,n}str and mvwscanw.
2004-01-20 08:26:44 +00:00
martin
dff5a86b96
Too sad - inlining syscall stubs on sparc64 is so much easier than doing
...
PIC calls to the libc stubs, but unfortunately we need to do the latter-
otherwise we break weak symbol semantics and make libpthread fail.
Thanks to Christian Limpach for the analyzis.
2004-01-19 18:33:21 +00:00
martin
f04f3a62db
Forgot to mention in last commit message: remove some accidently commited
...
debug code.
2004-01-19 18:20:35 +00:00
martin
fd70c1464d
Unfortunately we can not restore the signal mask with setcontext() - this
...
breaks libpthread, which tries to intercept the weak sigprocmask symbol.
So use an explicit sigprocmask call instead.
2004-01-19 18:19:33 +00:00
martin
e032233866
Store the "signal mask saved" flag at the end of the jmp_buf - we now use
...
more of it than before (and I bet the old place just is a non translated
32bit sparc value).
2004-01-19 18:17:21 +00:00
kleink
9f0429b6cc
; may be a comment character in assembly, use \n as a separator instead.
...
This instance spotted by Martin Husemann.
2004-01-19 16:18:33 +00:00
matt
3d2a90fb95
Make this compile.
2004-01-18 19:33:01 +00:00
yamt
570948990d
add an ARGSUSED.
2004-01-18 08:54:02 +00:00
yamt
1318d6326f
comment.
2004-01-18 08:53:09 +00:00
yamt
f3ec2d5725
implement gettext implicit iconv and bind_textdomain_codeset.
2004-01-18 08:40:40 +00:00
yamt
c5bbd9dca0
_citrus_NONE_stdenc_wctomb: return E2BIG correctly.
2004-01-18 03:57:30 +00:00
dbj
1d81763357
print max rather than min in error message when number
...
parsed by strsuftollx is greater than max
2004-01-17 23:02:51 +00:00
martin
2f3e9d2cf8
Avoid using the depreceated __sigreturn14 for longjmp by adapting
...
Christian Limpachs arch/m68k implementation using setcontext().
2004-01-17 22:01:15 +00:00
christos
c8d67a7da2
portability fixes.
2004-01-17 17:57:40 +00:00
cl
359b937c80
- delay making a thread unblocked until it's put on the runqueue.
...
- simplify handling of blocked idle threads.
This should fix the ``assertion "target->pt_state != PT_STATE_RUNNING
|| target->pt_blockgen != target->pt_unblockgen" failed'' problem
reported by Marc Recht and Steve Bellovin on current-users.
Also g/c unused pthread__sched_bulk call left over from pthread_sa.c
rev. 1.22 change.
2004-01-16 15:23:31 +00:00
ragge
ead753d26d
Fix typo fpclassifd.c -> fpclassifyd.c, reported by Bertram Barth.
2004-01-16 10:46:11 +00:00
wiz
3ce85dd47a
inifities are probably infinities.
2004-01-15 20:31:40 +00:00
wiz
51008fe87a
I guess ture means true.
2004-01-15 20:30:46 +00:00
kleink
bb37e9c818
libc.so.12.110: fpclassify(), isfinite(), isnormal(), signbit().
2004-01-15 19:44:46 +00:00
kleink
d82e732345
Add C99 fpclassify(), isfinite(), isnormal(), and signbit() macros.
2004-01-15 19:43:44 +00:00
mrg
3c36c70c82
fix a typo
2004-01-11 16:05:27 +00:00
cl
c8017c0dc6
- add deadlock check to pthread_rwlock_wrlock and pthread_rwlock_timedwrlock
...
- return EPERM when unlocking a lock which isn't held
=> prevent the failure in PR 24023, where the citrus code had a deadlocking
code path
- remove deadlock check in pthread_rwlock_tryrdlock, return EBUSY instead
=> makes pthread_rwlock_tryrdlock standards compliant
2004-01-09 18:08:28 +00:00
christos
7d6187a689
PR/24023: Min Sik Kim: Don't deadlock while closing mappers. The module
...
uninit function can call close again, which will try to obtain a held
lock. Unlock the lock before calling the actual close function, since
we already disassociated cm from the rest of the data structures.
2004-01-08 19:23:19 +00:00
wiz
70cfe67d9f
There is no sysctl(9) (yet?), comment it out;
...
fix a typo.
2004-01-08 09:21:35 +00:00
wiz
6807f73559
Fix some spacing nits, an Xref section, and a long line.
...
Bump date for previous.
2004-01-08 09:12:57 +00:00
atatat
76f7bb35fd
Add descriptions of flags.
2004-01-07 21:25:14 +00:00
christos
46f02625cb
- Describe all system threads.
...
- Mention all MI threads that are not device specific; i.e. mention scsibus,
usb, raidframe, nfs, but not pms.
2004-01-07 16:26:23 +00:00
agc
40069685c3
Make this compile, and, as a side-effect, LP64 clean.
2004-01-06 11:29:30 +00:00
itojun
12eeb195bb
kill strcpy
2004-01-06 08:08:44 +00:00
itojun
8047470762
sys/types.h is not needed here. kevlo@openbsd
2004-01-05 19:21:00 +00:00
augustss
a6cfb45c19
The report size is not a local item, so don't clear it when clearing local items.
2004-01-05 17:55:48 +00:00
christos
8a293ad181
Document F_MAXFD, F_CLOSEM
2004-01-05 00:34:34 +00:00
martin
f6ee845eac
Fix a cast for little endian archs
2004-01-03 23:50:47 +00:00
martin
a2c6783de5
When writing/reading longs use explicit 32bit temporary values (this is
...
what "long" means in xdr context).
Fixes PR lib/23960.
2004-01-03 23:01:41 +00:00
wiz
a004e52a39
Uppercase CPU; mark up NULL; remove superfluous word; simplify macro usage.
2004-01-03 13:09:44 +00:00
atatat
9cfe841137
At long last, add descriptions of new "dynamic" operations.
2004-01-03 06:06:36 +00:00
martin
ba54915063
Fix two inverted comparisions and a few comments.
...
This makes sparc64 pass the sigsetjmp regression tests.
2004-01-02 22:30:36 +00:00
itojun
0169ab0afa
minor KNF
2004-01-02 22:19:51 +00:00
itojun
35f883b08a
KNF
2004-01-02 21:49:35 +00:00
cl
f35871411a
make siglongjmp out of a signal handler work:
...
- strong alias __sigprocmask14 to pthread_sigmask
- call _sys___sigprocmask14 where appropriate
- make pthread_sigmask not set the signal mask lazily when pthreads
aren't started yet
2004-01-02 19:24:44 +00:00
cl
33622a5943
userland part of no-syscall upcall stack return
...
- add pt_stackinfo to struct __pthread_st
- add pthread__stackinfo_offset returning the offset from ss_sp to
pt_stackinfo
- pass stackinfo_offset to sa_register and set SA_FLAG_STACKINFO to
make the kernel use it
- call pthread__sa_recycle in pthread__resolve_locks; g/c recycleq and
pthread__recycle_bulk
- return stack in pthread__sa_recycle by incrementing sasi_stackgen
- make pthread__sa_recycle debugging output formatting conditional on
pthread__debug_newline
2004-01-02 19:14:00 +00:00
cl
90e89977d4
- libc.so.12.109 and libpthread.so.0.4
...
- add ssize_t stackinfo_offset argument to sa_register syscall
- remove sa_unblockyield syscall
- make __sigprocmask14 syscall weak
- in pthread__sa_start: catch up with 4-argument sa_register syscall
2004-01-02 18:56:39 +00:00
jmmv
8ab300d124
Fix typo; from Aidan Kehoe in PR lib/23951.
2004-01-02 17:06:21 +00:00
jmmv
2fec59e8d0
Fix typo; from Aidan Kehoe in PR lib/23950.
2004-01-02 17:04:52 +00:00
martin
ce5186b58b
Restore stack frames on error return.
2004-01-02 14:31:31 +00:00
cl
91d9c8c22f
pthread__upcall: output LWPid in SA_UPCALL_BLOCKED case
2004-01-02 14:29:22 +00:00
cl
677748c645
logging/debugging changes:
...
- add PTHREAD_PID_DEBUG which prints the pid before each debuglog line
- output thread returned in pthread__next
- add asserts in pthread__sched akin to asserts in pthread__sched_bulk:
check if scheduled thread is at front/end of queue
- pthread__upcall: output event/interrupted LWP count instead of LWPid
of the first event/interrupted LWP (since unblock upcalls can have
multiple event LWPs).
- pthread__find_interrupted: output LWPid here
2004-01-02 14:13:16 +00:00
martin
97ab4e62e3
Restore stack frames on error exit. This makes us pass dynamic and static
...
linked versions of the clonetest regression test.
While here, some cosmetics: branch prediction, avoid depreceated instructions.
2004-01-02 14:06:51 +00:00
itojun
855852a04b
comment on values from 0x80000000 to 0xffffffff
2004-01-02 12:27:41 +00:00
itojun
5d489a8a2a
safer realloc
2004-01-02 12:25:46 +00:00
itojun
64d2443254
safer realloc, some KNF. noted by deraadt@openbsd
2004-01-02 12:19:25 +00:00
itojun
edffd45884
use strlcpy
2004-01-02 12:10:48 +00:00
lukem
d597f546a1
Add dependencies to assym.h on:
...
pthread.h pthread_int.h pthread_md.h
Should help prevent the problem I raised in [kern/23946], based on
a hint from Christian Limpach.
Add MAKEVERBOSE support.
2004-01-02 01:37:53 +00:00
cl
36ee225d9a
catch up with block/unblock changes in libpthread
2003-12-31 16:46:34 +00:00
cl
82b6b2dbda
Handle block/unblock for threads in critical section without
...
sa_unblockyield.
XXX g/c sa_unblockyield in kernel later
2003-12-31 16:45:48 +00:00
martin
586bc581af
Use CC64FSZ instead of magic constant for stack frame size.
...
Frob the clone's stack pointer to be BIASed - it is 64 bit code too.
Use "carry set" as test for a failed syscall.
2003-12-31 15:56:26 +00:00
martin
47923e6bf5
In case of underflow, return -0.0 or +0.0, depending on the sign of
...
the argument.
This makes sparc64 pass regress/lib/libc/ldexp.
2003-12-30 23:19:07 +00:00
martin
7fd2c31d41
Add support for scanf "hh" format modifiers - we use it in int_fmtio.h
...
for SCNd8 and friends - so we should support it properly (and not only
by pure luck on alignment blind little endian archs - it used the
"h" code path, storing a 16bit int via a byte pointer).
This makes sparc64 pass regress/lib/libc/int_fmtio.
2003-12-30 22:10:20 +00:00
martin
9f96807631
When storing data size as 32bit int in an overflow page, copy the
...
length to a temporary u_int32_t variable and memmove from there to the
final destination - instead of copying the first four 0 bytes from a
64bit variable directly on big endian 64 bit platforms.
This makes sparc64 pass regress/lib/libc/db.
2003-12-30 21:20:16 +00:00
yamt
9a4bbff85d
_citrus_iconv_std_iconv_convert:
...
- allow 0 byte input. PR/23889 (Valeriy E. Ushakov)
- remove redundant E2BIG check, which should be done by
each encoding modules anyway.
2003-12-29 18:05:01 +00:00
yamt
95a5e260a9
_citrus_MSKanji_wcrtomb_priv: return E2BIG correctly.
2003-12-29 17:59:03 +00:00
yamt
556685e5a3
_citrus_NONE_stdenc_cstomb: return E2BIG correctly.
2003-12-29 17:49:22 +00:00
wiz
08f5fb02e9
Remove sentence about this being an alpha
...
version -- after twelve years it is at least beta ;)
The BUGS section is extensive enough even without it.
2003-12-29 17:36:12 +00:00
wiz
d46bc94200
Niels Provos kindly agreed to drop clauses 3 and 4 from the
...
license -- thanks.
Based on OpenBSD commit and hints by itojun.
2003-12-26 19:04:55 +00:00
simonb
f9f4341a9f
Don't ever add a ".0" to a single digit number.
...
XXX: Should (for example) 1024 be 1.0K or 1K when the HN_DECIMAL flag
is passed? Should there be a separate option that says "use the
HN_DECIMAL behaviour unless we are exactly equal to the suffix"?
2003-12-26 11:30:36 +00:00
martin
903622333a
Use an unsigned comparison against minbrk.
...
From Steve Woodford, inspired by a similar change to other archs from
OpenBSD.
2003-12-26 11:23:44 +00:00
martin
269c3e3d2b
Use an unsigned comparison against minbrk.
...
From OpenBSD, changed by Miod Vallat.
2003-12-26 11:21:48 +00:00
wiz
c594b29834
bootparams, not bootparms.
2003-12-25 19:01:35 +00:00
christos
b7dd6b46f8
Avoid array type is char warning.
2003-12-23 23:12:44 +00:00
matt
69f9c8b092
Add MD_CALL_STATIC_FUNCTION. This allows crt* to compiled with -g.
2003-12-22 21:05:01 +00:00
kleink
a2c17b5c1e
One merge-o missed in previous.
2003-12-20 00:21:00 +00:00
kleink
84a2a5ca6e
Merge tzcode2003e.
2003-12-20 00:12:05 +00:00
kleink
b717391e1a
Note: the previous revision was an update for tzcode2003_e_.
2003-12-19 23:52:44 +00:00
kleink
4a2741cba1
Update for tzcode2003d.
2003-12-19 22:25:42 +00:00
christos
b7559f8576
PR/23791: Patrick Latify: Fix memory leak on thread creation failure.
2003-12-18 15:39:56 +00:00
wiz
ef1b175332
Bump date for previous (hi christos!).
2003-12-17 23:04:33 +00:00
christos
4c4fa74153
Say what happens with pgrp == 0.
2003-12-17 21:05:30 +00:00
jmc
d9948df6dd
Clean up tmp files on exit. Fixes PR#23723
2003-12-15 20:07:39 +00:00
lukem
a8c35a134f
remove superfluous assignment
2003-12-14 23:56:28 +00:00
matt
727e43c8f5
Cleanup last commit a bit.
2003-12-13 04:34:24 +00:00
matt
549de3d9ab
Use :T and :tl and avoid using !=
2003-12-13 04:28:50 +00:00
dyoung
4758291178
Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
...
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.
* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*
* make the flist generators grok MKKERBEROS{,4} variables
* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.
* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.
* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate
(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
2003-12-11 09:46:26 +00:00
agc
7db1d33cba
Modify the licences of code written by Theo De Raadt from a 4-clause
...
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
itojun
c81f32fe6c
comment from niels provos;
...
- seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x".
- skipping number is not needed, so disable it for 16bit generator (makes
the repetition period to 30000)
2003-12-10 05:22:18 +00:00
grant
9510307938
simplify a sentence
2003-12-09 21:40:54 +00:00
augustss
af68367011
Reference kfilter_register(9) rather than the non-existent kfilter_register(2).
2003-12-09 19:49:53 +00:00
wiz
02f06f3790
Bump date for previous (hi andrew!).
2003-12-09 16:00:40 +00:00
atatat
31f1dc4a27
Update man page to correct PROC_* names (addresses PR lib/23645) and
...
also describe the new PROC_PID_STOPEXIT variable.
Man page still not updated to include new features. I'm still working
on that.
2003-12-09 01:39:03 +00:00
lukem
cbb69f7013
update for function name change
2003-12-08 12:03:01 +00:00
matt
aa6e9c56c3
Make this compile on non-IEEE GCC3 targets (aka VAX).
2003-12-08 06:18:16 +00:00
grant
1492b0bcb0
"int flags" is correct in the prototype, but not in the English
...
language. s/int/in/
2003-12-08 00:55:57 +00:00
matt
3c12447a00
Make building IPv6 support controllable by MKINET6
2003-12-07 21:57:22 +00:00
christos
1edf98ec41
Add pthread_{g,s}etschedparam, that do nothing.
2003-12-07 20:29:07 +00:00
scw
29b106093d
Swap WEAK_ALIAS args to how they should be.
2003-12-07 19:37:23 +00:00
simonb
758f7fd25d
Check for __weak_alias macro before using it.
2003-12-07 12:53:19 +00:00
wiz
312a9703d5
Use Aq instead of <>, quote a minus, drop trailing space.
2003-12-05 13:46:39 +00:00
lukem
a9beb0e443
Tokenization function enhancements:
...
* Make tok_init(), tok_end(), tok_reset(), tok_line() and tok_str()
publically available in <histedit.h>
* Documented the public functions in editline(3)
* Renamed tok_line() -> tok_str()
* Added new tok_line() which takes a "const LineInfo *" instead of
"const char *" (the former has "cursor" information), and optionally
return the argv index ("int *cursorc") and offset within that index
("int *cursorv"). This means that completion routines can use the
tokenization code to crack the line and easily find which word the
cursor is at. (mmm, context sensitive completion :)
* Fixed TEST/test.c when using "continuation" lines (unmatched quote
or \ at EOL), and added some more DEBUG messages including highlighting
where the cursor is (with a `_').
2003-12-05 13:37:48 +00:00
keihan
c9c20433ad
Revert last change, as this is a 3rd-party file, noted by kleink@.
2003-12-05 06:56:19 +00:00
uebayasi
0b30fd3d69
Spaces.
2003-12-05 00:57:36 +00:00
keihan
39d96c1f34
netbsd.org -> NetBSD.org
...
NetBSD.ORG -> NetBSD.org
Now src/lib is done.
2003-12-04 23:39:18 +00:00
jdc
737fe44f7a
Increment libcurses minor to 11 for nodelay() void -> int change.
2003-12-04 21:26:09 +00:00
jdc
2dd40f4b6c
Make nodelay() return an int.
...
Now conforms to the Single Unix Specification.
Fixes PR lib/23531 by usa at garbagecollect dot jp.
2003-12-04 21:24:36 +00:00
atatat
6fc962bc06
oops
2003-12-04 19:45:19 +00:00
atatat
93375edaa0
Bump for sysctl() update
2003-12-04 19:42:32 +00:00
atatat
fcc5d1a731
Adapt userland sysctl goop to new world order, permitting dynamic
...
discovery.
2003-12-04 19:40:55 +00:00
lukem
97f5444c8a
MAKEVERBOSE tweaks
2003-12-04 01:02:44 +00:00
jschauma
355765bffd
Add a list of pre-defined values (such as pi, e etc.).
...
Ok by wiz@.
2003-12-03 23:31:21 +00:00
christos
480316c216
Make sure this still compiles with gcc-2.95. Hello vaxen!
2003-12-03 18:41:35 +00:00
lukem
3921361c6a
Use __attribute__((__used__,__noinline__)) (instead of __unused__)
...
for __do_global_ctors_aux() and __do_global_dtors_aux(),
to fix building with gcc3 -O3.
Discussed with Matt Thomas & Christos Zoulas, and tested on alpha & i386.
2003-12-02 03:01:19 +00:00
fvdl
e367e360a4
The x86_64 assembler seems to get it wrong when assembling
...
_eprol@GOTPCREL, it resolved it internally as a PC-relative instruction,
getting garbage, since the needed value is in the GOT. Add a CPP hook
to export it explicitly, this makes it work. Only active on amd64. XXX
2003-11-28 23:25:54 +00:00
cl
828439fb74
Add td__getstacksize() to support variable stack sizes.
2003-11-27 16:32:09 +00:00
cl
2c9b7b1eb7
Set default stack size to the current limit on the stack size as set
...
with the shell's command to change limits. Make the PTHREAD_STACKSIZE
environment variable override the default stack size. The old fixed
stack size behaviour can be enable with PT_FIXEDSTACKSIZE_LG when building
libpthread.
2003-11-27 16:30:54 +00:00
jdolecek
b02f563aeb
improve random number generation by using largest 31-bit prime
...
as denominator; regenerate the randtbl[] with new generator
patch provided in lib/22853 by KIHARA Hideto; code actually present
in libkern/random.c since 1994/06/03
matches similar change done in glibc in 1995, and FreeBSD & OpenBSD in 1996
2003-11-26 20:44:40 +00:00
he
ea56bcee84
Hide the register number constants behind an _R_ prefix, and also
...
rename FPBASE to _FPBASE, so that we avoid polluting the user's
name space when e.g. <sys/ptrace.h> is included. Previously, the
PC symbol in mips/regnum.h would conflict with the declaration of
the external variable by the same name in termcap.h, as discovered
by the ``okheaders'' regression test.
2003-11-26 08:36:49 +00:00
lukem
18239b5b77
Fix compile problem if -UYP -DHESIOD.
...
Noted on current-users by Srinivasa Kanduru.
2003-11-26 00:48:59 +00:00
cl
11127744bf
Save the old mask in the old context, not in the new one.
2003-11-25 23:55:27 +00:00
wiz
492a994a19
Bump date for previous.
2003-11-25 23:28:31 +00:00
itojun
fd02e804dd
take "Skip a random number of ids" into consideration, correct the rotation
...
period number. simonb
2003-11-25 23:11:54 +00:00
cl
d109665f1d
Honor SA_NODEFER in pthread__deliver_signal(). This should help code which
...
makes a longjmp out of a signal handler.
Also add missing si_code argument to debugging printf in pthread__kill().
2003-11-25 22:45:33 +00:00
christos
0446e60323
Update list of items.
2003-11-25 22:44:16 +00:00
christos
adfca9e3e4
This is not needed anymore.
2003-11-25 22:41:12 +00:00
christos
5077d05f7b
GC sigcontext<->mcontext code and __HAVE_SIGINFO. All supported archs have
...
siginfo implemented.
2003-11-25 22:36:32 +00:00
christos
69658517e0
- don't store sigmask on the stack, we could store it in the right place
...
[in the context]
- this has the side effect of fixing the problem of the signal mask not
being preserved properly upon signal return, found and fixed by cl.
- add si_code to the tramp debugging output (requested by cl).
2003-11-25 22:26:44 +00:00
christos
6477735848
m68k does not sigcontext<->mcontext anymore.
2003-11-25 21:27:30 +00:00
christos
22a07298e9
- Document NO_DEFER
...
- Turn sa_flags into a list to make it easier to find/read
- Sort the sa_flags lists.
2003-11-25 21:09:14 +00:00
itojun
b6a2cef9dc
"seed2" was ruining the non-repeating property of this function; remove it.
...
discussed on tech-net for ip_id.c (thanks for all the analysis).
2003-11-25 18:13:06 +00:00
kleink
1d408df31d
Catch up with namei: An empty string is not a valid pathname.
...
Noted by SAITOH Akinori in PR misc/23565.
2003-11-25 15:33:58 +00:00
cl
774b4b225b
Update mutex/rwlock/sem code to match recent change in cond code.
2003-11-24 23:54:13 +00:00
cl
4f8ea51319
add CONSTCOND in constant condition.
2003-11-24 23:23:17 +00:00
nathanw
250e7bbf8e
Fix a race between timed wait callbacks and manual signal/broadcasting
...
accidentally introduced in rev. 1.5.
Noted by Christian Limpach.
2003-11-24 22:54:31 +00:00
christos
6f8e24d360
prevent double free. From OpenBSD
2003-11-24 21:49:12 +00:00
uwe
9d0d2c7461
Implement siginfo for sh3.
2003-11-23 23:13:11 +00:00
scw
53a406794d
s/!=/==/
...
The last fix wasn't quite right, but happened to work for me due
to stale dependencies...
Reported by Markus W Kilbinger.
2003-11-23 09:10:20 +00:00
itojun
2a85abd333
avoid memory leak. hint from Andrew Lunn
2003-11-23 08:33:13 +00:00
itojun
5451f8a14e
do not malloc(0). Andrew Lunn
2003-11-23 08:23:02 +00:00
wiz
6b3d472b3a
New sentence, new line. Remove trailing spaces.
2003-11-23 07:22:19 +00:00
jhawk
e54d574bd0
Bump Dd.
...
better explain the interactions between ip.mtudisc and tcp.mssdflt,
with regards to the TCP segment size.
ip.mtudisc is not read-only, as was implied by "returns"
XXX: this ("returns") should be corrected for other parameters, too.
Xr tcp(4)
2003-11-23 07:11:04 +00:00
nathanw
cdf7f99ee6
Manually inline pthread__testcancel in these routines; two function
...
calls' worth of overhead per cancellable syscall is overkill.
2003-11-21 23:03:13 +00:00
nathanw
4e755ddba8
Prevent ptc_mutex from remaining set if a CV sleep is woken by
...
cancellation:
* Arrange to not set ptc_mutex until after the pre-sleep cancellation
test.
* In the post-sleep cancellation test, check if there are no more
sleepers and clear ptc_mutex if so.
While here, sprinkle some __predict_false() around the cancellation
tests.
2003-11-21 22:08:00 +00:00
scw
19552574ee
Don't compile fp*.c if doing a soft-float build.
2003-11-21 11:39:46 +00:00
uwe
6d08061385
Do not move incoming paramters to callee-save registers when not
...
necessary. Saves about a dozen of instructions.
2003-11-20 17:55:11 +00:00
uwe
4b13bb93a0
Follow-up to previous. In pthread__signal_tramp() maskp is below
...
siginfo on the stack, so get it from there. ss_sp no longer points to
the the mask. Pointed out by cl@.
2003-11-20 17:45:00 +00:00
uwe
b3c165e505
Add _INITCONTEXT_U_MD, we need to clean _REG_SR.
2003-11-20 17:38:08 +00:00
uwe
f5cd7f26ed
Undo previous. In pthread__deliver_signal set uc->uc_stack.ss_sp = uc;
...
(as it used to be before 1.1.2.12) so that makecontext doesn't stomp
on the data we allocated on the stack. Correct the debugging printf
to print olduc instead of target->pt_uc (we have pt_trapuc now, and
olduc can be pt_trapuc).
2003-11-20 17:16:41 +00:00
yamt
d7b65981fb
pthread__deliver_signal: swap oldmask and siginfo so that signal
...
handler's stack doesn't stomp siginfo.
this also fixes !__HAVE_SIGINFO, in that case
pthread__signal_tramp assumes uc->uc_stack.ss_sp points the old
signal mask.
pointed by uwe@.
2003-11-20 15:46:42 +00:00
uwe
1e78682585
In pthread__locked_switch set self->pt_uc only when the context is inited.
...
In STACK_SWITCH subtract STACKSPACE, not add it (it's zero for now anyway).
2003-11-20 03:31:02 +00:00
wiz
c09770cac0
Use Rv for return values section; bump date.
2003-11-19 16:50:09 +00:00
pooka
cce38fddc2
document RETURN VALUES
2003-11-19 15:20:32 +00:00
uwe
9b7e93e2c6
s/modified/modifies/ in the description of makecontext().
2003-11-18 23:03:26 +00:00
grant
86f70dccd2
drop whitespace
2003-11-18 22:42:04 +00:00
wiz
faedb5db06
Fix typo in previous.
2003-11-18 08:49:18 +00:00
uwe
024d461f8f
First cut at pthreads MD code for sh3. Based on m68k version.
...
Regression tests still failing: sem, sigalarm.
2003-11-18 03:11:41 +00:00
uwe
f9cb911365
Add necessary symbols.
2003-11-18 03:07:29 +00:00
thorpej
88ed237274
Bump libc to 12.107 and libpthread to 0.3 for fsync_range(2).
2003-11-18 01:00:19 +00:00
thorpej
137c808bb8
Userland portion of fsync_range(2), written by Bill Studenmund, and
...
contributed by Wasabi Systems, Inc.
2003-11-18 00:56:56 +00:00
cl
196dbdcd2b
- delay processing unblocked threads until after locks are resolved:
...
without the blocked/unblocked upcall ordering, an interrupted blocked
upcall might put the blocked thread on the intqueue because it needs
to be continued. With the delayed processing, we avoid putting such a
thread twice on the runqueue.
- fix putting a thread on the intqueue when it needs to be continued
after it blocked.
Also check return value when returning a single stack.
2003-11-17 22:59:00 +00:00
uwe
764c596c3f
Cause SIGTRAP if NOTREACHED code is reached.
2003-11-17 22:38:11 +00:00
christos
895d7dee51
zero out nl, from Todd Miller. thanks!
2003-11-17 20:41:54 +00:00
wiz
4bbfee09ca
Various typo fixes from Jonathon Gray via jmc@openbsd.
2003-11-17 11:16:10 +00:00
keihan
f73b119e04
s/modifed/modified/
...
And while here...
s/NetBSD.ORG/NetBSD.org/
2003-11-14 16:43:57 +00:00
itojun
08cbee504f
avoid bswapl, which is post-i486 (including i486) insn. markus@openbsd
2003-11-13 19:36:31 +00:00
simonb
bc4e986724
-traditional-cpp and spaces after commas is not a happy combination.
2003-11-13 06:29:39 +00:00
itojun
015dc7875b
accelerate sha1 by using asm (i386). markus@openbsd.
...
there's internal symbol name changes, but it does not warrant shlib minor
bump as the symbol is totally internal.
2003-11-13 02:10:00 +00:00
cl
803f13c062
check deferred signals for all unblocked threads
2003-11-12 22:21:21 +00:00
itojun
b6743615c4
correction made in 0.9.7c; from markus@openbsd
2003-11-12 16:20:27 +00:00
wiz
c3c78af0ec
Various fixes.
2003-11-12 11:58:34 +00:00
christos
c8608b903b
Document pthread_attr_setcreatesuspend_np, pthread_suspend_np, pthread_resume_np
2003-11-12 02:44:22 +00:00
simonb
dc7f22dd3e
Need weak aliases here.
2003-11-11 19:18:14 +00:00
simonb
7239f40663
Add #ifdef __weak_alias around use of __weak_alias.
2003-11-11 19:10:02 +00:00
simonb
faf6ed6d51
Fix tyop.
2003-11-11 18:29:58 +00:00
martin
3e8ef3d56a
Fix ucontext conversion macros. From Christian Limpach.
2003-11-11 16:21:05 +00:00
dsl
8acea4b2c0
Make {g|s|l}crt0.o depend on crt.o and remove the non-standand .afterdepend
...
translation.
2003-11-11 11:35:03 +00:00
dsl
016359fc65
Make gcrt0.o depend on crt0.o so that it picks up the dependencies from .depend.
2003-11-11 11:32:39 +00:00
wiz
ee1b406595
Spell address with two d's. Inspired by similar changes in OpenBSD,
...
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00