Commit Graph

11204 Commits

Author SHA1 Message Date
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
peter
e263dfd62f WFORMAT is no more... 2006-10-08 17:52:28 +00:00
elad
25c47f2333 PR/34602: sushant: Bug in malloc implementation contains dead code in
free_pages()

Applied patch from Mindaugas <unex at linija org> (in #NetBSD-code), thanks
2006-10-08 16:25:15 +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
tron
77e4af1adc Make sure "libmagic" gets built after "libz". 2006-10-08 13:43:01 +00:00
rillig
bec39efa30 Added a reference to ipcs(1), since that's where one can find out more
about the semaphore limits in case of [ENOSPC].
2006-10-08 08:22:34 +00:00
pooka
2fc4655faf add missing depedency on libz, reported by salo 2006-10-08 08:07:34 +00:00
thorpej
82fd1ebbaa - Move strtoll.c and strtoull.c from libc/stdlib to common/libc/stdlib.
- Add strtoll.c and strtoull.c to libkern.
2006-10-08 03:14:55 +00:00
elad
a35b07a2ca Correctly recover signal state if failed trying to set it.
Patch from David A. Holland in #NetBSD-code, thanks!
2006-10-07 22:16:19 +00:00
apb
b70c743b65 Include nbtool_config.h for tools build. This was part of the
patch supplied by Wim Lewis in PR 31232.
2006-10-07 22:04:18 +00:00
elad
1210859fa1 Add nit from rillig@ for PR/19603. 2006-10-07 22:02:47 +00:00
thorpej
2e2d300f43 Grr, adjust last so that it works with our busted lint(1). 2006-10-07 21:40:46 +00:00
apb
bed8b72282 Clarify that gethostbyname and gethostbyname2 can deal with
string representations of numeric addresses.  PR 28667
2006-10-07 21:30:39 +00:00
elad
9c5eec0043 PR/23152: Matthew Mondor: Minor improvements to section 2 man pages for
NetBSD 1.6.1

Well we're long gone from NetBSD 1.6.1 but I adapted the patch to -current
as it seemed reasonable. Thanks for submitting!
2006-10-07 21:03:51 +00:00
thorpej
569c003c39 Use explicit initializers in STDEXT 2006-10-07 20:46:59 +00:00
kardel
403d759108 - simplify code
- remove any 'permission checks' via geteuid() - with upcoming
  security models these might not match the model any more
- this also fixes a bug where ntp_adjtime() was denied (EPERM)
  even though only a legit read status was performed
2006-10-07 20:02:01 +00:00
elad
09256aac55 PR/31232: Wim Lewis: tools/compat doesn't check for pre-existence of
strmode()

Commited slightly different diff, input and okay from apb@
2006-10-07 16:19:35 +00:00
pooka
34a6a097c3 add util.h to SYNOPSIS 2006-10-06 15:31:20 +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
chs
33c1fd1917 add support for O_DIRECT (I/O directly to application memory,
bypassing any kernel caching for file data).
2006-10-05 14:48:32 +00:00
christos
cc20633139 don't include <sys/param.h> twice. 2006-10-04 21:23:56 +00:00
dogcow
7f1fcf02d3 use rownddown/rowndup in sys/param.h instead of their now-deleted UC equivs
formerly in sys/gmon.h.
2006-10-04 20:22:14 +00:00
wiz
ec15e07b4a Switch from 4-clause to 2-clause BSD license.
Ok dillo@, board@.
2006-10-04 17:29:42 +00:00
tnozaki
dbae970b16 use wcstombs/mbstowcs instead of wcsrtombs/mbsrtombs
for performance of non-C/POSIX locale.
2006-10-04 14:19:16 +00:00
tnozaki
44eb8f042e fix gcc -Werror -Wmissing-braces problem
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
2006-10-04 13:51:59 +00:00
yamt
41cc94b9f0 remove unused IDLESPINS. 2006-10-03 09:37:07 +00:00
tnozaki
0490c7eba2 fwprintf(stderr) may coredump, when LC_CTYPE locale is set none C/POSIX.
make sure to initialize struct __sfileext in FILE.
2006-10-01 10:29:21 +00:00
dogcow
f35a70b511 new ssh import requires another include 2006-09-29 04:56:04 +00:00
christos
3826ab1249 new files and bump for 4.4 2006-09-28 21:24:33 +00:00
christos
d9590bcae9 Fix memory leak found by valgrind (Julien Torres) 2006-09-28 13:52:51 +00:00
christos
5863dc6ef1 Coverity CID 4159: Don't memset() needlessly. 2006-09-27 16:20:03 +00:00
plunky
0b73a6ec91 expose the bthcid API details so that external PIN clients do not
need the NetBSD source in order to compile
2006-09-26 19:18:19 +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
lukem
fa373d4d88 Use NS_INT16SZ instead of INT16SZ 2006-09-26 05:59:18 +00:00
martin
77d6e4c5bd As suggested by Johan Veenhuizen in PR 32981, reword slightly to avoid
the impression return values would always be -1.
Approved by christos.
2006-09-25 08:55:33 +00:00
cherry
1ad9454efb Towards ia64 libc. Round #2 2006-09-23 17:39:34 +00:00
cherry
f264f80b8e Further ia64 libc compat bits 2006-09-23 17:38:03 +00:00
wiz
e5b6473963 Add article. Remove superfluous braces. 2006-09-23 15:29:09 +00:00
mishka
5c5e03838a lib/26532: Manual page for open(2) bit difficult to understand:
apply patch with small improvement - s/conditions/methods/
2006-09-23 14:17:16 +00:00
cherry
64f11261d1 ia64 libc MD stuff #1. Pushing in everything before my harddisk pops. 2006-09-22 17:59:47 +00:00
cherry
768b7d52a9 add ia64 libc MI bits. 2006-09-22 12:09:24 +00:00
thorpej
6cf1ffe998 Alter the protocol impemented by prop_kern to allow for bi-directional
plist-based messages and to eliminate looping previously required to
receive a plist from the kernel:

- prop_dictionary_copyin_ioctl() and prop_dictionary_copyout_ioctl()
  now take the cmd argument rather than the file open flag.  The
  read-ness or write-ness of an ioctl command is checked by these
  routines to ensure that information is being passed to/from the
  userland component properly.

- prop_dictionary_copyout_ioctl() now allocates the memory for the
  XML plist on behalf of the userland component by way of uvm_mmap().
  The XML plist is copied out to the newly-mapped anonymous region,
  and the pointer returned via the plistref.

- prop_dictionary_recv_ioctl() is responsible for munmap()'ing the
  region after parsing the XML plist into internal represenatation.

- A new prop_dictionary_sendrecv_ioctl() is added, allowing user space
  code to send a dictionary to the kernel and receive one back as a
  reply.


Update users of prop_kern for the API changes (Bluetooth).

This constitutes an ABI / protocol change -- but this will also be put
into NetBSD 4.0 so that the first proplib release will implement the new
scheme.
2006-09-22 04:20:23 +00:00
wiz
e95704c08f Note that newer gcc require -fno-reorder-blocks.
Various other improvements. Bump date.
Based on a patch by skrll.
2006-09-19 19:54:43 +00:00
tsutsui
6a8419e3ee Change type of `net' variable passed via va_list in
_{files,dns,yp}_getenetbyaddr() functions from unsigned long to uint32_t.
In rev 1.29, getnetbyaddr(3) was changed to take uint32_t `net' argument
and also passisng uint32_t `net' to nsdispatch(3) varargs, but
these callback functions were not changed accordingly.

Patch was provided by christos, and this fixes amd(8) coredumps on alpha
when /etc/nsswitch.conf has more than one sources for netgroups.
2006-09-18 17:15:39 +00:00
yamt
b1e75a8232 fix a typo pointed by efnbl06 at bn2.maus.net. 2006-09-16 08:29:08 +00:00
skrll
b0b0343b24 ANSIfy 2006-09-15 05:29:44 +00:00
cherry
3a0cfd5a72 add ia64 to the ugly IEEEFP hackaround 2006-09-15 00:01:24 +00:00
cherry
51b652e0e3 -DELFSIZE=64 for csu build 2006-09-14 23:55:54 +00:00
christos
fd58d46323 when re-opening the file only set SV_FIRST, don't clear accidentally SV_DB
because it leads to core-dumps.
2006-09-14 19:58:48 +00:00