summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* Add prototypes for new msvcrt.dll versionsDanny Smith2004-03-2612-50/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/_mingw.h (__MSVCRT_VERSION__): Define default as 0x0600. * include/time.h (__time64_t): Add typedef. (_mktime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_ctime64): Likewise. (_wctime64): Likewise. (_gmtime64): Likewise. (_localtime64): Likewise. (wcsftime): Move into _WTIME_DEFINED block. Regroup non-ANSI prototypes. * include/io.h: Include <stdint.h>. (__finddata64_t): Add struct definition. (__wfinddata64_t): Likewise. (_findfirst64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_findnext64): Likewise. (_wfindfirst64): Likewise. (_wfindnext64): Likewise. * include/sys/timeb.h (__timeb64): Add struct definition. (_ftime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. * include/sys/utime.h (__utimbuf64): Add struct definition. (_utime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_futime64): Likewise. (_wutime64): Likewise. * include/sys/stat.h (__stat64): Add struct definition. (_fstat64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_stat64): Likewise. (_wstat64): Likwise. * include/sys/types.h (__time64_t): Add typedef. * include/wchar.h (__wfinddata64_t): Add structure definition. (__stat64): Likewise. (_wctime64): Add prototype for __MSVCRT_VERSION__ >= 0x0601. (_wfindfirst64): Likewise. (_wfindnext64): Likewise. (_wutime64): Likewise. (_wstat64): Likwise. * include/malloc.h (_aligned_free): Add prototype for __MSVCRT_VERSION__ >= 0x0700. (_aligned_malloc): Likewise. (_aligned_offset_malloc): Likewise. (_aligned_offset_realloc): Likewise. (_aligned_realloc): Likewise. * include/string.h (_wcserror): Add prototype for __MSVCRT_VERSION__ >= 0x0700. (__wcserror): Likewise. * include/math.h (_set_SSE2_enable): Add prototype for __MSVCRT_VERSION__ >= 0x0701.
* * sigproc.cc (wait_sig): Report if not trying to send signal due to queuedChristopher Faylor2004-03-262-1/+8
| | | | signal.
* 2004-03-25 Thomas Pfaff <tpfaff@gmx.net>Jeff Johnston2004-03-2512-54/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdio/fclose.c (fclose): Protect file pointer list when releasing a file. * libc/stdio/fcloseall.c (_fcloseall_r): Close all files via fwalk. * libc/stdio/fdopen.c (_fdopen_r): Add calls to _flockfile/_funlockfile. * libc/stdio/findfp.c: Move __sfp_lock. Change __sfp_lock type to recursive. Change __lock_acquire/__lock_release calls for __sfp_lock to __sfp_lock_acquire/__sfp_lock_release throughout. (std): Make sure that file lock is only initialized once. (__sfp): Move _file initialization. Initialize file lock. (__sfp_lock_acquire): New function. (__sfp_lock_release): Ditto. (__fp_lock_all): Remove __sfp_lock_acquire call. (__fp_unlock_all): Remove __sfp_lock_release call. * libc/stdio/fopen.c (_fopen_r): Protect file pointer list. Add calls to _flockfile/_funlockfile. Remove __lock_init_recursive call. * libc/stdio/freopen.c (_freopen_r): Protect file pointer list. * libc/stdio/fwalk.c (__fwalk): New static function. (_fwalk): Protect file pointer list. Use __fwalk to walk through file pointers. * libc/stdio/local.h: Add defines for __sfp_lock_acquire/__sfp_lock_release when single threaded. Add function prototypes otherwise. * libc/stdio64/fdopen64.c (_fdopen64_r): Add calls to _flockfile/_funlockfile. * libc/stdio/fopen64.c (_fopen64_r): Protect file pointer list. Add calls to _flockfile/_funlockfile. Remove __lock_init_recursive call. * libc/stdio/freopen64.c (_freopen64_r): Protect file pointer list.
* * mpw/: Remove subdirectory and everything in it.Stan Shebs2004-03-2513-550/+4
|
* 2004-03-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-03-253-2/+13
| | | | | | | * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE. * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE.
* Remove MPW sys include filesStan Shebs2004-03-256-83/+0
|
* * include/stdio.h (_fsopen): Add prototype.Danny Smith2004-03-253-0/+9
| | | | | * include/tchar.h (_tfsopen): Add defines. Thanks to "Gerik" <gerikr at users dot sourceforge dot net>
* Remove MPW support, no longer used.Stan Shebs2004-03-258-1266/+9
| | | | | | | * 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.
* * path.cc (normalize_posix_path): Reorganize to short circuit to DOS pathChristopher Faylor2004-03-255-53/+63
| | | | | | | | | | 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.
* 2004-03-25 Dimitri Papadopoulos <papadopo@users.sourceforge.net>Dimitri Papadopoulos2004-03-252-2/+18
| | | | | | * include/GL/glu.h (GLU_AUTO_LOAD_MATRIX, GLU_CULLING, GLU_SAMPLING_TOLERANCE, GLU_DISPLAY_MODE, GLU_PARAMETRIC_TOLERANCE, GLU_SAMPLING_METHOD, GLU_U_STEP, GLU_V_STEP): Define.
* Typo.Dimitri Papadopoulos2004-03-251-1/+1
|
* * Makefile.tpl (top level bootstrap support): Remove now-unneededNathanael Nerode2004-03-253-6/+6
| | | | | STRICT_WARN, WARN_CFLAGS flags passed down to make. * Makefile.in: Regenerate.
* * configure.in (top level bootstrap support): Rework --enable-werrorNathanael Nerode2004-03-245-12/+25
| | | | | | | | to set @stage2_werror_flag@. * configure: Regenerate. * Makefile.tpl (top level bootstrap support): Pass @stage2_werror_flag@ down to configure in stages 2 and 3. * Makefile.in: Regenerate.
* update copyright. Minor reformatting.Christopher Faylor2004-03-241-4/+6
|
* 2004-03-24 Filip Navara <xnavara@volny.cz>Danny Smith2004-03-242-0/+13
| | | | | * include/commctrl.h (TB_GETSTRING[AW]): Add defines. (RBBS_HIDETITLE, RBBS_TOPALIGN): Ditto.
* 2004-03-24 Filip Navara <xnavara@volny.cz>Danny Smith2004-03-242-3/+8
| | | | | | * include/ddk/srb.h (_PORT_CONFIGURATION_INFORMATION): Rename TaggedQueueing to TaggedQueuing. (_HW_INITIALIZATION_DATA): Likewise.
* * winsup.api/devdsp.c: New file, testing fhandler_dev_dsp code.Corinna Vinschen2004-03-243-0/+1154
| | | | * winsup.api/devdsp_okay.h: Ditto.
* * fhandler_dsp.cc (fhandler_dev_dsp::write): Remove typeCorinna Vinschen2004-03-242-3/+12
| | | | | cast from argument to audio_out_->parsewav() to make reference work properly. Now .wav file headers are properly discarded.
* 2004-03-23 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode2004-03-243-14/+23
| | | | | | | | | | | * Makefile.tpl (new-bootstrap): Set CC and CC_FOR_BUILD in configure for stages 2 and 3 as well as in make. As a consequence, remove OUTPUT_OPTION (now detected by configure) from the flags passed down to make. * Makefile.in: Regenerate. * Makefile.tpl (new-bootstrap): Fix typo. * Makefile.in: Regenerate.
* 2004-03-23 Eric Christopher <echristo@redhat.com>Eric Christopher2004-03-244-24/+50
| | | | | | * mips/configure.in: Add mipsisa64-*-* to target support. * mips/configure: Regenerate. * frv/crt0.S: Fix comment.
* * bfd/elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.Paul Brook2004-03-232-0/+9
| | | | | | | | | | | | * 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.
* white space fixupChristopher Faylor2004-03-231-3/+3
|
* * fhandler_disk_file.cc (fhandler_base::fstat_fs): Use createdCorinna Vinschen2004-03-232-3/+16
| | | | handle regardless of nohandle state. Clean up afterwards.
* * autoload.cc: Load eight more functions for waveIn support.Corinna Vinschen2004-03-234-344/+1190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* include/Alan Modra2004-03-222-22/+32
| | | | | | | | | | | | | | PR 51. * bfdlink.h (struct bfd_link_info): Add wrap_char. bfd/ PR 51. * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char. ld/ PR 51. * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set link_info.wrap_char.