Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -67,8 +67,5 @@ using System.Runtime.InteropServices;
[assembly: ComVisible (false)]
#if NET_4_0
[assembly: TypeForwardedTo (typeof (System.Security.Cryptography.Aes))]
[assembly: TypeForwardedTo (typeof (System.Threading.LazyThreadSafetyMode ))]
[assembly: TypeForwardedTo (typeof (System.Lazy<>))]
#endif

View File

@@ -4,7 +4,9 @@ include ../../build/rules.make
LIBRARY = System.Core.dll
LIB_MCS_FLAGS = -d:INSIDE_SYSCORE -d:LIBC /r:System.dll -unsafe
REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,PFX_LEGACY_3_5
LIB_MCS_FLAGS = $(REFERENCE_SOURCES_FLAGS) -d:INSIDE_SYSCORE -d:LIBC /r:System.dll -unsafe
RESOURCE_STRINGS = ../../../external/referencesource/System.Core/System.Core.txt
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720

View File

@@ -26,7 +26,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
@@ -53,4 +52,3 @@ namespace Microsoft.Win32.SafeHandles
}
}
#endif

View File

@@ -0,0 +1,103 @@
//
// SR.cs: Manually collected resource strings for ReferenceSources
//
// Authors:
// Marek Safar <marek.safar@gmail.com>
//
// Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
partial class SR
{
public const string MoreThanOneMatch = "MoreThanOneMatch";
public const string NoElements = "NoElements";
public const string PLINQ_CommonEnumerator_Current_NotStarted = "PLINQ_CommonEnumerator_Current_NotStarted";
public const string PLINQ_DisposeRequested = "PLINQ_DisposeRequested";
public const string PLINQ_EnumerationPreviouslyFailed = "PLINQ_EnumerationPreviouslyFailed";
public const string PLINQ_ExternalCancellationRequested = "PLINQ_ExternalCancellationRequested";
public const string ParallelEnumerable_BinaryOpMustUseAsParallel = "ParallelEnumerable_BinaryOpMustUseAsParallel";
public const string ParallelEnumerable_WithCancellation_TokenSourceDisposed = "ParallelEnumerable_WithCancellation_TokenSourceDisposed";
public const string ParallelEnumerable_WithMergeOptions_InvalidOptions = "ParallelEnumerable_WithMergeOptions_InvalidOptions";
public const string ParallelEnumerable_WithQueryExecutionMode_InvalidMode = "ParallelEnumerable_WithQueryExecutionMode_InvalidMode";
public const string ParallelPartitionable_IncorretElementCount = "ParallelPartitionable_IncorretElementCount";
public const string ParallelPartitionable_NullElement = "ParallelPartitionable_NullElement";
public const string ParallelPartitionable_NullReturn = "ParallelPartitionable_NullReturn";
public const string ParallelQuery_DuplicateDOP = "ParallelQuery_DuplicateDOP";
public const string ParallelQuery_DuplicateExecutionMode = "The WithExecutionMode operator may be used at most once in a query.";
public const string ParallelQuery_DuplicateMergeOptions = "ParallelQuery_DuplicateMergeOptions";
public const string ParallelQuery_DuplicateTaskScheduler = "ParallelQuery_DuplicateTaskScheduler";
public const string ParallelQuery_DuplicateWithCancellation = "ParallelQuery_DuplicateWithCancellation";
public const string ParallelQuery_InvalidAsOrderedCall = "AsOrdered may only be called on the result of AsParallel, ParallelEnumerable.Range, or ParallelEnumerable.Repeat.";
public const string ParallelQuery_InvalidNonGenericAsOrderedCall = "ParallelQuery_InvalidNonGenericAsOrderedCall";
public const string ParallelQuery_PartitionerNotOrderable = "ParallelQuery_PartitionerNotOrderable";
public const string PartitionerQueryOperator_NullPartition = "PartitionerQueryOperator_NullPartition";
public const string PartitionerQueryOperator_NullPartitionList = "PartitionerQueryOperator_NullPartitionList";
public const string PartitionerQueryOperator_WrongNumberOfPartitions = "PartitionerQueryOperator_WrongNumberOfPartitions";
public const string LockRecursionException_ReadAfterWriteNotAllowed = "LockRecursionException_ReadAfterWriteNotAllowed";
public const string LockRecursionException_RecursiveReadNotAllowed = "LockRecursionException_RecursiveReadNotAllowed";
public const string LockRecursionException_RecursiveUpgradeNotAllowed = "LockRecursionException_RecursiveUpgradeNotAllowed";
public const string LockRecursionException_RecursiveWriteNotAllowed = "LockRecursionException_RecursiveWriteNotAllowed";
public const string LockRecursionException_UpgradeAfterReadNotAllowed = "LockRecursionException_UpgradeAfterReadNotAllowed";
public const string LockRecursionException_UpgradeAfterWriteNotAllowed = "LockRecursionException_UpgradeAfterWriteNotAllowed";
public const string LockRecursionException_WriteAfterReadNotAllowed = "LockRecursionException_WriteAfterReadNotAllowed";
public const string SynchronizationLockException_IncorrectDispose = "SynchronizationLockException_IncorrectDispose";
public const string SynchronizationLockException_MisMatchedRead = "SynchronizationLockException_MisMatchedRead";
public const string SynchronizationLockException_MisMatchedUpgrade = "SynchronizationLockException_MisMatchedUpgrade";
public const string SynchronizationLockException_MisMatchedWrite = "SynchronizationLockException_MisMatchedWrite";
public const string Arg_ArrayPlusOffTooSmall = "Arg_ArrayPlusOffTooSmall";
public const string Arg_HSCapacityOverflow = "Arg_HSCapacityOverflow";
public const string ArgumentOutOfRange_NeedNonNegNum = "ArgumentOutOfRange_NeedNonNegNum";
public const string InvalidOperation_EnumFailedVersion = "InvalidOperation_EnumFailedVersion";
public const string InvalidOperation_EnumOpCantHappen = "InvalidOperation_EnumOpCantHappen";
public const string Serialization_MissingKeys = "Serialization_MissingKeys";
public const string Cryptography_ArgECDHKeySizeMismatch = "Cryptography_ArgECDHKeySizeMismatch";
public const string Cryptography_ArgECDHRequiresECDHKey = "Cryptography_ArgECDHRequiresECDHKey";
public const string Cryptography_ArgECDsaRequiresECDsaKey = "Cryptography_ArgECDsaRequiresECDsaKey";
public const string Cryptography_ArgExpectedECDiffieHellmanCngPublicKey = "Cryptography_ArgExpectedECDiffieHellmanCngPublicKey";
public const string Cryptography_DecryptWithNoKey = "Cryptography_DecryptWithNoKey";
public const string Cryptography_ECXmlSerializationFormatRequired = "Cryptography_ECXmlSerializationFormatRequired";
public const string Cryptography_InvalidAlgorithmGroup = "Cryptography_InvalidAlgorithmGroup";
public const string Cryptography_InvalidAlgorithmName = "Cryptography_InvalidAlgorithmName";
public const string Cryptography_InvalidCipherMode = "Cryptography_InvalidCipherMode";
public const string Cryptography_InvalidIVSize = "Cryptography_InvalidIVSize";
public const string Cryptography_InvalidKeyBlobFormat = "Cryptography_InvalidKeyBlobFormat";
public const string Cryptography_InvalidKeySize = "Cryptography_InvalidKeySize";
public const string Cryptography_InvalidPadding = "Cryptography_InvalidPadding";
public const string Cryptography_InvalidProviderName = "Cryptography_InvalidProviderName";
public const string Cryptography_MissingDomainParameters = "Cryptography_MissingDomainParameters";
public const string Cryptography_MissingIV = "Cryptography_MissingIV";
public const string Cryptography_MissingPublicKey = "Cryptography_MissingPublicKey";
public const string Cryptography_MustTransformWholeBlock = "Cryptography_MustTransformWholeBlock";
public const string Cryptography_NonCompliantFIPSAlgorithm = "Cryptography_NonCompliantFIPSAlgorithm";
public const string Cryptography_OpenEphemeralKeyHandleWithoutEphemeralFlag = "Cryptography_OpenEphemeralKeyHandleWithoutEphemeralFlag";
public const string Cryptography_OpenInvalidHandle = "Cryptography_OpenInvalidHandle";
public const string Cryptography_PartialBlock = "Cryptography_PartialBlock";
public const string Cryptography_PlatformNotSupported = "Cryptography_PlatformNotSupported";
public const string Cryptography_TlsRequiresLabelAndSeed = "Cryptography_TlsRequiresLabelAndSeed";
public const string Cryptography_TransformBeyondEndOfBuffer = "Cryptography_TransformBeyondEndOfBuffer";
public const string Cryptography_UnexpectedXmlNamespace = "Cryptography_UnexpectedXmlNamespace";
public const string Cryptography_UnknownEllipticCurve = "Cryptography_UnknownEllipticCurve";
public const string Cryptography_UnknownEllipticCurveAlgorithm = "Cryptography_UnknownEllipticCurveAlgorithm";
public const string Cryptography_UnknownPaddingMode = "Cryptography_UnknownPaddingMode";
}

