summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getprogname.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getprogname.3')
-rw-r--r--lib/libc/gen/getprogname.39
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/gen/getprogname.3 b/lib/libc/gen/getprogname.3
index b3d8e4c38e2..6443d3bd459 100644
--- a/lib/libc/gen/getprogname.3
+++ b/lib/libc/gen/getprogname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getprogname.3,v 1.1 2013/05/31 20:59:23 ajacoutot Exp $
+.\" $OpenBSD: getprogname.3,v 1.2 2013/05/31 21:18:04 tedu Exp $
.\"
.\" Copyright (c) 2001 Christopher G. Demetriou
.\" All rights reserved.
@@ -58,11 +58,12 @@ will return
.Pp
The
.Fn setprogname
-function sets the name of the program to be the last component of the
+function sets the name of the program to be the last path 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.
+Internally, only the pointer to the given string is kept as the program name,
+so it should not be modified and the storage for the string must remain valid
+for the rest of the program's lifetime.
.Pp
In
.Ox ,