summaryrefslogtreecommitdiff
path: root/lib/libc/gen/setproctitle.3
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-05-31 20:59:25 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-05-31 20:59:25 +0000
commit32f7fca8e67c4496a1076a3262e907ab4f66be1c (patch)
tree8178ef66fd7f41cbfa14f42a2347c4bb39ca31f7 /lib/libc/gen/setproctitle.3
parentcb993534d12b98cd1ba9d48fa00de63bfb6ffc7e (diff)
Add getprogname() and setprogname() to ease slackers^porters' work.
Man page adapted from FreeBSD and NetBSD. Bump libc minor now (there will be more upcoming changes). input from tedu@ get it in deraadt@
Diffstat (limited to 'lib/libc/gen/setproctitle.3')
-rw-r--r--lib/libc/gen/setproctitle.35
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/setproctitle.3 b/lib/libc/gen/setproctitle.3
index 21256315c44..9886210857b 100644
--- a/lib/libc/gen/setproctitle.3
+++ b/lib/libc/gen/setproctitle.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setproctitle.3,v 1.16 2007/05/31 19:19:28 jmc Exp $
+.\" $OpenBSD: setproctitle.3,v 1.17 2013/05/31 20:59:23 ajacoutot Exp $
.\"
.\" Copyright (c) 1994, 1995 Christopher G. Demetriou
.\" All rights reserved.
@@ -29,7 +29,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: May 31 2007 $
+.Dd $Mdocdate: May 31 2013 $
.Dt SETPROCTITLE 3
.Os
.Sh NAME
@@ -67,6 +67,7 @@ setproctitle("foo! (%d)", getpid());
.Sh SEE ALSO
.Xr ps 1 ,
.Xr w 1 ,
+.Xr getprogname 3 ,
.Xr printf 3
.Sh HISTORY
The