Full switch to clang/ELF. Drop ack. Simplify.

There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

	. drop boot monitor -> allowing dropping ack support
	. facility to copy ELF boot files to /boot so that old boot monitor
	  can still boot fairly easily, see UPDATING
	. no more ack-format libraries -> single-case libraries
	. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
	. drop several ack toolchain commands, but not all support
	  commands (e.g. aal is gone but acksize is not yet).
	. a few libc files moved to netbsd libc dir
	. new /bin/date as minix date used code in libc/
	. test compile fix
	. harmonize includes
	. /usr/lib is no longer special: without ack, /usr/lib plays no
	  kind of special bootstrapping role any more and bootstrapping
	  is done exclusively through packages, so releases depend even
	  less on the state of the machine making them now.
	. rename nbsd_lib* to lib*
	. reduce mtree
This commit is contained in:
Ben Gras
2012-02-11 19:31:25 +01:00
parent 2487445f5f
commit 2fe8fb192f
5056 changed files with 16216 additions and 133169 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: err.h,v 1.14 2005/02/03 04:39:32 perry Exp $ */
/* $NetBSD: err.h,v 1.15 2010/02/25 18:37:12 joerg Exp $ */
/*-
* Copyright (c) 1993
@@ -41,30 +41,26 @@
* for utilities to have to include one of them to include err.h, so we get
* _BSD_VA_LIST_ from <machine/ansi.h> and use it.
*/
#ifdef __minix
#include <minix/ansi.h>
#else
#include <machine/ansi.h>
#endif
#include <sys/cdefs.h>
__BEGIN_DECLS
__dead void err(int, const char *, ...)
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
__printflike(2, 3) __dead;
__dead void verr(int, const char *, _BSD_VA_LIST_)
__attribute__((__noreturn__, __format__(__printf__, 2, 0)));
__printflike(2, 0) __dead;
__dead void errx(int, const char *, ...)
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
__printflike(2, 3) __dead;
__dead void verrx(int, const char *, _BSD_VA_LIST_)
__attribute__((__noreturn__, __format__(__printf__, 2, 0)));
__printflike(2, 0) __dead;
void warn(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
__printflike(1, 2);
void vwarn(const char *, _BSD_VA_LIST_)
__attribute__((__format__(__printf__, 1, 0)));
__printflike(1, 0);
void warnx(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)));
__printflike(1, 2);
void vwarnx(const char *, _BSD_VA_LIST_)
__attribute__((__format__(__printf__, 1, 0)));
__printflike(1, 0);
__END_DECLS
#endif /* !_ERR_H_ */