View File

@@ -0,0 +1,113 @@
// Extracted from ../../../external/referencesource/System.Core/System/Linq/Enumerable.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
namespace System.Linq
{
internal class Set<TElement>
{
int[] buckets;
Slot[] slots;
int count;
int freeList;
IEqualityComparer<TElement> comparer;
public Set() : this(null) { }
public Set(IEqualityComparer<TElement> comparer) {
if (comparer == null) comparer = EqualityComparer<TElement>.Default;
this.comparer = comparer;
buckets = new int[7];
slots = new Slot[7];
freeList = -1;
}
// If value is not in set, add it and return true; otherwise return false
public bool Add(TElement value) {
return !Find(value, true);
}
// Check whether value is in set
public bool Contains(TElement value) {
return Find(value, false);
}
// If value is in set, remove it and return true; otherwise return false
public bool Remove(TElement value) {
int hashCode = InternalGetHashCode(value);
int bucket = hashCode % buckets.Length;
int last = -1;
for (int i = buckets[bucket] - 1; i >= 0; last = i, i = slots[i].next) {
if (slots[i].hashCode == hashCode && comparer.Equals(slots[i].value, value)) {
if (last < 0) {
buckets[bucket] = slots[i].next + 1;
}
else {
slots[last].next = slots[i].next;
}
slots[i].hashCode = -1;
slots[i].value = default(TElement);
slots[i].next = freeList;
freeList = i;
return true;
}
}
return false;
}
bool Find(TElement value, bool add) {
int hashCode = InternalGetHashCode(value);
for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i = slots[i].next) {
if (slots[i].hashCode == hashCode && comparer.Equals(slots[i].value, value)) return true;
}
if (add) {
int index;
if (freeList >= 0) {
index = freeList;
freeList = slots[index].next;
}
else {
if (count == slots.Length) Resize();
index = count;
count++;
}
int bucket = hashCode % buckets.Length;
slots[index].hashCode = hashCode;
slots[index].value = value;
slots[index].next = buckets[bucket] - 1;
buckets[bucket] = index + 1;
}
return false;
}
void Resize() {
int newSize = checked(count * 2 + 1);
int[] newBuckets = new int[newSize];
Slot[] newSlots = new Slot[newSize];
Array.Copy(slots, 0, newSlots, 0, count);
for (int i = 0; i < count; i++) {
int bucket = newSlots[i].hashCode % newSize;
newSlots[i].next = newBuckets[bucket] - 1;
newBuckets[bucket] = i + 1;
}
buckets = newBuckets;
slots = newSlots;
}
internal int InternalGetHashCode(TElement value)
{
//[....] DevDivBugs 171937. work around comparer implementations that throw when passed null
return (value == null) ? 0 : comparer.GetHashCode(value) & 0x7FFFFFFF;
}
internal struct Slot
{
internal int hashCode;
internal TElement value;
internal int next;
}
}
}

