open function

  1. @Native<Int Function(Pointer<Char>, Int, VarArgs<(Int)>)>(Pointer<Char>, Int, VarArgs<(Int)>)>(isLeaf: true)
int open(
  1. Pointer<Char> path,
  2. int flags,
  3. int mode
)

open(2): opens path as flags say, a new file of mode; a descriptor, or -1. A leaf call, like read.

Implementation

@Native<Int Function(Pointer<Char>, Int, VarArgs<(Int,)>)>(isLeaf: true)
external int open(Pointer<Char> path, int flags, int mode);