summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/setprogname.c
diff options
context:
space:
mode:
authorjamie <jamie@FreeBSD.org>2010-10-19 21:32:13 +0000
committerjamie <jamie@FreeBSD.org>2010-10-19 21:32:13 +0000
commit09f9c897d33c41618ada06fbbcf1a9b3812dee53 (patch)
treeaf2ff90c73b266b86d086d66705c8cc92cce3b7b /lib/libc/gen/setprogname.c
parent831bbfaf753dc145ab80d1807336d4fb9ef8dffe (diff)
downloadFreeBSD-src-09f9c897d33c41618ada06fbbcf1a9b3812dee53.zip
FreeBSD-src-09f9c897d33c41618ada06fbbcf1a9b3812dee53.tar.gz
A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.
Diffstat (limited to 'lib/libc/gen/setprogname.c')
-rw-r--r--lib/libc/gen/setprogname.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c
deleted file mode 100644
index 29a6cd0..0000000
--- a/lib/libc/gen/setprogname.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "libc_private.h"
-
-void
-setprogname(const char *progname)
-{
- const char *p;
-
- p = strrchr(progname, '/');
- if (p != NULL)
- __progname = p + 1;
- else
- __progname = progname;
-}
OpenPOWER on IntegriCloud