-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.h
More file actions
37 lines (22 loc) · 830 Bytes
/
functions.h
File metadata and controls
37 lines (22 loc) · 830 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
/*Universidade Federal do Rio de Janeiro
Departamento de Engenharia Eletrôncia e de Computação
Sistemas Operacionais - 2018.2
Aluna: Fabiana Ferreira Fonseca
DRE: 115037241*/
/*TRABALHO: IMPLEMENTAÇÃO DE UM SHELL PARA LINUX COM MULTIPLAS TELAS*/
#include <vector>
#include <string>
/*Declaracao da funcao para Tratamento de strings*/
int getArgumentsFromCommand(char*, char**, std::string*);
void freeArray(char**);
void printUserGuide ();
void printUserGreeting ();
void typeCommand ();
void printInvalidCommand ();
std::string createScreenFilename(pid_t);
int checkError(int, std::string);
void writeAllToFifo(int fd, char * bytes, size_t nbyte);
void write_str(int, std::string);
std::vector<std::string> parseString (std::string, char);
double getCurrentUseOfCPU ();
int getCurrentUseOfRAM ();