DCMD_ALL_GETMOUNTFLAGS
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get ST_* mount flags
Synopsis:
#include <sys/dcmd_all.h>
#define DCMD_ALL_GETMOUNTFLAGS  __DIOF(_DCMD_ALL, 3, int)
Arguments to devctl():
| Argument | Value | 
|---|---|
| filedes | A file descriptor that you obtained by opening the device. | 
| dcmd | DCMD_ALL_GETMOUNTFLAGS | 
| dev_data_ptr | A pointer to a int where the device can store the flags | 
| n_bytes | sizeof(int) | 
| dev_info_ptr | NULL | 
Description:
This command gets the ST_* mount flags, described in <sys/statvfs.h>; for more information, see the entry for statvfs() in the C Library Reference. This command is sometimes used by access() to determine write or execute modes.
Input:
None.
Output:
A bitwise OR of the mount flags:
- ST_RDONLY
 - ST_NOEXEC
 - ST_NOSUID
 - ST_NOCREAT
 - ST_OFF32
 - ST_NOATIME
 - ST_TRUSTED
 
Example:
int flags;
if (devctl(fd, DCMD_ALL_GETMOUNTFLAGS, &flags, sizeof flags, NULL) != EOK)
{
   /* Error */
}
See also:
access(), devctl(), stavfs() in the QNX OS C Library Reference
Page updated: 