View File

@@ -1,70 +0,0 @@
2010-04-16 Sebastien Pouliot <sebastien@ximian.com>
* HashSet.cs: Implement ISet<T> in MOONLIGHT too
2010-02-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HashSet.cs: fix and test for bug #579791. Patch from Tiaan
Geldenhuys.
2009-11-13 Marek Safar <marek.safar@gmail.com>
* HasSet.cs: Add ISet, debugger view.
2009-07-30 Raja R Harinath <harinath@hurrynot.org>
* HashSet.cs (Enumerator.CheckCurrent): Inline into ...
(Enumerator.IEnumerator.Current): ... this.
(Enumerator.IEnumerator.Reset): Check invariants.
2009-07-30 Raja R Harinath <harinath@hurrynot.org>
* HashSet.cs (Enumerator.next): Rename from Enumerator.current and
change meaning to be the index of the slot to start searching on
the next iteration.
(Enumerator.current): New. Contains the current element.
(Enumerator.MoveNext): Update. Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
2009-07-09 Jb Evain <jbevain@novell.com>
* HashSet.cs (ICollection<T>.Add): fix for bug #520760. Do not throw
when adding duplicates.
2009-01-27 Jb Evain <jbevain@novell.com>
* HashSet.cs: use Paolo's trick to return items in insertion order
when possible.
2008-12-17 Jb Evain <jbevain@novell.com>
* HashSet.cs (CopyTo): fix logic.
2008-09-12 Jb Evain <jbevain@novell.com>
* HashSet.cs (.ctor (IEnumerable<T>,*)): only get the count of the
enumerable if the source collection implements ICollection<T>, so that
we only iterate once over the source collection.
2008-04-29 Jb Evain <jbevain@novell.com>
* HashSet.cs: clear empty slots to allow the GC to collect
their values.
2007-11-30 Jb Evain <jbevain@novell.com>
* HashSet.cs: corcompare love.
2007-11-28 Jb Evain <jbevain@novell.com>
* HashSet.cs: do the ArgumentNullException dance.
2007-11-28 Jb Evain <jbevain@novell.com>
* HashSet.cs: start implementation of HashSet<T>, actually
implemented as a reduction of Dictionary<K, V>. Contains
basic set operations (that requires optimization though).
2007-08-12 Marek Safar <marek.safar@gmail.com>
* Initial commit

