Bug 43854

Summary: undocumented possibiliny of non-zero errno *printf(3)
Product: Documentation Reporter: Eugene Grosbein <ports>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Eugene Grosbein 2002-10-09 11:00:09 UTC
		man page for printf(3) does not mention that errno may
		be set to non-zero value as error condition indicator

Fix: 

Create ERRORS section.
How-To-Repeat: 
man 3 printf | col -b | grep errno
cd /usr/src/lib/libc/stdio; grep errno *printf.c

		You can see that at least asprintf/vasprintf may set errno
		themselves, but they and any other can perhaps return errno!=0
		that was set by lower layer functions (f.e., write(2)).
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2002-12-20 07:36:54 UTC
State Changed
From-To: open->closed

Duplicate of docs/39257, which I am about to fix. 
http://www.freebsd.org/cgi/query-pr.cgi?pr=docs/39257