qute

A software analysis framework built around the QBE intermediate language

git clone https://git.8pit.net/qute.git

 1-- SPDX-FileCopyrightText: 2026 Sören Tempel <soeren+git@soeren-tempel.net>
 2--
 3-- SPDX-License-Identifier: GPL-3.0-only
 4
 5module Language.QBE.Simulator.ABI.POSIX where
 6
 7import Data.Word (Word32)
 8
 9oRDONLY :: Word32
10oRDONLY = 0x00000000
11
12oWRONLY :: Word32
13oWRONLY = 0x00000001
14
15oRDWR :: Word32
16oRDWR = 0x00000002
17
18------------------------------------------------------------------------
19
20oACCMODE :: Word32
21oACCMODE = 0x00000003
22
23oCLOEXEC :: Word32
24oCLOEXEC = 0x00400000
25
26oEXCL :: Word32
27oEXCL = 0x00000800
28
29oTRUNC :: Word32
30oTRUNC = 0x00000400
31
32oCREAT :: Word32
33oCREAT = 0x00000200
34
35oAPPEND :: Word32
36oAPPEND = 0x00000008