The NetBSD Project

CVS log for src/sys/lib/libkern/libkern.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / lib / libkern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.144 / (download) - annotate - [select for diffs], Fri Dec 31 14:19:57 2021 UTC (17 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.143: +9 -3 lines
Diff to previous 1.143 (colored)

libkern: Make KASSERT verify expression is valid if !DIAGNOSTIC.

This way it is no longer necessary to mark variables __diagused if
they are used in KASSERT conditions.

Fix fallout from this by removing now-unnecessary and `#ifdef
DIAGNOSTIC'.

Don't do the same for KDASSERT if !DEBUG -- unlike KASSERT and
DIAGNOSTIC, variables needed by KDASSERT and DEBUG are likely to be
expensive to compute (and potentially difficult for a compiler to
prove flushable), so we don't want to require them under !DEBUG.

Revision 1.142.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:33 2021 UTC (23 months, 2 weeks ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.142: +6 -1 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

Sync w/ HEAD.

Revision 1.142.6.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:20 2021 UTC (2 years ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.142: +6 -1 lines
Diff to previous 1.142 (colored) next main 1.143 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Mon May 17 08:50:36 2021 UTC (2 years ago) by mrg
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.142: +6 -1 lines
Diff to previous 1.142 (colored)

move bi-endian disklabel support from the kernel and libsa into libkern.

- dkcksum() and dkcksum_sized() move from subr_disk.c and from
  libsa into libkern/dkcksum.c (which is missing _sized() version),
  using the version from usr.sbin/disklabel.

- swap_disklabel() moves from subr_disk_mbr.c into libkern, now called
  disklabel_swap().  (the sh3 version should be updated to use this.)

- DISKLABEL_EI becomes a first-class option with opt_disklabel.h.

- add libkern.h to libsa/disklabel.c.

this enables future work for bi-endian libsa/ufs.c (relevant for ffsv1,
ffsv2, lfsv1, and lfsv2), as well as making it possible for ports not
using subr_disk_mbr.c to include bi-endian disklabel support (which,
afaict, includes any disk on mbr-supporting platforms that do not have
an mbr as well as disklabel.)

builds successsfully on: alpha, i386, amd64, sun2, sun3, evbarm64,
evbarm64-eb, sparc, and sparc64.  tested in anita on i386 and sparc,
testing in hardware on evbarm64*.

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) next main 1.141 (colored)

Sync with HEAD.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Jan 21 15:43:37 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.141: +3 -1 lines
Diff to previous 1.141 (colored)

Add a generic set of routines for interacting with OpenFirmware-style
string lists.

Revision 1.141 / (download) - annotate - [select for diffs], Sat Jan 16 23:51:51 2021 UTC (2 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.140: +1 -2 lines
Diff to previous 1.140 (colored)

remove unused "_DIAGNOSTIC" option and opt_diagnostic.h.
note that this is unrelated to the widely used "DIAGNOSTIC" option.

Revision 1.126.4.4 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:42 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.126.4.3: +5 -8 lines
Diff to previous 1.126.4.3 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with HEAD

Revision 1.139.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:11 2020 UTC (3 years, 1 month ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.139: +6 -9 lines
Diff to previous 1.139 (colored) next main 1.140 (colored)

Sync with HEAD

Revision 1.140 / (download) - annotate - [select for diffs], Fri Apr 17 17:24:46 2020 UTC (3 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Branch point for: thorpej-futex
Changes since 1.139: +6 -9 lines
Diff to previous 1.139 (colored)

Slightly reorder for clarity, and add header.

Revision 1.126.4.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.126.4.2: +49 -5 lines
Diff to previous 1.126.4.2 (colored) to branchpoint 1.126 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.126.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.126.4.1: +19 -34 lines
Diff to previous 1.126.4.1 (colored) to branchpoint 1.126 (colored)

Merge changes from current as of 20200406

Revision 1.139 / (download) - annotate - [select for diffs], Tue Apr 7 08:07:58 2020 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200411, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.138: +4 -1 lines
Diff to previous 1.138 (colored)

Fix KASAN build on aarch64

Revision 1.138 / (download) - annotate - [select for diffs], Fri Apr 3 18:44:50 2020 UTC (3 years, 2 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20200406
Changes since 1.137: +9 -2 lines
Diff to previous 1.137 (colored)

Add KASAN instrumentation on strcat/strchr/strrchr.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Dec 14 17:23:47 2019 UTC (3 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.136: +1 -13 lines
Diff to previous 1.136 (colored)

Remove never-used Mersenne twister from libkern.

Revision 1.136 / (download) - annotate - [select for diffs], Thu Dec 5 04:17:13 2019 UTC (3 years, 5 months ago) by riastradh
Branch: MAIN
Changes since 1.135: +1 -20 lines
Diff to previous 1.135 (colored)

#ifdef notyet ---> never

Revision 1.135 / (download) - annotate - [select for diffs], Fri Nov 22 14:28:46 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.134: +12 -3 lines
Diff to previous 1.134 (colored)

Ah, strcat/strchr/strrchr are ASM functions, so instrument them.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Nov 14 16:23:53 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.133: +18 -1 lines
Diff to previous 1.133 (colored)

Add support for Kernel Memory Sanitizer (kMSan). It detects uninitialized
memory used by the kernel at run time, and just like kASan and kCSan, it
is an excellent feature. It has already detected 38 uninitialized variables
in the kernel during my testing, which I have since discreetly fixed.

We use two shadows:
 - "shad", to track uninitialized memory with a bit granularity (1:1).
   Each bit set to 1 in the shad corresponds to one uninitialized bit of
   real kernel memory.
 - "orig", to track the origin of the memory with a 4-byte granularity
   (1:1). Each uint32_t cell in the orig indicates the origin of the
   associated uint32_t of real kernel memory.

The memory consumption of these shadows is consequent, so at least 4GB of
RAM is recommended to run kMSan.

The compiler inserts calls to specific __msan_* functions on each memory
access, to manage both the shad and the orig and detect uninitialized
memory accesses that change the execution flow (like an "if" on an
uninitialized variable).

We mark as uninit several types of memory buffers (stack, pools, kmem,
malloc, uvm_km), and check each buffer passed to copyout, copyoutstr,
bwrite, if_transmit_lock and DMA operations, to detect uninitialized memory
that leaves the system. This allows us to detect kernel info leaks in a way
that is more efficient and also more user-friendly than KLEAK.

Contrary to kASan, kMSan requires comprehensive coverage, ie we cannot
tolerate having one non-instrumented function, because this could cause
false positives. kMSan cannot instrument ASM functions, so I converted
most of them to __asm__ inlines, which kMSan is able to instrument. Those
that remain receive special treatment.

Contrary to kASan again, kMSan uses a TLS, so we must context-switch this
TLS during interrupts. We use different contexts depending on the interrupt
level.

The orig tracks precisely the origin of a buffer. We use a special encoding
for the orig values, and pack together in each uint32_t cell of the orig:
 - a code designating the type of memory (Stack, Pool, etc), and
 - a compressed pointer, which points either (1) to a string containing
   the name of the variable associated with the cell, or (2) to an area
   in the kernel .text section which we resolve to a symbol name + offset.

This encoding allows us not to consume extra memory for associating
information with each cell, and produces a precise output, that can tell
for example the name of an uninitialized variable on the stack, the
function in which it was pushed on the stack, and the function where we
accessed this uninitialized variable.

kMSan is available with LLVM, but not with GCC.

The code is organized in a way that is similar to kASan and kCSan, so it
means that other architectures than amd64 can be supported.

Revision 1.133 / (download) - annotate - [select for diffs], Tue Nov 5 20:19:18 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.132: +21 -3 lines
Diff to previous 1.132 (colored)

Add Kernel Concurrency Sanitizer (kCSan) support. This sanitizer allows us
to detect race conditions at runtime. It is a variation of TSan that is
easy to implement and more suited to kernel internals, albeit theoretically
less precise than TSan's happens-before.

We do basically two things:

 - On every KCSAN_NACCESSES (=2000) memory accesses, we create a cell
   describing the access, and delay the calling CPU (10ms).

 - On all memory accesses, we verify if the memory we're reading/writing
   is referenced in a cell already.

The combination of the two means that, if for example cpu0 does a read that
is selected and cpu1 does a write at the same address, kCSan will fire,
because cpu1's write collides with cpu0's read cell.

The coverage of the instrumentation is the same as that of kASan. Also, the
code is organized in a way similar to kASan, so it is easy to add support
for more architectures than amd64. kCSan is compatible with KCOV.

Reviewed by Kamil.

Revision 1.132 / (download) - annotate - [select for diffs], Fri Sep 20 13:38:00 2019 UTC (3 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

Add ifdefs to eliminate false positives on lgtm, same as coverity.

Revision 1.131 / (download) - annotate - [select for diffs], Sat Sep 7 09:46:07 2019 UTC (3 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.130: +9 -3 lines
Diff to previous 1.130 (colored)

Add KASAN instrumentation for memmove.

Revision 1.126.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:04 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.126: +25 -7 lines
Diff to previous 1.126 (colored)

Sync with HEAD

Revision 1.126.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.126.2.1: +24 -7 lines
Diff to previous 1.126.2.1 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.130 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (4 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.129: +5 -5 lines
Diff to previous 1.129 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.129 / (download) - annotate - [select for diffs], Mon Aug 27 08:53:19 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.128: +11 -2 lines
Diff to previous 1.128 (colored)

Add kasan interceptors for strcpy/strcmp/strlen.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Aug 20 15:04:52 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.127: +11 -3 lines
Diff to previous 1.127 (colored)

Add support for kASan on amd64. Written by me, with some parts inspired
from Siddharth Muralee's initial work. This feature can detect several
kinds of memory bugs, and it's an excellent feature.

It can be enabled by uncommenting these three lines in GENERIC:

	#makeoptions 	KASAN=1		# Kernel Address Sanitizer
	#options 	KASAN
	#no options	SVS

The kernel is compiled without SVS, without DMAP and without PCPU area.
A shadow area is created at boot time, and it can cover the upper 128TB
of the address space. This area is populated gradually as we allocate
memory. With this design the memory consumption is kept at its lowest
level.

The compiler calls the __asan_* functions each time a memory access is
done. We verify whether this access is legal by looking at the shadow
area.

We declare our own special memcpy/memset/etc functions, because the
compiler's builtins don't add the __asan_* instrumentation.

Initially all the mappings are marked as valid. During dynamic
allocations, we add a redzone, which we mark as invalid. Any access on
it will trigger a kASan error message. Additionally, the compiler adds
a redzone on global variables, and we mark these redzones as invalid too.
The illegal-access detection works with a 1-byte granularity.

For now, we cover three areas:

	- global variables
	- kmem_alloc-ated areas
	- malloc-ated areas

More will come, but that's a good start.

Revision 1.126.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126: +2 -1 lines
Diff to previous 1.126 (colored)

Sync with HEAD

Revision 1.127 / (download) - annotate - [select for diffs], Sun Jul 8 17:54:42 2018 UTC (4 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.126: +2 -1 lines
Diff to previous 1.126 (colored)

provide memmem

Revision 1.126 / (download) - annotate - [select for diffs], Sat Dec 9 00:51:52 2017 UTC (5 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.125: +3 -2 lines
Diff to previous 1.125 (colored)

Even smaller and takes print function.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Dec 8 21:51:07 2017 UTC (5 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.124: +2 -1 lines
Diff to previous 1.124 (colored)

coalesce the two copies of hexdump into libkern

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:46 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.106.2.1: +64 -5 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

update from HEAD

Revision 1.124 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.123: +2 -2 lines
Diff to previous 1.123 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.116.2.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:37 2016 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.116.2.3: +12 -1 lines
Diff to previous 1.116.2.3 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Wed May 11 03:17:22 2016 UTC (7 years ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.122: +8 -1 lines
Diff to previous 1.122 (colored)

provide const versions of container_of macros.

discussed with riastradh@ by email

Revision 1.122 / (download) - annotate - [select for diffs], Mon May 2 19:18:29 2016 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.121: +5 -1 lines
Diff to previous 1.121 (colored)

move scsipi_strvis -> libkern:strnvisx()
change the prototype to match userland
fix sizes of strings passed to it

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.116.2.2: +5 -1 lines
Diff to previous 1.116.2.2 (colored) to branchpoint 1.116 (colored)

Sync with HEAD

Revision 1.121 / (download) - annotate - [select for diffs], Sun Aug 30 07:55:45 2015 UTC (7 years, 9 months ago) by uebayasi
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.120: +5 -1 lines
Diff to previous 1.120 (colored)

Include opt_diagnostic.h.

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.116.2.1: +45 -2 lines
Diff to previous 1.116.2.1 (colored) to branchpoint 1.116 (colored)

Sync with HEAD

Revision 1.120 / (download) - annotate - [select for diffs], Fri May 29 19:38:59 2015 UTC (8 years ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.119: +10 -1 lines
Diff to previous 1.119 (colored)

If the platform support popcount as a __builtin, use that in preference
to the libc versions.

Revision 1.119 / (download) - annotate - [select for diffs], Sat May 9 18:49:36 2015 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.118: +12 -5 lines
Diff to previous 1.118 (colored)

tricks with sizeof() make coverity complain.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Wed Apr 22 07:18:58 2015 UTC (8 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.115: +6 -1 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Pull up following revision(s) (requested by roy in ticket #648):
	common/lib/libc/stdlib/_strtoi.h: revisions 1.1, 1.2
	common/lib/libc/stdlib/strtoi.c: revision 1.1
	common/lib/libc/stdlib/strtou.c: revision 1.1
	distrib/sets/lists/base/ad.aarch64: patch
	distrib/sets/lists/base/ad.arm: patch
	distrib/sets/lists/base/ad.mips: patch
	distrib/sets/lists/base/ad.powerpc: patch
	distrib/sets/lists/base/md.amd64: patch
	distrib/sets/lists/base/md.sparc64: patch
	distrib/sets/lists/base/shl.mi: patch
	distrib/sets/lists/comp/mi: revision 1.1939
	distrib/sets/lists/debug/ad.aarch64: patch
	distrib/sets/lists/debug/ad.arm: patch
	distrib/sets/lists/debug/ad.mips: patch
	distrib/sets/lists/debug/ad.powerpc: patch
	distrib/sets/lists/debug/md.amd64: patch
	distrib/sets/lists/debug/md.sparc64: patch
	distrib/sets/lists/debug/shl.mi: patch
	include/inttypes.h: revision 1.11
	lib/libc/shlib_version: patch
	lib/libc/stdlib/Makefile.inc: revision 1.84
	lib/libc/stdlib/strtol.3: revisions 1.27-1.31
	lib/libc/stdlib/strtoul.3: revisions 1.26-1.29
	sys/lib/libkern/Makefile.libkern: revision 1.37
	sys/lib/libkern/libkern.h: revision 1.117
	tools/compat/Makefile: revision 1.73
	tools/compat/compat_defs.h: revision 1.101
	tools/compat/configure.ac: revision 1.83
	tools/compat/configure: revision 1.82
	tools/compat/nbtool_config.h.in: revision 1.36
add strto{i,u} from Kamil Rytarowski as discussed in tech-userlevel.
--
strtoi and strtou additions
--
strtoi and strtou for the kernel
--
strtoi and strtou additions
--
strtoi and strtou man pages
--
strto{i,u}
--
regen
--
Remove trailing whitespace.
--
match variable names with man page (Kamil Rytarowski)
--
cleanups from (Kamil Rytarowski)
--
add strtoi strtou (Kamil Rytarowski)
--
PR/49640: Kamil Rytarowski: Improve error printing
--
Use existing month for Dd.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Apr 20 15:22:17 2015 UTC (8 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.117: +28 -1 lines
Diff to previous 1.117 (colored)

Add container_of to libkern.

Given x = &c->f, container_of(x, T, f) yields c, where T is the type
of c.

Discussed on tech-kern a while ago:

https://mail-index.netbsd.org/tech-kern/2013/03/21/msg015131.html

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:20 2015 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.116: +6 -1 lines
Diff to previous 1.116 (colored)

Sync with HEAD

Revision 1.117 / (download) - annotate - [select for diffs], Fri Jan 16 18:36:31 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.116: +6 -1 lines
Diff to previous 1.116 (colored)

strtoi and strtou for the kernel

Revision 1.116 / (download) - annotate - [select for diffs], Thu Nov 20 16:25:16 2014 UTC (8 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.115: +1 -5 lines
Diff to previous 1.115 (colored)

bcdtobin and bintobcd are now inlines in <dev/clock_subr.h>

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.106: +92 -4 lines
Diff to previous 1.106 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (8 years, 9 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.114: +21 -1 lines
Diff to previous 1.114 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.113.2.3 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:02 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.113.2.2: +39 -2 lines
Diff to previous 1.113.2.2 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored)

Rebase.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Sat Aug 9 07:45:03 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.113.2.1: +3 -1 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored)

(Temporarily) disable LZF in libkern -- it introduces a dependency from
src/sys to src/external which I'll need to fix by moving the LZF sources.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Jul 19 18:38:35 2014 UTC (8 years, 10 months ago) by lneto
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.113: +39 -2 lines
Diff to previous 1.113 (colored)

lua: updated from 5.1 to 5.3 work3

* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE

Revision 1.103.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:04 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.103.2.2: +34 -3 lines
Diff to previous 1.103.2.2 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:08 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.107.2.1: +32 -1 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

sync with head

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 01:10:55 2014 UTC (9 years, 1 month ago) by tls
Branch: tls-earlyentropy
Changes since 1.113: +19 -1 lines
Diff to previous 1.113 (colored)

LZF in the kernel.  As an entropy estimator for now but it's very small, and
we could use it for ipcomp, for hibernation, for paging, for core dumps, etc.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Feb 27 18:05:07 2014 UTC (9 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.112: +22 -1 lines
Diff to previous 1.112 (colored)

Provide labs, llabs and imaxabs for kernel use.

Revision 1.82.8.5 / (download) - annotate - [select for diffs], Fri Feb 14 18:38:15 2014 UTC (9 years, 3 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.82.8.4: +23 -20 lines
Diff to previous 1.82.8.4 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Change KASSERTMSG/KDASSERTMSG to use varadic arguments like HEAD.
panic -> vpanic, add panic wrapper to vpanic.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Dec 27 20:25:33 2013 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.111: +2 -1 lines
Diff to previous 1.111 (colored)

add strncat (for acpi)

Revision 1.111 / (download) - annotate - [select for diffs], Sun Dec 15 21:15:41 2013 UTC (9 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.110: +7 -1 lines
Diff to previous 1.110 (colored)

Allow overriding CTASSERT.  This helps with building NetBSD sources with
compilers that don't support __COUNTER__ -- shifting the CTASSERTs
around to avoid __LINE__ conflicts is a hopeless struggle.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Dec 11 01:24:08 2013 UTC (9 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.109: +3 -1 lines
Diff to previous 1.109 (colored)

Allow kernel code to access constant databases by moving cdbr(3) and the
required mi_vector_hash(3) into src/common.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Dec 2 04:39:10 2013 UTC (9 years, 6 months ago) by lneto
Branch: MAIN
Changes since 1.108: +2 -1 lines
Diff to previous 1.108 (colored)

changed lua_Number to int64_t

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:35 2013 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

sync with head

Revision 1.108 / (download) - annotate - [select for diffs], Wed Aug 28 16:20:38 2013 UTC (9 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

Fix libkern's prototype for explicit_memset.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Jun 24 04:21:20 2013 UTC (9 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.

consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.

Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:39 2012 UTC (10 years, 7 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.103.2.1: +4 -1 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored)

sync with head

Revision 1.106 / (download) - annotate - [select for diffs], Thu Aug 30 12:16:49 2012 UTC (10 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.105: +4 -1 lines
Diff to previous 1.105 (colored)

Add "consttime_bcmp" and "explicit_bzero" functions for both kernel
abd userland, as proposed on tech-security, with explicit_bzero using
a volatile function pointer as suggested by Alan Barrett.
Both do what the name says. For userland, both are prefixed by "__"
to keep them out of the user namespace.
Change some memset/memcmp uses to the new functions where it makes
sense -- these are just some examples, more to come.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:33 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

sync with head

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:35 2012 UTC (11 years, 3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.104: +3 -1 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

merge to -current.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jan 22 02:57:36 2012 UTC (11 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Changes since 1.104: +3 -1 lines
Diff to previous 1.104 (colored)

Add CTASSERT_SIGNED() and CTASSERT_UNSIGNED().

Revision 1.82.8.4 / (download) - annotate - [select for diffs], Tue Dec 27 19:21:00 2011 UTC (11 years, 5 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.82.8.3: +6 -1 lines
Diff to previous 1.82.8.3 (colored) to branchpoint 1.82 (colored)

Add popcount32 and popcount64 for flash/nand

Revision 1.104 / (download) - annotate - [select for diffs], Mon Nov 28 08:05:06 2011 UTC (11 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.103: +1 -3 lines
Diff to previous 1.103 (colored)

Remove arc4random() and arc4randbytes() from the kernel API.  Replace
arc4random() hacks in rump with stubs that call the host arc4random() to
get numbers that are hopefully actually random (arc4random() keyed with
stack junk is not).  This should fix some of the currently failing anita
tests -- we should no longer generate duplicate "random" MAC addresses in
the test environment.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Oct 1 16:06:24 2011 UTC (11 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.102: +3 -4 lines
Diff to previous 1.102 (colored)

use gcc builtin for memset() on vax too.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Sep 29 20:50:09 2011 UTC (11 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.101: +8 -8 lines
Diff to previous 1.101 (colored)

Don't include <sys/systm.h> because it brings in too much stuff that
conflicts with standalone code. Instead modify kern_assert() to be like
panic() and call that.

Revision 1.101 / (download) - annotate - [select for diffs], Tue Sep 27 01:02:39 2011 UTC (11 years, 8 months ago) by jym
Branch: MAIN
Changes since 1.100: +23 -15 lines
Diff to previous 1.100 (colored)

Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html

Revision 1.100 / (download) - annotate - [select for diffs], Sun Sep 25 20:31:18 2011 UTC (11 years, 8 months ago) by jym
Branch: MAIN
Changes since 1.99: +1 -16 lines
Diff to previous 1.99 (colored)

Do as Joerg said and kill the __STDC__ blocks. They only make sense for
things used by assembler, which won't be the case for these macros.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Sep 1 22:35:17 2011 UTC (11 years, 9 months ago) by jym
Branch: MAIN
Changes since 1.98: +2 -1 lines
Diff to previous 1.98 (colored)

Make strnlen(3) accessible in kernel. ok christos@.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Jul 5 01:56:45 2011 UTC (11 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.97: +5 -1 lines
Diff to previous 1.97 (colored)

If GCC 4.0 or later, use __builtin_offsetof for offsetof.
This make GCC 4.5 with offsetof in mbuf.h and kern_cpu.c

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:42 2011 UTC (12 years ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.94: +10 -6 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Sync with HEAD.

Revision 1.82.8.3 / (download) - annotate - [select for diffs], Fri Apr 29 08:10:38 2011 UTC (12 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.82.8.2: +10 -6 lines
Diff to previous 1.82.8.2 (colored) to branchpoint 1.82 (colored)

Move CTASSERT to __CTASSERT in <sys/cdefs.h> (from current)
Add KDASSERTMSG (from current)

Revision 1.93.4.4 / (download) - annotate - [select for diffs], Sun Mar 6 00:27:08 2011 UTC (12 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.3: +1 -1 lines
Diff to previous 1.93.4.3 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

sync with head (and fix few botches with this)

Revision 1.93.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:27 2011 UTC (12 years, 3 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.2: +10 -6 lines
Diff to previous 1.93.4.2 (colored) to branchpoint 1.93 (colored)

sync with head

Revision 1.94.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:41 2011 UTC (12 years, 3 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.94.4.1: +2 -4 lines
Diff to previous 1.94.4.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

Sync with HEAD

Revision 1.97 / (download) - annotate - [select for diffs], Sat Feb 19 02:02:14 2011 UTC (12 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.96: +2 -4 lines
Diff to previous 1.96 (colored)

Define CTASSERT in terms of __CTASSERT

Revision 1.94.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:00 2011 UTC (12 years, 3 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.94: +9 -3 lines
Diff to previous 1.94 (colored)

Sync with HEAD

Revision 1.82.8.2 / (download) - annotate - [select for diffs], Thu Feb 3 02:24:21 2011 UTC (12 years, 4 months ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.82.8.1: +2 -2 lines
Diff to previous 1.82.8.1 (colored) to branchpoint 1.82 (colored)

fix KASSERTMSG

Revision 1.96 / (download) - annotate - [select for diffs], Wed Jan 26 01:02:46 2011 UTC (12 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored)

Fix KDASSERTMSG defintions for !DEBUG

Revision 1.95 / (download) - annotate - [select for diffs], Mon Jan 24 22:53:07 2011 UTC (12 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.94: +7 -1 lines
Diff to previous 1.94 (colored)

Add KDASSERTMSG (KDASSERT already exists).

Revision 1.82.4.2.4.1 / (download) - annotate - [select for diffs], Fri Jan 7 01:14:24 2011 UTC (12 years, 4 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.82.4.2: +2 -2 lines
Diff to previous 1.82.4.2 (colored) next main 1.82.8.1 (colored)

Fix KASSERTMSG.

Revision 1.79.4.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:45 2010 UTC (12 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.79.4.4: +2 -2 lines
Diff to previous 1.79.4.4 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

sync with head.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Sun May 30 05:17:59 2010 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.1: +2 -2 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored)

sync with head

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:15 2010 UTC (13 years, 1 month ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

Sync with HEAD.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Sun Apr 25 15:51:38 2010 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Pull-up rev 1.94

Revision 1.94 / (download) - annotate - [select for diffs], Sun Apr 25 15:39:41 2010 UTC (13 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Fix KASSERTMSG() to be consistent with KASSERT() logic, not inverted.
Hi matt@!

Revision 1.82.8.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:20 2010 UTC (13 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

sync to netbsd-5

Revision 1.79.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:21 2010 UTC (13 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.79.4.3: +8 -8 lines
Diff to previous 1.79.4.3 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jan 19 22:28:30 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.92: +8 -8 lines
Diff to previous 1.92 (colored)

Get rid of last "easy" kernel symbols starting with __:
__assert -> kern_assert
__sigtimedwait1 -> sigtimedwait1
__wdstart -> wdstart1

The rest are MD and/or shared with userspace, so they will require
a little more involvement than what is available for this quick
"ride the 5.99.24 bump" action.

Revision 1.79.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:18 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.79.4.2: +6 -1 lines
Diff to previous 1.79.4.2 (colored) to branchpoint 1.79 (colored)

sync with head.

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:45 2009 UTC (13 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.85.2.1: +6 -1 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

Sync with HEAD.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jul 21 14:55:33 2009 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.91: +6 -1 lines
Diff to previous 1.91 (colored)

Move popcount et al to src/common and add popcount32/popcount64.
Requested by rmind@. MD should now override popcount32/popcount64 and
provide the aliases as fitting.

Revision 1.79.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:49 2009 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.79.4.1: +2 -1 lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored)

sync with head

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:15 2009 UTC (14 years ago) by jym
Branch: jym-xensuspend
Changes since 1.85: +65 -69 lines
Diff to previous 1.85 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.91 / (download) - annotate - [select for diffs], Wed May 13 02:50:32 2009 UTC (14 years ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
Discussed on tech-kern.

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:50 2009 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.79: +78 -70 lines
Diff to previous 1.79 (colored)

sync with head.

Revision 1.82.4.2 / (download) - annotate - [select for diffs], Sun May 3 17:31:42 2009 UTC (14 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base
Branch point for: matt-nb5-pq3
Changes since 1.82.4.1: +2 -2 lines
Diff to previous 1.82.4.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Pull up following revision(s) (requested by tls in ticket #611):
	common/dist/zlib/zlib.h: revision 1.3
	sys/lib/libkern/crc32.c: revision 1.2
	sys/lib/libkern/libkern.h: revision 1.90 via patch
	sys/lib/libsa/cread.c: revision 1.23
	sys/lib/libz/Makefile: revision 1.16
Fix build problems caused by crc32 addition to libkern.  Also, this makes
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Sun May 3 17:24:45 2009 UTC (14 years, 1 month ago) by snj
Branch: netbsd-5
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

Pull up following revision(s) (requested by tls in ticket #611):
	sys/lib/libkern/Makefile: patch
	sys/lib/libkern/crc32.c: revision 1.1
	sys/lib/libkern/crc32.h: revision 1.1
	sys/lib/libkern/libkern.h: revision 1.89
	sys/lib/libkern/arch/i386/Makefile.inc: revision 1.28
	sys/net/zlib.h: revision 1.14 via patch
	sys/opencrypto/crypto.c: revision 1.33
	sys/opencrypto/cryptodev.c: revision 1.46
	sys/opencrypto/cryptodev.h: revision 1.16
	sys/opencrypto/cryptosoft.c: revision 1.24
	sys/opencrypto/cryptosoft.h: revision 1.6
	sys/opencrypto/deflate.h: revision 1.6
	sys/opencrypto/cryptosoft_xform.c: revision 1.12
	sys/opencrypto/deflate.c: revision 1.13
	sys/opencrypto/files.opencrypto: revision 1.20
	sys/opencrypto/ocryptodev.c: revision 1.1
	sys/opencrypto/ocryptodev.h: revision 1.1
	sys/opencrypto/xform.c: revision 1.18
	sys/opencrypto/xform.h: revision 1.10
Fixes PR kern/41069 and PR kern/41070.

Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION,  CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.

Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.

Adds user-space access to compression features.

Adds software gzip support (CRYPTO_GZIP_COMP).

Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel.  The crc32 routine is used in this patch to support GZIP.

With input and support from tls@NetBSD.org.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:13 2009 UTC (14 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.82.2.1: +64 -69 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Sync with HEAD.

Revision 1.90 / (download) - annotate - [select for diffs], Wed Mar 25 18:41:06 2009 UTC (14 years, 2 months ago) by tls
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

Fix build problems caused by crc32 addition to libkern.  Also, this makes
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Mar 25 01:26:13 2009 UTC (14 years, 2 months ago) by darran
Branch: MAIN
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored)

Fixes PR kern/41069 and PR kern/41070.

Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION,  CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.

Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.

Adds user-space access to compression features.

Adds software gzip support (CRYPTO_GZIP_COMP).

Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel.  The crc32 routine is used in this patch to support GZIP.

With input and support from tls@NetBSD.org.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Mar 23 13:41:00 2009 UTC (14 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.87: +5 -4 lines
Diff to previous 1.87 (colored)

Don't use gcc's __builtin_*() functions #if defined(_STANDALONE)
because they could be larger than __OPTIMIZE_SIZE__'ed libsa ones and
__builtin_memcpy() on vax rejects NULL (i.e. copying from/to address 0x0).

No particular comments on tech-toolchain.

Tested on alpha, arc, cobalt, hp300, i386, landisk, macppc, news68k, sgimips,
sparc, sparc64, sun3, and vax (on simh).

Revision 1.87 / (download) - annotate - [select for diffs], Wed Mar 18 12:25:06 2009 UTC (14 years, 2 months ago) by tsutsui
Branch: MAIN
Changes since 1.86: +1 -7 lines
Diff to previous 1.86 (colored)

- remove bcmp(9), bcopy(9), and bzero(9) from libkern since <sys/systm.h> has
  macro which replace them with mem*() functions in #ifdef _KERNEL as noted
  in man pages
- move declarations of bcopy(3) and bzero(3) into <lib/libsa/stand.h>
  since they are still in libsa for some MD standalone sources
  (I guess all bcmp(3) in standalone sources have been replaced with memcmp(3)
   but they should be replaced with memcmp() anyway)

Revision 1.86 / (download) - annotate - [select for diffs], Sat Mar 14 14:46:10 2009 UTC (14 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.85: +64 -65 lines
Diff to previous 1.85 (colored)

Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:56 2009 UTC (14 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.82: +4 -1 lines
Diff to previous 1.82 (colored)

Sync with HEAD.

Revision 1.75.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:21 2009 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.75.6.3: +3 -0 lines
Diff to previous 1.75.6.3 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Dec 16 22:35:38 2008 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.84: +2 -1 lines
Diff to previous 1.84 (colored)

replace bitmask_snprintf(9) with snprintb(3)

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:18 2008 UTC (14 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.81.2.1: +3 -1 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Nov 16 16:15:58 2008 UTC (14 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored)

Our qsort() is inappropriate for kernel use because it makes recursive
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Nov 16 15:01:26 2008 UTC (14 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.82: +2 -1 lines
Diff to previous 1.82 (colored)

Make qsort() available in libkern.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:40 2008 UTC (14 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.81: +10 -10 lines
Diff to previous 1.81 (colored)

Sync with HEAD.

Revision 1.75.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.75.6.2: +9 -9 lines
Diff to previous 1.75.6.2 (colored) to branchpoint 1.75 (colored)

Sync with HEAD.

Revision 1.79.6.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:57 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.79.6.1: +10 -10 lines
Diff to previous 1.79.6.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.79.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:56 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.79: +13 -3 lines
Diff to previous 1.79 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Sep 8 23:36:55 2008 UTC (14 years, 8 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-mips64
Changes since 1.81: +10 -10 lines
Diff to previous 1.81 (colored)

Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.

Revision 1.79.8.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:12 2008 UTC (14 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.79: +13 -3 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Sync with head.

Revision 1.75.6.2 / (download) - annotate - [select for diffs], Wed Jul 2 19:08:20 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.75.6.1: +12 -2 lines
Diff to previous 1.75.6.1 (colored) to branchpoint 1.75 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 2 15:25:08 2008 UTC (14 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.80: +9 -3 lines
Diff to previous 1.80 (colored)

Add KASSERTMSG(e, msg) for umass.c.  XXX directly calls panic.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jul 2 14:39:20 2008 UTC (14 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.79: +5 -1 lines
Diff to previous 1.79 (colored)

Add CTASSERT (compile time assert) from FreeBSD.
Causes sources to fail to compile:
<file>:<line>: error: size of array '__ctassert<line>' is negative

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Sat Apr 19 16:07:23 2008 UTC (15 years, 1 month ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Pull up following revision(s) (requested by skrll in ticket #1129):
	share/mk/bsd.own.mk: revision 1.489.4.3
	gnu/dist/gcc4/gcc/config/vax/vax.h: revision 1.2.6.1
	gnu/dist/gcc4/gcc/config/vax/builtins.md: revision 1.2.10.2
	sys/arch/vax/conf/Makefile.vax: revision 1.77.22.1
	gnu/dist/gcc4/gcc/config/vax/vax-protos.h: revision 1.1.1.1.6.1
	gnu/dist/binutils/gas/config/tc-vax.h: revision 1.1.1.1.18.1
	gnu/lib/libgcc4/libgcc/Makefile: revision 1.2.6.1
	sys/arch/vax/include/macros.h: revision 1.37.14.1
	gnu/lib/crtstuff4/Makefile: revision 1.1.6.1
	gnu/dist/gcc4/gcc/config/vax/elf.h: revision 1.1.1.1.6.1
	gnu/dist/gcc4/gcc/config/vax/vax.c: revision 1.1.1.1.6.1
	sys/arch/vax/boot/Makefile.inc: revision 1.12.16.1
	tools/gcc/Makefile: revision 1.22.4.1
	lib/libcrypto/Makefile: revision 1.46.4.2
	gnu/dist/gcc4/gcc/config/vax/netbsd-elf.h: revision 1.1.1.1.6.1
	sys/lib/libkern/libkern.h: revision 1.67.6.1
	gnu/dist/gcc4/gcc/config/vax/predicates.md: revision 1.3.10.2
	gnu/dist/binutils/bfd/elf32-vax.c: revision 1.5.6.1
	gnu/dist/gcc4/gcc/config/vax/vax.md: revision 1.1.1.1.4.1.2.1
	gnu/dist/gcc4/gcc/config/vax/vax.opt: revision 1.1.1.1.6.1
	gnu/dist/binutils/gas/config/tc-vax.c: revision 1.4.4.1.2.1
Pullup changes to get vax shlibs working from the wrstuden-fixsa branch.

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Mon Apr 7 13:34:18 2008 UTC (15 years, 1 month ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Oops, missed this one.

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:05 2008 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Sync with HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Mar 25 23:24:38 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

fix again

Revision 1.78 / (download) - annotate - [select for diffs], Tue Mar 25 23:23:13 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)

fix bcopy again

Revision 1.77 / (download) - annotate - [select for diffs], Tue Mar 25 23:21:04 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

fix bcopy prototype

Revision 1.76 / (download) - annotate - [select for diffs], Tue Mar 25 23:19:51 2008 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

add a prototype for bcopy.

Revision 1.70.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:02 2008 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.70.6.2: +13 -1 lines
Diff to previous 1.70.6.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

sync with HEAD

Revision 1.50.16.8 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:00 2008 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.7: +2 -2 lines
Diff to previous 1.50.16.7 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

sync with head.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:59 2008 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.71: +22 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Feb 17 22:49:11 2008 UTC (15 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

Don't need to that particular in mtprng_random().  Use 2 values instead of 8.

Revision 1.50.16.7 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:27 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.6: +13 -1 lines
Diff to previous 1.50.16.6 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Feb 2 01:13:04 2008 UTC (15 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.73: +7 -4 lines
Diff to previous 1.73 (colored)

Improve my version of mtprng_random.  Reshuffle things.  Add an compatible
version of init_by_array.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jan 31 02:36:09 2008 UTC (15 years, 4 months ago) by matt
Branch: MAIN
Changes since 1.72: +10 -1 lines
Diff to previous 1.72 (colored)

Add Mersenne Twister prototypes and state struct to libkern.h
Cleanup a comment.  s/RLEN/MTPRNG_RLEN/g    s/POS1/MTPRNG_POS1/g
Remove unneeded test code.

Revision 1.50.16.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:35 2008 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.5: +10 -10 lines
Diff to previous 1.50.16.5 (colored) to branchpoint 1.50 (colored)

sync with head

Revision 1.70.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:34 2008 UTC (15 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.70.6.1: +10 -10 lines
Diff to previous 1.70.6.1 (colored) to branchpoint 1.70 (colored)

sync with HEAD

Revision 1.71.10.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:28 2008 UTC (15 years, 5 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.71: +10 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:17 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.71: +10 -10 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:44 2007 UTC (15 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.71: +10 -10 lines
Diff to previous 1.71 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:54 2007 UTC (15 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.70: +8 -8 lines
Diff to previous 1.70 (colored)

sync with HEAD

Revision 1.50.16.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:44 2007 UTC (15 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.4: +8 -8 lines
Diff to previous 1.50.16.4 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.68.4.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:35 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.68.4.2: +8 -8 lines
Diff to previous 1.68.4.2 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Sync with head.

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:43:44 2007 UTC (15 years, 8 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.70: +8 -8 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync with head.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:08 2007 UTC (15 years, 8 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.70: +8 -8 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Sep 24 14:19:03 2007 UTC (15 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, bouyer-xeni386
Changes since 1.70: +8 -8 lines
Diff to previous 1.70 (colored)

Rename __assert() to __kernassert() so that it doesn't collide
with the libc version.  They take different arguments.

Revision 1.50.16.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:26 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.3: +3 -4 lines
Diff to previous 1.50.16.3 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.68.4.2 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:47 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.68.4.1: +2 -3 lines
Diff to previous 1.68.4.1 (colored) to branchpoint 1.68 (colored)

Sync with HEAD.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:27 2007 UTC (15 years, 9 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with HEAD.

Revision 1.70.10.2 / (download) - annotate - [select for diffs], Sun Jul 29 11:46:03 2007 UTC (15 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.70.10.1: +320 -0 lines
Diff to previous 1.70.10.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Disable kernel assertions if panicstr != NULL.

Revision 1.70.10.1, Sun Jul 29 11:46:02 2007 UTC (15 years, 10 months ago) by ad
Branch: matt-mips64
Changes since 1.70: +0 -320 lines
FILE REMOVED

file libkern.h was added on branch matt-mips64 on 2007-07-29 11:46:03 +0000

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 29 11:46:02 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored)

Disable kernel assertions if panicstr != NULL.

Revision 1.68.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:27 2007 UTC (15 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

Sync with head.

Revision 1.67.4.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:54 2007 UTC (16 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.67.4.1: +2 -2 lines
Diff to previous 1.67.4.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head.

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:26:43 2007 UTC (16 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Sync with head.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Apr 9 17:39:37 2007 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Enable builtin_ffs for vax

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:36 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.67: +1 -7 lines
Diff to previous 1.67 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.50.16.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:25 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.2: +1 -7 lines
Diff to previous 1.50.16.2 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:06 2007 UTC (16 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: reinoud-bufcleanup, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.67: +1 -7 lines
Diff to previous 1.67 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.50.16.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:16 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50.16.1: +14 -22 lines
Diff to previous 1.50.16.1 (colored) to branchpoint 1.50 (colored)

sync with head.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:27 2006 UTC (16 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.65: +9 -1 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with head.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:21 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.66: +3 -1 lines
Diff to previous 1.66 (colored) next main 1.67 (colored)

sync with head

Revision 1.67 / (download) - annotate - [select for diffs], Sun Oct 8 03:14:55 2006 UTC (16 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Changes since 1.66: +3 -1 lines
Diff to previous 1.66 (colored)

- Move strtoll.c and strtoull.c from libc/stdlib to common/libc/stdlib.
- Add strtoll.c and strtoull.c to libkern.

Revision 1.55.2.6 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:54 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55.2.5: +7 -1 lines
Diff to previous 1.55.2.5 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with head.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 10 23:49:21 2006 UTC (16 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.65: +7 -1 lines
Diff to previous 1.65 (colored)

If __STDC__ and GNU C >= 3.0, define C99's bool, true, false

Revision 1.54.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:52 2006 UTC (16 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.54: +21 -4 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

sync with head

Revision 1.55.2.5 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:35 2006 UTC (16 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55.2.4: +2 -20 lines
Diff to previous 1.55.2.4 (colored) to branchpoint 1.55 (colored)

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Aug 31 19:24:38 2006 UTC (16 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: newlock2
Changes since 1.64: +1 -20 lines
Diff to previous 1.64 (colored)

Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Aug 25 19:07:44 2006 UTC (16 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

Add __NULL_STMT which is do { } while (/* CONSTCOND */ 0)

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:14 2006 UTC (16 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55.2.3: +5 -3 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored)

sync with head

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:57 2006 UTC (16 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.62: +5 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Merge from HEAD.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Jul 8 00:24:26 2006 UTC (16 years, 11 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.62: +5 -3 lines
Diff to previous 1.62 (colored)

With VAX & GCC4, use builtin memset and memmove.

Revision 1.50.16.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:13 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.50: +51 -4 lines
Diff to previous 1.50 (colored)

sync with head.

Revision 1.54.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:28 2006 UTC (17 years ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.54.6.1: +3 -1 lines
Diff to previous 1.54.6.1 (colored) next main 1.55 (colored)

Sync with head.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:42 2006 UTC (17 years ago) by tron
Branch: peter-altq
Changes since 1.58.2.1: +9 -1 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Wed May 24 10:58:54 2006 UTC (17 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55.2.2: +9 -1 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored)

sync with head.

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Thu May 11 23:31:08 2006 UTC (17 years ago) by elad
Branch: elad-kernelauth
Changes since 1.55.4.1: +3 -1 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

sync with head

Revision 1.62 / (download) - annotate - [select for diffs], Sat Apr 22 15:33:33 2006 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (colored)

Move strtoumax.c from libc/stdlib to common/libc/stdlib and include it
in libkern.  Required for new code coming soon.

Revision 1.54.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:05 2006 UTC (17 years, 1 month ago) by simonb
Branch: simonb-timecounters
Changes since 1.54: +33 -2 lines
Diff to previous 1.54 (colored)

Sync with head.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:36:01 2006 UTC (17 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.55: +32 -1 lines
Diff to previous 1.55 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Apr 15 01:09:34 2006 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.60: +9 -3 lines
Diff to previous 1.60 (colored)

Imply DIAGNOSTIC if __COVERITY__.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Apr 14 18:24:56 2006 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)

If __COVERITY__ is defined, turn on KASSERT and _DIAGASSERT.

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:42 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55.2.1: +7 -1 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored)

sync with head.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:27 2006 UTC (17 years, 2 months ago) by tron
Branch: peter-altq
Changes since 1.58: +7 -1 lines
Diff to previous 1.58 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Mar 27 21:18:33 2006 UTC (17 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Changes since 1.58: +7 -1 lines
Diff to previous 1.58 (colored)

Per discussion on source-changes@, add __arraycount(array) for
counting the number of elements in a static array, using the idiom,
sizeof(array)/sizeof(array[0]).

XXX This may move in the future, but this is a safe place to put
XXX it for use in the kernel.

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:39 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.55: +20 -1 lines
Diff to previous 1.55 (colored)

sync with head.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Mar 11 15:40:07 2006 UTC (17 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq
Changes since 1.57: +5 -1 lines
Diff to previous 1.57 (colored)

Provide BCD<->binary conversion in libkern and turn <dev/clock_subr.h>'s
FROMBCD()/TOBCD() macros into wrappers around it, resulting in both
smaller code footprint and elimination of possible issues due to
multiple evaluation of macro arguments.

Suggested by Simon Burge and Anders Gavare on tech-kern.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Mar 8 08:26:51 2006 UTC (17 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.56: +9 -8 lines
Diff to previous 1.56 (colored)

Change macro names to avoid collisions:

BIT -> __BIT
BITS -> __BITS

Revision 1.56 / (download) - annotate - [select for diffs], Wed Mar 8 00:24:06 2006 UTC (17 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.55: +15 -1 lines
Diff to previous 1.55 (colored)

Move my bit-twiddling macros to libkern.h from my drivers, where
I had duplicated them.  Improve the macros' names.  Simplify their
implementation.

A brief description of each macro is below.

        BIT(n): Return a bitmask with bit m set, where the least
                significant bit is bit 0.

        BITS(m, n): Return a bitmask with bits m through n, inclusive,
                    set.  It does not matter whether m>n or m<=n.
                    The least significant bit is bit 0.

        A "bitfield" is a span of consecutive bits defined by a
        bitmask, where 1s select the bits in the bitfield.  SHIFTIN,
        SHIFTOUT, and SHIFTOUT_MASK help read and write bitfields
        from device registers.

        SHIFTIN(v, mask): Left-shift bits `v' into the bitfield
                          defined by `mask', and return them.  No
                          side-effects.

        SHIFTOUT(v, mask): Extract and return the bitfield selected
                           by `mask' from `v', right-shifting the
                           bits so that the rightmost selected bit
                           is at bit 0.  No side-effects.

        SHIFTOUT_MASK(mask): Right-shift the bits in `mask' so that
                             the rightmost non-zero bit is at bit
                             0.  This is useful for finding the
                             greatest unsigned value that a bitfield
                             can hold.  No side-effects.  Note that
                             SHIFTOUT_MASK(m) = SHIFTOUT(m, m).

Examples:

/*
 * Register definitions taken from the RFMD RF3000 manual.
 */
#define RF3000_GAINCTL          0x11            /* TX variable gain control */
#define         RF3000_GAINCTL_TXVGC_MASK       BITS(7, 2)
#define         RF3000_GAINCTL_SCRAMBLER        BIT(1)

/*
 * Shift the transmit power into the transmit-power field of the
 * gain-control register and write it to the baseband processor.
 */
atw_rf3000_write(sc, RF3000_GAINCTL,
    SHIFTIN(txpower, RF3000_GAINCTL_TXVGC_MASK));


/*
 * Register definitions taken from the ADMtek ADM8211 manual.
 *
 */
#define ATW_RXSTAT_OWN          BIT(31)         /* 1: NIC may fill descriptor */
/* ... */
#define ATW_RXSTAT_DA1          BIT(17)         /* DA bit 1, admin'd address */
#define ATW_RXSTAT_DA0          BIT(16)         /* DA bit 0, group address */
#define ATW_RXSTAT_RXDR_MASK    BITS(15,12)     /* RX data rate */
#define ATW_RXSTAT_FL_MASK      BITS(11,0)      /* RX frame length, last
                                                 * descriptor only
                                                 */

/* Extract the frame length from the Rx descriptor's
 * status field.
 */
len = SHIFTOUT(rxstat, ATW_RXSTAT_FL_MASK);

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:22 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

sync with head.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Feb 16 20:17:20 2006 UTC (17 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Dec 24 20:45:09 2005 UTC (17 years, 5 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Dec 21 14:24:44 2005 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.52: +11 -2 lines
Diff to previous 1.52 (colored)

Add the state setting functions for the new random function, but use the
small one by default, so that we can switch in the future if we want to.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Dec 20 19:35:12 2005 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.51: +8 -3 lines
Diff to previous 1.51 (colored)

Provide _DIAGASSERT and NULL, so that we don't have to do it in *all* the
libkern files.
Also the new inet_addr, provides inet_aton; advertise it.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:37 2005 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.50: +1 -1 lines
Diff to previous 1.50 (colored)

merge ktrace-lwp.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:53 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.48.2.2: +1 -1 lines
Diff to previous 1.48.2.2 (colored) next main 1.49 (colored)

Fix the sync with head I botched.

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:41 2004 UTC (18 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.48.2.1: +0 -0 lines
Diff to previous 1.48.2.1 (colored)

Sync with HEAD.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:53:31 2004 UTC (18 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.48: +3 -7 lines
Diff to previous 1.48 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 13 11:34:24 2003 UTC (19 years, 9 months ago) by ragge
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Do not use the builtins for the mem* functions on vax, the compiler gets
confused with the static inline functions vax uses.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:08 2003 UTC (19 years, 10 months ago) by agc
Branch: MAIN
Changes since 1.48: +2 -6 lines
Diff to previous 1.48 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.48 / (download) - annotate - [select for diffs], Thu May 15 13:50:35 2003 UTC (20 years ago) by itojun
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.47: +3 -1 lines
Diff to previous 1.47 (colored)

add strl{cpy,cat} to libkern.  code from lib/libc/string (originally from openbsd).

Revision 1.39.10.2 / (download) - annotate - [select for diffs], Tue Dec 3 22:11:07 2002 UTC (20 years, 6 months ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.39.10.1: +5 -2 lines
Diff to previous 1.39.10.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Pull up revisions 1.42-1.43 (requested by thorpej in ticket #1024):
  Don't use __builtin_ffs() on vax, ffs is an instruction
  there already.  Also, always provide an ffs() prototype.
Should fix build problem on vax.

Revision 1.39.10.1 / (download) - annotate - [select for diffs], Thu Nov 21 18:05:15 2002 UTC (20 years, 6 months ago) by he
Branch: netbsd-1-6
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored)

Pull up revision 1.41 (requested by thorpej in ticket #710):
  GCC 2.95 supports __builtin_ffs(), so use it.

Revision 1.32.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:23 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.32.2.7: +2 -1 lines
Diff to previous 1.32.2.7 (colored) next main 1.33 (colored)

Catch up to -current

Revision 1.47 / (download) - annotate - [select for diffs], Thu Oct 24 20:53:50 2002 UTC (20 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

make offsetof lint friendlier.

Revision 1.32.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:59 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.6: +21 -45 lines
Diff to previous 1.32.2.6 (colored)

Catch up to -current.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Oct 6 08:51:44 2002 UTC (20 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

ESP output was drawing down the entropy pool at a ferocious rate, a
particular problem on hosts with only wireless interfaces that are
definitely not safe to use as entropy sources.

Add arc4randbytes() which hands out bytes from the same source used
by arc4random().  This is intended to be a _temporary_ interface
until we can design and implement a better general PRNG interface
that is decoupled from the entropy-pool implementation.

Modify key_randomfill() (used only for initialization vectors on
SA creation and via key_sa_stir_iv(), which does not "stir",
despite its name) to use arc4randbytes() instead of pulling bits
directly from the entropy pool.  It is my hope that this change
will pose minimal integration problems for the KAME folks as the
random-pool interface is *already* different between each BSD
variant; this just simplifies the NetBSD case and solves a
fairly serious problem.

Note that it is generally considered acceptable cryptographic
practice to use a fast stream cipher to generate IVs for encryption
with stronger block ciphers.  For example, the use of "non-Approved"
PRNGs to generate IVs for "Approved" block ciphers is explicitly
sanctioned by FIPS 140-2.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 4 18:39:52 2002 UTC (20 years, 8 months ago) by junyoung
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

Add strstr() to libkern. For now, it's only used in i386 (for processor
identification).

Revision 1.44 / (download) - annotate - [select for diffs], Fri Oct 4 00:50:15 2002 UTC (20 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.43: +19 -46 lines
Diff to previous 1.43 (colored)

Ansify's (use prototypes).

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:25 2002 UTC (20 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.37.2.2: +7 -2 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sync kqueue branch with HEAD

Revision 1.39.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:18 2002 UTC (20 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.39.8.1: +7 -2 lines
Diff to previous 1.39.8.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

catch up with -current.

Revision 1.32.2.6 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:41 2002 UTC (20 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.5: +7 -2 lines
Diff to previous 1.32.2.5 (colored)

Catch up to -current.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Aug 25 21:09:45 2002 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base, gehenna-devsw-base
Changes since 1.42: +2 -4 lines
Diff to previous 1.42 (colored)

Tweak the previous change so that a prototype is always provided.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 23 08:45:27 2002 UTC (20 years, 9 months ago) by ragge
Branch: MAIN
Changes since 1.41: +6 -1 lines
Diff to previous 1.41 (colored)

Do not try to use "__builtin_ffs" on vax, ffs is an instruction already.
Maybe possible to teach gcc to use it?

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 21 01:27:58 2002 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

GCC 2.95 supports __builtin_ffs(); use it.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:45 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.37.2.1: +2 -1 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored)

catch up with -current on kqueue branch

Revision 1.32.2.5 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:33 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.4: +2 -1 lines
Diff to previous 1.32.2.4 (colored)

Catch up to -current.

Revision 1.39.8.1 / (download) - annotate - [select for diffs], Thu May 30 14:48:13 2002 UTC (21 years ago) by gehenna
Branch: gehenna-devsw
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Catch up with -current.

Revision 1.40 / (download) - annotate - [select for diffs], Tue May 28 10:09:24 2002 UTC (21 years ago) by itojun
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

have arc4random(9).

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:26 2002 UTC (21 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.37: +36 -13 lines
Diff to previous 1.37 (colored)

Sync kqueue branch with -current.

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:47 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.3: +36 -13 lines
Diff to previous 1.32.2.3 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 28 07:37:06 2001 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.38: +6 -1 lines
Diff to previous 1.38 (colored)

Always provide alloca() as __builtin_alloca().

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 23 22:48:29 2001 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +31 -13 lines
Diff to previous 1.37 (colored)

The kernel is now built with -ffreestanding, so GCC built-ins are
disabled.  Explicitly re-enable some that we want to use, namely:

* memcpy() -> __builtin_memcpy()
* memcmp() -> __builtin_memcmp()
* memset() -> __builtin_memset()

* strcpy() -> __builtin_strcpy()
* strcmp() -> __builtin_strcmp()
* strlen() -> __builtin_strlen()

We might also consider some others for GCC 3.x.

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:49 2001 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.2: +5 -3 lines
Diff to previous 1.32.2.2 (colored)

Catch up with -current.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jul 7 17:22:25 2001 UTC (21 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: kqueue
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

restore bzero and bcmp prototypes for now -- this has to be hashed out.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jul 7 12:23:43 2001 UTC (21 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.35: +5 -1 lines
Diff to previous 1.35 (colored)

Put the prototypes for bcmp() and bzero() back (ifdef _STANDALONE) so that
libsa builds again.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jul 7 05:42:16 2001 UTC (21 years, 11 months ago) by perry
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)

Remove bcmp and bzero prototypes. And yes, I actually checked and
tested this time. (Slap self repeatedly.)

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:16 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.32.2.1: +9 -1 lines
Diff to previous 1.32.2.1 (colored)

Catch up to -current.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 30 02:34:58 2001 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.33: +9 -1 lines
Diff to previous 1.33 (colored)

remove some lint

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:33 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.2: +89 -1 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with HEAD

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:02 2001 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.32: +89 -1 lines
Diff to previous 1.32 (colored)

Catch up with -current.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 5 04:38:06 2001 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.32: +89 -1 lines
Diff to previous 1.32 (colored)

Add ctype routines.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:34 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27.2.1: +2 -1 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored)

Sync with HEAD.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:20 2000 UTC (22 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.27: +19 -11 lines
Diff to previous 1.27 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sun Nov 5 00:50:21 2000 UTC (22 years, 7 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Pullup 1.31 [msaitoh]:
enclose offsetof macro definition with #ifndef offsetof ... #endif

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 1 19:37:18 2000 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Add a strcasecmp(), modified from chopps's strncasecmp().

Revision 1.31 / (download) - annotate - [select for diffs], Thu Oct 12 03:42:33 2000 UTC (22 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

enclose offsetof macro definition with #ifndef offsetof ... #endif

Revision 1.30 / (download) - annotate - [select for diffs], Mon May 8 23:33:15 2000 UTC (23 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.29: +7 -7 lines
Diff to previous 1.29 (colored)

__predict_true() the expressions passed to the assert family, so
as to move the calls to __assert() out-of-line.

Suggested by Bill Sommerfeld.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 29 03:07:52 2000 UTC (23 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.28: +5 -1 lines
Diff to previous 1.28 (colored)

Multiple include protection.

Revision 1.27.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:56 1999 UTC (23 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.27: +7 -5 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Pull up to last week's -current.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Nov 29 23:12:58 1999 UTC (23 years, 6 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Changes since 1.27: +7 -5 lines
Diff to previous 1.27 (colored)

Move strtoul.c (via CVS repo copy) to libkern.  Also sort prototypes
in libkern.h and sources in arm32/Makefile.inc alphabetically.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Sep 10 14:05:40 1999 UTC (23 years, 8 months ago) by tron
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add prototype for memcmp() as suggested by Anders Hjalmarsson in
PR kern/8360.

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:25:30 1999 UTC (23 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync w/ -current.

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 7 14:49:53 1999 UTC (24 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

move intoa() from libsa:net.c to libkern, turn inet_ntoa() into a macro,
nuke ip_convertaddr()

Revision 1.25 / (download) - annotate - [select for diffs], Mon Apr 12 17:23:23 1999 UTC (24 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

This was an n_long, not u_long, so u_int32_t is correct.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 12 01:05:01 1999 UTC (24 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

libkern just got an inet_addr(), but it won't compile, no prototype. Cleanup...
* Add prototype to libkern.h.
* Remove the almost-identical-copy from libsa/net.[ch].
* Change its type back to the (wrong, but harmless) historical one. (u_long)
* Kill the XXX local prototype in nfs_bootparam.c

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:07:01 1998 UTC (24 years, 10 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jul 31 23:44:41 1998 UTC (24 years, 10 months ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: chs-ubc2
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

make libkern build memmove() properly

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 21 18:43:35 1998 UTC (24 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add a small string pattern matching function to facilitate pcmcia cis string
matches.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 1 02:23:53 1998 UTC (25 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Merge with Lite2 + local changes

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 22 09:18:38 1998 UTC (25 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +7 -5 lines
Diff to previous 1.19 (colored)

Add memcpy() and memset(), and sort.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 28 02:22:14 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

Add offsetof().

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 23 12:56:39 1998 UTC (25 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (colored)

remove prototypes for deprecated index() and rindex()

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jan 22 15:42:24 1998 UTC (25 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

add prototype for index()

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 21 21:16:52 1998 UTC (25 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

add strrchr

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 24 18:10:32 1997 UTC (25 years, 7 months ago) by mjacob
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Add missing NULL define for KERNEL case and prototype into libkern.h.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 7 22:45:36 1997 UTC (25 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia
Changes since 1.13: +10 -11 lines
Diff to previous 1.13 (colored)

mark prototypes for static inline functions as possibly unused (with
__attribute__ ((unused))), to avoid generating warnings when compiling
without optimization but with most ports' default warning flags.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 13 14:27:04 1997 UTC (25 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add prototype for bzero() (since it is implemented here).

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 18 02:33:38 1997 UTC (26 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

add strchr() to libkern.  strchr.c copied from libc's "index.c", but with
appropriate definitions so that it'll build strchr(), and so that it builds
correctly in libkern (needed to #define NULL).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 24 23:50:32 1996 UTC (26 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

second and third args to scanc() (string and table) are not and should not
be modified.  Make them 'const'.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 22 16:23:31 1996 UTC (26 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

add a missing #else, pointed out by Wolfgang Solfrank

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 27 00:44:21 1996 UTC (26 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +38 -1 lines
Diff to previous 1.8 (colored)

Add machine-independent assertion-checking support.  macros are:

	assert()	which always does assertion checking
			unless "NDEBUG" is defined.

	KASSERT()	which does assertion checking if DIAGNOSTIC
			is defined.

	KDASSERT()	which does assertion checking if DEBUG is
			define.  This macro exists for compatibility
			with existing ports' assertion checking macros.
			(Assertion checking is not typically an
			"expensive" operation, and DIAGNOSTIC should be
			used for inexpensive consistency checks.)

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 10 15:33:43 1996 UTC (26 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

locc() is unused.  Remove it from the machine-independent kernel interface.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 14 18:52:08 1996 UTC (27 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.6: +28 -20 lines
Diff to previous 1.6 (colored)

- Add missing prototypes
- Bring prototypes into scope
- Correct prototype for skpc

Revision 1.6 / (download) - annotate - [select for diffs], Tue Feb 13 23:48:26 1996 UTC (27 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

Add declaration of strncasecmp.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 23 20:35:47 1995 UTC (27 years, 8 months ago) by leo
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)

Add abs() function as an 'inline'. The atari-port needs it since the
-fno-builtin is used in the kernel Makefile.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 14 05:43:24 1995 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.3: +10 -1 lines
Diff to previous 1.3 (colored)

prototype inline functions, almost as suggested by Jonathan Stone in PR 1258.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 26 06:42:26 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored)

new RCS ID format.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Jul 15 22:32:15 1994 UTC (28 years, 10 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.1: +8 -8 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

updates from trunk.  basically, C language errors.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 15 22:29:28 1994 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +8 -8 lines
Diff to previous 1.1 (colored)

don't use inline, use __inline, like cdefs intends (so it can kill it if nongcc

Revision 1.1 / (download) - annotate - [select for diffs], Thu May 5 05:38:57 1994 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>