@@ -8,32 +8,35 @@ Authors: Steven Schveighoffer
8
8
module iopipe.stream ;
9
9
import std.io ;
10
10
11
- // / Deprecated: use std.io directly
12
- deprecated alias IODev = IOObject! (File );
13
-
14
- /**
15
- * Construct an input stream based on the file descriptor
16
- *
17
- * params:
18
- * fd = The file descriptor to wrap
19
- *
20
- * Deprecated: Use https://code.dlang.org/io for low-level device i/o
21
- */
22
- deprecated (" use std.io" )
23
- auto openDev (int fd)
11
+ version (Posix )
24
12
{
25
- return ioObject ( File (fd));
26
- }
13
+ // / Deprecated: use std.io directly
14
+ deprecated alias IODev = IOObject ! ( File );
27
15
28
- /**
29
- * Open a file by name.
30
- *
31
- * Deprecated: Use https://code.dlang.org/io for low-level device i/o
32
- */
33
- deprecated (" use std.io" )
34
- auto openDev (in char [] name, Mode mode = Mode.read | Mode.binary)
35
- {
36
- return ioObject (File (name, mode));
16
+ /**
17
+ * Construct an input stream based on the file descriptor
18
+ *
19
+ * params:
20
+ * fd = The file descriptor to wrap
21
+ *
22
+ * Deprecated: Use https://code.dlang.org/io for low-level device i/o
23
+ */
24
+ deprecated (" use std.io" )
25
+ auto openDev (int fd)
26
+ {
27
+ return ioObject (File (fd));
28
+ }
29
+
30
+ /**
31
+ * Open a file by name.
32
+ *
33
+ * Deprecated: Use https://code.dlang.org/io for low-level device i/o
34
+ */
35
+ deprecated (" use std.io" )
36
+ auto openDev (in char [] name, Mode mode = Mode.read | Mode.binary)
37
+ {
38
+ return ioObject (File (name, mode));
39
+ }
37
40
}
38
41
39
42
0 commit comments