Michael Ilseman
920ef3085d
Add PlatformString and Windows support
...
Add CInterop namespace and PlatformChar/PlatformEncoding typealiases for
narrow/wide characters.
Change Windows syscalls to use wide-character variants. Add full Windows root
parser to error-correct malformed roots and correctly normalize roots and
post-root portions of the path.
Add platformString APIs as replacements for cString APIs.
Add internal SystemString as backing storage type for FilePath.
Add Windows path mocking support.
This change includes API/ABI additions and deprecations.
2021-02-01 08:20:05 -07:00
Saleem Abdulrasool
4ffcc62e9b
Initial port to Windows
...
This adds enough shims and tweaks the types sufficiently to allow
building System on Windows.
2020-11-03 15:03:51 -08:00
Saleem Abdulrasool
ac6ec0b19d
SystemInternals: make WindowsSyscallAdapters build
...
Correct some type errors, missing return type. Add a FIXME comment
regarding large file access.
2020-10-24 12:16:33 -07:00
Saleem Abdulrasool
bf90fedc88
SystemInternals: make Mocking build on Windows
...
Fix some of the type errors and add missing imports.
2020-10-23 14:32:24 -07:00
Michael Ilseman
1eeeaf7200
Initial Windows syscall adapters
2020-10-23 09:07:41 -07:00
Michael Ilseman
5712a28377
Windows TLS mocking support
2020-10-23 09:07:41 -07:00
Michael Ilseman
173c684973
TLS helpers to ease Windows support
2020-10-22 14:42:03 -07:00
Michael Ilseman
d2e26f72f3
Fix memory leak in withMockingEnabled
2020-10-22 10:43:12 -07:00
Michael Ilseman
a8d07f8a04
Leverage conditional compilation to reduce mocking boilerplate
2020-10-22 10:39:09 -07:00
Michael Ilseman
98a1531ea0
Remove mocking infrastructure from non-mocking builds
2020-10-21 16:09:04 -07:00
Michael Ilseman
138c7f1a71
Add Linux support for syscall mocking
2020-10-21 09:40:08 -07:00
Michael Ilseman
9489545fed
Syscall mock testing
...
Adds mocking and tracing infrastructure, test
infrastructure, and trace-based tests.
2020-10-21 09:22:46 -07:00
Michael Ilseman
8ffa04c0a0
Initial version of Swift System
2020-09-25 08:20:58 -07:00