File diff suppressed because it is too large Load Diff

View File

@@ -1,102 +0,0 @@
../../build/common/Consts.cs
Assembly/AssemblyInfo.cs
System/Actions.cs
System/Funcs.cs
System/InvalidTimeZoneException.cs
System/TimeZoneInfo.AdjustmentRule.cs
System/TimeZoneInfo.cs
System/TimeZoneInfo.Serialization.cs
System/TimeZoneInfo.TransitionTime.cs
System/TimeZoneNotFoundException.cs
System.Runtime.CompilerServices/DynamicAttribute.cs
System.Runtime.CompilerServices/ExecutionScope.cs
System.Runtime.CompilerServices/ExtensionAttribute.cs
System.Runtime.CompilerServices/IStrongBox.cs
System.Runtime.CompilerServices/StrongBox_T.cs
System.Linq/Check.cs
System.Linq/Enumerable.cs
System.Linq/QueryableEnumerable.cs
System.Linq/QueryableTransformer.cs
System.Linq/Grouping.cs
System.Linq/IGrouping.cs
System.Linq/IOrderedQueryable.cs
System.Linq/IOrderedQueryable_T.cs
System.Linq/IOrderedEnumerable_T.cs
System.Linq/IQueryable.cs
System.Linq/IQueryable_T.cs
System.Linq/Lookup.cs
System.Linq/ILookup_T.cs
System.Linq/OrderedEnumerable.cs
System.Linq/OrderedSequence.cs
System.Linq/Queryable.cs
System.Linq/QuickSort.cs
System.Linq/SortContext.cs
System.Linq/SortDirection.cs
System.Linq/SortSequenceContext.cs
System.Linq/IQueryProvider.cs
System.Linq.Expressions/BinaryExpression.cs
System.Linq.Expressions/ConditionalExpression.cs
System.Linq.Expressions/ConstantExpression.cs
System.Linq.Expressions/ElementInit.cs
System.Linq.Expressions/EmitContext.cs
System.Linq.Expressions/Expression.cs
System.Linq.Expressions/Expression_T.cs
System.Linq.Expressions/ExpressionPrinter.cs
System.Linq.Expressions/ExpressionType.cs
System.Linq.Expressions/ExpressionVisitor.cs
System.Linq.Expressions/ExpressionTransformer.cs
System.Linq.Expressions/Extensions.cs
System.Linq.Expressions/InvocationExpression.cs
System.Linq.Expressions/LambdaExpression.cs
System.Linq.Expressions/ListInitExpression.cs
System.Linq.Expressions/MemberAssignment.cs
System.Linq.Expressions/MemberBinding.cs
System.Linq.Expressions/MemberBindingType.cs
System.Linq.Expressions/MemberExpression.cs
System.Linq.Expressions/MemberInitExpression.cs
System.Linq.Expressions/MemberListBinding.cs
System.Linq.Expressions/MemberMemberBinding.cs
System.Linq.Expressions/MethodCallExpression.cs
System.Linq.Expressions/NewArrayExpression.cs
System.Linq.Expressions/NewExpression.cs
System.Linq.Expressions/ParameterExpression.cs
System.Linq.Expressions/TypeBinaryExpression.cs
System.Linq.Expressions/UnaryExpression.cs
System.Collections.Generic/HashSet.cs
System.Security.Cryptography/Aes.cs
System.Security.Cryptography/AesManaged.cs
System.Security.Cryptography/AesCryptoServiceProvider.cs
System.Security.Cryptography/AesTransform.cs
System.Security.Cryptography/CngAlgorithm.cs
System.Security.Cryptography/CngAlgorithmGroup.cs
System.Security.Cryptography/MD5Cng.cs
System.Security.Cryptography/SHA1Cng.cs
System.Security.Cryptography/SHA256Cng.cs
System.Security.Cryptography/SHA256CryptoServiceProvider.cs
System.Security.Cryptography/SHA384Cng.cs
System.Security.Cryptography/SHA384CryptoServiceProvider.cs
System.Security.Cryptography/SHA512Cng.cs
System.Security.Cryptography/SHA512CryptoServiceProvider.cs
System.Threading/LockRecursionException.cs
System.Threading/LockRecursionPolicy.cs
System.Threading/ReaderWriterLockSlim.cs
System.Threading/ThreadLockState.cs
System.Threading/ReaderWriterLockSlimExtensions.cs
Microsoft.Win32.SafeHandles/SafePipeHandle.cs
System.IO.Pipes/AnonymousPipeClientStream.cs
System.IO.Pipes/AnonymousPipeServerStream.cs
System.IO.Pipes/NamedPipeClientStream.cs
System.IO.Pipes/NamedPipeServerStream.cs
System.IO.Pipes/PipeAccessRights.cs
System.IO.Pipes/PipeAccessRule.cs
System.IO.Pipes/PipeAuditRule.cs
System.IO.Pipes/PipeDirection.cs
System.IO.Pipes/PipeInterfaces.cs
System.IO.Pipes/PipeOptions.cs
System.IO.Pipes/PipeSecurity.cs
System.IO.Pipes/PipeStream.cs
System.IO.Pipes/PipeStreamImpersonationWorker.cs
System.IO.Pipes/PipeTransmissionMode.cs
System.IO.Pipes/PipeUnix.cs
System.IO.Pipes/PipeWin32.cs
System.IO/HandleInheritability.cs

