1207753Smm/////////////////////////////////////////////////////////////////////////////// 2207753Smm// 3207753Smm/// \file tuklib_progname.h 4207753Smm/// \brief Program name to be displayed in messages 5207753Smm// 6207753Smm// Author: Lasse Collin 7207753Smm// 8207753Smm// This file has been put into the public domain. 9207753Smm// You can do whatever you want with this file. 10207753Smm// 11207753Smm/////////////////////////////////////////////////////////////////////////////// 12207753Smm 13207753Smm#ifndef TUKLIB_PROGNAME_H 14207753Smm#define TUKLIB_PROGNAME_H 15207753Smm 16207753Smm#include "tuklib_common.h" 17207753Smm#include <errno.h> 18207753Smm 19207753SmmTUKLIB_DECLS_BEGIN 20207753Smm 21207753Smm#if HAVE_DECL_PROGRAM_INVOCATION_NAME 22207753Smm# define progname program_invocation_name 23207753Smm#else 24207753Smm# define progname TUKLIB_SYMBOL(tuklib_progname) 25207753Smm extern char *progname; 26207753Smm#endif 27207753Smm 28207753Smm#define tuklib_progname_init TUKLIB_SYMBOL(tuklib_progname_init) 29207753Smmextern void tuklib_progname_init(char **argv); 30207753Smm 31207753SmmTUKLIB_DECLS_END 32207753Smm#endif 33