freebsd-skq/lib/libc/gen/setprogname.c
Dima Dorfman cd18ccdc30 Introduce getprogname(3) and setprogname(3) library calls. These get
and set __progname, respectively.

Discussed on:	-arch (Feb 2001), -audit
Reviewed by:	-audit
Approved by:	kris
Obtained from:	(mostly) NetBSD
2001-05-15 23:41:01 +00:00

14 lines
219 B
C

#if defined(LIBC_RCS) && !defined(lint)
static const char rcsid[] =
"$FreeBSD$";
#endif /* LIBC_RCS and not lint */
extern const char *__progname;
void
setprogname(const char *progname)
{
__progname = progname;
}