summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-05-05 14:37:20 +0000
committerschwarze <schwarze@openbsd.org>2015-05-05 14:37:20 +0000
commit4f07dcdab577dd86ba082203c8ba14e21e60d733 (patch)
treed7acd9d9b5585bbe697cb2e29848c6262bfb4e62
parentadd missing braces in _aucat_wmsg() (diff)
downloadwireguard-openbsd-4f07dcdab577dd86ba082203c8ba14e21e60d733.tar.xz
wireguard-openbsd-4f07dcdab577dd86ba082203c8ba14e21e60d733.zip
Make argument name consistent and use .Fn rather than .Nm in section 3.
Patch from <Kaspars at Bankovskis dot net>.
-rw-r--r--lib/libc/gen/getprogname.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/getprogname.3 b/lib/libc/gen/getprogname.3
index d4ade82a186..58e85b877cf 100644
--- a/lib/libc/gen/getprogname.3
+++ b/lib/libc/gen/getprogname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getprogname.3,v 1.4 2013/07/31 16:43:27 deraadt Exp $
+.\" $OpenBSD: getprogname.3,v 1.5 2015/05/05 14:37:20 schwarze Exp $
.\"
.\" Copyright (c) 2001 Christopher G. Demetriou
.\" All rights reserved.
@@ -30,7 +30,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 31 2013 $
+.Dd $Mdocdate: May 5 2015 $
.Dt GETPROGNAME 3
.Os
.Sh NAME
@@ -55,7 +55,7 @@ or other diagnostic output.
The
.Fn setprogname
function sets the name of the program to be the last path component of the
-.Fa progname
+.Fa name
argument.
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
@@ -65,9 +65,9 @@ for the rest of the program's lifetime.
.Xr setproctitle 3
.Sh HISTORY
The
-.Nm getprogname
+.Fn getprogname
and
-.Nm setprogname
+.Fn setprogname
functions first appeared in
.Ox 5.4
as function-based wrappers around the