Commit Graph

  • 363934dc9b * pinfo.cc (size_copied): New convenience macro. (winpids::add): Alias the element that we are working on for slightly better clarity. Honor the "make_copy" flag. (winpids::release): Free and zero procinfo field if it was allocated via malloc. (winpids::~winpids): Free copied array. * pinfo.h (class pinfo): Make winpids class a friend. (winpids::make_copy): New field. (winpids::copied): New array. (winpids::reset): Reset npids after releasing pinfos or suffer a memory leak. (winpids::winpids): Try harder to allocate all fields in the class. Christopher Faylor 2005-12-12 18:43:31 +0000
  • 9941f8525d 2005-12-12 Paul Brook <paul@codesourcery.com> Paul Brook 2005-12-12 17:03:40 +0000
  • 75a22c880a * autoload.cc (GetSystemTimes): Remove. Corinna Vinschen 2005-12-12 14:27:16 +0000
  • e96abae130 * fhandler_proc.cc (format_proc_uptime): Drop usage of GetSystemTimes. Use NtQuerySystemInformation to evaluate uptime and idle_time from all CPU's processor times. Fallback to GetTickCount. Corinna Vinschen 2005-12-12 12:18:14 +0000
  • 74ecef0dea Rename ms1 to mt, part 1 * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. * configure.in: Replace ms1 arch with mt. * configure: Rebuilt. Nathan Sidwell 2005-12-12 11:25:07 +0000
  • ad83f0cc13 Rename ms1 files to mt files (part 1 -- renames only) Nathan Sidwell 2005-12-12 11:16:41 +0000
  • 2193d02b4d * mmap.cc (gen_create_protect): Always generate WRITECOPY protection for private maps. (fixup_mmaps_after_fork): Fix calculation of WRITECOPY protection for VirtualProtect. Add some words to the comment. Corinna Vinschen 2005-12-12 10:00:32 +0000
  • 4e8e54543e * winsup.api/ltp/dup03.c (cleanup): Fix longstanding off-by-one error when setting array element to -1. Christopher Faylor 2005-12-11 22:31:00 +0000
  • 4989ff286d fix typo. Christopher Faylor 2005-12-11 17:30:53 +0000
  • d92b26d1ae merge from gcc DJ Delorie 2005-12-11 02:16:04 +0000
  • 9b020020ec * dirent.h: Change the rest of the d_ino's to __deprecated_d_ino. Christopher Faylor 2005-12-10 23:25:24 +0000
  • 3ab689126c * malloc.cc: Update to version 2.8.3. * cygmalloc.h (MSPACE): Remove unneeded definition. Christopher Faylor 2005-12-10 17:09:58 +0000
  • 3f8edcbdb1 * lib/kernel32.def (CreateFiberEx): Correct suffix. Danny Smith 2005-12-09 07:49:40 +0000
  • 4d6c08adfe 2005-12-09 Huw Davies <hdavies@users.sourceforge.net> Danny Smith <dannysmith@users.sourceforge.net> Danny Smith 2005-12-09 04:59:24 +0000
  • 2a1fc53c92 2005-12-08 Shaun Jackman <sjackman@gmail.com> Jeff Johnston 2005-12-08 19:45:43 +0000
  • 7d6fde96de * fhandler_raw.cc (fhandler_dev_raw::ioctl): Only allow 0, 1 or a multiple of 512 as new buffersize. Corinna Vinschen 2005-12-08 10:55:29 +0000
  • ddd62ccbd4 * fhandler_socket.cc (fhandler_socket::recvfrom): Mask flags with MSG_WINMASK for Windows socket calls. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendmsg): Ditto. Corinna Vinschen 2005-12-08 10:13:57 +0000
  • 6c9a5ebbfc * hires.h (hires_ms::initime_ms): Delete. (hires_ms::initime_us): Just define as LONGLONG. (hires_ms::uptime): New function. * select.cc (select_stuff::wait): Use gtod for timing to attempt to avoid windows 32 bit wraparound. * times.cc (systime): New function. (times): Replace GetTickCount with gtod.uptime. (hires_us::prime): Use systime() to calculate system time rather than calling GetSystemTimeAsFileTime directly. (hires_ms::prime): Ditto. Eliminate initime_ms. (hires_ms::usecs): Try harder to detect wraparound. * fhandler_proc.cc (format_proc_partitions): Set drive_size to zero to avoid a compiler warning. Christopher Faylor 2005-12-07 22:28:49 +0000
  • c09178b052 * fhandler_proc.cc (format_proc_partitions): Use modern IOCTLs to determine drive size as far as possible. Corinna Vinschen 2005-12-07 20:32:27 +0000
  • 14d2d90cff * include/winbase.h (GetDevicePowerState): Add prototype. * lib/kernel32.def (GetDevicePowerState): Correct suffix. Danny Smith 2005-12-07 20:27:09 +0000
  • 8696d63606 2005-12-07 Brian Gunlogson <gmb300@users.sourceforge.net> Danny Smith 2005-12-07 20:17:39 +0000
  • db58e35d94 * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix INVALID_PARAMETER condition. Only copy devbuf to buf if buf is non-NULL. Corinna Vinschen 2005-12-07 19:01:29 +0000
  • bb4e8382c5 * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix setting devbuf when rd_parm is 0 or 1. Corinna Vinschen 2005-12-07 18:35:29 +0000
  • 46bcbf8ce0 * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test for valid file position at EOM. Corinna Vinschen 2005-12-07 18:11:10 +0000
  • 383840a908 * include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib. Christopher Faylor 2005-12-07 15:17:43 +0000
  • 1094df9f2d * cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS) (MOVE_PC_INCR_OPCODE_PREFIX, MOVE_PC_INCR_OPCODE_SUFFIX): New macros. (ADD_PC_INCR_OPCODE): Don't define. Hans-Peter Nilsson 2005-12-07 12:53:57 +0000
  • 5a101414ed * exceptions.cc (_cygtls::handle_exceptions): In case of a STATUS_ACCESS_VIOLATION, check if the page is a mmaped page beyond a file's EOF. Generate SIGBUS instead of SIGSEGV then. * mmap.cc (__PROT_ATTACH): New define. (__PROT_FILLER): Ditto. (fh_anonymous): Rename from fh_paging_file; (fh_disk_file): New global static variable. (attached): New inline function. (filler): Ditto. (gen_create_protect): Split off from gen_protect to use the file's access mode to create mapping always with maximum allowed protections. (gen_protect): Accomodate pages attached beyond EOF. Use symbolic values instead of numerics when possible. Drop create parameter. (gen_access): Use file's access mode instead of protection. (CreateMapping9x): Create named mapping names so that different creation access modes result in different mappings. (CreateMappingNT): Only reserve attached pages, don't commit them. (MapViewNT): Ditto. Set AT_ROUND_TO_PAGE for all non-NULL base addresses. (mmap_func_t): Define CreateMapping and MapView function pointers with additional openflags parameter. (class mmap_record): Add openflags member. (mmap_record::mmap_record): Add openflags parameter. (mmap_record::get_openflags): New accessor. (mmap_record::attached): Call global attached function. (mmap_record::filler): Call global filler function. (mmap_record::gen_create_protect): Call global gen_create_protect function. (mmap_record::gen_protect): Drop create parameter. (mmap_record::alloc_fh): Set fhandler's access flags. (list::search_record): Accomodate filler pages. (list::set): Use inode number as hash value. (map::get_list_by_fd): Check hash value against file's inode number. (mmap_is_attached_page): New function to evaluate if a given address is on a attached page. Called from _cygtls::handle_exceptions. (mmap_worker): New function to do mapping and bookkeeping in a single call. (mmap64): Use roundup2 to round length to pagesize alignment. Initialize global fhandlers. Simplify anonymous initialization. Add SUSv3 compatible check of file open mode vs. requested protection. Try creating new file handles to allow maximum page protection. Allow creating attached pages in case of mapping beyond EOF. Close new file handle if one has been created. (munmap): Align len to pagesize. (msync): Rework argument checks. Align len to pagesize. (mprotect): Ditto. Accomodate attached pages. (mlock): Use roundup/rounddown macros instead of homemade expressions. (munlock): Add page alignment as in mlock. (fhandler_dev_zero::munmap): Fix unmapping of non-private mappings. (fhandler_dev_zero::fixup_mmap_after_fork): Accomodate filler pages. (fixup_mmaps_after_fork): Don't fail if attached pages couldn't be created in child. Avoid superfluous call to VirtualFree. Check for original allocation protection to fix PAGE_WRITECOPY protection. * ntdll.h: Revert deletion of AT_ROUND_TO_PAGE define. * winsup.h (mmap_is_attached_page): Declare. Corinna Vinschen 2005-12-07 11:16:47 +0000
  • e01c5cce75 2005-12-06 Paul Brook <paul@codesourcery.com> Jeff Johnston 2005-12-06 22:04:29 +0000
  • 77e70d34ce 2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org> Jeff Johnston 2005-12-06 21:58:45 +0000
  • 466fc394b8 gas/ H.J. Lu 2005-12-06 12:40:57 +0000
  • e5a0cf2415 * include/cygwin/stdlib.h: New file. * environ.cc (unsetenv): Change to return -1 on input error. * include/cygwin/version.h: Add more description to latest api bump. Christopher Faylor 2005-12-05 22:30:03 +0000
  • b1da33a0b0 * libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file. Declare unsetenv and _unsetenv_r when not cygwin. Christopher Faylor 2005-12-05 22:15:21 +0000
  • c34aee9b23 * dir.cc (readdir_workdir): Only fill out d_ino when linked into older app. * include/cygwin/version.h: Bump api minor number to 147, reflecting obsolescence of d_ino. (CYGWIN_VERSION_USER_API_VERSION_COMBINED): New convenience macro. (CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): New convenience macro. Christopher Faylor 2005-12-05 21:02:53 +0000
  • 4535b5961f revert accidental checkin Christopher Faylor 2005-12-05 20:30:40 +0000
  • 09b0109620 Remove unneeded whitespace. * cygtls.cc (_cygtls::set_state): Delete. (_cygtls::reset_exception): Ditto. (_cygtls::init_thread): Set initialized state directly here. (_cygtls::push): Remove exception argument. Don't treat exceptions specially. * cygtls.h (_cygtls::push): Ditto. (_cygtls::isinitialized): Don't treat exceptions specially. (_cygtls::reset_exception): Delete. (_cygtls::set_state): Ditto. (_cygtls::handle_exceptions): Don't push ebp on the stack prior to calling sig_send. Just set incyg instead. (_cygtls::interrupt_setup): Accommodate _cygtls::push argument change. (_cygtls::interrupt_now): Ditto. (setup_handler): Don't treat exceptions specially. * gendef (longjmp): Always zero incyg flag. Christopher Faylor 2005-12-05 20:20:18 +0000
  • 801d6cc753 * strace.cc (show_usecs): Renamed from 'usecs'. (main): Use show_usecs rather than usecs. Toggle delta if '-u' is specified. (handle_output_debug_string): Avoid printing microsecond timestamp if show_usecs == 0. * utils.sgml (strace): Add words to describe '-u'. Christopher Faylor 2005-12-05 16:39:06 +0000
  • a7dc05b5d1 toplevel: 2005-12-05 Paolo Bonzini <bonzini@gnu.org> Paolo Bonzini 2005-12-05 15:16:05 +0000
  • 9fc0d14410 * environ.cc (spenvs): Add "windir" as an "always export" variable to accomodate WinSock on Windows 95. Corinna Vinschen 2005-12-04 21:47:03 +0000
  • 3829215776 fix description Christopher Faylor 2005-12-04 19:24:10 +0000
  • 33cf0e5519 * faq-setup.xml: Add note about clean_setup.pl. * faq-using.xml: Remove unnecessary line of elisp. Joshua Daniel Franklin 2005-12-04 03:55:28 +0000
  • 49085f6f16 * include/exceptions.h (exception_list): Revert previous change. Windows doesn't care. (exception_handler): Use real exception_list parameter type rather than void * * tlsoffsets.h: Regenerate. * cygtls.h (_cygtls::handle_exceptions): Use real exception_list parameter type rather than void *. (handle_threadlist_exception): Ditto. (init_exception_handler): Ditto. * cygtls.cc (_cygtls::handle_threadlist_exception ): Ditto. (_cygtls::init_exception_handler): Add kludge to terminate linked list with a loop, which seems to solve problem of RtlUnwind causing problems * exceptions.cc (rtl_unwind): Use real exception_list parameter type rather than void *. (_cygtls::handle_exceptions): Ditto. Christopher Faylor 2005-12-03 05:01:51 +0000
  • 087f4a61d2 Add missing ChangeLog entry. Christopher Faylor 2005-12-03 04:24:34 +0000
  • f153e6b280 * cygtls.h (_cygtls::el): New field. (_cygtls::handle_exceptions): New function declaration. (_cygtls::handle_threadlist_exception): Ditto. (_cygtls::init_exception_handler): Ditto. (_cygtls::init_threadlist_exceptions): Remove arg from declaration. * cygtls.cc (_cygtls::call2): Don't initialize exceptions here. (_cygtls::init_thread): Do it here instead and use member function. (_cygtls::handle_threadlist_exception): Move into _cygtls class. (_cygtls::init_exception_handler): Ditto. Rely on existence of 'el' memmber in _cygtls. (_cygtls::init_threadlist_exceptions): Ditto. * dcrt0.cc (dll_crt0_1): Remove exception_list definition and setting since it now commonly resides in the tls. * exceptions.cc (init_exception_handler): Move to cygtls.cc. (init_exceptions): Ditto. (rtl_unwind): New, safe wrapper function for RtlUnwind. (_cygtls::handle_exceptions): Move to _cygtls. Call rtl_unwind to unwind frames and eliminate copying of structures. Put address of failing instruction in si_addr, not the address on the stack. Return 0 to indicate that we've handled this exception. * external.cc (cygwin_internal): Make CW_INIT_EXCEPTIONS a no-op. * sigproc.cc (wait_sig): Accommodate argument change to _cygtls::init_threadlist_exceptions. * tlsoffsets.h: Regenerate. * include/exceptions.h (exception_list): Add more stuff to the exception list. Apparently windows needs this? (init_exceptions): Remove bogus declaration. * include/cygwin/signal.h (SI_USER): Redefine as zero as per SUSv3. * thread.cc (pthread_kill): Set si_pid and si_uid. * timer.cc (timer_thread): Set si_code to SI_TIMER. Christopher Faylor 2005-12-03 04:23:35 +0000
  • e7f6a31bb0 * dcrt0.cc (getstack): Try harder to modify memory. (alloc_stack): Alloc page prior to stack top, too. Christopher Faylor 2005-12-02 03:12:06 +0000
  • 032295a988 * devices.h (_major): Revert previous ill-advised change. (_minor): Ditto. Christopher Faylor 2005-12-02 00:37:21 +0000
  • 8b3c84227f * exceptions.cc (handle_exceptions): Translate a guard page exception to a "SIGBUS". Christopher Faylor 2005-12-01 20:52:00 +0000
  • b534221080 * mmap.cc: Make debug output more consistently. Fix some comments. (gen_protect): Convert to inline function. (gen_access): Ditto. (mmap_record::gen_protect): Add create parameter as in global function. (mmap_record::alloc_page_map): Change condition so that always the correct protection setting is set after mapping has been established. (mmap64): For anonymous mappings set offset always to 0. (fixup_mmaps_after_fork): Always call fixup_mmap_after_fork method with the MAP_FIXED flag set. Corinna Vinschen 2005-12-01 20:35:13 +0000
  • c57b13f9f8 * devices.h (_minor): Coerce argument to proper type before manipulating. (_major): Ditto. (device::is_fs_special): New function. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Set the size to 0 for devices rather than reporting the size of the symlink. (fhandler_disk_file::readdir): Use is_fs_special to determine if .lnk should be stripped. * path.cc: Rename symlink_info::is_symlink to symlink_info::issymlink throughout. (symlink_info::isdevice): New field. (path_conv::check): Use 'isdevice' to determine if just-parsed entity is a device rather than relying on non-zero major/minor. (symlink_info::parse_device): Set isdevice to true if we've discovered a device. (symlink_info::check): Clear isdevice field prior to processing. Use isdevice to control debugging output. (symlink_info::set): Set isdevice to false. * path.h (path_conv::is_fs_special): New function. * devices.cc: Regenerate. Christopher Faylor 2005-12-01 17:33:59 +0000
  • 32e616339a 2005-11-30 Shaun Jackman <sjackman@gmail.com> Jeff Johnston 2005-11-30 23:43:57 +0000
  • 7c15164f17 2005-11-30 Shaun Jackman <sjackman@gmail.com> Jeff Johnston 2005-11-30 23:37:14 +0000
  • 1740d2580b * times.cc (hires_ms::prime): Remove debugging stuff. (hires_ms::usecs): Ditto. Christopher Faylor 2005-11-30 18:14:07 +0000
  • b0c3293ecc * mmap.cc (list::try_map): New method, implementing trying to map within another already existing map, moved from mmap64 here. (mmap64): Just call try_map now. (fhandler_dev_zero::fixup_mmap_after_fork): Always create new private map with PAGE_READWRITE protection. (fixup_mmaps_after_fork): Fix comment. Corinna Vinschen 2005-11-30 15:05:48 +0000
  • e4809ddd20 * include/cygwin/version.h: Bump API minor version. Corinna Vinschen 2005-11-29 18:25:36 +0000
  • a020c74a8d * fhandler.h (fhandler_dev_zero::mmap): Add method. (fhandler_dev_zero::munmap): Ditto. (fhandler_dev_zero::msync): Ditto. (fhandler_dev_zero::fixup_mmap_after_fork): Ditto. * mmap.cc: Implement anonymous mapping using fhandler_dev_zero class. Implement private anonymous maps using VirtualAlloc/VirtualFree. Fix or add some more comments. (fh_paging_file): Change to type fhandler_dev_zero. (priv): New static inline function to avoid having lots of flag bit tests in the code. Use throughout were appropriate. (fixed): Ditto. (anonymous): Ditto. (noreserve): Ditto. (autogrow): Ditto. (gen_protect): Never generate PAGE_WRITECOPY protection for private anonymous maps. (gen_access): Drop FILE_MAP_EXECUTE handling since it's not supported correctly on 9x. (VirtualProt9x): Move comment from mmap64 here. (mmap_record::mmap_record): Gegerate correct device entry for anonymous maps, though unused right now. (mmap_record::priv): Call global priv function. (mmap_record::fixed): Call global fixed function. (mmap_record::anonymous): Call global anonymous function. (mmap_record::noreserve): Call global noreserve function. (mmap_record::autogrow): Call global autogrow function. (list::anonymous): New method. Use throughout were appropriate. (mmap_record::compatible_flags): Drop now useless ifdef. (mmap_record::alloc_page_map): Accomodate private anonymous maps. (mmap_record::map_pages): Accomodate MAP_NORESERVE mappings. (mmap_record::unmap_pages): Accomodate private anonymous maps. (mmap64): Simplify argument check. Don't remove the MAP_PRIVATE flag for anonymous mappings on 9x anymore since that's now handled gracefully. (mprotect): Accomodate MAP_NORESERVE mappings. Fix case when non-mmap areas are just MEM_RESERVEd. (fhandler_dev_zero::mmap): Implement anonymous mapping here. (fhandler_dev_zero::munmap): Ditto. (fhandler_dev_zero::msyn): Ditto. (fhandler_dev_zero::fixup_mmap_after_fork): Ditto. (fixup_mmaps_after_fork): Accomodate private anonymous maps. Enhance debug output in case VirtualProtect fails. * include/sys/mman.h: Really define MAP_NORESERVE now. Corinna Vinschen 2005-11-29 16:28:05 +0000
  • f90e23f271 * autoload.cc (NtCreateSection): Define. * cygheap.cc (_csbrk): Call getpagesize instead of getshmlba. * dcrt0.cc (dll_crt0_0): Call mmap_init. * external.cc (cygwin_internal): Call getpagesize instead of getshmlba. * fhandler.h (fhandler_base::mmap): Change access to prot parameter. (fhandler_base::fixup_mmap_after_fork): Ditto. (fhandler_disk_file::mmap): Ditto. (fhandler_disk_file::fixup_mmap_after_fork): Ditto. (fhandler_dev_mem::mmap): Ditto. (fhandler_dev_mem::fixup_mmap_after_fork): Ditto. * fhandler_mem.cc (fhandler_dev_mem::write): Call getsystempagesize instead of getpagesize. (fhandler_dev_mem::read): Ditto. (fhandler_dev_mem::fstat): Ditto. (fhandler_dev_mem::mmap): Move to mmap.cc. (fhandler_dev_mem::munmap): Ditto. (fhandler_dev_mem::msync): Ditto. (fhandler_dev_mem::fixup_mmap_after_fork): Ditto. * fhandler_proc.cc (format_proc_meminfo): Call getsystempagesize instead of getpagesize. * fhandler_process.cc (format_process_stat): Ditto. (format_process_status): Ditto. (get_mem_values): Ditto. * mmap.cc: Fix formatting. Try to make more readable and modular. Take advantage of pagesize==granularity. (gen_protect): New static function to evaluate Windows protection bits from POSIX protection and flags. (gen_access): Ditto for Windows access mode. (VirtualProt9x): Wrapper function to call VirtualProtect on 9x. (VirtualProtNT): Ditto for NT. (VirtualProtEx9x): Ditto for VirtualProtectEx on 9x. (VirtualProtExNT): Ditto for NT. (CreateMapping9x): Wrapper function for creating a mapping handle on 9x. (CreateMappingNT): Ditto for NT. (MapView9x): Wrapper function to map a view on 9x. (MapViewNT): Ditto for NT. (mmap_funcs_9x): Structure containing function pointers to wrapper functions for 9x. (mmap_funcs_nt): Ditto for NT. (mmap_func): Pointer to wrapper functions used in subsequent code. (mmap_init): Initialize mmap_func depending on OS. (class mmap_record): Use sensible member names. Add POSIX protection member. Drop Windows access flags member. Constify more methods. Use accessors instead of direct member access inside of own methods. (mmap_record::gen_protect): Class wrapper to evaluate matching Windows protection bits. (mmap_record::gen_access): Ditto for Windows access flags. (mmap_record::compatible_flags): New function to check if flags are compatible with flags of existing map. (list::add_record): Drop offset and length arguments. (class map): Change counters to unsigned. Match usage throughout. (mmapped_areas): Convert from pointer to global struct. (mmap_record::alloc_page_map): Simplify. (mmap_record::map_pages): Ditto. (mmap_record::fixup_page_map): Delete. (mmap64): Simplify. Add workaround for Windows 98 bug. Fix bug on NT that existing anonymous mappings weren't searched for a match. (munmap): Add workaround for Windows 98 bug. (msync): Simplify. (mprotect): Handle existing maps correctly. (mlock): Add local pagesize variable and enlightening comment. (fhandler_disk_file::mmap): Main functionality now in CreateMapping/ MapView wrapper functions. (fhandler_disk_file::fixup_mmap_after_fork): Call MapView wrapper. (fhandler_dev_mem::mmap): Moved from fhandler_mem.cc. Simplify by calling MapViewNT. (fhandler_dev_mem::munmap): Moved from fhandler_mem.cc. (fhandler_dev_mem::msync): Ditto. (fhandler_dev_mem::fixup_mmap_after_fork): Ditto. Call MapViewNT. (fixup_mmaps_after_fork): Restructure and hopefully speed up loop for setting protection and memory content on MAP_PRIVATE maps. * ntdll.h (AT_ROUND_TO_PAGE): Remove define. (AT_EXTENDABLE_FILE): Add define. (NtCreateSection): Add prototype. * syscalls.cc (getpagesize): Return granularity as pagesize now. (getsystempagesize): New function to retrieve "real" pagesize. (getshmlba): Delete since it's replaced by getpagesize now. * wincap.h (wincaps::has_mmap_alignment_bug): New element. * wincap.cc: Implement above element throughout. * winsup.h (getshmlba): Drop prototype. (getsystempagesize): Add prototype. (mmap_init): Ditto. * include/sys/mman.h: (Not yet) define MAP_NORESERVE. Corinna Vinschen 2005-11-28 22:32:29 +0000
  • 87b69d9243 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't rely on has_acl() state for evaluating inodes. Temporarily(?) enable "real" inodes for remote drives. Corinna Vinschen 2005-11-28 10:06:33 +0000
  • 3e58f18822 Fix changelog typo. Daniel Jacobowitz 2005-11-28 03:29:07 +0000
  • 2cf13b63be * heap.cc: Remove spurious getpagesize declaration. * exceptions.cc (ctrl_c_handler): Distinguish CTRL-BREAK from CTRL-C in some cases. Christopher Faylor 2005-11-25 19:53:52 +0000
  • 24fb449f37 * autoload.cc (CloseWindowStation): Define. Christopher Faylor 2005-11-24 02:34:49 +0000
  • 819dbaebd6 * fhandler_tty.cc (fhandler_tty_slave::open): Reset the current windows station whenever ctty == -1 regardles of whetehr there's a windows station already assigned. Close the old windows station in this situation. * pinfo.cc (_pinfo::set_ctty): Reinstate incrementing of console count when recording ctty so that the current tty is always around. Christopher Faylor 2005-11-24 02:34:31 +0000
  • a39cfda7ba * Makefile.in: Link cygcheck with libwininet.a. * cygcheck.cc: Add includes. (grep_packages): New global variable. (display_internet_error): New function. (safe_chars): New global variable. (base_url): Ditto. (package_grep): New function. (usage): Reword --help output for clarity. Document new argument. (longopts): Add 'package-query' option. (opts): Add 'p' option, reorder to be consistent with 'longopts'. (main): Accommodate new option. * utils.sgml (cygcheck): Update --help output. Document new -p option. Christopher Faylor 2005-11-22 17:19:17 +0000
  • 9cd22f86fc * strptime.cc (_strptime): Fix gcc warnings. Christopher Faylor 2005-11-18 19:43:02 +0000
  • 6381783f61 * memmem.cc: Move from here. * lib/memmem.cc: Move to here. Christopher Faylor 2005-11-18 19:39:53 +0000
  • 6b1a6ec67b 2005-11-18 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2005-11-18 19:00:29 +0000
  • 19e7c3a068 * libc: Add subdirectory. * Makefile.in (VPATH): Add libc subdir. (DLL_OFILES): Add strptime.o and timelocal.o. * cygwin.din: Export timelocal and timegm. * localtime.cc: Define STD_INSPIRED unconditionally. * include/cygwin/time.h (timelocal): Add declaration. (timegm): Ditto. * include/cygwin/version.h: Bump API minor version. * libc/strptime.cc: New file. * libc/timelocal.cc: New file. * libc/timelocal.h: New file. Corinna Vinschen 2005-11-18 17:48:23 +0000
  • ef1206e45b * libc/include/ieeefp.h: Add C++ guards. Corinna Vinschen 2005-11-18 17:40:21 +0000
  • bc293af0e5 * include/cygwin/sys_time.h: Move futimes and lutimes declaration here from newlib. Christopher Faylor 2005-11-18 16:08:33 +0000
  • d7d477b7f7 * include/sys/time.h: Move more cygwin stuff to cygwin-specific header. Christopher Faylor 2005-11-18 16:08:10 +0000
  • c1534dbe09 * include/time.h: Remove more cygwin-specific stuff. Christopher Faylor 2005-11-18 15:57:24 +0000
  • 4c57fb4960 * times.cc (timezone): Put back (void). * include/cygwin/time.h: Add more cygwin stuff from newlib. Christopher Faylor 2005-11-18 15:57:16 +0000
  • d3e81bdac8 * include/time.h: Move cygwin declarations to cygwin-specific header. * include/sys/time.h: Rename cygwin include to "sys_time.h". Christopher Faylor 2005-11-18 15:45:54 +0000
  • 808139f1af * include/cygwin/sys_time.h: Rename from include/cygwin/time.h. * include/cygwin/time.h: New file. Christopher Faylor 2005-11-18 15:45:51 +0000
  • 9d60f4f87a 2005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net> Danny Smith 2005-11-18 00:44:22 +0000
  • 9716aeb7a0 2005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net> Danny Smith 2005-11-18 00:30:27 +0000
  • 1396951b20 2005-11-17 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2005-11-17 21:51:21 +0000
  • b92f9343b3 2005-11-17 Shaun Jackman <sjackman@gmail.com> Jeff Johnston 2005-11-17 18:56:41 +0000
  • 7912bcbf36 * fork.cc (fork): Move top-of-stack calculation later. * pinfo.cc (_pinfo::set_ctty): Use __ctty to print current console in debugging output. Christopher Faylor 2005-11-17 16:36:00 +0000
  • 0f46c31745 * fhandler_tty.cc (fhandler_tty_slave::open): Don't expect that service applications have no window station attached. Corinna Vinschen 2005-11-17 16:17:17 +0000
  • d55950ba3a * cris/linunistd.h: Don't redefine errno as extern int. Hans-Peter Nilsson 2005-11-17 12:01:44 +0000
  • 9a858ffa7f * times.cc (hires_ms::prime): Don't escalate the priority. Christopher Faylor 2005-11-16 05:12:11 +0000
  • 409d1d50fd * include/sys/elf64.h: Fix types to reflect linux usage. Christopher Faylor 2005-11-14 20:34:33 +0000
  • 548d0080af * fhandler.h (fhandler_console::fixup_after_fork_exec): Define with additional bool parameter. (fhandler_console::fixup_after_exec): Accommodate fixup_after_fork_exec's parameter. (fhandler_console::fixup_after_fork): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Avoid opening new console only when close_on_exec AND execing. Christopher Faylor 2005-11-14 14:15:51 +0000
  • 5a0826c3f8 * fhandler.h (fhandler_console::fixup_after_fork_exec): Declare new function. (fhandler_console::fixup_after_fork): Use fixup_after_fork_exec. (fhandler_console::fixup_after_exec): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork): Delete definition. (fhandler_console::fixup_after_fork_exec): Rename from fixup_after_exec. * pinfo.cc (_pinfo::set_ctty): Don't play with console count here. * syscalls.cc (close_all_files): Don't close cygheap ctty if hExeced since the child will be copying information from us. (setsid): Use myctty() rather than raw ctty #. Christopher Faylor 2005-11-14 05:36:16 +0000
  • 59297e0464 * cygheap.h (init_cygheap::manage_console_count): Declare new function. (init_cygheap::console_count): Renamed from open_fhs. Make private. * cygheap.cc (init_cygheap::manage_console_count): Define new function. * dtable.cc (dtable::fixup_after_exec): Always call fixup_after_exec on elements of fd even when they are about to be closed. * fhandler.h (report_tty_counts): Remove open_fhs from debugging output. * fhandler_console.cc (fhandler_console::open): Use manage_console_count rather than manipulating count directly. (fhandler_console::close): Ditto. (fhandler_console::fixup_after_fork): Ditto. (fhandler_console::fixup_after_exec): Ditto. Don't close handles if close_on_exec. * fhandler_tty.cc (fhandler_tty_slave::open): Use manage_console_count() rather than manipulating count directly. Reflect change in arguments to report_tty_counts(). (fhandler_tty_slave::close): Ditto for both. (fhandler_tty_slave::dup): Ditto for both. (fhandler_tty_slave::ioctl): Use myctty() rather than raw ctty #. (fhandler_tty_slave::fixup_after_fork): Reflect change in arguments to report_tty_counts(). (fhandler_tty_master::init_console): Use manage_console_count() rather than manipulating count directly. * fhandler_clipboard.cc (fhandler_dev_clipboard::fixup_after_exec): Don't perform any operations if close_on_exec. * fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_exec): Ditto. * fhandler_raw.cc (fhandler_dev_raw::fixup_after_exec): Ditto. * fhandler_serial.cc (fhandler_serial::fixup_after_exec): Ditto. * pinfo.h (_pinfo::_ctty): Declare new function. (myctty): Declare new macro. (__ctty): Declare new macro. * pinfo.cc (_pinfo::_ctty): Define new function. (_pinfo::set_ctty): Use manage_console_count() rather than manipulating count directly. * signal.cc (kill_pgrp): Use myctty() and __ctty() macros rather than raw ctty #. * syscalls.cc (setsid): Ditto. Use manage_console_count() rather than manipulating count directly. Christopher Faylor 2005-11-14 04:28:45 +0000
  • 70c500b343 * mips.h: Assign 'm'/'M' codes to MIPS16e save/restore instructions. Define MIPS16_ALL_ARGS and MIPS16_ALL_STATICS for save/restore encoding of the args field. Thiemo Seufer 2005-11-14 02:25:39 +0000
  • 6ba3f6bb2d * fhandler_socket.cc (fhandler_socket::recvfrom): Just return 0 (EOF) in case of WSAESHUTDOWN. (fhandler_socket::recvmsg): Ditto. * poll.cc (poll): Set revents to POLLIN instead of POLLHUP. Add comment. Corinna Vinschen 2005-11-13 16:24:40 +0000
  • 5f27904928 * include/commdlg.h (OPENFILENAMEW): Add members for _WIN32_WINNT >= 0x0500. (OPENFILENAMEA): Modify whitespace. Ansify comment. Danny Smith 2005-11-12 09:49:00 +0000
  • a9f25ffad8 * include/wingdi.h (GetICMProfile{AW}): Correct prototype. Thanks to: Paul J Lucas Danny Smith 2005-11-12 01:10:12 +0000
  • 81cdf522c2 * Makefile.def: Remove gdb dependencies for gdbtk. * Makefile.tpl (CONFIGURE_GDB_TK, INSTALL_GDB_TK): New variables. (configure-gdb, install-gdb): New rules. * configure.in: Set CONFIGURE_GDB_TK and INSTALL_GDB_TK. * Makefile.in, configure: Regenerated. Daniel Jacobowitz 2005-11-11 21:45:22 +0000
  • ecb908f699 * cygheap.h (init_cygheap::_gtod): Remove. * cygwin.din: Export clock_getres and clock_setres. * hires.h (hires_ms::minperiod): Delete declaration. (hires_ms::began_period): Ditto. (hires_ms::prime): Make void. (hires_ms::resolution): Just define here. (hires_ms::usecs): Remove unneeded argument. (gtod): Redeclare as a variable. * timer.cc (timer_thread): Eliminate argument to gtod.usecs(). (timer_tracker::gettime): Ditto. (timer_tracker::settime): Ditto. * times.cc (gettimeofday): Ditto. (hires_ms::began_period): Delete declaration. (hires_us::prime): Remove debugging. (hires_ms::prime): Make void. Eliminate period stuff. (hires_ms::usecs): Eliminate argument to gtod.usecs(). (hires_ms::resolution): New function. (clock_getres): Ditto. (clock_setres): Ditto. * version.h: Bump API version to 143. * include/cygwin/time.h: New file. Christopher Faylor 2005-11-11 16:42:15 +0000
  • 37bd11ed12 * libc/include/sys/time.h: For cygwin, use general header rather than specific "sys/select.h". Christopher Faylor 2005-11-11 16:23:36 +0000
  • eb73481fd0 PR 1150 * readelf.c (get_mips_symbol_other): New function. (get_symbol_other): New function. (process_symbol_table): Call get_symbol_other() to get a description of the st_other field if it contains more information than just the visibility. * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an undefined symbol if it is optional. (_bfd_mips_elf_merge_symbol_attribute): Make sure that the optional flag is merged as well as the visibility. * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype. (elf_backend_merge_symbol_attribute): Define. * mips.h (STO_OPTIONAL): Define. (ELF_MIPS_IS_OPTIONAL): Define. Nick Clifton 2005-11-11 11:06:31 +0000
  • b600843ae4 * times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now. (hires_ms::usecs): Call prime if haven't called began_period(). * param.h: Don't define stuff that is already defined in endian.h. Christopher Faylor 2005-11-11 04:07:30 +0000
  • c845f0c182 * include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin. Christopher Faylor 2005-11-10 21:17:15 +0000
  • 2d015bd67c * bsd_helper.cc (securityinit): New function. Move initialization of security related variables from ipcinit here. * bsd_helper.h (securityinit): Add prototype. * cygserver.cc (main): Call securityinit right after wincap.init. Corinna Vinschen 2005-11-10 15:04:06 +0000
  • 8032f81502 * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT. Corinna Vinschen 2005-11-10 10:50:46 +0000
  • 11b2d6cf16 Fix dates. Corinna Vinschen 2005-11-10 10:36:45 +0000
  • 2d5067835e * syslog.cc (setlogmask): Don't mask the mask. (vsyslog): Fix priority check. Corinna Vinschen 2005-11-10 10:34:49 +0000
  • 03ea3f832e * include/cygwin/signal.h: Add missing sigrelse prototype. Corinna Vinschen 2005-11-10 09:12:22 +0000
  • 8eb445cfd3 * fhandler_base.cc (fhandler_base::readv): Free buf, not a pointer into the middle of buf. Christopher Faylor 2005-11-08 23:25:55 +0000