Commit Graph

1658 Commits

Author SHA1 Message Date
christos 8b3eb79f93 PR/35170: Guy Harris: confstr() should return 0, not -1, on errors 2006-12-03 00:39:19 +00:00
christos 47fd231e41 ansi, minor knf, no functional change. 2006-12-01 18:57:29 +00:00
elad 174436830e Adapt to recent Veriexec sysctl(9) changes. 2006-11-27 17:55:12 +00:00
christos 52e2f11be9 PR/35129: David A. Holland: exit in utmpx code should be _exit 2006-11-26 17:33:23 +00:00
christos df031f1edc PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
2006-11-25 21:40:04 +00:00
christos 1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
elad 3dc874e6b2 Add note about Segvguard interface/implementation being experimental and
with the potential to change in future releases.
2006-11-23 17:24:36 +00:00
christos 4ca73ce810 Don't expose _ss functions for 4.0. Requested by core. 2006-11-22 17:23:24 +00:00
elad a84fee7faf Initial implementation of PaX Segvguard (this is still work-in-progress,
it's just to get it out of my local tree).
2006-11-22 02:02:51 +00:00
christos 21b2d7e28c on non-x86 execl*.c needs alloca. 2006-11-11 21:16:00 +00:00
christos 0b1f5855c2 no stack protector warning for execvp 2006-11-09 04:00:11 +00:00
christos 4ba9b8cfbe undo the previous; we need alloca here, otherwise the parent will leak on
vfork.
2006-11-09 03:57:26 +00:00
christos e0d6d71d76 use mmap instead of malloc because we may have vforked. pointed out by yamt. 2006-11-09 02:51:52 +00:00
christos 249933b899 if we are using ssp, use malloc instead of alloca. 2006-11-08 23:27:32 +00:00
christos b442c7cdd1 weak for syslog_ss 2006-11-05 04:35:35 +00:00
christos 95c7627c87 use FD_CLOEXEC instead of 1. 2006-11-03 20:18:49 +00:00
christos 1083e07a50 - verify that the log file is usable, otherwise re-open it.
- if the file is re-opened, clear the connected flag.
- don't check that the file is opened before connecting, because the
  file will be opened then.
2006-11-02 20:36:29 +00:00
cbiere 4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
wiz bb93eb1630 Remove trailing whitespace. Use .Bl -enum for an enumeration. 2006-10-28 22:50:16 +00:00
christos 5c60f22be5 need to negate before masking; from abp. 2006-10-27 21:36:50 +00:00
christos d15d9f8a71 add async-signal-safe versions: syslog_ss and vsyslog_ss
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
uwe b0f3335e9a Add syslog_r.3 link (hi christos). 2006-10-27 01:24:26 +00:00
wiz d8f71c6e09 Various fixes. 2006-10-26 13:08:17 +00:00
christos 64c9721228 don't use strerror_r in the re-entrant case. 2006-10-26 10:00:38 +00:00
christos 77f9f63fa2 add _r functions for syslog from OpenBSD 2006-10-25 23:49:31 +00:00
uwe 87cd2874b2 G/c check() macro, b/c it's used only twice and the off < 0 test is
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.

While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.

XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
he b98baf7a62 Avoid "unsigned < 0" comparison by open-coding the remaining part
of the check() macro.
2006-10-23 15:27:41 +00:00
yamt 355bbc5cdf document tcp.abc. 2006-10-19 11:48:02 +00:00
christos ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos 3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
wiz 22b0689a70 Bump date for previous. 2006-10-13 21:12:51 +00:00
rpaulo f3330397f0 Modular (I tried ;-) TCP congestion control API. Whenever certain conditions
happen in the TCP stack, this interface calls the specified callback to
handle the situation according to the currently selected congestion
control algorithm.
A new sysctl node was created: net.inet.tcp.congctl.{available,selected}
with obvious meanings.
The old net.inet.tcp.newreno MIB was removed.
The API is discussed in tcp_congctl(9).

In the near future, it will be possible to selected a congestion control
algorithm on a per-socket basis.

Discussed on tech-net and reviewed by <yamt>.
2006-10-09 16:27:07 +00:00
elad e18b1bdd1d PR/27233: Arto Selonen: 'options BUFCACHE' vs. 'sysctl vm.bufcache'
documentation differs
2006-10-08 15:56:50 +00:00
elad 0dd96e541d PR/19444: IIMURA Takuji: usleep(0); seems to microsleep(1);
Patch applied, thanks!
2006-10-08 15:25:28 +00:00
rillig 30991c10e3 Fixed the wording of the <ctype.h> character classification functions by
always using "function" instead of "macro".

Changed "undefined result" into "undefined behavior" for argument values
outside the valid range. Since the character table is allocated via
malloc(), it _may_ happen that it starts at a page boundary, so that
negative values for the argument result in a segmentation fault. In that
case, there is no result at all.
2006-10-05 22:34:52 +00:00
elad 5c38108d28 Change the PaX mprotect(2) restrictions' "global_protection" knob to
just "global" -- it's shorter and more readable. Update documentation.
2006-09-26 14:48:40 +00:00
wiz 9934420870 Only mark up one word, not the whole sentence. 2006-09-06 18:59:21 +00:00
liamjfoy ecc29b2222 document net.inet.ip.maxflows. dump date. 2006-09-06 18:56:21 +00:00
rpaulo 2fb2ae3251 Import of TCP ECN algorithm for congestion control.
Both available for IPv4 and IPv6.
Basic implementation test results are available at
http://netbsd-soc.sourceforge.net/projects/ecn/testresults.html.

Work sponsored by the Google Summer of Code project 2006.
Special thanks to Kentaro Kurahone, Allen Briggs and Matt Thomas for their
help, comments and support during the project.
2006-09-05 00:29:35 +00:00
liamjfoy 36661dd3cb Update for carp(4). Bump date.
from openbsd
2006-09-04 23:16:22 +00:00
christos 72c3baadfe Remove ad clause. Approved by board@ 2006-08-28 20:42:12 +00:00
rpaulo 13a593e7c8 We support the POSIX Clock Selection Option. 2006-08-14 18:14:19 +00:00
christos cbfb283c65 - Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in them.
2006-08-12 23:49:53 +00:00
christos ce0ef6cfc4 Pretending to be Elad's keyboard:
fileassoc.diff adds a fileassoc_table_run() routine that allows you to
pass a callback to be called with every entry on a given mount.

veriexec.diff adds some raw device access policies: if raw disk is
opened at strict level 1, all fingerprints on this disk will be
invalidated as a safety measure. level 2 will not allow opening disk
for raw writing if we monitor it, and prevent raw writes to memory.
level 3 will not allow opening any disk for raw writing.

both update all relevant documentation.

veriexec concept is okay blymn@.
2006-08-11 19:17:47 +00:00
tron f7f8c72cc7 Remove leftover debugging message. Problem pointed out by Kurt Schreiner
on "current-users" mailing list.
2006-08-03 17:38:26 +00:00
wiz ae2c80bc90 Typo fix. 2006-07-30 00:21:26 +00:00
dogcow fe9e9e8f3a back out last change as it is actually a visible function. 2006-07-27 20:54:42 +00:00
dogcow 98bf56ed78 define _ng_cycle to be static, so gcc won't whing about its implicit decl. 2006-07-27 19:44:06 +00:00
christos b30e946f1c move include of StringList.h before netgroup.h 2006-07-27 18:12:50 +00:00
christos 9f1d175c27 add an _ng_cycle function to print the list of netgroups that are are dups. 2006-07-27 16:06:40 +00:00