00001 00012 #ifndef SERVER_H_ 00013 #define SERVER_H_ 00014 00015 #include <fcntl.h> 00016 #include <sys/stat.h> 00017 00018 #include "common.h" 00019 #include "comandi.h" 00020 #include "lista.h" 00021 #include "../../../Fat/Src/Include/fat.h" 00022 #include "../../../Fat/Src/Include/load_fat.h" 00023 00027 volatile sig_atomic_t quitflag; 00028 00037 void gestore(int sig); 00038 00039 struct lista my_socket; 00040 serverChannel_t sk_ascolto; 00041 struct fat_ctrl f_ctrl; 00044 FILE * fs; 00045 00047 pthread_mutex_t filesystem = PTHREAD_MUTEX_INITIALIZER; 00048 00050 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; 00051 00053 pthread_cond_t wait_me = PTHREAD_COND_INITIALIZER; 00054 00055 int num_threads; 00057 #endif /*SERVER_H_*/