summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix_other.nim12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/posix/posix_other.nim b/lib/posix/posix_other.nim
index b7570bd15..99d67824e 100644
--- a/lib/posix/posix_other.nim
+++ b/lib/posix/posix_other.nim
@@ -10,7 +10,7 @@
 {.deadCodeElim: on.}  # dce option deprecated
 
 const
-  hasSpawnH = not defined(haiku) # should exist for every Posix system nowadays
+  hasSpawnH = true # should exist for every Posix system nowadays
   hasAioH = defined(linux)
 
 when defined(linux) and not defined(android):
@@ -43,6 +43,9 @@ type
 
   Dirent* {.importc: "struct dirent",
              header: "<dirent.h>", final, pure.} = object ## dirent_t struct
+    when defined(haiku):
+      d_dev*: Dev ## Device (not POSIX)
+      d_pdev*: Dev ## Parent device (only for queries) (not POSIX)
     d_ino*: Ino  ## File serial number.
     when defined(dragonfly):
       # DragonflyBSD doesn't have `d_reclen` field.
@@ -54,6 +57,9 @@ type
                     ## (not POSIX)
       when defined(linux) or defined(openbsd):
         d_off*: Off  ## Not an offset. Value that ``telldir()`` would return.
+    elif defined(haiku):
+      d_pino*: Ino ## Parent inode (only for queries) (not POSIX)
+      d_reclen*: cushort ## Length of this record. (not POSIX)
 
     d_name*: array[0..255, char] ## Name of entry.
 
@@ -599,6 +605,10 @@ else:
     MSG_NOSIGNAL* {.importc, header: "<sys/socket.h>".}: cint
       ## No SIGPIPE generated when an attempt to send is made on a stream-oriented socket that is no longer connected.
 
+when defined(haiku):
+  const
+    SIGKILLTHR* = 21 ## BeOS specific: Kill just the thread, not team
+
 when hasSpawnH:
   when defined(linux):
     # better be safe than sorry; Linux has this flag, macosx doesn't, don't
='Blame the previous revision' href='/ahoang/Nim/blame/lib/system/mmdisp.nim?h=devel&id=dfe067a74a0b62b74bf9680f1982805132ac9ffa'>^
19677a11b ^
132b6b3ef ^

2ad8e073d ^
f0ea9447c ^
86bf97a73 ^
ee57bb3e3 ^
db4f617af ^
8d19a93f1 ^
db4f617af ^


f73cec7f0 ^
42a8ab34f ^
db4f617af ^


22684370b ^
2ca90a20a ^
db4f617af ^

e31ac8189 ^



db4f617af ^
e25384db8 ^

852170cc7 ^
e25384db8 ^
db4f617af ^

4f3dd3350 ^
50e96ad93 ^

4f3dd3350 ^
50e96ad93 ^
79a326759 ^
4f3dd3350 ^
142e849b9 ^
db4f617af ^
4f3dd3350 ^
ff02ce2d5 ^
db4f617af ^
6b3af6a5d ^
79f64d246 ^
99bcc233c ^
83a736a34 ^

8a339d117 ^
79f64d246 ^
65fdd641a ^

6b3af6a5d ^
e2c8d9ade ^
6b3af6a5d ^
1746da2d9 ^
e26370268 ^

1746da2d9 ^
62aa1a3cf ^

ab6f79340 ^

083d4f470 ^
65fdd641a ^
ee57bb3e3 ^
0eae2217b ^
a6682de00 ^
b7c1be03c ^
3221ac094 ^
a6682de00 ^
ed4f1f4c4 ^
e5cb1a2dd ^
4005f0d0e ^
3221ac094 ^





a6682de00 ^
b7c1be03c ^
db4f617af ^
d27c0b219 ^







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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111