docs/140594: getprogname.3 misleading

dirk.meyer at dinoex.sub.org dirk.meyer at dinoex.sub.org
Mon Nov 16 06:00:07 UTC 2009


>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:



More information about the freebsd-doc mailing list