summaryrefslogtreecommitdiff
path: root/lib/Wayland/Basic/PosixSignal.lean
blob: 45c7361455b830517ef6c79949db55cdb3f14e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Wayland.Native

/-!
# POSIX Signals

Data type representing a POSIX signal number.
-/

namespace Wayland

/-- A POSIX signal number. -/
structure PosixSignal where
  signum : UInt32
  deriving Repr, BEq, Inhabited

/-- The SIGINT (interrupted) signal. -/
def PosixSignal.SIGINT : PosixSignal := ⟨Native.SIGINT ()⟩
/-- The SIGUSR1 (first user-defined) signal. -/
def PosixSignal.SIGUSR1 : PosixSignal := ⟨Native.SIGUSR1 ()⟩
/-- The SIGUSR2 (second user-defined) signal. -/
def PosixSignal.SIGUSR2 : PosixSignal := ⟨Native.SIGUSR2 ()⟩

end Wayland