Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 01/03/2001 14:44:54
Module Name:	basesrc
Committed By:	lukem
Date:		Wed Jan  3 12:44:54 UTC 2001

Modified Files:
	basesrc/lib/libc/gen: assert.c

Log Message:
* Change __diagassert13() so that by default it only syslogs the error (it
  used to syslog and also send to stderr).

  This behaviour can be changed by setting $LIBC_DIAGASSERT to a
  string containing one or more of the following letters:
	a	abort() after syslog and/or print to stderr
	A	opposite of a
	e	print assertion message to stderr
	E	opposite of e
	l	log assertion message to syslog
	L	opposite of l

  This allows per-process control of the _DIAGASSERT() behaviour (e.g,
  if you want to abort() after the assertion is raised) by modifying the
  environment before starting the process.

  Note that __DIAGASSERT() is still a no-op unless libc is compiled
  with -D_DIAGNOSTIC.

* Implement __assert()/__diagassert() by calling __assert13()/__diagassert13()
  with a function of NULL, reducing unnecessary code duplication


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 basesrc/lib/libc/gen/assert.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.