X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=fileunix.tex;h=dde98892019cba1e8b00ee2a7fd87baff995f368;hp=8a39680d6b15b37490483be0781370264c3ba0e3;hb=5a59e67204ff436dceb6a13ed39e876aea3945a8;hpb=4263734ffe237b1a7249c1f8121bb7ebe8b60a50 diff --git a/fileunix.tex b/fileunix.tex index 8a39680..dde9889 100644 --- a/fileunix.tex +++ b/fileunix.tex @@ -1,3 +1,13 @@ +%% fileunix.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{I file: l'interfaccia standard Unix} \label{cha:file_unix_interface} @@ -485,8 +495,8 @@ Si tenga presente inoltre che usare \macro{SEEK\_END} non assicura affatto che la successiva scrittura avvenga alla fine del file, infatti se questo è stato aperto anche da un altro processo che vi ha scritto, la fine del file può essersi spostata, ma noi scriveremo alla posizione impostata in precedenza -(questa è una potenziale sorgente di \textit{race condition}\index{race - condition}, vedi \secref{sec:file_atomic}). +(questa è una potenziale sorgente di \textit{race condition} +\index{race condition}, vedi \secref{sec:file_atomic}). Non tutti i file supportano la capacità di eseguire una \func{lseek}, in questo caso la funzione ritorna l'errore \macro{EPIPE}. Questo, oltre che per