#include __FBSDID("$FreeBSD$"); #include #include extern const char *__progname; void setprogname(const char *progname) { const char *p; p = strrchr(progname, '/'); if (p != NULL) __progname = p + 1; else __progname = progname; }