Date: Mon, 16 Nov 2009 06:56:12 +0100 (CET) From: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/140594: getprogname.3 misleading Message-ID: <200911160556.nAG5uCec061860@home3.dinoex.sub.de> Resent-Message-ID: <200911160600.nAG606KS012997@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 140594
>Category: docs
>Synopsis: getprogname.3 misleading
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 16 06:00:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Dirk Meyer
>Release: FreeBSD 8.0-PRERELEASE
>Organization:
privat
>Environment:
FreeBSD libc manpage section 3.
>Description:
The manpage of getprogname seemms to contain an error.
[...]
In FreeBSD, the name of the program is set by the start-up code that is
run before main(); thus, running setprogname() is not necessary. Pro-
grams that desire maximum portability should still call it; on another
operating system, these functions may be implemented in a portability
library. Calling setprogname() allows the aforementioned library to
learn the program name without modifications to the start-up code.
[...]
I think the last part should be:
Calling getprogname() allows ...
>How-To-Repeat:
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/getprogname.3
man getprogname
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911160556.nAG5uCec061860>
