summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-08-21 18:49:58 +0000
committerdd <dd@FreeBSD.org>2001-08-21 18:49:58 +0000
commit99b2d7167cc3accefec39fb88a2a5c4182cc842a (patch)
tree03977ca079820a2f92ecb86b04f68e99d8f237a5 /lib/libc/gen
parentdaf9108f0f6b58f6164d4996630ef264f0eac1c2 (diff)
downloadFreeBSD-src-99b2d7167cc3accefec39fb88a2a5c4182cc842a.zip
FreeBSD-src-99b2d7167cc3accefec39fb88a2a5c4182cc842a.tar.gz
The setprogname() function sets the name of the program to be the last
component of the progname argument.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/getprogname.34
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/getprogname.3 b/lib/libc/gen/getprogname.3
index cf1e123..7f0222d 100644
--- a/lib/libc/gen/getprogname.3
+++ b/lib/libc/gen/getprogname.3
@@ -63,7 +63,9 @@ If the name has not been set yet, it will return
.Pp
The
.Fn setprogname
-function sets the name of the program.
+function sets the name of the program to be the last component of the
+.Fa progname
+argument.
Since a pointer to the given string is kept as the program name,
it should not be modified for the rest of the program's lifetime.
.Pp
OpenPOWER on IntegriCloud