Reindicizzati leak memory e race conditions
[gapil.git] / gapil.tex
1 %% gapil.tex
2 %%
3 %% Copyright (C) 2000-2002 Simone Piccardi.  Permission is granted to
4 %% copy, distribute and/or modify this document under the terms of the GNU Free
5 %% Documentation License, Version 1.1 or any later version published by the
6 %% Free Software Foundation; with the Invariant Sections being "Prefazione",
7 %% with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
8 %% license is included in the section entitled "GNU Free Documentation
9 %% License".
10 %%
11 %% GaPiL : Guida alla Programmazione in Linux
12 %%
13 %% S. Piccardi Oct. 2000
14 %% 
15 %% gapil.tex: file principale, gli altri vanno inclusi da questo.
16 %%
17 \documentclass[a4paper,11pt,twoside,italian]{book}
18 \usepackage[latin1]{inputenc}
19 \usepackage[bookmarks=true]{hyperref}
20 \usepackage{makeidx}
21 %\usepackage{booktabs}
22 \usepackage{pstcol}
23 \usepackage{pst-node}
24 \usepackage{graphicx}
25 \usepackage{babel}
26 \usepackage{cite}
27 \usepackage{amsmath}
28 \usepackage{amsfonts}
29 \usepackage[hang,bf,footnotesize,it]{caption2}
30 \usepackage{listings}
31 \lstloadlanguages{C++}
32 \usepackage{color} 
33 \usepackage{mdwlist}              % scommentare per la stampa (PS e PDF)
34 \usepackage{boxedminipage}        % scommentare per la stampa (PS e PDF)
35 \usepackage{multirow}
36 %\usepackage{footnote} 
37 %\usepackage{mdwtab} 
38 %
39 % Setting page layout
40 %
41 \oddsidemargin=0.5cm
42 \evensidemargin=-0.5cm
43 \textwidth=16cm
44 \textheight=24.2cm
45 \topmargin=-1.cm
46 %\setcaptionmargin{2cm} 
47 %\renewcommand{\chaptername}{Capitolo}
48 %\renewcommand{\contentsname}{Indice}
49 %\renewcommand{\bibname}{Bibliografia}
50 \pagestyle{headings}
51
52 %\includeonly{macro,pref,intro,fdl}
53
54 \title{\Huge \textbf{\textsl{G}a\textsl{P}i\textsl{L}}\\
55 \huge Guida alla Programmazione in Linux} 
56
57 \author{Simone Piccardi}
58
59 \makeindex
60
61 \begin{document}
62
63 \pagenumbering{roman}
64  
65 \maketitle
66
67 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}
68 \cleardoublepage}}
69
70 \begin{quote}
71   
72   Copyright \copyright\ 2000-2002 Simone Piccardi.  Permission is granted to
73   copy, distribute and/or modify this document under the terms of the GNU Free
74   Documentation License, Version 1.1 or any later version published by the
75   Free Software Foundation; with the Invariant Sections being ``Prefazione'',
76   with no Front-Cover Texts, and with no Back-Cover Texts.  A copy of the
77   license is included in the section entitled ``GNU Free Documentation
78   License''.
79
80 \end{quote}
81 \clearemptydoublepage
82
83 \tableofcontents
84 \clearemptydoublepage
85 % commentare per la stampa PS e PDF
86 %\include{compatib}    % commentare per la stampa PS e PDF
87 % commentare per la stampa PS e PDF
88 \include{macro}
89 \setcounter{secnumdepth}{-2}
90 \include{pref}
91 \setcounter{secnumdepth}{2}
92 \clearemptydoublepage
93
94 \pagenumbering{arabic}
95
96 \lstset{language=C++} 
97
98 \lstset{basicstyle=\small,
99   labelstyle=\tiny,
100   labelstep=1,
101   labelsep=2pt, 
102   frame=TB,
103   frametextsep=5pt,
104   indent=0.3cm,
105   basicstyle=\ttfamily,
106   keywordstyle=\color{blue}\ttfamily,
107   ndkeywordstyle=\color{yellow}\ttfamily,
108 %  rdkeywordstyle=\ttfamily,
109   identifierstyle=\ttfamily,
110   commentstyle=\color{red}\ttfamily,
111   stringstyle=\color{green}\ttfamily,
112 %  texcsststyle=\ttfamily,
113   directivestyle=\color{magenta}\ttfamily
114
115
116 % distance from margins for boxedminipage
117 %\fboxsep=6pt
118
119 \include{intro}
120 \include{process}
121 \include{prochand}
122 \include{fileintro}
123 \include{filedir}
124 \include{fileunix}
125 \include{filestd}
126 \include{system}
127 \include{signal}
128 \include{session}
129 \include{fileadv}
130 \include{ipc}
131 \include{network}
132 \include{socket}
133 \include{elemtcp}
134 \include{simpltcp}
135 \appendix
136 \include{ipprot}
137 \include{tcpprot}
138 \include{errors}
139 \include{ringraziamenti}
140 \include{fdl}
141
142 % at the end put the bibliography
143
144 %\bibliographystyle{phaip}
145 %\bibliography{biblio}
146 \printindex
147
148 \bibliographystyle{ieeetr}
149 \bibliography{biblio}
150
151 \end{document}
152