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