#include <stdlib.h>
#include "libbb.h"
-extern unsigned long get_ug_id(const char *s,
+unsigned long get_ug_id(const char *s,
long (*__bb_getxxnam)(const char *))
{
unsigned long r;
#include <string.h>
/* returns the array number of the string */
-extern int
-compare_string_array(const char * const string_array[], const char *key)
+int compare_string_array(const char * const string_array[], const char *key)
{
int i;
#include <assert.h>
#include "libbb.h"
-extern
unsigned long bb_xparse_number(const char *numstr,
const struct suffix_mult *suffixes)
{
#include "libbb.h"
#ifdef L_bb_vfprintf
-extern int bb_vfprintf(FILE * __restrict stream,
+int bb_vfprintf(FILE * __restrict stream,
const char * __restrict format,
va_list arg)
{
#endif
#ifdef L_bb_fprintf
-extern int bb_fprintf(FILE * __restrict stream,
+int bb_fprintf(FILE * __restrict stream,
const char * __restrict format, ...)
{
va_list arg;
#include "libbb.h"
#ifdef L_safe_strtoi
-extern
int safe_strtoi(char *arg, int* value)
{
int error;
#endif
#ifdef L_safe_strtod
-extern
int safe_strtod(char *arg, double* value)
{
char *endptr;
#endif
#ifdef L_safe_strtol
-extern
int safe_strtol(char *arg, long* value)
{
char *endptr;
#endif
#ifdef L_safe_strtoul
-extern
int safe_strtoul(char *arg, unsigned long* value)
{
char *endptr;
#include "libbb.h"
#ifdef L_xgetularg_bnd_sfx
-extern
unsigned long bb_xgetularg_bnd_sfx(const char *arg, int base,
unsigned long lower,
unsigned long upper,
#endif
#ifdef L_xgetlarg_bnd_sfx
-extern
long bb_xgetlarg_bnd_sfx(const char *arg, int base,
long lower,
long upper,
#endif
#ifdef L_getlarg10_sfx
-extern
long bb_xgetlarg10_sfx(const char *arg, const struct suffix_mult *suffixes)
{
return bb_xgetlarg_bnd_sfx(arg, 10, LONG_MIN, LONG_MAX, suffixes);
#endif
#ifdef L_xgetularg_bnd
-extern
unsigned long bb_xgetularg_bnd(const char *arg, int base,
unsigned long lower,
unsigned long upper)
#endif
#ifdef L_xgetularg10_bnd
-extern
unsigned long bb_xgetularg10_bnd(const char *arg,
unsigned long lower,
unsigned long upper)
#endif
#ifdef L_xgetularg10
-extern
unsigned long bb_xgetularg10(const char *arg)
{
return bb_xgetularg10_bnd(arg, 0, ULONG_MAX);