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

Mono.Posix.Syscall.creat Method

Creates a file 'pathname' using the given file mode flags. [Edit]

public static int creat (string pathname, FileMode flags)

See Also

Mono.Unix.Native.Syscall.creat

Parameters

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

Returns

a int [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.creat 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