Get ST_* mount flags
#include <sys/dcmd_all.h> #define DCMD_ALL_GETMOUNTFLAGS __DIOF(_DCMD_ALL, 3, int)
| 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 |
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.
None.
A bitwise OR of the mount flags:
int flags;
if (devctl(fd, DCMD_ALL_GETMOUNTFLAGS, &flags, sizeof flags, NULL) != EOK)
{
/* Error */
}