Date: Wed, 9 Oct 2002 17:53:10 +0800 (KRAST) From: Eugene Grosbein <eugen@grosbein.pp.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/43854: undocumented possibiliny of non-zero errno *printf(3) Message-ID: <200210090953.g999rALa028122@www.svzserv.kemerovo.su>
index | next in thread | raw e-mail
>Number: 43854 >Category: docs >Synopsis: undocumented possibiliny of non-zero errno *printf(3) >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 09 03:00:09 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 4.6-STABLE i386 >Organization: Svyaz Service JSC >Environment: System: FreeBSD www.svzserv.kemerovo.su 4.6-STABLE FreeBSD 4.6-STABLE #1: Sat Sep 28 00:20:38 KRAST 2002 eu@www.svzserv.kemerovo.su:/home4/obj/home2/src/sys/WWW i386 >Description: man page for printf(3) does not mention that errno may be set to non-zero value as error condition indicator >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)). >Fix: Create ERRORS section. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the messagehelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210090953.g999rALa028122>
