summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygthread.cc (cygthread::stub): Detect if thread function wants to releaseChristopher Faylor2004-12-239-34/+70
| | | | | | | | | | | | | | | | | | itself here, to avoid a race. (cygthread::release): Clear more stuff. Add a diagnostic for an internal error. * cygthread.h (auto_release): New function. * pinfo.h (pinfo::remember): Add an argument to denote whether child is detached. * fork.cc (fork_parent): Reflect change in arguments to pinfo::remember. * pinfo.cc (_pinfo::exit): Signal exit more forcibly. (proc_waiter): Use cygthread::auto_release to signify that cygthread::stub should release the thread. This should avoid a race. (pinfo::alert_parent): Don't signify an error when wr_proc_pipe == NULL. * sigproc.cc (proc_subproc): Add support for PROC_DETACHED_CHILD. * sigproc.h: Ditto. * spawn.cc (spawn_guts): Specify whether child is detached or not when calling pinfo::remember.
* * include/commctrl.h (CDRF_NOTIFYSUBITEMDRAW): Add define.Danny Smith2004-12-232-8/+14
| | | | | Thanks to: Chris Sutcliffe <ironhead@walled.net> (CDRF_*): Use hex notation for constants.
* * cygheap.cc (cygheap_setup_for_child): Add api_fatal to catch failingChristopher Faylor2004-12-225-13/+52
| | | | | | | | | | | | | | MapViewOfFileEx. * cygthread.cc (cygthread::stub): Previous change to make diagnostic output more informative was really a bust. Try again. Capture previous name in a new field in cygthread for diagnostic purposes. (cygthread::cygthread): Ditto. (cygthread::release): Add an argument to control whether h should be cleared or not. (cygthread::terminate_thread): Use 'inuse' for tests rather than 'h'. (cygthread): Add some diagnostic fields. (cygthread::release): Add an argument. * pinfo.cc (proc_waiter): Accommodate change to cygthread::release.
* * cygthread.cc (cygthread::stub): Make diagnostic output more informative.Christopher Faylor2004-12-222-2/+7
|
* * pinfo.cc (proc_waiter): Zero wait_thread in child to avoid races with processChristopher Faylor2004-12-223-1/+24
| | | | | | termination. * cygthread.cc (cygthread::terminate): Clumsily detect when h has gone away and attempt no further action.
* * cygthread.h (cygthread::release): Just declare here.Christopher Faylor2004-12-223-7/+18
| | | | | | * cygthread.cc (cygthread::release): Define here. Use InterlockedExchange to set inuse or suffer potential races. (cygthread::terminate): Use release().
* Add support for the new R_AVR_LDI, R_AVR_6 and R_AVR_6_ADIW relocs for theNick Clifton2004-12-222-13/+21
| | | | LDI, ADIW/SBIW and LDD/STD instructions.
* * fhandler_process.cpp (format_process_status): Use tabs in formattingCorinna Vinschen2004-12-222-17/+22
| | | | instead of spaces.
* * path.cc (set_normalized_path): Allow empty pathnames.Corinna Vinschen2004-12-222-1/+5
|
* * spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed process.Christopher Faylor2004-12-212-0/+7
|
* * path.cc (normalize_win32_path): Remove unneeded check for dots.Christopher Faylor2004-12-202-8/+7
|
* * path.cc (normalize_posix_path): Remove unneeded check for dots.Christopher Faylor2004-12-202-13/+20
| | | | | (path_conv::set_normalized_path): Strip trailing dots, similarly to what had previously been done for the win32 path.
* * include/wchar.h (wcsdup): Correct prototype.Danny Smith2004-12-203-2/+8
| | | | * include/string.h (wcsdup): Correct prototype.
* * path.cc (normalize_win32_path): Make third arg pass-by reference. ReorganizeChristopher Faylor2004-12-192-60/+61
| | | | | | | | slightly to eliminate extra variables. (normalize_posix_path): Ditto. (path_conv::check): Reflect change in arguments. (mount_info::conv_to_posix_path): Ditto. (mount_info::add_item): Ditto.
* * child_info.h (CURR_CHILD_INFO_MAGIC): Use updated value.Christopher Faylor2004-12-193-17/+42
| | | | | | | * path.cc (path_conv::check): Check the output Win32 path for trailing spaces and dots, not the input path. Disallow all use of foo./bar since consistently getting this right is time consuming. Remove strange test for "unc\" since no one seems to know what it's for.
* revert erroneous checkinChristopher Faylor2004-12-184-116/+98
|
* * fhandler_proc.cc (proc_listing): Add entry for "self".Christopher Faylor2004-12-186-106/+139
| | | | | | (proc_fhandlers): Add entry for "self". * fhandler_process.cc (fhandler_process::fstate): Handle "self". (fhandler_process::open): Handle "self".
* 2004-12-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-17143-299/+368
| | | | | | | | | | | | | | | | | | | * NEWS: Update with 1.13.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.13.0. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * iconvdata/aclocal.m4: Ditto. * iconvdata/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_1.13.
* 2004-12-17 Christian Groessler <chris@groessler.org>Jeff Johnston2004-12-178-15/+691
| | | | | | | | | | | * libc/machine/z8k/memcmp.S: New file. * libc/machine/z8k/memcpy.S: Ditto. * libc/machine/z8k/memmove.S: Ditto. * libc/machine/z8k/memset.S: Ditto. * libc/machine/z8k/Makefile.am: Add new files. * libc/machine/z8k/Makefile.in: Regenerated. * libc/machine/z8k/setjmp.S: Fix indirect register usage in Z8002 part. Implement Z8002 stdcall version.
* * sigproc.cc (proc_subproc): Fix long-standing problem. Only wait for "allChristopher Faylor2004-12-172-12/+16
| | | | | | processes" if pid == -1 -- not just if pid is negative. (proc_can_be_signalled): Fix another long-standing problem. Set correct errno when detecting an exited process.
* 2004-12-16 Andrew Stubbs <andrew.stubbs@st.com>Joern Rennecke2004-12-163-77/+95
| | | | | * configure.in (sh64-*-*): Reenable gprof. * configure: Regenerate.
* include/elf/Richard Sandiford2004-12-162-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * v850.h (R_V850_LO16_SPLIT_OFFSET): New reloc. bfd/ * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type. * elf32-v850.c (v850_elf_howto_table): Add entry for R_V850_LO16_SPLIT_OFFSET. (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET. (v850_elf_perform_lo16_relocation): New function, extracted from... (v850_elf_perform_relocation): ...here. Use it to handle R_V850_LO16_SPLIT_OFFSET. (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle R_V850_LO16_SPLIT_OFFSET. * libbfd.h, bfd-in2.h: Regenerate. gas/ * config/tc-v850.c (handle_lo16): New function. (v850_reloc_prefix): Use it to check lo(). (md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET. gas/testsuite/ * gas/v850/split-lo16.{s,d}: New test. * gas/v850/v850.exp: Run it. ld/testsuite/ * ld-v850: New directory.
* * fhandler_console.cc (get_win32_attr): Avoid inappropriate intensityCorinna Vinschen2004-12-162-2/+8
| | | | | interchanging that used to render reverse output unreadable when non-reversed text is bright.
* * cygwin.din: Add utmpx symbols.Corinna Vinschen2004-12-157-24/+184
| | | | | | | | | | | | | | | | | | | * syscalls.cc: Include utmpx.h. Implement utmpx functions as stubs to utmp functions. (copy_ut_to_utx): New static function. (pututline): Change from void to struct utmp * as on Linux. (setutxent): New function. (endutxent): New function. (getutxent): New function. (getutxid): New function. (getutxline): New function. (pututxline): New function. * include/utmpx.h: New file. * include/cygwin/utmp.h: New file. * include/cygwin/version.h: Bump API minor number. * include/sys/utmp.h: Include cygwin/utmp.h. Move stuff common with utmpx functionality there. (pututline): Declare struct utmp *.
* * callback.h (CB_SYS_truncate, CB_SYS_ftruncate): New macros.Hans-Peter Nilsson2004-12-152-0/+6
|
* * tty.cc (tty_list::terminate): Guard releasing the tty with tty_mutex.Corinna Vinschen2004-12-142-0/+11
| | | | (tty::init): Set master_pid to 0.
* * fhandler_console.cc (read): Consider offset within scrollingCorinna Vinschen2004-12-142-2/+22
| | | | region of the console window.
* 2004-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-132-9/+19
| | | | | | * libc/stdio/fread.c (fread): For unbuffered I/O, attempt a low-level read if we don't get the full amount of bytes so EOF or error flags will be set.
* * cygheap.h (cwdstuff::get_drive): Release cwd_lock.Corinna Vinschen2004-12-132-0/+5
|
* Correct attribution last changesHans-Peter Nilsson2004-12-131-1/+1
|
* * callback.h (CB_SYS_rename): New macro.Hans-Peter Nilsson2004-12-132-1/+3
|
* * callback.h (struct host_callback_struct): New member lstat.Hans-Peter Nilsson2004-12-132-0/+9
| | | | (CB_SYS_lstat): New macro.
* * fhandler.cc (fhandler_base::puts_readahead): Fix end-condition.Bas van Gompel2004-12-122-1/+5
|
* merge from gccDJ Delorie2004-12-102-1/+6
|
* * errno.cc (errmap): Map ERROR_INVALID_ADDRESS to EINVAL instead ofCorinna Vinschen2004-12-102-1/+6
| | | | EOVERFLOW.
* * include/sys/strace.h: Don't output paranoid_printf by default.Christopher Faylor2004-12-102-1/+5
|
* * MAINTAINERS: List 'depcomp' as part of automake.Jim Blandy2004-12-092-0/+7
|
* 2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-092-1/+6
| | | | | * libc/time/tzset_r (_tzset_r): Properly skip over '/' when it is detected.
* * lib/libcmain.c (main): Properly deal with quoted first argument.Christopher Faylor2004-12-092-10/+23
|
* * mips.h (CPU_RM9000): Define.Ian Lance Taylor2004-12-092-0/+7
| | | | (OPCODE_IS_MEMBER): Handle CPU_RM9000.
* * mips.h (E_MIPS_MACH_9000): Define.Ian Lance Taylor2004-12-092-0/+5
|
* * include/sqlext.h (SQL_INTERVAL_*): Correct macros.Danny Smith2004-12-092-8/+13
| | | | Reported by Eric Sharkey <sharkey at netrics dot com>
* * Makefile.def (flags_to_pass): Add PICFLAG_FOR_TARGET.David Edelsohn2004-12-084-0/+13
| | | | | | * Makefile.tpl (EXTRA_HOST_FLAGS): Add PICFLAG. (EXTRA_TARGET_FLAGS): Add PICFLAG. * Makefile.in: Regenerate.
* * Makefile.tpl: Generate normal dependencies if the LHS module isDJ Delorie2004-12-083-10/+10
| | | | | not bootstrapped. * Makefile.in: Regenerate.
* 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-082-3/+10
| | | | * libc/time/tzset_r (_tzset_r): Fix loop.
* 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>Jeff Johnston2004-12-082-3/+11
| | | | | | * libc/time/mktm_r (_mktm_r): Fix overflow calculation for m_day. (__tzcalc_limits): Fix reference to month array to be zero-based.
* 2004-12-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-072-6/+8
| | | | | * libc/sys/linux/sys/unistd.h: Add prototypes for ftruncate, truncate, and usleep.
* * include/winnt.h (TOKEN_INFORMATION_CLASS): AddDanny Smith2004-12-072-7/+35
| | | | | | | | TokenGroupsAndPrivileges, TokenSessionReference, TokenSandBoxInert, TokenAuditPolicy, TokenOrigin. Reformat. (SID_NAME_USE): Add SidTypeComputer. Reformat. Thanks to Gabriel Linder <mingwlinder@users.sourceforge.net>
* * pinfo.h (proc_pipe::*): Delete class.Christopher Faylor2004-12-063-48/+5
| | | | * pinfo.cc (proc_pipe::*): Ditto.
* * fork.cc (fork_parent): Reinstate "childhProc" protection. Don't closeChristopher Faylor2004-12-066-16/+25
| | | | | | | | | | | | hProcess handle here since it is used to ensure that a new process isn't created with the old pid after the old pid exits. * spawn.cc (spawn_guts): Ditto. * pinfo.cc (proc_waiter): Don't send any signals if we've execed since this process doesn't officially exist. * pinfo.h (pinfo::pid_handle): Eliminate. Just use hProc. * sigproc.cc (sig_send): Don't send any signals if our sendsig doesn't exist. That's a sign that we are execing. (remove_proc): Eliminate pid_handle close.