summaryrefslogtreecommitdiff
path: root/include/stdlib.h
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 /include/stdlib.h
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 'include/stdlib.h')
-rw-r--r--include/stdlib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 514ecfc435d..71754c52bb5 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.51 2012/12/03 20:08:33 millert Exp $ */
+/* $OpenBSD: stdlib.h,v 1.52 2013/05/31 20:59:24 ajacoutot Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -270,6 +270,10 @@ int getloadavg(double [], int);
void cfree(void *);
+const char *
+ getprogname(void);
+void setprogname(const char *);
+
#ifndef _GETOPT_DEFINED_
#define _GETOPT_DEFINED_
int getopt(int, char * const *, const char *);