diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2013-05-31 21:18:05 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2013-05-31 21:18:05 +0000 |
commit | c6a8c37bc7500583c98ecd5ad440ec30d18d7c61 (patch) | |
tree | 4eb3d82a9497b01ce340598aea95c5e2df8092bd /lib/libc | |
parent | fb9616946b3fce4a353e41a6826e22bce6e28a55 (diff) |
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 , |