getmountent.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 137 行
3
137 行
.\" SCCSID: @(#)getmountent.3 8.1 9/11/90.TH getmountent 3.SH Namegetmountent \- get information about mounted file systems without blocking.SH Syntax.nf.ft B#include <sys/types.h>#include <sys/param.h>#include <sys/mount.h>.PP.ft Bgetmountent(start, buffer, nentries)int *start;struct fs_data *buffer;int nentries;.fi.SH Description.NXR "getmountent subroutine".NXA "getmountent subroutine" "statfs subroutine".NXR "file system" "getting information on mounted"The.PN getmountentlibrary routine retrieves mounted file system informationfrom memory without blocking.The file system information retrieved(the number of free inodes and blocks)might not be up to date.If the accuracy of the file system information retrieved is critical,you should use.PN statfsor.PN getmntinstead of.PN getmountent ..PPThe .I startargument is the current logical location within theinternal system mount table andmust be initially set to 0.The.I bufferargument is the holding area for the returned information;that is,the.PN fs_datastructures.The size of.I buffershould be at least the number of entriestimes the size of the.PN fs_datastructure,in bytes.The.I nentriesargument defines the number of mount table entries that are tobe retrieved..PPThe number of file systems described by the information placed in.I bufferis returned.The.I startargument is updated so that successive calls can be used to retrievethe entire mount table..PP.SH Return Values.PPUpon successful completion, a value indicating the number of.PN struct.PN fs_datastructures stored in.I bufferis returned.If there are no more file systems in the mount table,.PN 0is returned.Otherwise,.PN \-1is returned and the global variable.I errnois set to indicate the error..\" .LP.\" Upon successful completion,.\" a value of 1 is returned..\" Otherwise,.\" .PN \-1.\" is returned and the variable.\" .I errno.\" is set to indicate the error..PP.SH Diagnostics.\" .TP 15.\" ENOTDIR.\" A component of the path prefix of.\" .I path.\" is not a directory..TP 15EINVALInvalid argument..\" .TP 15.\" ENAMETOOLONG.\" The length of a component of.\" .I path.\" exceeds 255 characters,.\" or the length of.\" .I path.\" exceeds 1023 characters..\" .TP 15.\" ENOENT.\" The file referred to by.\" .I path.\" does not exist..\" .TP 15.\" EACCESS.\" Search permission is denied for a component of the path prefix of.\" .IR path ..TP 15.\" ELOOP.\" Too many symbolic links were encountered in translating.\" .IR path ..TP 15EFAULTEither.I bufferor.I startcauses an illegal address to be referenced..TP 15EIOAn I/O error occurred while reading from the file system..SH See Alsogetmnt(2), statfs(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?