b8eac1dee4* fhandler_disk_file.cc (fhandler_base::fstat_helper): Request compressed size only if the matching attributes are set. Use NtQueryInformationFile instead of GetCompressedFileSize. (fhandler_base::fstat_by_handle): Remove NT 3.5 cruft since local.dwVolumeSerialNumber isn't used subsequently. * ntdll.h: Add typedefs for FILE_COMPRESSION_INFORMATION and FILE_INFORMATION_CLASS.
Corinna Vinschen
2004-04-06 10:19:31 +0000
7a1d1d90cd2004-04-06 Luke Dunstan <infidel@users.sourceforge.net>
Luke Dunstan
2004-04-05 16:25:07 +0000
7e57d6d268* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Add implementation for ioctl codes SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
Corinna Vinschen
2004-04-05 08:30:41 +0000
63481100b1* winsup.api/devdsp.c (ioctltest): Add 2 tests for ioctl codes SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
Corinna Vinschen
2004-04-05 08:30:13 +0000
129c8a0e81* child_info.h (child_info::cygheap_reserve_sz): Rename from cygheap_alloc_sz. * cygheap.cc: Rename alloc_sz to reserve_sz throughout.
Christopher Faylor
2004-04-04 04:14:11 +0000
321ddf2422* fhandler.h (class fhandler_socket): Remove has_been_closed member. * fhandler_socket.cc (fhandler_socket::recvfrom): Revert to overlapped I/O. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Ditto. (wsock_event::wait): Ditto. Evaluate overlapped result also after calling CancelIo (thanks to Patrick Samson <p_samson@yahoo.com>). (wsock_event::release): Remove. * wsock_event.h: Revert to overlapped I/O.
Corinna Vinschen
2004-04-03 19:07:59 +0000
81961a50012004-04-02 Chris Demetriou <cgd@broadcom.com>
Jeff Johnston
2004-04-03 01:02:51 +0000
f5da8224f6* net.cc (wsock_event::release): Use NULL handle in call to WSAEventSelect to resolve KB 168349.
Corinna Vinschen
2004-04-02 10:29:53 +0000
59c9f5f5862004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>
Jeff Johnston
2004-04-02 01:05:43 +0000
38f4f023702004-04-01 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-04-02 00:59:17 +0000
b6edea61f2* fhandler_socket.cc (fhandler_socket::recvfrom): Rearrange loop so that WSARecvFrom is always called before waiting. (fhandler_socket::recvmsg): Ditto.
Corinna Vinschen
2004-04-01 17:00:21 +0000
4cfacffa79* net.cc (wsock_event::wait): Make wsa_err an int. Don't set ret to 0 if any error has happened.
Corinna Vinschen
2004-04-01 10:36:40 +0000
4fc406c935* crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll to _fmode if not __MSVCRT__.
Danny Smith
2004-04-01 10:04:04 +0000
54aefcc6bc* fhandler_socket.cc (fhandler_socket::sendto): Drop out of loop if has_been_closed gets set. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::wait): Don't initialize evts. Don't try to evaluate network events if WSAEnumNetworkEvents fails. (wsock_event::release): Save last WSA error and set it again unless resetting to blocking socket fails. * wsock_event.h (class wsock_event): Remove destructor.
Corinna Vinschen
2004-04-01 09:48:15 +0000
455bbeae38* fhandler_socket.cc (fhandler_socket::recvfrom): Always initialize ret to 0 when using in Winsock call. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto.
Corinna Vinschen
2004-03-31 15:33:33 +0000
decd3e5d72* fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition if GetTapePosition returned a non-zero partition number. (mtinfo_drive::create_partitions): Reinitialize to partition 0. Support TAPE_DRIVE_INITIATOR and TAPE_DRIVE_FIXED partitioning. (mtinfo_drive::set_partition): Initialize new partition. (mtinfo_drive::status): Readd accidentally dropped setting of mt_resid.
Corinna Vinschen
2004-03-31 12:04:07 +0000
4450172a6c* fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res to SOCKET_ERROR. Use SOCKET_ERROR instead of -1 throughout. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Call WSASetLastError instead of SetLastError. (wsock_event::wait): Use SOCKET_ERROR instead of -1.
Corinna Vinschen
2004-03-31 09:13:54 +0000
ed4c5eceb02003-03-30 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-03-31 01:27:53 +0000
4289ebdbfb2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith
2004-03-30 21:49:12 +0000
c83bdbf65e* thread.h (pthread::init_mainthread): Add parameter forked. Set forked default to false.. * thread.cc (MTinterface::fixup_after_fork): Call pthread::init_mainthread with forked = true. (pthread::init_mainthread): Add parameter forked. Do not change thread self pointer when forked.
Christopher Faylor
2004-03-30 21:27:50 +0000
cacc0d44212003-03-30 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-03-30 21:11:53 +0000
e9db932542merge from gcc
DJ Delorie
2004-03-30 20:03:09 +0000
7c1bb55ec02004-03-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-03-30 19:20:42 +0000
d2714c5eda* sysv_shm.cc (shmget): Allow to retrieve shared memory segments by shmid when IPC_KEY_IS_SHMID is set.
Corinna Vinschen
2004-03-30 15:21:18 +0000
5c7b73ed97* shm.cc (shmat): If shmid is unknown, call a special variation of shmget to retrieve the shared memory segment from Cygserver instead of failing immediately. * include/cygwin/ipc.h (IPC_KEY_IS_SHMID): New internal flag for shmget when called from shmat.
Corinna Vinschen
2004-03-30 15:20:08 +0000
66c8e18830Add (linker) support for CR16C processor
Nick Clifton
2004-03-30 14:04:32 +0000
7308c39e33* lib/Makefile,in; Add directx to .PHONY target. * lib/directx/dxerr.c: Remove dependence on mingw runtime. Don't include stdio.h or tchar.h. Replace _T() macro with TEXT() macro, throughout. Replace, _stprintf with wsprintf, throughout.
Danny Smith
2004-03-29 22:39:46 +0000
81f5200ba3* fhandler.h (class fhandler_socket): Add has_been_closed member. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize has_been_closed to 0. (fhandler_socket::recvfrom): Use new asynchronous I/O driven wsock_event methods. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc (wsock_event::prepare): Reimplement using asynchronous I/O. (wsock_event::wait): Ditto. (wsock_event::release): New method. * wsock_event.h (class wsock_event): Remove ovr member. Accomodate new implementation of prepare and wait methods. Add release method.
Corinna Vinschen
2004-03-29 19:41:17 +0000
c7f060d0da* thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork at the end of atforkprepare.
Christopher Faylor
2004-03-29 15:14:07 +0000
2b2cc75f6b* net.cc (wsock_event::wait): Change scope of local "len" variable.
Corinna Vinschen
2004-03-29 14:08:44 +0000
da2cf24aba2004-03-28 Hans Leidekker <hans@it.vu.nl>
Luke Dunstan
2004-03-29 13:57:04 +0000
521a0aa9a8* mingwex/math/round.c: Rewrite. * mingwex/math/roundf.c: Rewrite. * mingwex/math/roundl.c: Rewrite.
Danny Smith
2004-03-29 08:22:20 +0000
680dacb1642004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * how-programming.texinfo: Make list in .lib FAQ enumerative.
Joshua Daniel Franklin
2004-03-29 06:37:40 +0000
4341a703f62004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-03-29 05:56:46 +0000
83216c72ec* shm.cc (shmat): Return (void *) -1 on error instead of NULL.
Corinna Vinschen
2004-03-28 21:01:33 +0000
f241377ee12004-03-27 Hosaka Yuji <hos@tamanegi.org>
Luke Dunstan
2004-03-28 11:22:10 +0000
f19da5f77d* fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already been set if pc.error is nonzero.
Christopher Faylor
2004-03-27 18:01:04 +0000
999ecb4cad* cygserver.sgml: New file. * using.sgml: Include Cygserver docs.
Corinna Vinschen
2004-03-27 15:59:44 +0000
989ea484402004-03-26 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * cygwinenv.sgml: Add example for CYGWIN=error_start. * pathnames.sgml: Update list of /dev/ devices.
Joshua Daniel Franklin
2004-03-27 06:48:11 +0000
fec932591d2004-03-27 Filip Navara <xnavara@volny.cz>
Luke Dunstan
2004-03-27 02:25:37 +0000
deb7bf284aFix ChangeLog entry.
Eric Christopher
2004-03-27 00:07:10 +0000
dee563095d* errno.cc (errmap): Map ERROR_SHARING_VIOLATION to EBUSY, ERROR_EOM_OVERFLOW and ERROR_NO_DATA_DETECTED to EIO. Add mappings for ERROR_NO_MEDIA_IN_DRIVE, ERROR_DEVICE_REQUIRES_CLEANING and ERROR_DEVICE_DOOR_OPEN. * fhandler.h (class fhandler_dev_raw): Drop varblkop member. (fhandler_dev_raw::is_eom): De-virtualize. (fhandler_dev_raw::is_eof): Ditto. (class fhandler_dev_tape): Drop lasterr and dp member. Add mt_mtx member. Drop all private methods formerly used by ioctl. (fhandler_dev_tape::is_rewind_device): Use get_minor for clarity. (fhandler_dev_tape::driveno): New method. (fhandler_dev_tape::drive_init): New method. (fhandler_dev_tape::clear): Remove method. (fhandler_dev_tape::is_eom): Ditto. (fhandler_dev_tape::is_eof): Ditto. (fhandler_dev_tape::write_file): Ditto. (fhandler_dev_tape::read_file): Ditto. (fhandler_dev_tape::_lock): New method. (fhandler_dev_tape::unlock): New method. (fhandler_dev_tape::raw_read): New method. (fhandler_dev_tape::raw_write): New method. * fhandler_raw.cc (fhandler_dev_raw::is_eom): New method. (fhandler_dev_raw::is_eof): New method. (fhandler_dev_raw::open): Allow setting write through option by using the O_TEXT flag as ... flag. (fhandler_dev_raw::writebuf): Remove usage of varblkop and other tape specific code. (fhandler_dev_raw::raw_read): Ditto. (fhandler_dev_raw::dup): Ditto. * fhandler_tape.cc: Rewrite tape operations entirely. Implement new tape driver classes mtinfo, mtinfo_drive and mtinfo_part. Reduce fhandler_dev_tape methods to mostly just calling appropriate mtinfo_drive methods. (mtinfo_init): New function adding the mtinfo shared memory area. * mtinfo.h: New file, containing the definition of the new tape driver classes. * shared.cc: Include mtinfo.h. (offsets): Add entry for mtinfo shared memory area. (memory_init): Call mtinfo_init. * shared_info.h (shared_locations): Add SH_MTINFO shared location. * include/cygwin/mtio.h: Change and add various comments. Add GMT_xxx macros for new generic flags. Add MT_ST_xxx bitfield definitions for MTSETDRVBUFFER ioctl. * include/cygwin/version.h: Bump API minor version number.
Corinna Vinschen
2004-03-26 21:43:49 +0000
359b6e4c49add missing files
Christopher Faylor
2004-03-26 21:17:07 +0000
11a9a1cfbd* path.cc (path_conv::check): Use 'strchr' rather than 'strrchr' to find end of string, for efficiency. * include/cygwin/_types.h: New file. * include/sys/lock.h: Ditto. * include/sys/stdio.h: Ditto. * thread.cc: Include sys/lock.h (__cygwin_lock_init): New function. (__cygwin_lock_init_recursive): Ditto. (__cygwin_lock_fini): Ditto. (__cygwin_lock_lock): Ditto. (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. (pthread::atforkprepare): Lock file pointer before fork. (pthread::atforkparent): Unlock file pointer after fork. (pthread::atforkchild): Ditto.
Christopher Faylor
2004-03-26 20:02:01 +0000
85427a949a* sigproc.cc (wait_sig): Make sure that SIGCHLD is handled regardless of whether a signal is queued.
Christopher Faylor
2004-03-26 16:15:23 +0000
ff9f5c8330Add prototypes for new msvcrt.dll versions
Danny Smith
2004-03-26 11:30:24 +0000
27ec638b25* sigproc.cc (wait_sig): Report if not trying to send signal due to queued signal.
Christopher Faylor
2004-03-26 05:43:11 +0000
10dcf7e7182004-03-25 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-03-25 22:29:18 +0000
4ee0dce2d7* mpw/: Remove subdirectory and everything in it.
Stan Shebs
2004-03-25 22:22:59 +0000
ec475b09672004-03-25 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-03-25 22:20:36 +0000
b0a9d0fcc9Remove MPW sys include files
Stan Shebs
2004-03-25 22:12:07 +0000
4c42aaf277* include/stdio.h (_fsopen): Add prototype. * include/tchar.h (_tfsopen): Add defines. Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
Danny Smith
2004-03-25 20:30:19 +0000
34307d9656Remove MPW support, no longer used. * mpw-README, mpw-build.in, mpw-config.in, mpw-configure, mpw-install: Remove files. * src-release (DEVO_SUPPORT): Remove names of removed files. * MAINTAINERS: Likewise.
Stan Shebs
2004-03-25 17:51:10 +0000
474048c26e* path.cc (normalize_posix_path): Reorganize to short circuit to DOS path handling whenever a '\' is detected. * signal.cc (sigaction): Make strace output more informative. * sigproc.cc (pending_signals::add): Just index directly into signal array rather than treating the array as a heap. (pending_signals::del): Ditto. (wait_sig): Don't send signal if we already have a similar signal queued. * sigproc.h (call_signal_handler_now): Remove obsolete declaration.
Christopher Faylor
2004-03-25 15:15:27 +0000
a65cfe3c8c* fhandler_dsp.cc (fhandler_dev_dsp::write): Remove type cast from argument to audio_out_->parsewav() to make reference work properly. Now .wav file headers are properly discarded.
Corinna Vinschen
2004-03-24 08:57:17 +0000
abd0287a382004-03-23 Eric Christopher <echristo@redhat.com>
Eric Christopher
2004-03-24 01:11:24 +0000
d4bbae05f2* bfd/elf32-arm.h (arm_print_private_bfd_data): Add EABI v3. * binutils/readelf.c (decode_ARM_machine_flags): Add EABI v3. * gas/config/tc-arm.c (meabi_flags): New variable. (arm_parse_eabi): New function. (md_begin): Set flags for EABI v3. (arm_eabis): Add. (arm_long_opts): Add meabi. * include/elf/arm.h (EF_ERM_BE8, EF_ARM_LE8, EF_ARM_EABI_VER3): Add. * doc/as.texinf <ARM>: Document -meabi. * doc/c-arm.texi: Ditto.
Paul Brook
2004-03-23 23:05:52 +0000
914777261bwhite space fixup
Christopher Faylor
2004-03-23 18:52:39 +0000
88506c6752* fhandler_disk_file.cc (fhandler_base::fstat_fs): Use created handle regardless of nohandle state. Clean up afterwards.
Corinna Vinschen
2004-03-23 11:26:54 +0000
6653af6cc2* autoload.cc: Load eight more functions for waveIn support. * fhandler.h (class fhandler_dev_dsp): Add class Audio, class Audio_in and class Audio_out members and audio_in_, audio_out_ pointers so that future changes are restricted to file fhandler_dsp.cc. * fhandler_dsp.cc (fhandler_dev_dsp::Audio): Add this class to treat things common to audio recording and playback. Add more format conversions. (fhandler_dev_dsp::Audio::queue): New queues for buffer management to fix incomplete cleanup of buffers passed to the wave device. (fhandler_dev_dsp::Audio_in): New, added class to implement audio recording. (fhandler_dev_dsp::Audio_out): Rework to use functionality provided by fhandler_dev_dsp::Audio. Allocate memory audio buffers late, just before write. (fhandler_dev_dsp::Audio_out::start): Size of wave buffer allocated here depends on audio rate/bits/channels. (fhandler_dev_dsp::Audio_in::start): Ditto. (fhandler_dev_dsp::setupwav): Replaced by following function. (fhandler_dev_dsp::Audio_out::parsewav): Does not setup wave device any more. Discard wave header properly. (fhandler_dev_dsp::open): Add O_RDONLY and_RDWR as legal modes. Protect against re-open. Activate fork_fixup. (fhandler_dev_dsp::ioctl): Protect against actions when audio is active. SNDCTL_DSP_GETFMTS only returns formats supported by mmsystem wave API, not all supported formats. SNDCTL_DSP_GETBLKSIZE result now depends on current audio format. (fhandler_dev_dsp::fixup_after_fork): Call fork_fixup for the Audio classes to let them duplicate the CRITICAL_SECTION.
Corinna Vinschen
2004-03-23 11:05:56 +0000
6b89a541dbChristopher Faylor <cgf@redhat.com> * init.cc (munge_threadfunc): Handle all instances of search_for. (prime_threads): Test threadfunc_ix[0].
Christopher Faylor
2004-03-22 18:30:38 +0000
8ec98d6c38* Makefile.tpl: Rearrange by moving recursive_targets rules into their proper sections. * Makefile.tpl (top level bootstrap support): Move disabling of coverage flags from 'make' to 'configure'; improve comments. * Makefile.in: Regenerate.
Nathanael Nerode
2004-03-22 11:59:20 +0000
c7c7492aab* cygheap.cc (init_cheap): Set initial_sz to something or suffer spurious output. (cygheap_fixup_in_child): Set alloc_sz to passed in size to ensure that children will have the right size heap. (_csbrk): Make output conditional on DEBUGGING.
Christopher Faylor
2004-03-21 22:24:06 +0000
83f96e3fbd2004-03-19 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet
2004-03-20 00:03:32 +0000
61f50f94d2* include/cygwin/version.h: Bump DLL minor number to 10.
Christopher Faylor
2004-03-19 18:00:08 +0000
1e4942ab58* msvcrt.def.in: Add stubs for msvcrt.dll (version 6.10), msvcr70.dll, and msvcr71.dll. * Makefile.in (msvcr*.def): Define preprocessor __msvcr*__ constant using basename of output def file.
Danny Smith
2004-03-19 09:26:13 +0000
d8f87fba65* child_info.h (CURR_CHILD_INFO_MAGIC): Reset to new value. (child_info::cygheap_alloc_sz): New field. * cygheap.cc (init_cheap): Reduce size of cygwin stack until minimal hit when attempting initial allocation. (cygheap_setup_for_child): Use alloc_sz to create secondary memory mapped entry. Store alloc_sz in cygheap_alloc_sz. (cygheap_fixup_in_child): Use cygheap_alloc_sz to map parent's cygheap. * cygheap.h (_CYGHEAPSIZE_SLOP): New define. (CYGHEAPSIZE): Use _CYGHEAPSIZE_SLOP.
Christopher Faylor
2004-03-18 19:30:51 +0000
891d1990ab* fhandler_proc.cc (format_proc_meminfo): On NT, try to figure out real swap file usage by requesting SystemPagefileInformation. Use GlobalMemoryStatus as fallback. * ntdll.h (_SYSTEM_INFORMATION_CLASS): Add SystemPagefileInformation. (struct _SYSTEM_PAGEFILE_INFORMATION): Define.
Corinna Vinschen
2004-03-18 12:28:47 +0000
f600e87caf2004-03-17 Paolo Bonzini <bonzini@gnu.org>
Nathanael Nerode
2004-03-17 19:26:07 +0000
1c5695b698Add FAQ about old packages. Remove B20 references.
Joshua Daniel Franklin
2004-03-17 17:39:44 +0000
12d545fb65add missing changelog entry
Christopher Faylor
2004-03-17 16:39:35 +0000
7faaacbbf1* include/cygwin/version.h: Bump DLL minor number to 9.
Christopher Faylor
2004-03-17 16:38:48 +0000
7cfe32b4ca* include/docobj.h (IOleDocumentView::GetDocument): Correct prototype. Thanks to Buster Copley <consequent@users.sourceforge.net>
Danny Smith
2004-03-16 09:51:19 +0000
b4d978174e* lib/ddk/ntoskrnl.def (MmAllocatePagesForMdl): Correct suffix. (MmMapIoSpace): Likewise. Thanks to Dan Aloni <da-x@colinux.org>
Danny Smith
2004-03-16 09:26:25 +0000
6c6ae572022004-03-16 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith
2004-03-16 09:13:08 +0000