-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 197dbe9 Author: Doug Coleman <[email protected]> Date: Sat Sep 18 19:01:38 2010 -0500 Fix bootstrap, move privileges to windows.privileges commit 521c622 Author: Doug Coleman <[email protected]> Date: Sat Sep 18 18:26:30 2010 -0500 Hopefully fix bootstrap commit eb3f229 Author: Doug Coleman <[email protected]> Date: Sat Sep 18 18:19:05 2010 -0500 Remove wince from factor codebase commit 619d6c9 Author: Doug Coleman <[email protected]> Date: Sat Sep 18 16:07:46 2010 -0500 Remove Windows CE from vm/
- Loading branch information
Showing
96 changed files
with
1,079 additions
and
1,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,8 @@ | ||
! Copyright (C) 2004, 2010 Mackenzie Straight, Doug Coleman. | ||
! See http://factorcode.org/license.txt for BSD license. | ||
USING: accessors alien.c-types classes.struct destructors | ||
io.backend io.timeouts kernel literals windows.errors | ||
windows.handles windows.kernel32 vocabs.loader ; | ||
USING: io.backend namespaces system vocabs.loader ; | ||
IN: io.backend.windows | ||
|
||
HOOK: CreateFile-flags io-backend ( DWORD -- DWORD ) | ||
HOOK: FileArgs-overlapped io-backend ( port -- overlapped/f ) | ||
HOOK: add-completion io-backend ( port -- port ) | ||
"io.files.windows" require | ||
|
||
TUPLE: win32-file < win32-handle ptr ; | ||
|
||
: <win32-file> ( handle -- win32-file ) | ||
win32-file new-win32-handle ; | ||
|
||
M: win32-file dispose | ||
[ cancel-operation ] [ call-next-method ] bi ; | ||
|
||
: opened-file ( handle -- win32-file ) | ||
check-invalid-handle <win32-file> |dispose add-completion ; | ||
|
||
CONSTANT: share-mode | ||
flags{ | ||
FILE_SHARE_READ | ||
FILE_SHARE_WRITE | ||
FILE_SHARE_DELETE | ||
} | ||
|
||
: default-security-attributes ( -- obj ) | ||
SECURITY_ATTRIBUTES <struct> | ||
SECURITY_ATTRIBUTES heap-size >>nLength ; | ||
|
||
"io.files.windows" require | ||
winnt set-io-backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
basis/io/files/windows/nt/nt-tests.factor → basis/io/files/windows/windows-tests.factor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.