.\" -*- coding: UTF-8 -*- .\" Copyright (C) 1995, Thomas K. Dyas .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Created 1995-08-09 Thomas K. Dyas .\" Modified 1997-01-31 by Eric S. Raymond .\" Modified 2001-03-22 by aeb .\" Modified 2003-08-04 by aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH USTAT 2 "6 marzo 2019" Linux "Manuale del programmatore di Linux" .SH NOME ustat \- riporta statistiche su di un filesystem .SH SINTASSI .nf \fB#include \fP \fB#include \fP /* libc[45] */ \fB#include \fP /* glibc2 */ .PP \fBint ustat(dev_t \fP\fIdev\fP\fB, struct ustat *\fP\fIubuf\fP\fB);\fP .fi .SH DESCRIZIONE \fBustat\fP() restituisce informazioni circa un filesystem montato. \fIdev\fP è il numero identificativo del dispositivo su cui è montato il filesystem. \fIubuf\fP è un puntatore alla struttura \fIustat\fP che contiene i seguenti campi: .PP .in +4n .EX daddr_t f_tfree; /* Blocchi liberi totali */ ino_t f_tinode; /* Numero di inode liberi */ char f_fname[6]; /* Nome filsys */ char f_fpack[6]; /* Nome filsys pack */ .EE .in .PP Gli ultimi due campi, \fIf_fname\fP e \fIf_fpack\fP, non sono implementati e saranno sempre riempiti con byte NULL (\(aq\e0\(aq). .SH "VALORE RESTITUITO" In caso di successo viene restituito zero e la struttura \fIustat\fP puntata da \fIubuf\fP verrà completata. In caso di errore viene restituito \-1, e \fIerrno\fP è impostata di conseguenza. .SH ERRORI .TP \fBEFAULT\fP \fIubuf\fP punta al di fuori del proprio spazio di indirizzamento accessibile. .TP \fBEINVAL\fP \fIdev\fP non si riferisce ad un dispositivo su cui è montato un file sistem. .TP \fBENOSYS\fP Il filesystem a cui \fIdev\fP si riferisce, non supporta questa operazione, oppure il kernel è antecedente al 1.3.16. .SH VERSIONI Dalla versione 2.28, glibc non fornisce più un wrapper per questa chiamata di sistema. .SH "CONFORME A" .\" SVr4 documents additional error conditions ENOLINK, ECOMM, and EINTR .\" but has no ENOSYS condition. SVr4. .SH NOTE \fBustat\fP() è mantenuta solo per compatibilità. Tutti i nuovi programmi devono usare \fBstatfs\fP(2) al suo posto. .SS "NOTE HP\-UX" .\" Some software tries to use this in order to test whether the .\" underlying filesystem is NFS. La versione HP\-UX della struttura di \fIustat\fP ha un campo aggiuntivo, \fIf_blksize\fP, che altrove è sconosciuto. HP\-UX avverte: Per alcuni filesystem, il numero di inode liberi non cambia. Questi filesystem restituiranno \-1 nel campo \fIf_tinode\fP. Per alcuni filesystem, gli inode sono allocati dinamicamente. Tali filesystem restituiranno il numero di attuale di inode liberi. .SH "VEDERE ANCHE" \fBstat\fP(2), \fBstatfs\fP(2) .SH COLOPHON Questa pagina fa parte del rilascio 5.10 del progetto Linux \fIman\-pages\fP. Una descrizione del progetto, le istruzioni per la segnalazione degli errori, e l'ultima versione di questa pagina si trovano su \%https://www.kernel.org/doc/man\-pages/. .SH TRADUZIONE La traduzione italiana di questa pagina di manuale è stata creata da Goffredo Baroncelli , Giulio Daprelà e Marco Curreli . Questa traduzione è documentazione libera; leggere la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Versione 3 .UE o successiva per le condizioni di copyright. Non ci assumiamo alcuna responsabilità. Per segnalare errori nella traduzione di questa pagina di manuale inviare un messaggio a .MT pluto-ildp@lists.pluto.it .ME .