#define _GNU_SOURCE #include const char * getprogname(void) { return program_invocation_short_name; }