diff options
Diffstat (limited to 'lib/libc/gen/setprogname.c')
-rw-r--r-- | lib/libc/gen/setprogname.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c new file mode 100644 index 0000000..6c56013 --- /dev/null +++ b/lib/libc/gen/setprogname.c @@ -0,0 +1,13 @@ +#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; +} |