View File

@@ -1,7 +1,3 @@
System/TimeZoneInfoTest.cs
System/TimeZoneInfo.AdjustmentRuleTest.cs
System/TimeZoneInfo.SerializationTest.cs
System/TimeZoneInfo.TransitionTimeTest.cs
System.Collections.Generic/HashSetTest.cs
System.IO.MemoryMappedFiles/MemoryMappedFileTest.cs
System.IO.Pipes/PipeSecurityTest.cs

View File

@@ -25,7 +25,6 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
@@ -362,4 +361,3 @@ namespace System.IO.MemoryMappedFiles
}
}
#endif

View File

@@ -1,47 +0,0 @@
//
// MemoryMappedFileAccess.cs
//
// Authors:
// Zoltan Varga (vargaz@gmail.com)
//
// Copyright (C) 2009, Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
namespace System.IO.MemoryMappedFiles
{
public enum MemoryMappedFileAccess {
ReadWrite = 0,
Read = 1,
Write = 2,
CopyOnWrite = 3,
ReadExecute = 4,
ReadWriteExecute = 5
}
}
#endif

View File

@@ -1,43 +0,0 @@
//
// MemoryMappedFileOptions.cs
//
// Authors:
// Zoltan Varga (vargaz@gmail.com)
//
// Copyright (C) 2009, Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
namespace System.IO.MemoryMappedFiles
{
[Flags]
public enum MemoryMappedFileOptions {
None = 0,
DelayAllocatePages = 0x4000000
}
}
#endif

