…an't compile these without sharing.
…save them later
I want to make execution of mkbundle possible under .NET, and as such I want to remove unnecessary dependencies. Mono.Posix is only used for UnixMarshal heap methods; there's NO need to use these when Marshal can be used. That leaves DeflaterOutputStream, and it's possible to configure zlib to accept deflate streams, allowing us to use GZipStream: http://stackoverflow.com/a/1838702/83444 Update template_z.c accordingly so that the compressed data works. Two side results of this: 1. Increased compression; my (really stupid) test app went from a compression ration of 31.39% to 32% 2. This MAY make things WORSE when running on .NET < 4.5. This is fixed in .NET 4.5: http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx Starting with the .NET Framework 4.5, the DeflateStream class uses the zlib library. As a result, it provides a better compression algorithm and, in most cases, a smaller compressed file than it provides in earlier versions of the .NET Framework.
…s assembly was AOTed without the 'soft-debug' option. Fixes #11435.
* Add OpenFlags.O_CLOEXEC and OpenFlags.O_PATH * Add AtFlags for AT_* values * Add fdopendir, mkdtemp, futimens * Add readv, writev, preadv, pwritev * Add *at methods: openat, renameat, fchmodat, fstatat, utimensat, mkdirat, mknodat, mkfifoat, faccessat, fchownat, linkat, readlinkat, symlinkat, unlinkat * Add constants AT_FDCWD, UTIME_NOW, UTIME_OMIT
This patch reworks the Marshal's Read and Write pointer operations to avoid performing a modulo operation to choose the fast path, as in some platforms the modulo operation is implemented as a C subroutine. Instead we use bit operations which always run in constant time. It also avoids the IntPtr.XXX method calls, factors out "unsafe", only ever performs one IntPtr->pointer conversion, and makes the source code uniform.
… of throwing an exception. Fixes #11417.
This will allow the caller to distinguish between errors and end-of-directory.
… Fixes #11364