xref: /freebsd/lib/libc/gen/getprogname.c (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1 #include <sys/cdefs.h>
2 __FBSDID("$FreeBSD$");
3 
4 #include "namespace.h"
5 #include <stdlib.h>
6 #include "un-namespace.h"
7 
8 #include "libc_private.h"
9 
10 __weak_reference(_getprogname, getprogname);
11 
12 const char *
13 _getprogname(void)
14 {
15 
16 	return (__progname);
17 }
18