#include <limits.h>
#include "argp.h"
-#include "dirname.h"
+#include "progname.h"
#include "gettext.h"
#define _(String) gettext (String)
#include "manp.h"
-char *program_name;
int quiet = 0;
man_sandbox *sandbox; /* unused, but needed by libman */
{
char *path_string;
- program_name = base_name (argv[0]);
+ set_program_name (argv[0]);
init_debug ();
init_locale ();