summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2004-04-06 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-04-052-1/+5
| | | | * include/ocidl.h (QACONTAINERFLAGS): Correct typedef.
* * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Add implementationCorinna Vinschen2004-04-052-1/+46
| | | | for ioctl codes SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
* * winsup.api/devdsp.c (ioctltest): Add 2 tests for ioctl codesCorinna Vinschen2004-04-052-2/+25
| | | | SNDCTL_DSP_CHANNELS and SNDCTL_DSP_GETCAPS.
* * child_info.h (child_info::cygheap_reserve_sz): Rename from cygheap_alloc_sz.Christopher Faylor2004-04-043-18/+23
| | | | * cygheap.cc: Rename alloc_sz to reserve_sz throughout.
* * fhandler.h (class fhandler_socket): Remove has_been_closed member.Corinna Vinschen2004-04-035-154/+105
| | | | | | | | | | | | | * 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.
* 2004-04-02 Chris Demetriou <cgd@broadcom.com>Jeff Johnston2004-04-034-5/+12
| | | | | | | * mips/regs.S (C0_COUNT): Fix comment that kept this from being defined. * mips/vr4300.S: Use C0_COUNT as appropriate instead of hardcoding $9. * mips/vr5xxx.S: Likewise.
* * net.cc (wsock_event::release): Use NULL handle in call toCorinna Vinschen2004-04-022-1/+7
| | | | WSAEventSelect to resolve KB 168349.
* 2004-04-01 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-04-022-0/+8
| | | | | * libc/time/strptime.c: Add standard includes to avoid warning messages at compilation time.
* 2004-04-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-04-022-3/+14
| | | | | * libc/stdio/vfscanf.c (__svfscanf_r): Add locking/unlocking of file.
* * fhandler_socket.cc (fhandler_socket::recvfrom): Rearrange loopCorinna Vinschen2004-04-012-11/+19
| | | | | so that WSARecvFrom is always called before waiting. (fhandler_socket::recvmsg): Ditto.
* * net.cc (wsock_event::wait): Make wsa_err an int. Don't setCorinna Vinschen2004-04-012-5/+13
| | | | ret to 0 if any error has happened.
* * crt1.c (_mingw32_init_fmode): Set *_imp___fmode_dll toDanny Smith2004-04-012-0/+11
| | | | _fmode if not __MSVCRT__.
* * fhandler_socket.cc (fhandler_socket::sendto): Drop out of loop ifCorinna Vinschen2004-04-014-33/+45
| | | | | | | | | | 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.
* * fhandler_tape.cc (mtinfo::initialize): Fix fatal error message.Corinna Vinschen2004-03-312-1/+5
|
* * fhandler_socket.cc (fhandler_socket::recvfrom): Always initializeCorinna Vinschen2004-03-312-19/+26
| | | | | | | ret to 0 when using in Winsock call. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto.
* * fhandler_tape.cc (mtinfo_drive::get_pos): Only set partition ifCorinna Vinschen2004-03-313-6/+42
| | | | | | | | | | | 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. * net.cc (wsock_event::prepare): Always print debug output in case of error.
* * fhandler_socket.cc (fhandler_socket::sendmsg): Add SIGPIPE handling.Corinna Vinschen2004-03-312-0/+17
|
* * fhandler_socket.cc (fhandler_socket::recvfrom): Initialize res toCorinna Vinschen2004-03-313-21/+23
| | | | | | | | | | 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.
* 2003-03-30 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-03-313-1/+9
| | | | | * libc/machine/h8300/Makefile.am: Reformat slightly. * libc/machine/h8300/Makefile.in: Regenerate.
* 2004-03-30 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2004-03-302-3/+11
| | | | | | | | * include/io.h: (_findfirst): Correct prototype. 2004-03-30 Hans Leidekker <hans@it.vu.nl> * include/io.h: (_findnext, _findclose): Correct prototype.
* * thread.h (pthread::init_mainthread): Add parameter forked. Set forkedChristopher Faylor2004-03-303-6/+20
| | | | | | | | 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.
* 2003-03-30 Thomas Pfaff <tpfaff@gmx.net>Jeff Johnston2004-03-302-0/+10
| | | | | | * libc/stdio/findfp.c (__fp_lock_all): Add call to __sfp_lock_acquire. (__fp_unlock_all): Add call to __sfp_lock_release.
* merge from gccDJ Delorie2004-03-303-8/+12
|
* 2004-03-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-302-67/+100
| | | | | | | | | * ntsec.sgml: Replace chapter numbers with <link>s, replace release-numbers in <title>s with descriptions. 2004-03-30 Ronald Landheer-Cieslak <ronald@landheer.com> * ntsec.sgml: Fix typos, correct chapter numbers.
* * sysv_shm.cc (shmget): Allow to retrieve shared memory segmentsCorinna Vinschen2004-03-302-0/+11
| | | | by shmid when IPC_KEY_IS_SHMID is set.
* * shm.cc (shmat): If shmid is unknown, call a special variationCorinna Vinschen2004-03-303-3/+31
| | | | | | | 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.
* Add (linker) support for CR16C processorNick Clifton2004-03-303-0/+265
|
* * lib/Makefile,in; Add directx to .PHONY target.Danny Smith2004-03-293-15/+21
| | | | | | | * 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.
* * fhandler.h (class fhandler_socket): Add has_been_closed member.Corinna Vinschen2004-03-295-65/+141
| | | | | | | | | | | | | | | * 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.
* * thread.cc (pthread::atforkprepare): Call MT_INTERFACE->fixup_before_fork atChristopher Faylor2004-03-292-2/+7
| | | | the end of atforkprepare.
* * net.cc (wsock_event::wait): Change scope of local "len" variable.Corinna Vinschen2004-03-292-1/+5
|
* 2004-03-28 Hans Leidekker <hans@it.vu.nl>Luke Dunstan2004-03-292-0/+15
| | | | * include/math.h (FP_*): Add defines.
* * mingwex/math/round.c: Rewrite.Danny Smith2004-03-294-79/+21
| | | | | * mingwex/math/roundf.c: Rewrite. * mingwex/math/roundl.c: Rewrite.
* * pathnames.sgml: Fix /dev/srX description.Corinna Vinschen2004-03-292-1/+8
|
* 2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-292-11/+19
| | | | * how-programming.texinfo: Make list in .lib FAQ enumerative.
* 2004-03-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-293-24/+37
| | | | | * how-programming.texinfo: Add note about gcc .lib linking. * pathnames.sgml: Mention create_devices.sh for /dev/ creation.
* * shm.cc (shmat): Return (void *) -1 on error instead of NULL.Corinna Vinschen2004-03-282-6/+10
|
* 2004-03-27 Hosaka Yuji <hos@tamanegi.org>Luke Dunstan2004-03-284-0/+52
| | | | | | | | * include/dbt.h (DBT_DEVTYP_DEVICEINTERFACE, DBT_DEVTYP_HANDLE): Add define. (DEV_BROADCAST_DEVICEINTERFACE, DEV_BROADCAST_HANDLE): Add struct. * include/winuser.h (UnregisterDeviceNotification): Add prototype. * lib/user32.def (UnregisterDeviceNotification): Add export stub.
* * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has alreadyChristopher Faylor2004-03-272-1/+7
| | | | been set if pc.error is nonzero.
* * Fix ChangeLog formatting.Corinna Vinschen2004-03-271-0/+4
|
* * cygserver.sgml: New file.Corinna Vinschen2004-03-273-0/+280
| | | | * using.sgml: Include Cygserver docs.
* 2004-03-26 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-03-273-16/+36
| | | | | * cygwinenv.sgml: Add example for CYGWIN=error_start. * pathnames.sgml: Update list of /dev/ devices.
* 2004-03-27 Filip Navara <xnavara@volny.cz>Luke Dunstan2004-03-2751-3008/+7390
| | | | | | | | | | | | | | | | | * include/directx: New subdir. * lib/directx: Ditto. * include/directx/(d3d9.h, d3d9caps.h, d3d9types.h, dxerr8.h, dxerr9.h): New files. * lib/ddk/(Makefile.in, d3d8.def, d3d9.def, d3dim.def, d3drm.def, d3dx8d.def, d3dx9d.def, d3dxof.def, ddraw.def, dinput.def, dinput_joy.c, dinput_joy2.c, dinput_kbd.c, dinput_mouse.c, dinput_mouse2.c, dinput_private.h, dinput8.def, dmoguids.c, dplayx.def, dpnaddr.def, dpnet.def, dpnlobby.def, dpvoice.def, dsetup.def, dsound.def, dxerr.c, dxerr8.c, dxerr8w.c, dxerr9.c, dxerr9w.c, dxguid.c, ksproxy.def, ksuser.c, ksuser.def, msdmo.def, quartz.def, strmiids.c, test.c): Ditto. * lib/(d3dim.def, d3drm.def, d3dxof.def, ddraw.def, dinput.c, dinput.def, dplayx.def, dsetup.def, dsound.def, dxguid.c): Removed.
* Fix ChangeLog entry.Eric Christopher2004-03-271-0/+1
|
* * cygheap.cc (cygheap_fixup_in_child): Improve strace output.Christopher Faylor2004-03-262-1/+6
|
* * errno.cc (errmap): Map ERROR_SHARING_VIOLATION to EBUSY,Corinna Vinschen2004-03-2610-558/+1388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* add missing filesChristopher Faylor2004-03-263-0/+81
|
* * path.cc (path_conv::check): Use 'strchr' rather than 'strrchr' to find end ofChristopher Faylor2004-03-263-1/+69
| | | | | | | | | | | | | | | | | 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.
* * sem.cc (semget): Fix debug string.Corinna Vinschen2004-03-263-7/+16
| | | | | | | | (semop): Ditto. * shm.cc (fixup_shms_after_fork): Ditto. (shmat): Ditto. (shmdt): Ditto. (shmget): Ditto.
* * sigproc.cc (wait_sig): Make sure that SIGCHLD is handled regardless ofChristopher Faylor2004-03-262-7/+15
| | | | whether a signal is queued.