To use the programming interfaces described in this chapter, you need the following header file.
#include <tsol/mld.h> |
The examples in this chapter compile with the following library:
-ltsol |
The bslabel_t type definition represents the sensitivity label portion of a binary CMW label. The getsldname(2) system call accepts a variable of type bslabel_t.
The stat structure contains information on a specified MLD, SLD, or symbolic link. The structure is returned by the mldstat(3TSOL) and mldlstat(3TSOL) system calls.
Type |
Field |
Description |
Default |
---|---|---|---|
mode_t |
st_mode |
File type and permissions. |
0 |
nlink_t |
st_nlink |
Number of hard links. |
1 |
uid_t |
st_uid |
User ID of owner. |
0 |
gid_t |
st_gid |
Group Id of owner. |
0 |
time_t |
st_atime |
Last access time in seconds. |
Current time |
time_t |
st_mtime |
Last modify time in seconds. |
Current time |
time_t |
st_ctime |
Last inode change time in seconds. |
Current time |