⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ustat.2

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 2
字号:
.\" SCCSID: @(#)ustat.2	2.1	3/10/87.TH ustat 2.SH Nameustat \- get file system statistics.SH Syntax.nf.ft B#include <sys/types.h>#include <ustat.h>.PP.ft Bint ustat (dev, buf)dev_t dev;struct ustat \(**buf;.fi.SH Description.NXR "ustat system call".NXAM "ustat system call" "fs file".\" fs file is unsupported.NXA "stat system call" "ustat system call".NXR "file" "getting statistics"The.PN ustatcallreturns information about a mounted file system.The.I devargument is a device number identifying a device containinga mounted file system.The.I bufargument is a pointer to a.PN ustatstructure that includes the following elements:.EXdaddr_t  f_tfree;       /\(** Total free blocks (Kbytes) \(**/ino_t    f_tinode;      /\(** Number of free inodes \(**/char     f_fname[512];  /\(** Filsys name \(**/char     f_fpack[6];    /\(** Filsys pack name \(**/.EEThe .I f_fpackalways returns a null string..SH Environment.SS SYSTEM VDiffers from System V definition in that the size of the f_fnamestructure element is 512 instead of 6, and the .I dev parameter is type dev_t instead of int..SH DiagnosticsThe.PN ustatcall fails if any of the following is true:.TP 15.TP.SM\%[EINVAL]The .I dev\^argument is not the device number of a device containing a mounted file system..TP.SM\%[EFAULT]The.I buf\^argument points outside the process's allocated address space..TP[ETIMEDOUT]A connect request or remote file operation failed,because the connected partydid not properly respond after a periodof time that is dependent on the communications protocol..SH See Alsostat(2), fs(5)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -