Api for managing files

This commit is contained in:
elvis
2022-03-18 20:49:28 +01:00
parent 6519b16e46
commit c8a685272f
6 changed files with 66 additions and 9 deletions

View File

@ -6,6 +6,13 @@
/* TODO: include lib di logging */
/* TODO: finire tutte le descrizioni */
// Lista dei client in attesa su una lock
typedef struct struct_waiting {
long fd; // client in attesa
char *file; // file su cui si vuole acquisire la lock
struct struct_waiting *next; // puntatore al prossimo elemento della lista
} waitingT;
/**
* Apri o crea un nuovo file
* \param filepath: nome del file