aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-03-13 * errno.cc (errmap): Handle ERROR_BUS_RESET.Corinna Vinschen5-366/+334
* fhandler.h (fhandler_dev_raw::write_file): New method, created from former static function. (fhandler_dev_raw::read_file): Ditto. (reset_devbuf): New inline method. (class fhandler_dev_tape): Add TAPE_GET_DRIVE_PARAMETERS member `dp'. (fhandler_dev_tape::write_file): New method. (fhandler_dev_tape::read_file): Ditto. (fhandler_dev_tape::tape_get_feature): Convert to inline method. (fhandler_dev_tape::tape_error): New method, created from former static function. (fhandler_dev_tape::tape_get_blocksize): Remove declaration. * fhandler_raw.cc (fhandler_dev_raw::write_file): New method, created from former static function. (fhandler_dev_raw::read_file): Ditto. (fhandler_dev_raw::writebuf): Accomodate the fact that no devbuf exists under variable block size condition. (fhandler_dev_raw::raw_read): Ditto. Add local p pointer to simplify pointer arithmetic. (fhandler_dev_raw::raw_write): Always set devbufend to 0 when starting with writing. Accomodate the fact that no devbuf exists under variable block size condition. * fhandler_tape.cc: Various formatting changes. (TAPE_FUNC): New macro. Use throughout as tape function loop. (get_ll): Convert into macro. (IS_EOM): New macro. (IS_EOF): New macro. (fhandler_dev_tape::is_eom): Use IS_EOM macro. (fhandler_dev_tape::is_eof): Use IS_EOF macro. (fhandler_dev_tape::write_file): New method. (fhandler_dev_tape::read_file): New method. (fhandler_dev_tape::open): Get drive information block here once. (fhandler_dev_tape::lseek): Remove unneeded duplicate code. (fhandler_dev_tape::dup): Duplicate drive information block. (fhandler_dev_tape::ioctl): Remove drvbuf in variable block size mode. Return ERROR_INVALID_BLOCK_LENGTH instead of ERROR_MORE_DATA if buffer contains data which would get lost on buffer size changing. Use absolute tape positioning also if drive only supports logical block positioning. (fhandler_dev_tape::tape_error): New method, created from former static function. (fhandler_dev_tape::tape_get_pos): Allow logical block reporting. Workaround tape driver bug. (fhandler_dev_tape::_tape_set_pos): Reset device buffer and flags after successful repositioning. (fhandler_dev_tape::tape_set_pos): Allow logical block positioning. Workaround tape driver bug. (fhandler_dev_tape::tape_erase): Use dp instead of calling GetTapeParameters. (fhandler_dev_tape::tape_prepare): Ditto. (fhandler_dev_tape::tape_get_blocksize): Remove. (fhandler_dev_tape::tape_set_blocksize): Don't call tape_get_blocksize. Error handling already done in fhandler_dev_tape::ioctl. (fhandler_dev_tape::tape_status): Remove local `dp' variable. Accomodate logical tape reporting. Call tape_get_feature instead of accessing feature words directly. (fhandler_dev_tape::tape_compression): Use dp instead of calling GetTapeParameters. Fix resetting datcompression.
2004-03-13 * kill.cc (get_debug_priv): New function.Corinna Vinschen2-0/+35
(forcekill): Call get_debug_priv before trying to kill process.
2004-03-132004-03-12 Eric Botcazou <ebotcazou@gcc.gnu.org>Nathanael Nerode3-2/+9
Paolo Bonzini <bonzini@gnu.org> PR bootstrap/14522 * configure.in: Cope with shells that do not support unquoted ^ * configure: Regenerate.
2004-03-13 *include/wininet.h (CACHEGROUP_SEARCH_ALL, CACHEGROUP_SEARCH_BYURL):Danny Smith2-0/+56
Add defines. (INTERNET_CACHE_GROUP_ADD, INTERNET_CACHE_GROUP_REMOVE): Add defines. (GROUPID) Add typedef. (INTERNET_CACHE_GROUP_INFO[AW]): Define structures. (CreateUrlCacheGroup): Add prototype. (DeleteUrlCacheGroup): Add prototype. (FindFirstUrlCacheGroup): Add prototype. (FindNextUrlCacheGroup): Add prototype. (GetUrlCacheGroupAttribute[AW]): Add prototypes. (SetUrlCacheGroupAttribute[AW]): Add prototypes.
2004-03-13 * include/malloc.h: Remove __STRICT_ANSI__ guard.Danny Smith2-5/+4
2004-03-12* wait.cc (wait4): Initialize pointer on entry. Avoid callingChristopher Faylor2-13/+14
call_signal_handler twice since that guarantees exiting with errno set to EINTR.
2004-03-12* include/process.h: Remove the #endif associated with removal ofChristopher Faylor2-2/+5
__STRICT_ANSI__ guard from non-ANSI header.
2004-03-122004-03-12 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-0/+6
* i386.h (i386_optab): Added xstore as an alias for xstorerng.
2004-03-12 * i386-dis.c (grps): Use INVLPG_Fixup instead of OP_E for invlpg.Jakub Jelinek2-3/+8
(INVLPG_Fixup): New function. (PNI_Fixup): Remove ATTRIBUTE_UNUSED from sizeflag. * opcode/i386.h (i386_optab): Remove CpuNo64 from sysenter and sysexit.
2004-03-122004-03-12 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-0/+11
* gas/config/tc-i386.c (output_insn): Handle PadLock instructions. * gas/config/tc-i386.h (CpuPadLock): New define. (CpuUnknownFlags): Added CpuPadLock. * include/opcode/i386.h (i386_optab): Added xstore/xcrypt insns. * opcodes/i386-dis.c (PADLOCK_SPECIAL, PADLOCK_0): New defines. (dis386_twobyte): Opcode 0xa7 is PADLOCK_0. (padlock_table): New struct with PadLock instructions. (print_insn): Handle PADLOCK_SPECIAL.
2004-03-12 * exceptions.cc (sigpacket::process): Simplify code slightly.Corinna Vinschen2-3/+5
2004-03-12* cygtls.h (waitq): Declare structure here.Christopher Faylor11-109/+134
(_cygtls::wq): Declare. * cygtls.cc (_cygtls::fixup_after_fork): Clear wq.thread_ev to avoid using an invalid event handle in forked process. * dcrt0.cc (waitq_storage): Delete. (threadstuff): Remove waitq_storage. * perthread.h (per_thread_waitq): Delete. (waitq_storage): Delete declaration. * sigproc.cc (sigproc_init): Remove perthread waitq consideration. * sigproc.h (waitq): Delete declaration. * wait.cc (wait4): Use _my_tls waitq structure rather than per_thread. * cygtls.h (_cygtls::newmask): Delete member. (_cygtls::deltamask): New member. * gendef (_sigdelayed): Replace the call to set_process_mask by a call to set_process_mask_delta. * exceptions.cc (handle_sigsuspend): Do not filter tempmask. Or SIG_NONMASKABLE in deltamask as a flag. (_cygtls::interrupt_setup): Set deltamask only. (set_process_mask_delta): New function. (_cygtls::call_signal_handler): Replace the first call to set_process_mask by a call to set_process_mask_delta. * tlsoffsets.h: Regenerate.
2004-03-12* cygtls.cc (_cygtls::fixup_after_fork): Remove unneeded setting of oldmask.Christopher Faylor4-100/+93
* exceptions.cc: Remove some __I386__ conditionals. (handle_exceptions): Move ppid test to outside of a loop for efficiency. (setup_handler): Make debugging output more wordy. (_cygtls::call_signal_handler): To avoid a race, use lock/unlock to synchronize with signal thread and ensure that signal_arrived event has actually been set. * gendef (_sigfe): Use ebx for all sigstack manipulations to ensure that the register is saved. Move setting of incyg to within stack lock to avoid setup_handler confusion. (_sigbe): Use ebx for all sigstack manipulations to ensure that the register is saved. (_cygtls::pop): Ditto. (_cygtls::lock): Ditto. (stabilize_sig_stack): Ditto. (setjmp): Ditto. (longjmp): Ditto.
2004-03-112004-03-11 Kazu Hirata <kazu@cs.umass.edu>Jeff Johnston5-37/+27
* libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace _exit.c with _exit.S. * libc/sys/h8300hms/Makefile.in: Regenerate. * libc/sys/h8300hms/_exit.c: Remove. * libc/sys/h8300hms/_exit.S: New.
2004-03-112004-03-11 Eric Botcazou <ebotcazou@gcc.gnu.org>DJ Delorie3-6/+20
Paolo Bonzini <bonzini@gnu.org> PR bootstrap/14522 * configure.in: Cope with shell that do not support nesting quotes inside quoted backquote substitutions. * configure: Regenerate. 2004-03-10 Andrew Pinski <pinskia@physics.uc.edu> PR bootstrap/14522 * configure.in: Fix escaping of $. * configure: Regenerate.
2004-03-11 * include/conio.h: Remove __STRICT_ANSI__ guard from non-ANSI header.Danny Smith24-100/+31
* include/direct.h: Ditto. * include/dirent.h: Ditto. * include/dos.h: Ditto. * include/excpt.h: Ditto. * inlude/fcntl,h * include/io.h: Ditto. * inlude/mem.h: Ditto. * include/memory.h: Ditto. * include/process.h: Ditto. * inlude/search.h: Ditto. * include/share.h: Ditto. * include/unistd.h: Ditto. * include/sys/fcntl.h: Ditto. * include/file.h: Ditto. * include/sys/locking.h: Ditto. * include/sys/param.h: Ditto. * include/sys/stat,h * include/sys/time.h: Ditto. * include/sys/timeb.h: Ditto. * include/sys/types.h: Ditto. * include/sys/unistd.h: Ditto. * include/sys/utime.h: Ditto.
2004-03-11(top level)Nathanael Nerode6-842/+1297
2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org> * configure: Regenerate. 2004-03-08 Paolo Bonzini <bonzini@gnu.org> PR ada/14131 Move language detection to the top level. * configure.in: Find default values for the tools as soon as possible. Disable ada if GNAT is not found. Emit error message about missing languages. Expand --enable-languages=all for the gcc subdirectory. (config) 2004-03-08 Paolo Bonzini <bonzini@gnu.org> PR ada/14131 Move language detection to the top level. * acx.m4 (ACX_PROG_GNAT): New macro, moved here from the gcc subdirectory. 2004-03-09 Hans-Peter Nilsson <hp@axis.com> * accross.m4 (AC_C_BIGENDIAN_CROSS): Compile endian probe with "-c". Properly quote parameter for AC_MSG_ERROR.
2004-03-102004-03-10 Al Slater <al.slater@scluk.com>Danny Smith2-7/+59
* include/winsock2.h: Add missing LPFN_ typdefs for function pointers. Clean up whitespace.
2004-03-092004-03-09 Thomas Pfaff <tpfaff@gmx.net>Jeff Johnston2-5/+55
* libc/stdio/findfp.c (__sfp): Rename lock to __sfp_lock. Change __sfp_lock to static global. (__fp_lock): New static function. (__fp_unlock): Ditto. (__fp_lock_all): New function. (__fp_unlock_all): Ditto.
2004-03-09* fhandler_serial.cc (fhandler_serial::ioctl): Implement TIOCSBRK and TIOCCBRK.Christopher Faylor3-0/+22
* include/sys/termios.h: Define TIOCSBRK and TIOCCBRK.
2004-03-09.Christopher Faylor1-1/+1
2004-03-09* exceptions.cc (setup_handler): Avoid suspending a thread if it in a cygwinChristopher Faylor6-28/+49
function, in an exception, spinning, or locked. * gendef (_sigfe): Move incyg setting earlier. (sigreturn): Set incyg flag to avoid interrupting called cygwin functions. (sigdelayed): Ditto. (stabilize_sig_stack): Ditto. * sigproc.cc (proc_subproc): Don't restore process lock early in exec case. * cygtls.h: Reorganize fields in _cygtls slightly. * tlsoffsets.h: Regenerate.
2004-03-07add missing entryChristopher Faylor1-0/+2
2004-03-07* fork.cc (fork_parent): Save parent pid in a temporary variable since childChristopher Faylor6-65/+95
could conceivably exit before function returns, rendering the child's shared memory area invalid. * cygtls.h (_cygtls::incyg): Declare new field. (_cygtls::in_exception): Define new function. * exceptions.cc (setup_handler): Remove locked flag. Use 'incyg' flag and in_exception function to determine when we're in a cygwin function. (_cygtls::call_signal_handler): Decrement incyg flag prior to calling a handler. Increment it on return. * gendef (_sigfe): Increment incyg flag. Use testl for zero testing rather than orl, for consistency. (_sigbe): Decrement incyg flag. Use testl for zero testing rather than orl, for consistency. (_cygtls::pop): Use testl for zero testing rather than orl, for consistency. (stabilize_sig_stack): Ditto.
2004-03-07* winsup.api/known_bugs.tcl: Remove mknod01 since mknod now works.Christopher Faylor3-1/+8
* winsup.api/ltp/mknod01.c: Remove root check when running on cygwin.
2004-03-06update some documentationChristopher Faylor1-93/+133
2004-03-05* gendef (sigdelayed): Handle return here rather than going through sigbe toChristopher Faylor2-85/+96
ensure that flags are properly restored.
2004-03-052004-03-05 Filip Navara <xnavara@volny.cz>Danny Smith5-262/+263
* include/ddk/scsi.h: Replace assert with ASSERT. * include/ddk/video.h: Ditto. * include/ddk/winddk.h: Ditto. Remove the assert macro. * include/ddk/tdi.h: Correct packing.
2004-03-04* winsup.api/pthread/mutex8e.c: New testcase.Thomas Pfaff4-0/+138
* winsup.api/pthread/mutex8n.c: Ditto. * winsup.api/pthread/mutex8r.c: Ditto.
2004-03-04* include/pthread.h (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP):Thomas Pfaff4-82/+117
New define. (PTHREAD_NORMAL_MUTEX_INITIALIZER_NP): Ditto. (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Ditto. * thread.cc (pthread_mutex::is_good_initializer): Check for all posssible initializers (pthread_mutex::is_good_initializer_or_object): Ditto. (pthread_mutex::is_good_initializer_or_bad_object): Ditto. (verifyable_object_isvalid): Support up to three static initializers. (verifyable_object_isvalid (void const *,long)): Remove. (pthread_cond::is_good_initializer_or_bad_object): Remove unneeded objectState var. (pthread_cond::init): Condition remains unchanged when creation has failed. (pthread_rwlock::is_good_initializer_or_bad_object): Remove unneeded objectState var. (pthread_rwlock::init): Rwlock remains unchanged when creation has failed. (pthread_mutex::init): Remove obsolete comment. Mutex remains unchanged when creation has failed. Add support for new initializers. (pthread_mutex_getprioceiling): Do not create mutex, just return ENOSYS. (pthread_mutex_lock): Simplify. (pthread_mutex_trylock): Remove unneeded local themutex. (pthread_mutex_unlock): Just return EPERM if mutex is not initialized. (pthread_mutex_setprioceiling): Do not create mutex, just return ENOSYS. * thread.h (verifyable_object_isvalid): Support up to three static initializers. (verifyable_object_isvalid (void const *,long)): Remove prototype. (pthread_mutex::init): Add optional initializer to parameter list.
2004-03-04* gendef (sigreturn): Call stabilize_sig_stack to ensure that there are noChristopher Faylor5-38/+50
pending signals. Restore edx later. (sigdelayed): Save edx earlier. * malloc_wrapper.cc (malloc_init): Add some more debugging output.
2004-03-042004-03-03 Stephane Carrez <stcarrez@nerim.fr>Jeff Johnston4-55/+82
* m68hc11/sci-inout.S: Supports -mlong-calls. * m68hc11/sim-valid-m68hc11.ld (.tramp): New section for trampolines. (.text): Mark the .installN and .finiN section with KEEP. (.vectors): Likewise for .vectors. (.gcc_except_table): New section. * m68hc11/sim-valid-m68hc12.ld (.tramp): New section for trampolines. (.text): Mark the .installN and .finiN section with KEEP. (.vectors): Likewise for .vectors. (.gcc_except_table): New section.
2004-03-03 * include/wtypes.h (DECIMAL_SETZERO): Add definition forDanny Smith2-0/+9
NONAMELESSUNION case.
2004-03-0322004-03-03 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith2-3/+8
* include/oleauto.h (V_UNION, V_VT, V_DECIMAL): Use __VARIANT_NAME_ constants.
2004-03-032003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>Joern Rennecke2-1/+6
opcodes: * sh-dis.c (print_insn_sh): Don't disassemble fp instructions in nofpu mode. Add BFD type bfd_mach_sh4_nommu_nofpu. * sh-opc.h: Add sh4_nommu_nofpu architecture and adjust instructions accordingly. bfd: * archures.c: Add bfd_mach_sh4_nommu_nofpu. * cpu-sh.c: Ditto. * elf32-sh.c: Ditto. * bfd-in2.h: Regenerate. include/elf: * sh.h: Add EF_SH4_NOMMU_NOFPU. gas: * config/tc-sh.c (md_parse_option): Add -isa=sh4-nofpu and -isa=sh4-nommu-nofpu options. Adjust help messages accordingly. (sh_elf_final_processing): Output BFD type sh4_nofpu if that is the most general type or the user specifically requested it. (md_assemble): Add a new error message for when an instruction is understood, but is not allowed due to an -isa option.
2004-03-02 * include/uxtheme.h: Include <commctrl.h>Danny Smith2-121/+127
2004-03-02 * fhandler_raw.cc (fhandler_dev_raw::raw_read): When reading withCorinna Vinschen3-11/+36
variable block size, read only one block, read directly into user supplied buffer, return ENOMEM if user supplied buffer is smaller than size of next block to read. Use read2 instead of bytes_to_read to count number of bytes read. * fhandler_tape.cc (fhandler_dev_tape::open): Add debug output.
2004-03-02 * sysv_sem.cc (semundo_adjust): Check for process id instead ofCorinna Vinschen2-0/+26
process struct pointer, which isn't fixed under Cygwin. (semexit_myhook): Ditto. Adjust debug print statements to print Cygwin and Windows PIDs instead of process pointer under Cygwin.
2004-03-02 * basetyps.h (GUID_SECT): Define to nothing for GCC >= 2.95.Danny Smith2-1/+8
2004-03-022004-03-02 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith4-10/+167
* include/oleauto.h (VAR_VALIDDATE, VAR_FORMAT_NOSUBSTITUTE, VAR_FOURDIGITYEARS) Define new constants. Group VAR_* defines together (V_UI2, V_UI4, V_UI4REF, V_UI, V_UI8REF) Define macros. (V_I8, V_I8REF): Correct macros. (V_DECIMAL): Correct macro deginitions. (V_INT_PTR, V_UINT_PTR, V_INT_PTRREF, V_UINT_PTRREF): Define constants. (VTBIT_*): Define constants. (UDATE): Add structure definition. (VarDateFromUdate, VarDateFromUdateEx, VarUdateFromDate): Declare functions. (SafeArrayCreateVector): Correct parameter type from UINT to ULONG (SafeArrayCreateVectorEx): Declare function. (Var*): declare VARIANT manipulation functions. * include/ocidl.h (IPicture_*): Define IPicture COBJ macros. * include/oaidl.h (IRecordInfo_*): Define IRecordInfo COBJ macros.
2004-03-01fix minor typoChristopher Faylor1-1/+1
2004-03-01fix minor typoChristopher Faylor1-2/+2
2004-03-01 * configure.in (mips64*-*-linux*): Override mips*-*-linux* caseRichard Sandiford3-33/+45
and disable libgcj. * configure: Regenerated.
2004-03-01Missed this in last commit.Danny Smith1-0/+3
2004-03-01 Martin Fuchs <martin-fuchs@gmx.net> * include/winuser.h (COLOR_*): Define missing constants.
2004-03-01Add fr450 support.Richard Sandiford2-0/+6
2004-03-012004-03-01 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith5-17/+375
* include/oaidl.h (FADF_*) Define missing constants. (IDispatch_*): Define COBJ macros. (VARIANT): Add missing union members llVal and ullVal. (wireVARIANT): Likewise. (ITypeinfo_*): Define COBJ macros. * include/oleauto.h (Var*FromDisp): Correct parameter type from LPDISPATCH* to LPDISPATCH. (VARCMP_*, VAR_LOCALBOOL, LOCALE_USE_NLS, VARIANT_*, VAR_CALENDAR_*): Add missing constants. (SafeArray[Get/Set]*): Add prototypes. (Var*From*): Add missing prototypes. (NUMPRS_*): Add defines. (NUMPARSE): Define structure. (VarParseNumFromStr,VarNumFromParseNum): Add prototypes. * include/winerror.h (DISP_E_DIVBYZERO): Define constant. * include/winuser.h (COLOR_*): Define missing constants. * include/wtypes.h (enum VARENUM) Add VT_INT_PTR, VT_UINT_PTR. (VT_INT_PTR, VT_UINT_PTR): Remove macro definitions.
2004-02-28 PR bootstrap/7087Nathanael Nerode3-40/+28
* Makefile.tpl: Guard XFOO sed statements better. * Makefile.tpl: Add dependency for configure-target-libada. * Makefile.in: Regenerate (incidentally fixes broken commit when libada-branch was merged).
2004-02-282004-02-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+11
* src-release (CVS_NAMES): Define. (do-tar, do-tar): Prune $(CVS_NAMES).
2004-02-26 * miscfuncs.cc (check_invalid_virtual_addr): Assure the last pageCorinna Vinschen3-3/+9
in the range is always tested. Add appropriate const. * mmap.cc (mmap_record::aloc_fh): Remove unused static path_conf object.
2004-02-26* exceptions.cc (setup_handler): Signal event for any sigwaitinfo if it existsChristopher Faylor9-44/+137
to force signal to be handled. Zero event here to prevent races. * signal.cc (sigwaitinfo): Use local handle value for everything since signal thread could zero event element at any time. Detect when awaking due to thread not in mask and set return value and errno accordingly. Don't set signal number to zero unless we've recognized the signal. * sigproc.cc (sigq): Rename from sigqueue throughout. * thread.cc (pthread::join): Handle signals received while waiting for thread to terminate. * cygwin.din: Export sighold, sigqueue. * exceptions.cc (sighold): Define new function. * signal.cc (handle_sigprocmask): Set correct errno for invalid signal. Simplify debugging output. (sigqueue): Define new function. * include/cygwin/signal.h (sighold): Declare new function. (sigqueue): Ditto. * include/cygwin/version.h: Bump API minor version number. * include/limits.h (TIMER_MAX): Define. (_POSIX_TIMER_MAX): Ditto.