first commit

This commit is contained in:
2021-01-09 17:11:34 +01:00
parent 44efd17d51
commit c369c77685
6 changed files with 578 additions and 0 deletions

20
processlist.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef PROCESSLIST_H_INCLUDED
#define PROCESSLIST_H_INCLUDED
typedef struct process process;
struct process {
int id;
int pid;
int status;
char * commande;
process * procSuivant;
};
process * inserer(process *pr , int id, int pid, int status, char * commande);
process * setStatus(process* pr ,int pid_proc, int status);
process * supprimer(process* pr ,int pid_proc);
int getPID(const process * pr, int idMinishell);
void afficherProcess(process *pr);
int taille(process * pr);
#endif // PROCESSLIST_H_INCLUDED