| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(CryptGenRandom): Remove.
(CryptReleaseContext): Remove.
(SystemFunction036): Define. Add comment to explain that this is
actually the RtlGenRandom function.
* fhandler.h (class fhandler_dev_random): Drop crypt_prov member.
(fhandler_dev_random::fhandler_dev_random): Define inline.
(fhandler_dev_random::dup): Drop declaration.
* fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Remove
here.
(fhandler_dev_random::crypt_gen_random): Use RtlGenRandom to drop
dependency to old Crypto API.
(fhandler_dev_random::read): Implement an enhanced version of reading
random bytes from RtlGenRandom for the sake of a better /dev/random
emulation.
(fhandler_dev_random::close): Just return 0 since crypt_prov doesn't
exisyt anymore.
(fhandler_dev_random::dup): Drop entirely for the same reason.
|
|
|
|
| |
a rounding error for allocations beyond 4 Gigs.
|
| |
|
| |
|
|
|
|
|
| |
(hold_everything::hold_everything): Store address of caller's notion of
"ischild".
|
|
|
|
| |
return -1 on error.
|
|
|
|
| |
looking for specific compression types.
|
|
|
|
| |
to 25.
|
|
|
|
|
|
| |
(user_heap_info::sbrk): Make failed commit an error condition again.
Only reserve RAISEHEAP_SIZE sized chunk for further heap reservations
by default.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(user_heap_info::init): Ditto.
* heap.cc (user_heap_info::init): Rename from heap_init(). Avoid explictly
using cygheap->user_heap.
(sbrk): Use user_heap_info method via cygheap->user_heap.
(user_heap_info::sbrk): Renamed from sbrk(). Eliminate explicit use of
cygheap->user_heap. Change some pointer arithmetic to use (char *) for
consistency.
* shared.cc (shared_info::initialize): Change heap_init call to
cygheap->user_heap.init.
|
| |
|
|
|
|
|
|
| |
reservation and commit strategy when more memory is requested than
available on the heap. Release newly reserved memory if commiting
it fails. Add more comments to explain what we do.
|
|
|
|
| |
after opening the device.
|
|
|
|
| |
(wait_sig): Use already calculated 'next' element when signal is blocked.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(mtinfo_part::initialize): Ditto for nblock parameter in declaration.
(class mtinfo_drive): Change type of block number to int64_t. Change
all parameters indicating a block number to int64_t in method
declarations.
* fhandler_tape.cc (mtinfo_part::initialize): Ditto in definition.
(mtinfo_drive::get_pos): Ditto. Replace low and high with a
ULARGE_INTEGER and use it's components in call to GetTapePosition.
Store full value in block.
(mtinfo_drive::_set_pos): Change type of count parameter to int64_t.
Change call to SetTapePosition accordingly.
(mtinfo_drive::set_pos): Change type of count parameter to int64_t.
Change local variables holding block numbers accordingly.
(mtinfo_drive::get_status): Don't bail out early if fetching media
parameters fails.
(mtinfo_drive::ioctl): Add explicit cast matching receiving type in
MTTELL and MTIOCPOS calls.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* spawn.cc (child_info_spawn): Revert previous change. Always set
lpReserved2.
* release/1.7.25: Change wording.
doc changes:
* new-features.xml (ov-new1.7.25): Change wording.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
(path_conv::iscygexec32): Drop unused inline function.
(path_conv::iscygexec64): Ditto.
(path_conv::set_cygexec): Remove unnecessary setting of PATH_64BITEXEC.
* spawn.cc (child_info_spawn::worker): Disable setting of
STARTUPINFOW::lpReserved2 and STARTUPINFOW::cbReserved2 for non-Cygwin
child processes. Explain why.
|
|
|
|
|
|
|
|
|
| |
of drives supporting select partitions.
(mtinfo_drive::get_status): Fill in current partition and number of
partitions on tape into mt_resid.
* include/cygwin/mtio.h (struct mtget): Align mt_resid comment to
aforementioned change.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
|
|
|
|
|
|
|
|
| |
bug disabling creation of two partitions on drives supporting initiator
partitions.
(mtinfo_drive::set_blocksize): Update media information after setting
blocksize succeeded.
(mtinfo_drive::get_status): Fetch fresh media information.
|
|
|
|
|
|
|
| |
* nlsfuncs.cc (__get_lcid_from_locale): Update list of Script-only
locales to Windows 8.
(__set_charset_from_locale): Take locales added with Windows 8 and 8.1
into account.
|
|
|
|
| |
(mtinfo_drive::get_status): Drop using get_ll when it's not required.
|
| |
|
|
|
|
| |
posix_memalign override.
|
|
|
|
|
|
|
|
|
|
| |
size of unused2 accordingly.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Initialize
u->posix_memalign with address of posix_memalign.
* malloc_wrapper.cc (posix_memalign): Call user-provided posix_memalign
rather than just returning ENOSYS.
* globals.cc (__cygwin_user_data): Initialize posix_memalign member.
|
| |
|
| |
|
|
|
|
| |
* update-copyright: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(cmalloc_abort): Ditto.
(crealloc): Ditto.
(crealloc_abort): Ditto.
(ccalloc): Ditto.
(ccalloc_abort): Ditto.
* cygheap_malloc.h (HEAP_USER): Add.
(cmalloc): Use size_t for size field in declaration.
(cmalloc_abort): Ditto.
(crealloc): Ditto.
(crealloc_abort): Ditto.
(ccalloc): Ditto.
(ccalloc_abort): Ditto.
* path.cc (normalize_posix_path): Don't check existence of / or // dir in
parent dir check.
|
| |
|
|
|
|
| |
in parent dir check.
|
|
|
|
| |
are only for Cygwin executables.
|
| |
|
| |
|
|
|
|
|
| |
harden against gcc function and block reordering optimizations.
(cyglsa64.dll): Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* environ.cc (tty_is_gone): Delete.
(known): Delete tty, add wincmdln.
* globals.cc: Reorganize list of environment bools, remove explicit =
false for slight load time optimization.
(wincmdln): New global.
* spawn.cc (child_info_spawn::worker): Honor wincmdln.
doc directory changes:
* new-features.sgml (ov-new1.7.23): Add new section. Mention wincmdln.
* cygwinenv.xml: Mention wincmdln.
|
| |
|
|
|
|
|
|
|
| |
(gcc-64): New section explaininig differences in programming for
64 bit Cygwin.
(gcc-gui): Simplify description and aim at UNIX/Linux developers only.
Note that X programming is preferred. Drop example.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(enum _SEMAPHORE_INFORMATION_CLASS): Define.
(NtQuerySemaphore): Declare.
* thread.h (class semaphore): Add member startvalue.
(semaphore::fixup_before_fork): New inline method.
(semaphore::_fixup_before_fork): Declare.
* thread.cc (MTinterface::fixup_before_fork): Additionally call
semaphore::fixup_before_fork.
(semaphore::semaphore): Set currentvalue to -1. Set startvalue to
incoming initializer value.
(semaphore::_getvalue): Just query semaphore using NtQuerySemaphore
rather then using WFSO/Release.
(semaphore::_post): Drop setting currentvalue. It's not thread-safe.
(semaphore::_trywait): Ditto.
(semaphore::_timedwait): Ditto.
(semaphore::_wait): Ditto.
(semaphore::_fixup_before_fork): New method, setting currentvalue from
actual windows semaphore right before fork.
(semaphore::_fixup_after_fork): Drop kludge from 2013-07-10. Drop
FIXME comment.
|
| |
|
| |
|