FreeBSD src
Go to file
Poul-Henning Kamp 5b1deb3ce8 Return length from fwopen() file callback instead of zero.
The symptom is that syslog() fails to log anything but the "ident"
string if LOG_PERROR is specified to openlog(3) and the extensible
printf is in action.

For unclear, likely quaint historical reasons, syslog uses fwopen()
on a stack buffer, rather than using the more straightforward
and faster snprintf().

Along the way, fflush(3) is called, and since the callback writer
function returns zero instead of the length "written", __SERR
naturally gets set on the filedescriptor.

The extensible printf, in difference from the normal printf refuses
to output anything to an __SERR marked filedescriptor, and thus
the actual syslog message is supressed.

MFC:	after 2 weeks
2006-08-07 20:12:18 +00:00
bin Commit the results of the typo hunt by Darren Pilgrim. 2006-08-04 07:56:35 +00:00
contrib Add note concerning FreeBSD-SA-06:01.texindex. 2006-07-08 07:32:41 +00:00
crypto Resolve conflicts after import of OpenSSL 0.9.8b. 2006-07-30 14:17:54 +00:00
etc Back out 1.272. The LAPIC timer conflicts with C2/3 on various systems, 2006-08-05 20:28:50 +00:00
games Commit the results of the typo hunt by Darren Pilgrim. 2006-08-04 07:56:35 +00:00
gnu Add libbsm to the list of our standard libraries. 2006-08-05 20:38:23 +00:00
include Add device to access and modify Open Firmware NVRAM settings in 2006-08-01 22:19:01 +00:00
kerberos5 Kerberos/Heimdal doesn't really depend on the INET6 macro. 2006-07-28 06:33:27 +00:00
lib Return length from fwopen() file callback instead of zero. 2006-08-07 20:12:18 +00:00
libexec - Improve and extend mark-up. 2006-08-07 16:05:55 +00:00
release Commit the results of the typo hunt by Darren Pilgrim. 2006-08-04 07:56:35 +00:00
rescue Respect MK_INET6_SUPPORT. 2006-07-27 12:28:05 +00:00
sbin Add missing #. 2006-08-07 20:09:09 +00:00
secure Upgrade to OpenSSL 0.9.8b. 2006-07-29 19:41:41 +00:00
share Fix things I misadvised to Nate Lawson: 2006-08-07 07:28:47 +00:00
sys When a user uses a hint to specify the IRQ for a link device, accept IRQs 2006-08-07 19:52:30 +00:00
tools Fix some minor nits in the README file of wesside 2006-08-07 17:08:05 +00:00
usr.bin Update document date. 2006-08-03 20:43:51 +00:00
usr.sbin Add line edit and history support to ngctl(8) via editline(3). 2006-08-07 14:17:05 +00:00
COPYRIGHT Happy new year, a little late 2006-01-15 22:06:10 +00:00
LOCKS Document commit constraints for RELENG_6_*. 2006-01-13 06:51:43 +00:00
MAINTAINERS Remove pre-commit review on mpt. 2006-07-11 06:09:54 +00:00
Makefile Per weak consensus on this topic, remove suggestion to set 2006-06-22 16:52:53 +00:00
Makefile.inc1 Fix doxygen target. 2006-08-02 15:26:15 +00:00
ObsoleteFiles.inc The KAME compatability shims in net_osdep.h have been removed. 2006-08-04 21:29:22 +00:00
README Simply running ``make world'' will bomb unless you dig up the 2006-06-07 03:33:48 +00:00
UPDATING Add an entry for enigma(1)/crypt(1) change on 64-bit architectures. 2006-07-26 16:31:10 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html