Aggiunti suid e sgid
[gapil.git] / fileunix.tex
1 \chapter{I files: l'interfaccia I/O di unix}
2 \label{cha:file_unix_interface}
3
4 Per poter accedere al contenuto dei file occorre anzitutto aprirlo. Questo
5 crea un canale di comunicazione che permette di eseguire una serie di
6 operazioni. Una volta terminate le operazioni, il file dovrà essere chiuso, e
7 questo chiuderà il canale di comunicazione impedendo ogni ulteriore
8 operazione.
9
10
11
12 \section{I file descriptors}
13 \label{sec:fileunix_fd}
14
15
16 \section{Le funzioni base}
17 \label{sec:fileunix_base_func}
18
19 L'interfaccia standard unix per l'input/output sui file è su cinque funzioni
20 \texttt{open}, \texttt{read}, \texttt{write}, \texttt{lseek}, \texttt{close}
21
22
23 \subsection{La funzione \texttt{open}}
24 \label{sec:fileunix_open}
25
26 \subsection{La funzione \texttt{creat}}
27 \label{sec:fileunix_creat}
28
29 \subsection{La funzione \texttt{close}}
30 \label{sec:fileunix_close}
31
32 \subsection{La funzione \texttt{lseek}}
33 \label{sec:fileunix_lseek}
34
35 \subsection{La funzione \texttt{read}}
36 \label{sec:fileunix_read}
37
38 \subsection{La funzione \texttt{write}}
39 \label{sec:fileunix_write}
40
41 \section{La condivisione dei files}
42 \label{sec:fileunix_sharing}
43
44
45 \subsection{Operazioni atomiche}
46 \label{sec:fileunix_atomic}
47
48 \section{Funzioni avanzate}
49 \label{sec:fileunix_adv_func}
50
51 \subsection{La funzioni \texttt{dup} e \texttt{dup2}}
52 \label{sec:fileunix_dup}
53
54 \subsection{La funzione \texttt{fcntl}}
55 \label{sec:fileunix_fcntl}
56
57 \subsection{La funzione \texttt{ioctl}}
58 \label{sec:fileunix_ioctl}
59
60
61
62