Commit Graph

18 Commits

Author SHA1 Message Date
cgd bdbfa48c0b 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.)
1996-08-27 00:44:20 +00:00
christos 0ca6a87952 Remove memset.c; it is not currently used, and .c files should belong in
the MI portion of libkern. When/if we move to use mem* routines in the kernel
we can add it to the MI portion/write a memset.s.
1996-04-23 23:05:22 +00:00
cgd 1813cc71d0 don't include user-land headers in libkern files when compiling for
the kernel.  memset.c does not belong here.  it either belongs in
the MI libkern directory, or does not belong in libkern at all.
1996-04-18 02:19:07 +00:00
cgd e70b1375c9 add strncasecmp.c to ports' libkern Makefile.inc's. When adding a new
source file to libkern, it should be added to _ALL_ ports makefiles if
it is machine-independent and used by machine-independent code (in
this case adosfs).  (There are several arguments that say that
strncasecmp should not be in libkern at all, and i think they're
good ones, but as long as ADOSFS needs it to link, it has to be here
for all architectures.)
1996-04-13 01:17:27 +00:00
scottr e494b8793f Back out previous change. 1996-03-11 05:46:51 +00:00
thorpej e142a2195f Provide a memset() for the i386 (assembly version), and move memset.c
out into the libkern proper in case other ports want to use it.
i386 kernels with COMPAT_LINUX should compile now.
1996-03-11 03:19:37 +00:00
mycroft 9782971b02 Remove setjmp() and ffs(). 1995-10-07 22:26:53 +00:00
pk 1778fc8e4a eserve the equality "x == y*(x/y)+(x%y)" for negative y; from Lon Willett. 1995-04-22 09:37:39 +00:00
cgd aa9eacdd59 new RCS ID format. 1994-10-26 06:39:02 +00:00
deraadt 9d977e669b gcc automatically calls memset in certain situations. 1994-09-15 01:46:37 +00:00
deraadt 983c6f33c3 auto-copied from libc 1994-06-30 06:52:54 +00:00
deraadt b13e4ea39a find divrem.m4 automatically 1994-06-30 06:51:51 +00:00
deraadt 21bd5c11f4 delete some unneeded things 1994-03-22 19:17:22 +00:00
pk ccbb67e8c3 Find source in the right places. 1994-01-15 19:48:56 +00:00
cgd fdc1a28735 use .S 1993-12-05 01:52:27 +00:00
cgd 2193c056b8 add strncmp to anything 1993-10-15 08:41:12 +00:00
cgd acbf63a86b add __main() 1993-10-15 06:20:46 +00:00
cgd 2d4295eb29 move 'boot' and 'libkern' into 'lib'. generally clean up 'kernel library'
building and dependencies.
1993-10-13 05:40:23 +00:00