Inizio della revisione del formato per la suddivisione in due parti,
[gapil.git] / signal.tex
index 400f689bded9ec25c821e43ed85522f779161e76..8caa480f61985e474918750f1c9462e3ec4c67c4 100644 (file)
@@ -103,9 +103,9 @@ viene perso (se l'impostazione predefinita era quello di ignorarlo) o la
 terminazione immediata del processo; in entrambi i casi l'azione prevista non
 verrà eseguita.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/unreliable_sig.c}
   \end{minipage} 
   \normalsize 
@@ -1188,7 +1188,7 @@ questo modo il ciclo verrà ripetuto; se invece il valore di \var{it\_interval}
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/itimerval.h}
   \end{minipage} 
   \normalsize 
@@ -1207,7 +1207,7 @@ fig.~\ref{fig:sig_alarm_def}.\footnote{questo comporta anche che non è il caso
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/alarm_def.c}
   \end{minipage} 
   \normalsize 
@@ -1457,9 +1457,9 @@ di sez.~\ref{sec:proc_termination}, invocando \cmd{forktest} con l'opzione
 gestore di \const{SIGCHLD}) potremo verificare che non si ha più la creazione
 di \index{zombie} zombie.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize  \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/hand_sigchild.c}
   \end{minipage}
   \normalsize 
@@ -1531,9 +1531,9 @@ questo può sembrare di implementazione immediata; ad esempio una semplice
 versione di \func{sleep} potrebbe essere quella illustrata in
 fig.~\ref{fig:sig_sleep_wrong}.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/sleep_danger.c}
   \end{minipage}
   \normalsize 
@@ -1568,9 +1568,9 @@ uscire dal gestore; in questo modo, con una condizione sullo stato di
 uscita di quest'ultima, si può evitare la chiamata a \func{pause}, usando un
 codice del tipo di quello riportato in fig.~\ref{fig:sig_sleep_incomplete}.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/sleep_defect.c}
   \end{minipage}
   \normalsize 
@@ -1603,9 +1603,9 @@ inizializzata nel programma principale, il quale potrà determinare,
 osservandone il contenuto, l'occorrenza o meno del segnale, e prendere le
 relative azioni conseguenti (\texttt{\small 6-11}).
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize\centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/sig_alarm.c}
   \end{minipage}
   \normalsize 
@@ -1751,7 +1751,7 @@ più usato.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/sigaction.h}
   \end{minipage} 
   \normalsize 
@@ -1851,7 +1851,7 @@ causato l'emissione del segnale.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/siginfo_t.h}
   \end{minipage} 
   \normalsize 
@@ -2012,9 +2012,9 @@ che in certi sistemi questi possono essere diversi. In definitiva dunque, a
 meno che non si sia vincolati all'aderenza stretta allo standard ISO C, è
 sempre il caso di evitare l'uso di \func{signal} a favore di \func{sigaction}.
 
-\begin{figure}[!htb]
+\begin{figure}[!htbp]
   \footnotesize  \centering
-  \begin{minipage}[c]{15.6cm}
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/Signal.c}
   \end{minipage} 
   \normalsize 
@@ -2162,9 +2162,9 @@ della funzione, vediamo allora come usando la nuova interfaccia è possibile
 ottenere un'implementazione, riportata in fig.~\ref{fig:sig_sleep_ok} che non
 presenta neanche questa necessità.
 
-\begin{figure}[!htb]
-  \footnotesize   \centering
-  \begin{minipage}[c]{15.6cm}
+\begin{figure}[!htbp]
+  \footnotesize \centering
+  \begin{minipage}[c]{\codesamplewidth}
     \includecodesample{listati/sleep.c}
   \end{minipage} 
   \normalsize 
@@ -2424,7 +2424,7 @@ per la restituzione dei dati viene usato il campo \var{si\_value}.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/sigval_t.h}
   \end{minipage} 
   \normalsize 
@@ -2696,7 +2696,10 @@ tab.~\ref{tab:sig_timer_clockid_types}.
 
 % TODO: aggiungere le estensioni introdotte con il 2.6.38, verificandone il
 % funzionamento, vedi http://lwn.net/Articles/429595/
-% TODO, dal 2.6.39 anche CLOCK_BOOTTIME, vedi http://lwn.net/Articles/432757/
+% TODO: dal 2.6.39 anche CLOCK_BOOTTIME_ALARM e CLOCK_BOOTTIME, vedi
+% http://lwn.net/Articles/429925/
+% TODP: dal 3.0 anche i cosiddetti Posix Alarm Timers, con
+% CLOCK_REALTIME_ALARM vedi http://lwn.net/Articles/429925/
 
 Per poter utilizzare queste funzionalità le \acr{glibc} richiedono che la
 macro \macro{\_POSIX\_C\_SOURCE} sia definita ad un valore maggiore o uguale
@@ -2931,7 +2934,7 @@ meccanismo di notifica.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/sigevent.h}
   \end{minipage} 
   \normalsize 
@@ -3061,7 +3064,7 @@ state allocate.
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/itimerspec.h}
   \end{minipage} 
   \normalsize 
@@ -3298,7 +3301,7 @@ restituito dalla funzione per un successivo ripristino).
 
 \begin{figure}[!htb]
   \footnotesize \centering
-  \begin{minipage}[c]{15cm}
+  \begin{minipage}[c]{\textwidth}
     \includestruct{listati/stack_t.h}
   \end{minipage} 
   \normalsize