Commit Graph

8924 Commits

Author SHA1 Message Date
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