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