aboutsummaryrefslogtreecommitdiff
path: root/arch/platform/darwin/bits/errno.elna
blob: 547e99a7d3ce906ff37961c370fb3bd438692462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(* This Source Code Form is subject to the terms of the Mozilla Public License,
  v. 2.0. If a copy of the MPL was not distributed with this file, You can
  obtain one at https://mozilla.org/MPL/2.0/. *)
module

const
  EPERM* = 1i32
  ENOENT* = 2i32
  ESRCH* = 3i32
  EINTR* = 4i32
  EIO* = 5i32
  ENXIO* = 6i32
  E2BIG* = 7i32
  ENOEXEC* = 8i32
  EBADF* = 9i32
  ECHILD* = 10i32
  ENOMEM* = 12i32
  EACCES* = 13i32
  EFAULT* = 14i32
  EBUSY* = 16i32
  EEXIST* = 17i32
  EXDEV* = 18i32
  ENODEV* = 19i32
  ENOTDIR* = 20i32
  EISDIR* = 21i32
  EINVAL* = 22i32
  ENFILE* = 23i32
  EMFILE* = 24i32
  ENOTTY* = 25i32
  ETXTBSY* = 26i32
  EFBIG* = 27i32
  ENOSPC* = 28i32
  ESPIPE* = 29i32
  EROFS* = 30i32
  EMLINK* = 31i32
  EPIPE* = 32i32
  EDOM* = 33i32
  ERANGE* = 34i32
  EAGAIN* = 35i32

proc __error() -> ^Int32
extern

proc errno*() -> ^Int32
return __error()

end.