Skip to content

WASI_ERRNO

const WASI_ERRNO: object

Defined in: packages/pgwasm/src/opfs/wasi/preview1.ts:99

WASI preview1 errno numbers. A superset of the store’s own FS_ERRNO (whose values already ARE these numbers); the extra codes are ones a filesystem ADAPTER has to answer and the store core never produces, so they live here rather than widening the core’s error vocabulary.

readonly ACCES: 2 = 2

readonly BADF: 8 = 8

readonly EXIST: 20 = 20

readonly INVAL: 28 = 28

readonly IO: 29 = 29

readonly ISDIR: 31 = 31

readonly LOOP: 32 = 32

readonly NOENT: 44 = 44

readonly NOSYS: 52 = 52

readonly NOTCAPABLE: 76 = 76

readonly NOTDIR: 54 = 54

readonly NOTEMPTY: 55 = 55

readonly NOTSUP: 58 = 58

readonly OVERFLOW: 61 = 61

readonly PERM: 63 = 63

readonly SPIPE: 70 = 70

readonly SUCCESS: 0 = 0