Simple commands working ok now
[minishell-2.git] / Headers / opsys.h
blobb4654e995010220b7203e3b91fe6ec772ef29b32
1 #ifndef OPSYS_H
2 #define OPSYS_H
4 #include "input.h"
5 extern bool sigint;
7 /*!
8 * \class SignalHandler
9 * \brief Handles SIGHUP and SIGINT signals.
11 class SignalHandler
13 struct sigaction signal_action;
14 public:
15 /*!
16 * \brief Constructor for SignalHandler. Handles SIGHUP and SIGINT signals.
18 SignalHandler();
21 class OpSys
23 string get_cwd();
24 public:
25 string username; // Username
26 string hostname; // User's hostname
27 string cwd; // Current working directory
28 OpSys();
29 void change_dir(vector<string>);
30 short int simple_command(vector<string>);
33 extern OpSys OS;
35 #endif // OPSYS_H