blob: a73e3c8fc1d81c1d4b70c989eb672e07fff9ac39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include "util/shared.h"
#include "util/stack.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#define ARGUMENTS int argc, char** argv
#define NEXT_ARGS argc - 1, &argv[1]
#define COMMAND(name) int name (ARGUMENTS)
#define COMMAND_EMPTY(name) int name (void)
COMMAND(dd);
COMMAND(cat);
COMMAND(yes);
COMMAND(echo);
COMMAND(print);
COMMAND_EMPTY(groups);
COMMAND_EMPTY(user_id);
COMMAND(ls);
COMMAND(tail);
COMMAND(head);
COMMAND(ed);
COMMAND(tee);
COMMAND(whoami);
COMMAND(wc);
COMMAND(xargs);
COMMAND(tac);
|