Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man3c/getvfsent.3c
Real path: /usr/share/man/man3c/getvfsent.3c
Zurück
'\" te .\" Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 1989, AT&T. All rights reserved. .TH getvfsent 3C "12 Mar 1997" "Oracle Solaris 11.4" "Standard C Library Functions" .SH NAME getvfsent, getvfsfile, getvfsspec, getvfsany \- get vfstab file entry .SH SYNOPSIS .LP .nf #include <stdio.h> #include <sys/vfstab.h> \fBint\fR \fBgetvfsent\fR(\fBFILE *\fR\fIfp\fR, \fBstruct vfstab *\fR\fIvp\fR); .fi .LP .nf \fBint\fR \fBgetvfsfile\fR(\fBFILE *\fR\fIfp\fR, \fBstruct vfstab *\fR\fIvp\fR, \fBchar *\fR\fIfile\fR); .fi .LP .nf \fBint\fR \fBgetvfsspec\fR(\fBFILE *\fR, \fBstruct vfstab *\fR\fIvp\fR, \fBchar *\fR\fIspec\fR); .fi .LP .nf \fBint\fR \fBgetvfsany\fR(\fBFILE *\fR, \fBstruct vfstab *\fR\fIvp\fR, \fBstruct vfstab *\fR\fIvref\fR); .fi .SH DESCRIPTION .sp .LP The \fBgetvfsent()\fR, \fBgetvfsfile()\fR, \fBgetvfsspec()\fR, and \fBgetvfsany()\fR functions each fill in the structure pointed to by \fIvp\fR with the broken-out fields of a line in the \fB/etc/vfstab\fR file. Each line in the file contains a \fBvfstab\fR structure, declared in the <\fBsys/vfstab.h\fR> header, whose following members are described on the \fBvfstab\fR(5) manual page: .sp .in +2 .nf char *vfs_special; char *vfs_fsckdev; char *vfs_mountp; char *vfs_fstype; char *vfs_fsckpass; char *vfs_automnt; char *vfs_mntopts; .fi .in -2 .sp .sp .LP The \fBgetvfsent()\fR function returns a pointer to the next \fBvfstab\fR structure in the file; so successive calls can be used to search the entire file. .sp .LP The \fBgetvfsfile()\fR function searches the file referenced by \fIfp\fR until a mount point matching \fBfile\fR is found and fills \fIvp\fR with the fields from the line in the file. .sp .LP The \fBgetvfsspec()\fR function searches the file referenced by \fIfp\fR until a special device matching \fIspec\fR is found and fills \fIvp\fR with the fields from the line in the file. The \fIspec\fR argument will try to match on device type (block or character special) and major and minor device numbers. If it cannot match in this manner, then it compares the strings. .sp .LP The \fBgetvfsany()\fR function searches the file referenced by \fIfp\fR until a match is found between a line in the file and \fIvref\fR. A match occurs if all non-null entries in \fIvref\fR match the corresponding fields in the file. .sp .LP Note that these functions do not open, close, or rewind the file. .SH RETURN VALUES .sp .LP If the next entry is successfully read by \fBgetvfsent()\fR or a match is found with \fBgetvfsfile()\fR, \fBgetvfsspec()\fR, or \fBgetvfsany()\fR, \fB0\fR is returned. If an end-of-file is encountered on reading, these functions return \fB\(mi1\fR. If an error is encountered, a value greater than 0 is returned. The possible error values are: .sp .ne 2 .mk .na \fB\fBVFS_TOOLONG\fR\fR .ad .RS 15n .rt A line in the file exceeded the internal buffer size of \fBVFS_LINE_MAX\fR. .RE .sp .ne 2 .mk .na \fB\fBVFS_TOOMANY\fR\fR .ad .RS 15n .rt A line in the file contains too many fields. .RE .sp .ne 2 .mk .na \fB\fBVFS_TOOFEW\fR\fR .ad .RS 15n .rt A line in the file contains too few fields. .RE .SH FILES .sp .LP \fB/etc/vfstab\fR .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ MT-Level Safe .TE .sp .SH SEE ALSO .sp .LP \fBvfstab\fR(5), \fBattributes\fR(7) .SH NOTES .sp .LP The members of the \fBvfstab\fR structure point to information contained in a static area, so it must be copied if it is to be saved.