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
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
Requirements
Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0