Mockup of the new package os interface (incomplete and non-functioning)
This commit is contained in:
1 parent
3a4373641b
commit
ebbc33fdb5
21 files changed
+1621
No files matched your search
@@ -0,0 +1,13 @@
|
||||
//+private
|
||||
package os2
|
||||
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
_pipe :: proc() -> (r, w: Handle, err: Error) {
|
||||
p: [2]win32.HANDLE;
|
||||
if !win32.CreatePipe(&p[0], &p[1], nil, 0) {
|
||||
return 0, 0, error_from_platform_error(i32(win32.GetLastError()));
|
||||
}
|
||||
return Handle(p[0]), Handle(p[1]), nil;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user