Mono.Unix.Native.FcntlCommand Enumeration
Possible Syscall.fcntlcommand values.

Syntax

[System.CLSCompliant(false)]
public enum FcntlCommand

See Also

Syscall.fcntl

Remarks

Members

Member NameDescription
F_DUPFDReturn a new descriptor as follows:
  • Lowest numbered available descriptor greater than or equal to arg.
  • Same object references as the original descriptor.
  • New descriptor shares the same file offset if the object was a file.
  • Same access mode (read, write or read/write).
  • Same file status flags (i.e., both file descriptors share the same file status flags).
  • The close-on-exec flag associated with the new file descriptor is set to remain open across Syscall.execve system calls.
F_GETFDGet the close-on-exec flag associated with the file descriptor fd as FD_CLOEXEC. If the returned value ANDed with FD_CLOEXEC is 0, the file will remain open across exec(), otherwise the file will be closed upon execution of exec() (arg is ignored).
F_GETFLGet descriptor status flags, as described below (arg is ignored).
F_GETLEASEDocumentation for this section has not yet been entered.
F_GETLKGet the first lock that blocks the lock description pointed to by the third argument, arg, taken as a reference to a Mono.Unix.Native.Flock. The information retrieved overwrites the information passed to Syscall.fcntl in the flock structure. If no lock is found that would prevent this lock from being created, the structure is left unchanged by this system call except for the lock type which is set to LockType.F_UNLCK.
F_GETOWNGet the process ID or process group currently receiving Signum.SIGIO and Signum.SIGURG signals; process groups are returned as negative values (arg is ignored).
F_GETSIGDocumentation for this section has not yet been entered.
F_NOTIFYDocumentation for this section has not yet been entered.
F_SETFDSet the close-on-exec flag associated with fd to arg, where arg is either 0 or FD_CLOEXEC, as described above.
F_SETFLSet descriptor status flags to arg.
F_SETLEASEDocumentation for this section has not yet been entered.
F_SETLKSet or clear a file segment lock according to the lock description pointed to by the third argument, arg, taken as a pointer to a Mono.Unix.Native.Flock. FcntlCommand.F_SETLK is used to establish shared (or read) locks (LockType.F_RDLCK) or exclusive (or write) locks, (LockType.F_WRLCK), as well as remove either type of lock (LockType.F_UNLCK). If a shared or exclusive lock cannot be set, Syscall.fcntl returns immediately with Error.EAGAIN.
F_SETLKWThis command is the same as FcntlCommand.F_SETLK except that if a shared or exclusive lock is blocked by other locks, the process waits until the request can be satisfied. If a signal that is to be caught is received while Syscall.fcntl is waiting for a region, the Syscall.fcntl will be interrupted if the signal handler has not specified the SA_RESTART (see Syscall.sigaction).
F_SETOWNSet the process or process group to receive Signum.SIGIO and Signum.SIGURG signals; process groups are specified by supplying arg as negative, otherwise arg is interpreted as a process ID.
F_SETSIGDocumentation for this section has not yet been entered.

Requirements

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