]>
Commit | Line | Data |
---|---|---|
9385eb3d A |
1 | #include <sys/cdefs.h> |
2 | __FBSDID("$FreeBSD: src/lib/libc/gen/getprogname.c,v 1.4 2002/03/29 22:43:41 markm Exp $"); | |
3 | ||
4 | #include "namespace.h" | |
5 | #include <stdlib.h> | |
ad3c9f2a A |
6 | #include <crt_externs.h> |
7 | #define __progname (*_NSGetProgname()) | |
9385eb3d A |
8 | #include "un-namespace.h" |
9 | ||
10 | #include "libc_private.h" | |
11 | ||
12 | __weak_reference(_getprogname, getprogname); | |
13 | ||
14 | const char * | |
15 | _getprogname(void) | |
16 | { | |
17 | ||
18 | return (__progname); | |
19 | } |