-\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
+\begin{basedescript}{\desclabelwidth{1.5cm}\desclabelstyle{\nextlinelabel}}
+\item[\errcode{EADDRINUSE} \textit{Address already in use}.] L'indirizzo del
+ socket richiesto è già utilizzato (ad esempio si è eseguita \func{bind}
+ su una porta già in uso).
+\item[\errcode{EADDRNOTAVAIL} \textit{Cannot assign requested
+ address}.] L'indirizzo richiesto non è disponibile (ad esempio si
+ è cercato di dare al socket un nome che non corrisponde al nome
+ della stazione locale), o l'interfaccia richiesta non esiste.
+\item[\errcode{EAFNOSUPPORT} \textit{Address family not supported by
+ protocol}.] Famiglia di indirizzi non supportata. La famiglia di
+ indirizzi richiesta non è supportata, o è inconsistente con il protocollo
+ usato dal socket.
+\item[\errcode{ECONNABORTED} \textit{Software caused connection abort}.] Una
+ connessione è stata abortita localmente.
+\item[\errcode{ECONNREFUSED} \textit{Connection refused}.] Un host remoto ha
+ rifiutato la connessione (in genere dipende dal fatto che non c'è un server
+ per soddisfare il servizio richiesto).
+\item[\errcode{ECONNRESET} \textit{Connection reset by peer}.] Una connessione
+ è stata chiusa per ragioni fuori dal controllo dell'host locale, come il
+ riavvio di una macchina remota o un qualche errore non recuperabile sul
+ protocollo.
+\item[\errcode{EDESTADDRREQ} \textit{Destination address required}.] Non c'è
+ un indirizzo di destinazione predefinito per il socket. Si ottiene questo
+ errore mandando dato su un socket senza connessione senza averne prima
+ specificato una destinazione.
+\item[\errcode{EISCONN} \textit{Transport endpoint is already connected}.] Si
+ è tentato di connettere un socket che è già connesso.
+\item[\errcode{EMSGSIZE} \textit{Message too long}.] Le dimensioni di un
+ messaggio inviato su un socket sono eccedono la massima lunghezza supportata.
+\item[\errcode{ENETDOWN} \textit{Network is down}.] L'operazione sul socket è
+ fallita perché la rete è sconnessa.
+\item[\errcode{ENETRESET} \textit{Network dropped connection because of
+ reset}.] Una connessione è stata cancellata perché l'host remoto è
+ caduto.
+\item[\errcode{ENETUNREACH} \textit{Network is unreachable}.] L'operazione è
+ fallita perché l'indirizzo richiesto è irraggiungibile (ad esempio la
+ sottorete della stazione remota è irraggiungibile).
+\item[\errcode{ENOBUFS} \textit{No buffer space available}.] Tutti i buffer per
+ le operazioni di I/O del kernel sono occupati. In generale questo errore è
+ sinonimo di \errcode{ENOMEM}, ma attiene alle funzioni di input/output. In
+ caso di operazioni sulla rete si può ottenere questo errore invece
+ dell'altro.
+\item[\errcode{ENOPROTOOPT} \textit{Protocol not available}.] Protocollo non
+ disponibile. Si è richiesta un'opzione per il socket non disponibile con il
+ protocollo usato.
+\item[\errcode{ENOTCONN} \textit{Transport endpoint is not connected}.] Il
+ socket non è connesso a niente. Si ottiene questo errore quando si cerca di
+ trasmettere dati su un socket senza avere specificato in precedenza la loro
+ destinazione. Nel caso di socket senza connessione (ad esempio socket UDP)
+ l'errore che si ottiene è \errcode{EDESTADDRREQ}.
+\item[\errcode{ENOTSOCK} \textit{Socket operation on non-socket}.] Si è
+ tentata un'operazione su un file descriptor che non è un socket quando
+ invece era richiesto un socket.
+\item[\errcode{EOPNOTSUPP} \textit{Operation not supported on transport
+ endpoint}.] L'operazione richiesta non è supportata. Alcune funzioni non
+ hanno senso per tutti i tipi di socket, ed altre non sono implementate per
+ tutti i protocolli di trasmissione. Questo errore quando un socket non
+ supporta una particolare operazione, e costituisce una indicazione generica
+ che il server non sa cosa fare per la chiamata effettuata.
+\item[\errcode{EPFNOSUPPORT} \textit{Protocol family not supported}.] Famiglia
+ di protocolli non supportata. La famiglia di protocolli richiesta non è
+ supportata.
+\item[\errcode{EPROTONOSUPPORT} \textit{Protocol not supported}.] Protocollo
+ non supportato. Il tipo di socket non supporta il protocollo richiesto (un
+ probabile errore nella specificazione del protocollo).
+\item[\errcode{EPROTOTYPE} \textit{Protocol wrong type for socket}.]
+ Protocollo sbagliato per il socket. Il socket usato non supporta il
+ protocollo di comunicazione richiesto.
+\item[\errcode{ESHUTDOWN} \textit{Cannot send after transport endpoint
+ shutdown}.] Il socket su cui si cerca di inviare dei dati ha avuto uno
+ shutdown.
+\item[\errcode{ESOCKTNOSUPPORT} \textit{Socket type not supported}.] Socket
+ non supportato. Il tipo di socket scelto non è supportato.
+\item[\errcode{ETIMEDOUT} \textit{Connection timed out}.] Un'operazione sul
+ socket non ha avuto risposta entro il periodo di timeout.
+\item[\errcode{ETOOMANYREFS} \textit{Too many references: cannot splice}.] La
+ \acr{glibc} dice ???
+\end{basedescript}
+
+
+\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