1#define _GNU_SOURCE 2#include <errno.h> 3 4const char * 5getprogname(void) 6{ 7 return program_invocation_short_name; 8} 9