Contents

CFFileSecurityGetMode(_:_:)

Gets the file mode associated with a CFFileSecurityRef object.

Declaration

func CFFileSecurityGetMode(_ fileSec: CFFileSecurity!, _ mode: UnsafeMutablePointer<mode_t>!) -> Bool

Parameters

  • fileSec:

    The CFFileSecurityRef object.

  • mode:

    The address of an integer of type mode_t.

Return Value

Returns true if the file mode was stored in the address pointed to by mode, or false if there is no file mode property associated with this CFFileSecurityRef object.

Discussion

For more information on numerical file modes, see the chmod(2) manual page and the definitions in /usr/include/sys/stat.h.

See Also

Functions