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