first commit
This commit is contained in:
20
processlist.h
Normal file
20
processlist.h
Normal 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
|
||||
Reference in New Issue
Block a user