X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=filedir.tex;h=b5a19109890e7f5ca02842cd6f89462e9f7c1583;hp=191179b3a8468963c93575350a8dbdb5a6e17b40;hb=a051e3c3d3b403ee210274d8c2ec7d756c531a21;hpb=faea6309c25cc36f5552f9998f357cef6d3ae7c8 diff --git a/filedir.tex b/filedir.tex index 191179b..b5a1910 100644 --- a/filedir.tex +++ b/filedir.tex @@ -787,7 +787,7 @@ inode cui il file \begin{figure}[!htb] \footnotesize \centering \begin{minipage}[c]{15cm} - \begin{lstlisting}[labelstep=0]{}%,frame=,indent=1cm]{} + \begin{lstlisting}[stepnumber=0]{} struct dirent { ino_t d_ino; /* inode number */ off_t d_off; /* offset to the next dirent */ @@ -1434,7 +1434,7 @@ riservati per estensioni come tempi pi \footnotesize \centering \begin{minipage}[c]{15cm} - \begin{lstlisting}[labelstep=0]{}%,frame=,indent=1cm]{} + \begin{lstlisting}[stepnumber=0]{} struct stat { dev_t st_dev; /* device */ ino_t st_ino; /* inode */ @@ -1555,7 +1555,7 @@ un'opportuna combinazione. Ad esempio se si volesse impostare una condizione che permetta di controllare se un file รจ una directory o un file ordinario si potrebbe definire la macro di preprocessore: -\begin{lstlisting}[labelstep=0,frame=,indent=1cm]{} +\begin{lstlisting}[stepnumber=0,frame=]{} #define IS_FILE_DIR(x) (((x) & S_IFMT) & (S_IFDIR | S_IFREG)) \end{lstlisting} in cui prima si estraggono da \var{st\_mode} i bit relativi al tipo di file e @@ -1808,7 +1808,7 @@ valori che si vogliono impostare per tempi. \begin{figure}[!htb] \footnotesize \centering \begin{minipage}[c]{15cm} - \begin{lstlisting}[labelstep=0]{}%,frame=,indent=1cm]{} + \begin{lstlisting}[stepnumber=0]{} struct utimbuf { time_t actime; /* access time */ time_t modtime; /* modification time */