-\item \macro{EDOM} \textit{Domain error}.
-\item \macro{ERANGE} \textit{Range error}.
-\item \macro{EAGAIN} \textit{Resource temporarily unavailable}.
-\item \macro{EWOULDBLOCK} \textit{Operation would block}. In Linux è identico
- a \macro{EAGAIN}.
-\item \macro{EINPROGRESS} \textit{Operation now in progress}.
-\item \macro{EALREADY} \textit{Operation already in progress}.
-\item \macro{ENOTSOCK} \textit{Socket operation on non-socket}.
-\item \macro{EMSGSIZE} \textit{Message too long}.
-\item \macro{EPROTOTYPE} \textit{Protocol wrong type for socket}.
-\item \macro{ENOPROTOOPT} \textit{Protocol not available}.
-\item \macro{EPROTONOSUPPORT} \textit{Protocol not supported}.
-\item \macro{ESOCKTNOSUPPORT} \textit{Socket type not supported}.
-\item \macro{EOPNOTSUPP} \textit{Operation not supported on transport endpoint}.
-\item \macro{EPFNOSUPPORT} \textit{Protocol family not supported}.
-\item \macro{EAFNOSUPPORT} \textit{Address family not supported by protocol}.
-\item \macro{EADDRINUSE} \textit{Address already in use}.
-\item \macro{EADDRNOTAVAIL} \textit{Cannot assign requested address}.
-\item \macro{ENETDOWN} \textit{Network is down}.
-\item \macro{ENETUNREACH} \textit{Network is unreachable}.
-\item \macro{ENETRESET} \textit{Network dropped connection because of reset}.
-\item \macro{ECONNABORTED} \textit{Software caused connection abort}.
-\item \macro{ECONNRESET} \textit{Connection reset by peer}.
-\item \macro{ENOBUFS} \textit{No buffer space available}.
-\item \macro{EISCONN} \textit{Transport endpoint is already connected}.
-\item \macro{ENOTCONN} \textit{Transport endpoint is not connected}.
-\item \macro{EDESTADDRREQ} \textit{Destination address required}.
-\item \macro{ESHUTDOWN} \textit{Cannot send after transport endpoint shutdown}.
-\item \macro{ETOOMANYREFS} \textit{Too many references: cannot splice}.
-\item \macro{ETIMEDOUT} \textit{Connection timed out}.
-\item \macro{ECONNREFUSED} \textit{Connection refused}.
-
-\item \macro{EHOSTDOWN} \textit{Host is down}.
-\item \macro{EHOSTUNREACH} \textit{No route to host}.
-\item \macro{ENOTEMPTY} \textit{Directory not empty}.
-\item \macro{EPROCLIM} \textit{}.
-\item \macro{EUSERS} \textit{Too many users}.
-\item \macro{EDQUOT} \textit{Quota exceeded}.
-\item \macro{ESTALE} \textit{Stale NFS file handle}.
-\item \macro{EREMOTE} \textit{Object is remote}.
-%\item \macro{EBADRPC} \textit{}.
-%\item \macro{ERPCMISMATCH} \textit{}.
-%\item \macro{EPROGUNAVAIL} \textit{}.
-%\item \macro{EPROGMISMATCH} \textit{}.
-%\item \macro{EPROCUNAVAIL} \textit{}.
-\item \macro{ENOLCK} \textit{No locks available}.
-\item \macro{EFTYPE} \textit{Inappropriate file type or format}.
-%\item \macro{EAUTH} \textit{}.
-\item \macro{ENEEDAUTH} \textit{}.
-\item \macro{ENOSYS} \textit{Function not implemented}.
-\item \macro{ENOTSUP} \textit{Not supported}.
-\item \macro{EILSEQ} \textit{Illegal byte sequence}.
-%\item \macro{EBACKGROUND} \textit{}.
-%\item \macro{EDIED} \textit{}.
-%\item \macro{ED} \textit{}.
-%\item \macro{EGREGIOUS} \textit{}.
-%\item \macro{EIEIO} \textit{}.
-%\item \macro{EGRATUITOUS} \textit{}.
-\item \macro{EBADMSG} \textit{Not a data message}.
-\item \macro{EIDRM} \textit{Identifier removed}.
-\item \macro{EMULTIHOP} \textit{Multihop attempted}.
-\item \macro{ENODATA} \textit{No data available}.
-\item \macro{ENOLINK} \textit{Link has been severed}.
-\item \macro{ENOMSG} \textit{No message of desired type}.
-\item \macro{ENOSR} \textit{Out of streams resources}.
-\item \macro{ENOSTR} \textit{Device not a stream}.
-\item \macro{EOVERFLOW} \textit{Value too large for defined data type}.
-\item \macro{EPROTO} \textit{Protocol error}.
-\item \macro{ETIME} \textit{Timer expired}.
-
-
-\section{Errori del kernel}
-\label{sec:err_kernel_err}
-
-\item \macro{ERESTART} \textit{Interrupted system call should be restarted}.
-\item \macro{ECHRNG} \textit{Channel number out of range}.
-\item \macro{EL2NSYNC} \textit{Level 2 not synchronized}.
-\item \macro{EL3HLT} \textit{Level 3 halted}.
-\item \macro{EL3RST} \textit{Level 3 reset}.
-\item \macro{ELNRNG} \textit{Link number out of range}.
-\item \macro{EUNATCH} \textit{Protocol driver not attached}.
-\item \macro{ENOCSI} \textit{No CSI structure available}.
-\item \macro{EL2HLT} \textit{Level 2 halted}.
-\item \macro{EBADE} \textit{Invalid exchange}.
-\item \macro{EBADR} \textit{Invalid request descriptor}.
-\item \macro{EXFULL} \textit{Exchange full}.
-\item \macro{ENOANO} \textit{No anode}.
-\item \macro{EBADRQC} \textit{Invalid request code}.
-\item \macro{EBADSLT} \textit{Invalid slot}.
-\item \macro{EDEADLOCK} Identico a \macro{EDEADLK}.
-\item \macro{EBFONT} \textit{Bad font file format}.
-\item \macro{ENONET} \textit{Machine is not on the network}.
-\item \macro{ENOPKG} \textit{Package not installed}.
-\item \macro{EADV} \textit{Advertise error}.
-\item \macro{ESRMNT} \textit{Srmount error}.
-\item \macro{ECOMM} \textit{Communication error on send}.
-\item \macro{EDOTDOT} \textit{RFS specific error}.
-\item \macro{ENOTUNIQ} \textit{Name not unique on network}.
-\item \macro{EBADFD} \textit{File descriptor in bad state}.
-\item \macro{EREMCHG} \textit{Remote address changed}.
-\item \macro{ELIBACC} \textit{Can not access a needed shared library}.
-\item \macro{ELIBBAD} \textit{Accessing a corrupted shared library}.
-\item \macro{ELIBSCN} \textit{.lib section in a.out corrupted}.
-\item \macro{ELIBMAX} \textit{Attempting to link in too many shared libraries}.
-\item \macro{ELIBEXEC} \textit{Cannot exec a shared library directly}.
-\item \macro{ESTRPIPE} \textit{Streams pipe error}.
-\item \macro{EUCLEAN} \textit{Structure needs cleaning}.
-\item \macro{ENAVAIL} \textit{No XENIX semaphores available}.
-\item \macro{EISNAM} \textit{Is a named type file}.
-\item \macro{EREMOTEIO} \textit{Remote I/O error}.
-\item \macro{ENOMEDIUM} \textit{No medium found}.
-\item \macro{EMEDIUMTYPE} \textit{Wrong medium type}.
-\item \macro{} \textit{}.
-
-
-\end{description}
-
-
-
-\section{Altri errori}
-\label{sec:err_others}
-
-\item \macro{ENOMEM} \textit{No memory available}. Il kernel non è in grado di
- allocare ulteriore memoria per completare l'operazione richiesta.
-\item \macro{EDEADLK} \textit{Deadlock avoided}. L'allocazione di una risorsa
- avrebbe causato un deadlock. Non sempre il sistema è in grado di riconoscere
- queste situazioni, nel qual caso si avrebbe in blocco.
-\item \macro{EFAULT} \textit{Bad address}. Una stringa passata come parametro
- è fuori dello spazio di indirizzi del processo, in genere questa situazione
- provoca l'emissione di un sengale di \textit{segment violation}
- (\macro{SIGSEGV}).
-\item \macro{EINVAL} \textit{Invalid argument}. Errore utilizzato per
+
+\section{Errori generici}
+
+In questa sezione sono raccolti i codici restituiti dalle \textit{system call}
+attinenti ad errori generici, si trovano qui tutti i codici di errore non
+specificati nelle sezioni precedenti.
+
+\begin{basedescript}{\desclabelwidth{1.5cm}\desclabelstyle{\nextlinelabel}}
+\item[\errcode{EAGAIN} \textit{Resource temporarily unavailable}.] La funzione
+ è fallita ma potrebbe funzionare se la chiamata fosse ripetuta. Questo
+ errore accade in due tipologie di situazioni:
+ \begin{itemize}
+ \item Si è effettuata un'operazione che si sarebbe bloccata su un oggetto
+ che è stato posto in modalità non bloccante. Nei vecchi sistemi questo era
+ un codice diverso, \errcode{EWOULDBLOCK}. In genere questo ha a che fare
+ con file o socket, per i quali si può usare la funzione \func{select} per
+ vedere quando l'operazione richiesta (lettura, scrittura o connessione)
+ diventa possibile.
+ \item Indica la carenza di una risorsa di sistema che non è al momento
+ disponibile (ad esempio \func{fork} può fallire con questo errore se si è
+ esaurito il numero di processi contemporanei disponibili). La ripetizione
+ della chiamata in un periodo successivo, in cui la carenza della risorsa
+ richiesta può essersi attenuata, può avere successo. Questo tipo di
+ carenza è spesso indice di qualcosa che non va nel sistema, è pertanto
+ opportuno segnalare esplicitamente questo tipo di errori.
+ \end{itemize}
+\item[\errcode{EALREADY} \textit{Operation already in progress}.] L'operazione è
+ già in corso. Si è tentata un'operazione già in corso su un oggetto posto in
+ modalità non-bloccante.
+\item[\errcode{EDEADLK} \textit{Deadlock avoided}.] L'allocazione di una
+ risorsa avrebbe causato un \textit{deadlock}. Non sempre il sistema è in
+ grado di riconoscere queste situazioni, nel qual caso si avrebbe il blocco.
+\item[\errcode{EFAULT} \textit{Bad address}.] Una stringa passata come
+ argomento è fuori dello spazio di indirizzi del processo, in genere questa
+ situazione provoca direttamente l'emissione di un segnale di \textit{segment
+ violation} (\signal{SIGSEGV}).
+\item[\errcode{EDOM} \textit{Domain error}.] È usato dalle funzioni matematiche
+ quando il valore di un argomento è al di fuori dell'intervallo in cui esse
+ sono definite.
+\item[\errcode{EILSEQ} \textit{Illegal byte sequence}.] Nella decodifica di un
+ carattere esteso si è avuta una sequenza errata o incompleta o si è
+ specificato un valore non valido.
+\item[\errcode{EINPROGRESS} \textit{Operation now in progress}.] Operazione in
+ corso. Un'operazione che non può essere completata immediatamente è stata
+ avviata su un oggetto posto in modalità non-bloccante. Questo errore viene
+ riportato per operazioni che si dovrebbero sempre bloccare (come per una
+ \func{connect}) e che pertanto non possono riportare \errcode{EAGAIN},
+ l'errore indica che l'operazione è stata avviata correttamente e occorrerà
+ del tempo perché si possa completare. La ripetizione della chiamata darebbe
+ luogo ad un errore \errcode{EALREADY}.
+\item[\errcode{EINTR} \textit{Interrupted function call}.] Una funzione di
+ libreria è stata interrotta. In genere questo avviene causa di un segnale
+ asincrono al processo che impedisce la conclusione della chiamata, la
+ funzione ritorna con questo errore una volta che si sia correttamente
+ eseguito il gestore del segnale. In questo caso è necessario ripetere la
+ chiamata alla funzione.
+\item[\errcode{EINVAL} \textit{Invalid argument}.] Errore utilizzato per