summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getprogname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getprogname.c')
-rw-r--r--lib/libc/gen/getprogname.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/gen/getprogname.c b/lib/libc/gen/getprogname.c
new file mode 100644
index 0000000..54f721a
--- /dev/null
+++ b/lib/libc/gen/getprogname.c
@@ -0,0 +1,13 @@
+#if defined(LIBC_RCS) && !defined(lint)
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif /* LIBC_RCS and not lint */
+
+extern const char *__progname;
+
+const char *
+getprogname(void)
+{
+
+ return (__progname);
+}
OpenPOWER on IntegriCloud