Inizio della revisione del formato per la suddivisione in due parti,
[gapil.git] / system.tex
index 2c7cf2d4ef0047dfb00634269efab8a9f47e99df..70b7f0b327ad28ef3c6085a743aff9e72c0efd82 100644 (file)
@@ -520,7 +520,7 @@ fig.~\ref{fig:sys_utsname}, solo definendo \macro{\_GNU\_SOURCE}.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/ustname.h}
   \end{minipage}
   \normalsize 
@@ -559,7 +559,7 @@ lettura.  Affronteremo questi argomenti in questa sezione, insieme alle
 funzioni che si usano per il controllo di altre caratteristiche generali del
 sistema, come quelle per la gestione dei filesystem e di utenti e gruppi.
 
-% TODO ristrutturare e aggiungere \func{prctl}
+% TODO ristrutturare ?
 
 \subsection{La funzione \func{sysctl} ed il filesystem \file{/proc}}
 \label{sec:sys_sysctl}
@@ -899,7 +899,7 @@ genere è il nome del filesystem stesso.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/statfs.h}
   \end{minipage}
   \normalsize 
@@ -929,9 +929,13 @@ tralasceremo la trattazione, rimandando al manuale delle \acr{glibc}
 
 % TODO documentare keyctl ????
 % (fare sezione dedicata ????)
-%\subsection{La gestione delle chiavi}
+%\subsection{La gestione delle chiavi crittografiche}
 %\label{sec:keyctl_management}
 
+%
+% \subsection{La gestione dello spegnimento e del riavvio}
+%\label{sec:sys_reboot}
+% TODO trattare reboot, kexec_load, ...
 
 
 \subsection{La gestione delle informazioni su utenti e gruppi}
@@ -1015,7 +1019,7 @@ illustrato il significato dei vari campi.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/passwd.h}
   \end{minipage} 
   \normalsize 
@@ -1093,7 +1097,7 @@ fig.~\ref{fig:sys_group_struct}.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/group.h}
   \end{minipage} 
   \normalsize 
@@ -1274,7 +1278,7 @@ disponibile; le altre due permettono di eseguire una ricerca.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/utmp.h}
   \end{minipage} 
   \normalsize 
@@ -1395,7 +1399,7 @@ di tipo \struct{rusage}, la cui definizione (che si trova in
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/rusage.h}
   \end{minipage} 
   \normalsize 
@@ -1640,7 +1644,7 @@ limite corrente e limite massimo.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/rlimit.h}
   \end{minipage} 
   \normalsize 
@@ -1794,7 +1798,7 @@ La funzione attiva il salvataggio dei dati sul file indicato dal pathname
 contenuti nella stringa puntata da \param{filename}; la funzione richiede che
 il processo abbia i privilegi di amministratore (è necessaria la
 \itindex{capabilities} capability \const{CAP\_SYS\_PACCT}, vedi
-sez.~\ref{sec:proc_capabilities}). Se si specifica il valore \const{NULL} per
+sez.~\ref{sec:proc_capabilities}). Se si specifica il valore \val{NULL} per
 \param{filename} il \textit{BSD accounting} viene invece disabilitato. Un
 semplice esempio per l'uso di questa funzione è riportato nel programma
 \texttt{AcctCtrl.c} dei sorgenti allegati alla guida.
@@ -1935,6 +1939,8 @@ costante \const{CLOCKS\_PER\_SEC}.\footnote{le \acr{glibc} seguono lo standard
 valore massimo corrispondente a circa 72 minuti, dopo i quali il contatore
 riprenderà lo stesso valore iniziale.
 
+% TODO questi valori sono obsoleti, verificare il tutto.
+
 Come accennato in sez.~\ref{sec:sys_unix_time} il tempo di CPU è la somma di
 altri due tempi, l'\textit{user time} ed il \textit{system time} che sono
 quelli effettivamente mantenuti dal kernel per ciascun processo. Questi
@@ -1957,7 +1963,7 @@ sez.~\ref{sec:sys_unix_time}.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/tms.h}
   \end{minipage} 
   \normalsize 
@@ -2099,7 +2105,7 @@ effettuato.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/timex.h}
   \end{minipage} 
   \normalsize 
@@ -2278,7 +2284,7 @@ tempo in una stringa contenente data ed ora, i loro prototipi sono:
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/tm.h}
   \end{minipage} 
   \normalsize 
@@ -2339,7 +2345,7 @@ verrà usato il file \conffile{/etc/localtime}.
 \begin{figure}[!htb]
   \footnotesize
   \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/time_zone_var.c}
   \end{minipage} 
   \normalsize 
@@ -2580,9 +2586,9 @@ errore indicizzati da \var{errno}; la seconda esprime il valore più alto per
 un codice di errore, l'utilizzo di questa stringa è sostanzialmente
 equivalente a quello di \func{strerror}.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/errcode_mess.c}
   \end{minipage}
   \normalsize