// 19990508 Busy Boxed! Dave Cinege
-#include "internal.h"
+#include "busybox.h"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
-#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#ifndef S_IFMT
-# define S_IFMT 0170000
+static const int S_IFMT = 0170000;
#endif
#if !defined(S_ISBLK) && defined(S_IFBLK)
# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
/* The value to return to the calling program. */
static int exit_status;
-static const char printf_usage[] = "printf FORMAT [ARGUMENT...]\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
- "Where FORMAT controls the output exactly as in C printf.\n"
-#endif
- ;
-
int printf_main(int argc, char **argv)
{
char *format;