diff options
Diffstat (limited to '')
-rw-r--r-- | cat.c (renamed from core/cat.c) | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -9,16 +9,20 @@ #include <errno.h> #include <string.h> -#define REQ_PRINT_USAGE /* Require print_usage() from ../common/common.h */ -#define REQ_ERRPRINT /* Require errprint() from ../common/common.h */ +#define REQ_PRINT_USAGE /* Require print_usage() from common.h */ +#define REQ_ERRPRINT /* Require errprint() from common.h */ #define DESCRIPTION "Concatenate a file to standard output. \ If no file is specified or file is '-', read standard input." #define OPERANDS "[-u] [file] ..." -#include "../common/common.h" +#include "common.h" int cat(int flides, int unbuffered); -int main(int argc, char *const argv[]) { +#ifdef FASESBOX +int cat_main(int argc, char *argv[]) { +#else +int main(int argc, char *argv[]) { +#endif int file, argument, i = 1, unbuffered, err; char *argv0 = strdup(argv[0]); while ((argument = getopt(argc, argv, "u")) != -1) { |