diff options
author | 2013-05-31 21:18:04 +0000 | |
---|---|---|
committer | 2013-05-31 21:18:04 +0000 | |
commit | 2a01c7802a21082a3fe8bc1505ce861cfeccdd4f (patch) | |
tree | 5ff1b841713e35c4f26541264357f43a42df7d7a /lib/libc | |
parent | fixie (diff) | |
download | wireguard-openbsd-2a01c7802a21082a3fe8bc1505ce861cfeccdd4f.tar.xz wireguard-openbsd-2a01c7802a21082a3fe8bc1505ce861cfeccdd4f.zip |
minor tweaks
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getprogname.3 | 9 |
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 , |