1 // Copyright 2019-2023 the Contributors to the WASI Specification 2 // This file is adapted from the WASI preview1 spec here: 3 // https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md 4 package okio.internal.preview1 5 6 /** 7 * `oflags: `Record`. 8 * 9 * Open flags used by path_open. 10 */ 11 typealias oflags = Int 12 13 /** Create file if it does not exist. */ 14 val oflag_creat = 1 shl 0 15 16 /** Fail if not a directory. */ 17 val oflag_directory = 1 shl 1 18 19 /** Fail if file already exists. */ 20 val oflag_excl = 1 shl 2 21 22 /** Truncate file to size 0. */ 23 val oflag_trunc = 1 shl 3 24