]> git.saurik.com Git - apple/libc.git/blame - gen/FreeBSD/getprogname.c
Libc-1082.50.1.tar.gz
[apple/libc.git] / gen / FreeBSD / getprogname.c
CommitLineData
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
14const char *
15_getprogname(void)
16{
17
18 return (__progname);
19}