2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright (c) 2014, Joyent, Inc.
20 .Nd get or set the program name
29 .Fa "const char *progname"
34 function is used to obtain the program name.
35 The program name is set at program start-up, before
38 Note, other operating systems, do not guarantee that a program name has been set
39 at start up time and therefore may return a null pointer if
45 function is used to change the program name to another value.
48 must contain a null terminated character string, whose last component
49 which will become the new program name.
53 function always returns the current program name.
54 The program name is always set, it will not return a null pointer.
55 .Sh INTERFACE STABILITY
71 does not modify the program name as reported by utilities like
75 however, it does ensure a consistent program name for the