#include "long-options.h"
#include "error.h"
-extern char *basename ();
-extern void strip_trailing_slashes ();
+char *base_name ();
+void strip_trailing_slashes ();
/* The name this program was run with. */
char *program_name;
strip_trailing_slashes (argv[1]);
- name = basename (argv[1]);
+ name = base_name (argv[1]);
if (argc == 3)
remove_suffix (name, argv[2]);
void endusershell ();
void setusershell ();
-char *basename ();
+char *base_name ();
char *xmalloc ();
char *xrealloc ();
char *xstrdup ();
if (tty == NULL)
tty = "none";
/* 4.2BSD openlog doesn't have the third parameter. */
- openlog (basename (program_name), 0
+ openlog (base_name (program_name), 0
# ifdef LOG_AUTH
, LOG_AUTH
# endif
char *arg0;
char *shell_basename;
- shell_basename = basename (shell);
+ shell_basename = base_name (shell);
arg0 = xmalloc (strlen (shell_basename) + 2);
arg0[0] = '-';
strcpy (arg0 + 1, shell_basename);
args[0] = arg0;
}
else
- args[0] = basename (shell);
+ args[0] = base_name (shell);
if (fast_startup)
args[argno++] = "-f";
if (command)