bltin.h (6cec9cad762b6476313fb1f8e931a1647822db6b) bltin.h (22ea47ec90b51ecbe6d2883ccee30d312c162044)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 28 unchanged lines hidden (view full) ---

37 * This file is included by programs which are optionally built into the
38 * shell. If SHELL is defined, we try to map the standard UNIX library
39 * routines to ash routines using defines.
40 */
41
42#include "../shell.h"
43#include "../mystring.h"
44#ifdef SHELL
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 28 unchanged lines hidden (view full) ---

37 * This file is included by programs which are optionally built into the
38 * shell. If SHELL is defined, we try to map the standard UNIX library
39 * routines to ash routines using defines.
40 */
41
42#include "../shell.h"
43#include "../mystring.h"
44#ifdef SHELL
45#include "../error.h"
45#include "../output.h"
46#include "builtins.h"
47#define FILE struct output
48#undef stdout
49#define stdout out1
50#undef stderr
51#define stderr out2
52#define printf out1fmt

--- 15 unchanged lines hidden (view full) ---

68#include <stdio.h>
69#undef main
70#define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else
71#endif
72
73#include <unistd.h>
74
75pointer stalloc(int);
46#include "../output.h"
47#include "builtins.h"
48#define FILE struct output
49#undef stdout
50#define stdout out1
51#undef stderr
52#define stderr out2
53#define printf out1fmt

--- 15 unchanged lines hidden (view full) ---

69#include <stdio.h>
70#undef main
71#define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else
72#endif
73
74#include <unistd.h>
75
76pointer stalloc(int);
76void error(const char *, ...) __printf0like(1, 2);
77int killjob(const char *, int);
78
79extern char *commandname;
77int killjob(const char *, int);
78
79extern char *commandname;