| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- get vfstab file entry
#include <stdio.h>#include <sys/vfstab.h>intgetvfsent(FILE *fp,struct vfstab *vp);
intgetvfsfile(FILE *fp,struct vfstab *vp,char *file);
intgetvfsspec(FILE *,struct vfstab *vp,char *spec);
intgetvfsany(FILE *,struct vfstab *vp,struct vfstab *vref);
Thegetvfsent(),getvfsfile(),getvfsspec(), andgetvfsany() functions each fill in the structurepointed to byvp with the broken-out fields of a line inthe/etc/vfstab file. Each line in the file contains avfstab structure, declaredin the <sys/vfstab.h> header, whose following members are described on thevfstab(4)manual page:
char *vfs_special; char *vfs_fsckdev; char *vfs_mountp; char *vfs_fstype; char *vfs_fsckpass; char *vfs_automnt; char *vfs_mntopts;
Thegetvfsent() function returns a pointer to the nextvfstab structure inthe file; so successive calls can be used to search the entirefile.
Thegetvfsfile() function searches the file referenced byfp until a mountpoint matchingfile is found and fillsvp with the fields fromthe line in the file.
Thegetvfsspec() function searches the file referenced byfp until a specialdevice matchingspec is found and fillsvp with the fields fromthe line in the file. Thespec argument will try to matchon device type (block or character special) and major and minor devicenumbers. If it cannot match in this manner, then it compares thestrings.
Thegetvfsany() function searches the file referenced byfp until a matchis found between a line in the file andvref. A matchoccurs if all non-null entries invref match the corresponding fields in thefile.
Note that these functions do not open, close, or rewind the file.
If the next entry is successfully read bygetvfsent() or a matchis found withgetvfsfile(),getvfsspec(), orgetvfsany(),0 is returned. If anend-of-file is encountered on reading, these functions return-1. If an error isencountered, a value greater than 0 is returned. The possible error valuesare:
A line in the file exceeded the internal buffer size ofVFS_LINE_MAX.
A line in the file contains too many fields.
A line in the file contains too few fields.
/etc/vfstab
Seeattributes(5) for descriptions of the following attributes:
|
The members of thevfstab structure point to information contained in astatic area, so it must be copied if it is to besaved.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |