Class FcntlCommands
java.lang.Object
com.github.marschall.nativebytebuffers.FcntlCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Add the seals given in the bit-mask argument arg to the set of seals of the inode referred to by the file descriptor fd.static final int
Return (as the function result) the current set of seals of the inode referred to by fd. -
Method Summary
-
Field Details
-
F_ADD_SEALS
public static final int F_ADD_SEALSAdd the seals given in the bit-mask argument arg to the set of seals of the inode referred to by the file descriptor fd. Seals cannot be removed again. Once this call succeeds, the seals are enforced by the kernel immediately. If the current set of seals includesSeals.F_SEAL_SEAL
(see below), then this call will be rejected with EPERM. Adding a seal that is already set is a no-op, in caseSeals.F_SEAL_SEAL
is not set already. In order to place a seal, the file descriptor fd must be writable. -
F_GET_SEALS
public static final int F_GET_SEALSReturn (as the function result) the current set of seals of the inode referred to by fd. If no seals are set, 0 is returned. If the file does not support sealing, -1 is returned and errno is set to EINVAL.
-