Commit Graph
877 Commits
Author SHA1 Message Date
James Ko 202577dc70 Add LargeArrayBuilder type to enscapulate ToArray logic (dotnet/corefx#13076)
Commit migrated from https://github.com/dotnet/corefx/commit/8ee5cfd1a93aef51ef07318437c22b86db7863db
2016-11-08 23:33:51 -05:00
dotnet-bot c561086403 Update CoreClr, CoreFx to beta-24709-01, beta-24708-05, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/bafbeec4841285834d31bee295c225a61de2b780
2016-11-09 01:10:38 +00:00
Stephen Toub 27794c3e5c Update corefx to beta-24708-03
Commit migrated from https://github.com/dotnet/corefx/commit/9f9c2885208315215b7e328ea399f13c83d1b8a7
2016-11-08 17:10:15 -05:00
dotnet-bot b740f1d2bd Update CoreClr, CoreFx, External, ProjectNTfs to beta-24708-02, beta-24707-01, beta-24708-00, beta-24708-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b255d0bf4df94eb383c1bb4b42b1bfe9b64f3238
2016-11-08 17:07:45 -05:00
Stephen Toub a52a598a8b Merge pull request dotnet/corefx#13415 from justinvp/streamreaderwriter_path
FileSystem: Use path-based StreamReader/Writer ctors

Commit migrated from https://github.com/dotnet/corefx/commit/82b934f57c0e1c6e51761941c9560fe85edb4049
2016-11-07 07:07:02 -05:00
dotnet-bot 5ec973dd9a Update CoreClr, External, ProjectNTfs to beta-24707-02, beta-24707-00, beta-24707-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/6087ef3892f08910a477c221fb027688e72da967
2016-11-07 09:28:42 +00:00
Justin Van Patten 256ee3687b FileSystem: Use path-based StreamReader/Writer ctors
Now that the path-based constructors have been added back, make use of
them.


Commit migrated from https://github.com/dotnet/corefx/commit/e7c9f54b0641e457210c9c06b38739be75f3fd42
2016-11-06 16:10:28 -08:00
dotnet-bot d63a7b41df Update CoreFx to beta-24705-01
Commit migrated from https://github.com/dotnet/corefx/commit/c7603507fe200426130f10d6b2cc67dfeda2c83f
2016-11-05 02:22:03 +00:00
dotnet-bot 540789c36c Update CoreClr, CoreFx, External, ProjectNTfs to beta-24704-04, beta-24704-03, beta-24704-00, beta-24704-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d75d49704cffb9652304a357750d7f3f357be6fc
2016-11-05 00:21:20 +00:00
Jeremy Kuhne 90d1f3d724 Update to CoreCLR FileStream (dotnet/corefx#13229)
* Json changes for updating to new CLR

* Take new CoreCLR

Uses new copy of FileStream from CoreCLR
Moves FileStream to System.Runtime
Forwards from old locations
Various workarounds/fixes

* Update to CoreCLR beta-24704-03


Commit migrated from https://github.com/dotnet/corefx/commit/bd667b3e719ff84110d9b3c8c087a678337aa5a5
2016-11-04 11:52:01 -07:00
Jose Perez Rodriguez 2db115c87d Updating corefx versions to beta-24703-01
Commit migrated from https://github.com/dotnet/corefx/commit/39b5977106283eb0017dbc43af7f4d6b195753b1
2016-11-03 10:23:38 -07:00
Stephen Toub 1e708d43a5 Remove StreamHelpers.ArrayPoolCopyToAsync
Now that the base Stream.CopyToAsync uses ArrayPool, there's no need for corefx to have its own helper that does the same thing; streams can just let the base implementation do what it does.


Commit migrated from https://github.com/dotnet/corefx/commit/988feb3c733d384a025ef18c4fecafdc5412f7a9
2016-11-03 08:19:04 -04:00
Stephen Toub 4ee10f7b6c Update CoreFx, ProjectNTfs to beta-24701-01, beta-24701-00, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/1b2b88d11c6b0d226481c96b1a88d20bb8cefaf9
2016-11-01 19:42:30 -04:00
Stephen Toub 66863565c9 Use nameof in more places
We previously made a pass through corefx to use nameof with argument exceptions.  Since then, a lot more code has come into the repo, and not all argument exceptions were converted at the time. We also previously missed a bunch of places where helpers were used to throw the exceptions.  This does another pass through corefx to catch most of the remaining occurrences.


Commit migrated from https://github.com/dotnet/corefx/commit/08609e84ab068d09a6e72b5906bb5282e444ae2e
2016-11-01 09:25:09 -04:00
Stephen Toub 5f0b53cb3c Update CoreFx to beta-24629-01 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/63a1dbe34233c086f7fc6d28b1fefecfefc822ed
2016-10-29 22:41:56 -04:00
dotnet-bot ad2c08f972 Update CoreFx to beta-24628-03
Commit migrated from https://github.com/dotnet/corefx/commit/e634b174854638f226c81ebd5a2b6d22afca83de
2016-10-28 19:01:25 +00:00
dotnet-bot 519246eb66 Update CoreClr, CoreFx to beta-24628-03, beta-24628-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56c61a5a1158ef9f1c84c87442f39015d9042491
2016-10-28 16:27:01 +00:00
dotnet-bot 5eb2424d89 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24628-02, beta-24628-01, beta-24628-00, beta-24628-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56b92839e58ab41582e98eaf87452ec4b50712b4
2016-10-28 09:16:27 +00:00
dotnet-bot 4ed327f131 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24627-05, beta-24627-05, beta-24627-00, beta-24627-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b030c0a58466c70ca34b56933903b31e580e6189
2016-10-27 22:28:54 +00:00
Alex Ghiondea 81e93c452c Re-enable tests for issues that have already been resolved.
Commit migrated from https://github.com/dotnet/corefx/commit/51394d7ca62027468d488b25a4ab87f4a12dc5ba
2016-10-26 15:00:58 -07:00
dotnet-bot a196fb6572 Update CoreFx to beta-24626-02
Commit migrated from https://github.com/dotnet/corefx/commit/ffd454cef1f7dd4a2f6969747cf45a4729e6387c
2016-10-26 14:46:03 +00:00
dotnet-bot bdd9e7d523 Update CoreClr, External, ProjectNTfs to beta-24626-02, beta-24626-00, beta-24626-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/6298d44830ce3afc0a0c2f8004ccb2ea94d7a146
2016-10-26 08:24:40 +00:00
dotnet-bot de5dd7cba0 Update CoreClr, CoreFx, ProjectNTfs to beta-24626-01, beta-24625-02, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ff859b462ada317c02c96b93918ec0e2d072459e
2016-10-26 00:20:25 +00:00
Eric St. John d9eaa2e3b1 Remove use of runtimes from project.json
All tests use supports clauses, the only remaining use of runtimes was
left over from when it was needed to avoid guardrails errors.


Commit migrated from https://github.com/dotnet/corefx/commit/3db515a2293d76e6ca6bb334e834be486f94d707
2016-10-25 14:28:55 -07:00
Stephen Toub 5b6557277c Merge pull request dotnet/corefx#13009 from stephentoub/fix_flock_ro
Fix handling of flock in FileStream on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/cb32f4312426b3b7796f6173e42e5f3d22414596
2016-10-25 16:42:06 -04:00
Stephen Toub f2f5f798f3 Fix handling of flock in FileStream on Unix
On Unix, we implement FileShare in FileStream with flock.  On some file systems, flock returns EACCES, which causes us to fail to allow usage of FileStream at all.  This commit changes the code to only handle the one error we actually care about, EWOULDBLOCK, which indicates that the operation would block and hence that sharing failed.  All other errors can be ignored, as this is only advisory / best-effort.


Commit migrated from https://github.com/dotnet/corefx/commit/9d6289e370a21f1add2072a7652973246f59b812
2016-10-25 15:03:42 -04:00
Sedar Gokbulut 72197ccd2e Enabling auto-update of ProjectNTfs and updating ProjectNTfs commit hash to
reflect the latest.


Commit migrated from https://github.com/dotnet/corefx/commit/b761bac5491b6dc0eaefe6b894b714502d4710ad
2016-10-25 09:14:57 -07:00
dotnet-bot b943e5d281 Update CoreClr, CoreFx, External to beta-24625-02, beta-24625-01, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/e1bdcc213a47f4761a6a46e8e0d612d7bc237c9a
2016-10-25 08:19:47 +00:00
Jose Perez Rodriguez 132e478c7b Updating Corefx versions to beta-24624-01
Commit migrated from https://github.com/dotnet/corefx/commit/cd40177af397e309c41f2bbcec007e21761bb688
2016-10-24 12:01:45 -07:00
Jeremy Kuhne 2f3fb8b086 Merge pull request dotnet/corefx#12900 from JeremyKuhne/fscommon3
More FileStream code unification

Commit migrated from https://github.com/dotnet/corefx/commit/b2ac1f8950d79954d5369fd14748c7f14e60e6ec
2016-10-24 11:24:28 -07:00
Stephen Toub e95ddc204b Fix FileStream.InitFromHandle to avoid calling virtual CanSeek on Unix
Doing so breaks IsolatedStorageFileStream


Commit migrated from https://github.com/dotnet/corefx/commit/1a4a219382a709d4dae63df92d68c9c0e1cf1585
2016-10-23 17:46:15 -04:00
Stephen Toub e25b3cdf40 Fix FileStream.VerifyHandleIsSync to avoid calling virtual CanRead/CanWrite methods
Doing so breaks IsolatedStorageFileStream, as they're being called during construction, leading to null ref exceptions.


Commit migrated from https://github.com/dotnet/corefx/commit/dfc9a008edac2ed69965cf17b62d10b16a398ef0
2016-10-23 13:06:56 -04:00
Stephen Toub 344ae45288 Update CoreFx dependencies to beta-24623-01
Commit migrated from https://github.com/dotnet/corefx/commit/617811c779e36848fb1af4c2e8d8b3b1dba42e83
2016-10-23 11:50:14 -04:00
Jeremy Kuhne cbc3816b12 Move Read/WriteByte common code
Moves ReadByteCore() and WriteByteCore() to common.
Move FlushInternalBuffer() and FlushReadBuffer() to common.
Rename VerifyBufferInvariants to AssertBufferInvariants.
Change ReadCore methods to align between impl.


Commit migrated from https://github.com/dotnet/corefx/commit/46a7d8d30ba30fc759d2b57f51f96bce24d5a5af
2016-10-21 14:32:36 -07:00
Jeremy Kuhne 03a954218a Move buffer init to common
Commit migrated from https://github.com/dotnet/corefx/commit/6ab195766a95593c8331e9fb41eb6c183025cccd
2016-10-21 12:55:39 -07:00
Jeremy Kuhne f46ed49673 Move Position property to common code
Commit migrated from https://github.com/dotnet/corefx/commit/11f584e8325934a5412c8f7b13103d24416edb38
2016-10-21 12:36:36 -07:00
Jeremy Kuhne 3e1f7c20ef Move VerifyOSHandlePosition to common file
Commit migrated from https://github.com/dotnet/corefx/commit/64a9156c7733af4d6bead66ec611132e1d930824
2016-10-21 12:23:49 -07:00
Jeremy Kuhne 57803ccf46 Merge pull request dotnet/corefx#12877 from JeremyKuhne/fscommon2
Move FileStream field init into constructors

Commit migrated from https://github.com/dotnet/corefx/commit/771085c1ff054fcce3515783f3e025410ab61c8a
2016-10-21 12:05:40 -07:00
Eric St. John 4a6c9bbb81 Update all projects to last stable packages
And remove imports.

Now that we have netstandard packages that support all targets we should
use them.  This means we don't need imports.

I opted to use the stable packages rather than the LKG ones since this
will reduce churn in the product assemblies.

This has the added benefit of reducing download time for the repo.


Commit migrated from https://github.com/dotnet/corefx/commit/a330f3651c999b241d55ca25d9baa7fb0f247c5c
2016-10-21 06:32:53 -07:00
Santiago Fernandez Madero cb20856738 Fix CS0197 error that was produced on FileStreamCompletionSource.Win32 (dotnet/corefx#12875)
* Added a private method on FileStream class that would call Interlocked.CompareExchange instead of being called from FileStreamCompletionSource because a MarshallByRefObj is being passed as a ref parameter

* Added comments to CompareExchangeCurrentOverlappedOwner method


Commit migrated from https://github.com/dotnet/corefx/commit/d2a205f74f331abf4706798f56dc3fff97a3d66b
2016-10-21 08:05:27 -04:00
Santiago Fernandez Madero f720329782 Fix for Build 20161020-31 (dotnet/corefx#12857)
Commit migrated from https://github.com/dotnet/corefx/commit/fd87838f34c31811c3f2355caedfa2d0fee6fd9e
2016-10-20 22:06:59 -04:00
Jeremy Kuhne 36c1cd6f04 Move FileStream field init into constructors
Makes invariant fields readonly as they were in Unix impl.
Folds some more common validation / member logic.


Commit migrated from https://github.com/dotnet/corefx/commit/e56d0b65f6c44f059eba65f44cc1ebfbb4c0f57b
2016-10-20 18:51:16 -07:00
Jeremy Kuhne cca0c24582 Align field names
This aligns the names of the private fields to faciltate sharing common
code. Moved CanRead/Write to common in this change- other than that is
just renaming the fields.


Commit migrated from https://github.com/dotnet/corefx/commit/15f6dd29ac0d92ee2644e16a613426ac0a2650da
2016-10-20 14:50:21 -07:00
Jeremy Kuhne 0cadf0af0c Rename FileStream files
Commit migrated from https://github.com/dotnet/corefx/commit/8059dbfcfc52ee5f350bf1c645f89a4a8c034639
2016-10-20 14:14:31 -07:00
Jeremy Kuhne 6dc20f92aa Merge pull request dotnet/corefx#12809 from JeremyKuhne/squashfilestream
Break out nested FileStream

Commit migrated from https://github.com/dotnet/corefx/commit/cc1dd4f57a0fd63e3f56a926a2d87702555cd1cc
2016-10-20 14:04:20 -07:00
Stephen Toub 5d5d55e507 Merge pull request dotnet/corefx#12826 from stephentoub/update_dependencies
Update CoreFx to beta-24619-02 (master)

Commit migrated from https://github.com/dotnet/corefx/commit/9bad9e2c4710baedecad20d8821ff1a817ceb5c7
2016-10-20 07:09:39 -04:00
Santiago Fernandez Madero a4bc3cea20 Adding MarshalByRefObject base class to types. (dotnet/corefx#12773)
* Adding MarshalByRefObject base class to types.

Commit migrated from https://github.com/dotnet/corefx/commit/93826ebec41822c49b833f56b4707f1c80b55659
2016-10-19 23:52:35 -07:00
Stephen Toub fc416399f6 Update CoreFx to beta-24619-02 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/85567505126195558e104adec718be1d6325e43f
2016-10-20 00:13:39 -04:00
Jeremy Kuhne e3e343ff41 Remove FileStreamBase
Commit migrated from https://github.com/dotnet/corefx/commit/9084b8435ab6ee8add2e0dd7eb6abcfc9ae19e57
2016-10-19 14:25:24 -07:00
Jeremy Kuhne a7d5c14c71 Break out nested FileStream
This breaks out the nested FileStream in preparation for
moving the code down to corlib.

Will follow up with:

1. Rename of files (from Unix/Win32FS to FS.os.cs)
2. Moving of common code to FileStream.cs
3. Copy to corlib
4. Move ref to System.Runtime and type forward to corlib
5. Further prep work for bringing up UAP 10.1


Commit migrated from https://github.com/dotnet/corefx/commit/e3fc18c58396737ee5e6bc80acf508031d63cc8e
2016-10-19 13:25:07 -07:00