Mono Class Library: Mono.Unix Namespace

Mono.Unix.FileSpecialAttributes Enumeration

Unix file special attributes. [Edit]
[System.Flags]
public enum FileSpecialAttributes

See Also

UnixFileSystemInfo.FileSpecialAttributes
UnixStream.FileSpecialAttributes

Remarks

Unix file special attributes are a part of the Unix file system entry (see UnixFileSystemInfo.FileSpecialAttributes) and control filesystem- and operating system-specific behavior. [Edit]

Members

Member NameDescription
SetGroupIdWhen the file is executed (either as a new process or via Mono.Unix.Native.Syscall.exec), set the effective group-id of the process (UnixEnvironment.EffectiveGroupId) to the owner group of the file (UnixFileSystemInfo.OwnerGroupId). [Edit]
SetUserIdWhen the file is executed (either as a new process or via Mono.Unix.Native.Syscall.exec), set the effective user-id of the process (UnixEnvironment.EffectiveUserId) to the owner of the file (UnixFileSystemInfo.OwnerUserId). [Edit]
Sticky

Sticky bit.

If set on a file, this is currently meaningless, but in years past it requested that the operating system keep the program's code in memory, thus speeding up further program invocations. This is no longer necessary with virtual memory.

If set on a directory, a file in the directory can be removed or renamed only if the user has write permission for the directory, and either:

  • owns the file
  • owns the directory, or
  • is the superuser (root).
[Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0