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

Mono.Posix.Syscall.open Method

Creates/opens a file 'pathname' using the given open and file mode flags. [Edit]

public static int open (string pathname, OpenFlags flags, FileMode mode)

See Also

Mono.Unix.Native.Syscall.open

Parameters

pathname
a string [Edit]
flags
a int [Edit]
mode
a int [Edit]

Returns

a int [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.open instead.

On success, a file descriptor for the file is returned. This file descriptor is the lowest numbered unused descriptor. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set.

[Edit]

Requirements

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