summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* fix typoChristopher Faylor2004-12-051-1/+1
|
* * cygthread.cc (cygthread::terminate_thread): Make public.Christopher Faylor2004-12-055-2/+16
| | | | | | * pinfo.h (pinfo::wait_thread): New element. * pinfo.cc (pinfo::wait): Store "handle" to started thread in pinfo. * sigproc.cc (proc_terminate): Kill any threads waiting for a process pipe.
* * sigproc.cc (mychild): Reimplement as list scan.Christopher Faylor2004-12-059-377/+502
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (proc_subproc): Don't mess with pinfo if it's myself. * child_info.h (child_info_types): Label enum for _PROC constants. (child_info::child_info): New constructor. (child_info::~child_info): New destructor. (child_info::sync): Declare new function. (child_info_fork::child_info_fork): New constructor. (child_info_spawn::child_info_spawn): Remove old constructor. (child_info_spawn::child_info_spawn): New constructor. * dcrt0.cc (dll_crt0_0): Use correct sizeof when doing sanity check on passed in child_info. Signal readiness to parent when not forking (and not spawning). * fork.cc (sync_with_child): Delete. (resume_child): Remove extra argument. (sync_with_parent): Use child_info method to sync with parent. (fork_child): Don't close fork_info->subproc_ready since that is now handled by the destructor. (fork_parent): Remove subproc_ready stuff. Use child_info sync method for waiting.. Set start time here for child. Rename "forked" to "child". (fork): Check ch.subproc_ready for validity here. * pinfo.h (_pinfo::exec_sendsig): Temp storage for exec stub which may be staying around to handle non-cygwin captive process. (_pinfo::exec_dwProcessId): Ditto. (_pinfo::_lock): Renamed from lock. (_pinfo::lock): New method. (_pinfo::unlock): Ditto. (_pinfo::initialize_lock): Ditto. * pinfo.cc (set_myself): Use initialize_lock method to initialize myself lock. Set "exec" fields in _pinfo to zero to indicate that we've started successfully. Set start time here when appropriate. (_pinfo::commune_send): Use pinfo lock/unlock methods. (proc_waiter): Remove special case for non-cywin processes. Reinstitute handling for PID_NOCLDSTOP. * sigproc.cc (proc_subproc): Set proper EAGAIN errno when process table is filled. (sig_send): Use exec_* fields from _pinfo for sending signals if the the _pinfo sendsig never materializes. (child_info::child_info): New constructor, renamed from init_child_info. Zeroes child_info structure and sets appropriate fields in structure based on chtype. (child_info::~child_info): New destructor. Closes subproc_ready if it exists. (child_info_fork::child_info_fork): New constructor. (child_info_spawn::child_info_spawn): New constructor. (child_info::ready): New function. Signals parent when child is ready. (child_info::sync): New function. Wait for child to signal us or process to die. (remove_proc): Remove closing of hProcess since this should now be handled shortly after process creation. * spawn.cc (spawn_guts): Use child_info_spawn constructor rather than init_child_info. Save exec_sendsig and exec_dwProcessId in execing _pinfo. Rely on child_info constructor to properly set parent_wr_proc_pipe in ciresrv. Revert to previous determination on whether to start a process in suspended mode. Remove reparenting stuff. Just keep a stub around if starting a non-cygwin process.
* * fhandler.cc (fhandler_base::read): Remove superfluous check inBas van Gompel2004-12-052-2/+6
| | | | __small_printf format for strace.
* minor cleanupChristopher Faylor2004-12-052-3/+3
|
* * fhandler.cc (fhandler_base::read): Don't debug_printf garbage whenBas van Gompel2004-12-052-0/+6
| | | | copied_chars is zero.
* * environ.cc (environ_init): Alloc space for TERM if it is not set, like all ofChristopher Faylor2004-12-032-1/+6
| | | | the other environment variables.
* 2004-12-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-12-033-4/+11
| | | | | | | * Makefile.am (libc_la_LDFLAGS): Add -lgcc to handle any libgcc dependencies. (libm_la_LDFLAGS): Ditto. * Makefile.in: Regenerated.
* 2004-12-03 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2004-12-033-6/+19
| | | | | | | * libc/sys/linux/linuxthreads/Makefile.am (install-data-local): Fix our link to use readlink so as to preserve any relative link created by install-toollibLIBRARIES. * libc/sys/linux/linuxthreads/Makefile.in: Regenerated.
* Introduce config/gxx-include-dir.m4.Richard Sandiford2004-12-035-60/+79
|
* Remove config.if.Richard Sandiford2004-12-036-41/+12
|
* 2004-12-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-12-036-24/+83
| | | | | | | | * cygserver.sgml: Cleanup minor markup problem. * how-resources.texinfo: Add man and info to documentation FAQ * how-using.texinfo: Add more detail to Unicode FAQ. * install.texinfo: Finally apply Pierre's patch from 2003-03-03. * relnotes.texinfo: Add note about hyperthreading reports.
* * child_info.h (child_info_fork::parent_wr_proc_pipe): New element.Christopher Faylor2004-12-038-48/+69
| | | | | | | | | | | | | | | | * fork.cc (fork_parent): Set parent_wr_proc. * pinfo.cc (set_myself): Close child_proc_info->parent_wr_proc if it exists rather than trying to get value from parent _pinfo. * pinfo.h (enum parent_aleter): New enum. (pinfo::alert_parent): Declare as returning a value. (pinfo::parent_alive): New function. * pinfo.cc (pinfo::alert_parent): Set wr_proc_pipe to invalid non-NULL value when parent disappears. Return success of operation. (proc_waiter): Use __ALERT_* enum for control since these are not really signals. Implement __ALERT_ALIVE. * sigproc.cc (my_parent_is_alive): Eliminate. * sigproc.h (my_parent_is_alive): Ditto for declaration. (__SIGREPARENT): Eliminate.
* * pinfo.cc (pinfo::wait): Use better name for cygthread.Christopher Faylor2004-12-032-1/+5
|
* 2004-12-03 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-12-037-210/+168
| | | | | | | | | | | | | | | | | | | * registry.h (reg_key::reg_key): Change arguments. * shared_info.h (class mount_info): Remove had_to_create_mount_areas. * registry.cc (reg_key::reg_key): Change constructors to always handle HKLM and to avoid relying on HKCU. Do not set mount_table->had_to_create_mount_areas. * path.cc (mount_info::conv_to_win32_path): Improve update of sys_mount_table_counter. (mount_info::read_mounts): Use new reg_key constructor. (mount_info::add_reg_mount): Ditto. (mount_info::del_reg_mount): Ditto. (mount_info::read_cygdrive_info_from_registry): Ditto. (mount_info::write_cygdrive_info_to_registry): Ditto. Update cygwin_shared->sys_mount_table_counter after registry update. (mount_info::get_cygdrive_info): Ditto. * shared.cc (shared_info::heap_chunk_size): Use new reg_key constructor. * environ.cc (regopt): Ditto.
* Use correct ChangeLog entry.Eric Christopher2004-12-021-1/+2
|
* 2004-12-02 Eric Christopher <echristo@redhat.com>Eric Christopher2004-12-023-0/+7
| | | | | | * Makefile.tpl (clean-target-libgcc): Add stmp-dirs to list of things to remove. * Makefile.in: Regenerate.
* 2004-12-02 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2004-12-023-2/+13
| | | | | | | | | * libc/sys/linux/stdlib/glob.c: Include <sys/types.h> which defines time_t before including sys/stat.h, which uses it. * libc/sys/linux/sys/stat.h: Include <sys/types.h> and <linux/time.h> just prior to definition of __KERNEL__ so as to allow building on Debian Linux where otherwise, mktime would be redefined.
* * configure.in: Clear gcc_version_trigger if the file doesn't exist.Richard Sandiford2004-12-023-60/+69
| | | | * configure: Regenerate.
* Introduce and use config/gcc-version.m4.Richard Sandiford2004-12-025-100/+139
|
* * lib/comctl32.def (ImageList_Copy, ImageList_DrawIndirect,Danny Smith2004-12-022-0/+8
| | | | ImageList_Duplicate): Add stubs.
* * lib/directx/strmiids.c (MEDIASUBTYPE_YV12): Correct GUID.Danny Smith2004-12-022-1/+6
| | | | Thanks to "Pete" <pross@xvid.org>