DCMD_ALL_GETMOUNTFLAGS

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:

Example:

int flags;

if (devctl(fd, DCMD_ALL_GETMOUNTFLAGS, &flags, sizeof flags, NULL) != EOK)
{
   /* Error */
}

See also:

access(), devctl(), stavfs() in the QNX Neutrino C Library Reference