View File

@@ -1,54 +0,0 @@
//
// MemoryMappedFileRights.cs
//
// Authors:
// Zoltan Varga (vargaz@gmail.com)
//
// Copyright (C) 2009, Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
namespace System.IO.MemoryMappedFiles
{
[Flags]
public enum MemoryMappedFileRights {
CopyOnWrite = 1,
Write = 2,
Read = 4,
ReadWrite = 6,
Execute = 8,
ReadExecute = 12,
ReadWriteExecute = 14,
Delete = 0x10000,
ReadPermissions = 0x20000,
ChangePermissions = 0x40000,
TakeOwnership = 0x80000,
FullControl = 0xf000f,
AccessSystemSecurity = 0x1000000
}
}
#endif

View File

@@ -1,43 +0,0 @@
//
// MemoryMappedFileSecurity.cs
//
// Authors:
// Marek Safar (marek.safar@gmail.com)
//
// Copyright (C) 2009, Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System.Security.AccessControl;
namespace System.IO.MemoryMappedFiles
{
public class MemoryMappedFileSecurity : ObjectSecurity<MemoryMappedFileRights>
{
public MemoryMappedFileSecurity() : base (false, ResourceType.FileObject) {
}
}
}
#endif

View File

@@ -26,7 +26,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
@@ -94,4 +93,3 @@ namespace System.IO.MemoryMappedFiles
}
}
#endif

View File

@@ -26,7 +26,6 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_4_0
using System;
using System.IO;
@@ -90,4 +89,3 @@ namespace System.IO.MemoryMappedFiles
}
}
#endif

View File

@@ -1,3 +0,0 @@
2009-08-18 Atsushi Enomoto <atsushi@ximian.com>
* HandleInheritability.cs : initial code.

View File

@@ -1,8 +0,0 @@
namespace System.IO
{
public enum HandleInheritability
{
None,
Inheritable
}
}

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More