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