diff options
author | Jeremy Kuhne <jeremy.kuhne@microsoft.com> | 2016-10-25 21:52:41 -0700 |
---|---|---|
committer | Jeremy Kuhne <jeremy.kuhne@microsoft.com> | 2016-10-28 11:52:18 -0700 |
commit | 5a7fb90eb479450cd5671e4531336dea7c072492 (patch) | |
tree | f7c54d4f2c562ab4f4df5942cd2eabed59b43069 /src/vm/mscorlib.h | |
parent | 22303a95a5320c4a339fe36c21ffaa9e59ffb08f (diff) | |
download | coreclr-5a7fb90eb479450cd5671e4531336dea7c072492.tar.gz coreclr-5a7fb90eb479450cd5671e4531336dea7c072492.tar.bz2 coreclr-5a7fb90eb479450cd5671e4531336dea7c072492.zip |
Copy CoreFX FileStream to CoreLib
This copies FileStream to CoreLib and uses it in place of the legacy
FileStream. Code is mostly a direct copy with the addition of a few
internal constructor overloads.
Adds a simple Debug wrapper for BCLDebug to allow keeping the code
the same. Also follows the same pattern for SR wrapping.
Needed to bring down PreAllocatedOverlapped.
- Expose FileStream in model.xml
- Remove native usage of FileStreamAsyncResult
- #ifdef SafeFileHandle creation in existing code (to avoid mismatched
PAL/CoreFX usage)
Diffstat (limited to 'src/vm/mscorlib.h')
-rw-r--r-- | src/vm/mscorlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm/mscorlib.h b/src/vm/mscorlib.h index 0a8fab3ebe..9d5fb2f9ce 100644 --- a/src/vm/mscorlib.h +++ b/src/vm/mscorlib.h @@ -773,6 +773,7 @@ DEFINE_CLASS(I_RT_FIELD_INFO, System, IRuntimeFieldInfo) DEFINE_CLASS(FIELD_INFO, Reflection, FieldInfo) +#ifndef FEATURE_CORECLR DEFINE_CLASS_U(IO, FileStreamAsyncResult, AsyncResultBase) DEFINE_FIELD_U(_userCallback, AsyncResultBase, _userCallback) DEFINE_FIELD_U(_userStateObject, AsyncResultBase, _userStateObject) @@ -787,6 +788,7 @@ DEFINE_FIELD_U(_isWrite, AsyncResultBase, _isWrite) DEFINE_FIELD_U(_isComplete, AsyncResultBase, _isComplete) DEFINE_FIELD_U(_completedSynchronously, AsyncResultBase, _completedSynchronously) DEFINE_CLASS(FILESTREAM_ASYNCRESULT, IO, FileStreamAsyncResult) +#endif // !FEATURE_CORECLR DEFINE_CLASS_U(Security, FrameSecurityDescriptor, FrameSecurityDescriptorBaseObject) DEFINE_FIELD_U(m_assertions, FrameSecurityDescriptorBaseObject, m_assertions) |