xref: /freebsd/lib/libc/gen/getprogname.c (revision 0d66206fff44f864ea8a4b220c3a53b4caa959a0)
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