-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsimpleCommand.hh
More file actions
42 lines (36 loc) · 791 Bytes
/
simpleCommand.hh
File metadata and controls
42 lines (36 loc) · 791 Bytes
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
36
37
38
39
40
41
42
#ifndef simplcommand_h
#define simplecommand_h
//C++
#include <string>
#include <algorithm>
#include <iterator>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include "y.tab.hh"
//C
#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <regex.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <pwd.h>
#define MAXFILENAME 1024
struct SimpleCommand {
// Available space for arguments currently preallocated
int _numOfAvailableArguments;
// Number of arguments
int _numOfArguments;
char ** _arguments;
SimpleCommand();
void insertArgument( char * argument );
char * checkExpansion(char * argument);
char * tilde(char * argument);
};
#endif