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 * `fdflags: Record`. 8 * 9 * File descriptor flags. 10 */ 11 typealias fdflags = Short 12 13 /** Data written to the file is always appended to the file's end. */ 14 val fdflags_append: Short = (1 shl 0).toShort() 15 16 /** Write according to synchronized I/O data integrity completion. Only the data stored in the file is synchronized. */ 17 val fdflags_dsync: Short = (1 shl 1).toShort() 18 19 /** Non-blocking mode. */ 20 val fdflags_nonblock: Short = (1 shl 2).toShort() 21 22 /** Synchronized read I/O operations. */ 23 val fdflags_rsync: Short = (1 shl 3).toShort() 24 25 /** Write according to synchronized I/O file integrity completion. In addition to synchronizing the data stored in the file, the implementation may also synchronously update the file's metadata. */ 26 val fdflags_sync: Short = (1 shl 4).toShort() 27