Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.close Method

Closes the file descriptor fileDescriptor. If fileDescriptor is the last file descriptor refering to a file, then the ressources associated with that file are deallocated. The lock held on the file by the current task are released. [Edit]

public static int close (int fileDescriptor)

See Also

Mono.Unix.Native.Syscall.close

Parameters

fileDescriptor
a int [Edit]

Returns

a int. On success, zero is returned. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set. [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.close instead. [Edit]

Requirements

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