aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
AgeCommit message (Collapse)AuthorFilesLines
2009-06-12 * Makefile.in (SUBLIBS): Add librt.a.Corinna Vinschen2-1/+9
(librt.a): New rule to build librt.a.
2009-06-12Improve ChangeLog entry. Fix posix_ipc.cc copyrightCorinna Vinschen2-2/+3
2009-06-12 * posix_ipc.cc (check_path): Fix typo in comment. Align namingCorinna Vinschen2-4/+17
convention rules to Linux. Add comment.
2009-06-09 * autoload.cc (GetSystemTimes): Remove.Corinna Vinschen3-35/+44
* fhandler_proc.cc (format_proc_uptime): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Drop call to GetSystemTimes and retrieve SystemPerformanceInformation on all systems again with buffer size big enough for 64 bit systems. (format_proc_stat): Use global system_info rather than retrieving a local copy of the SYSTEM_INFO. Retrieve SystemPerformanceInformation with buffer size big enough for 64 bit systems.
2009-06-08Fix ChangeLog entryCorinna Vinschen1-1/+1
2009-06-08 * autoload.cc (GetSystemTimes): Define.Corinna Vinschen3-39/+61
* fhandler_proc.cc (format_proc_uptime): Use GetSystemInfo to retrieve processor count. Use GetSystemTimes when available to retrieve system idle time. Improve debug output. (format_proc_stat): Use GetSystemInfo to retrieve processor count. Improve debug output. Ignore if SystemPerformanceInformation returns error. Explain why.
2009-06-08 * fork.cc (frok::parent): Remove ancient code erroneously flushingCorinna Vinschen2-4/+5
stdout descriptor.
2009-06-08 * cygerrno.h (save_errno::~save_errno): Set errno directly to avoidCorinna Vinschen2-1/+6
flooding debug output.
2009-06-08 * path.cc (symlink_info::check): Return with error set to ENOENT ifCorinna Vinschen2-1/+7
STATUS_NO_MEDIA_IN_DEVICE is returned.
2009-06-08* cygheap.h (mini_cygheap): New struct.Christopher Faylor9-185/+104
(init_cygheap): Inherit locale field via mini_cygheap. * cygheap.cc (cygheap_at_start): Define new variable. (cygheap): Initialize as cygheap_at_start so that locale information is always available. (cygheap_init): Initialize cygheap iff it is set to cygheap_at_start. * shared_info.h (memory_init): Accommodate argument change. * memory.cc (memory_init): Accept an argument indicating whether cygheap should be initialized or not. * dcrt0.cc (child_info_fork::handle_fork): Pass false to memory_init(). (child_info_spawn::handle_spawn): Ditto. (dll_crt0_0): Pass true to memory_init when not forking or execing. * cygheap.h (cygheap_types::HEAP_2_DLL): New enum. * dll_init.h (dll): Remove unused namelen field. (dll_list::load_after_fork): Accommodate change in arguments. * dll_init.cc (dll_list::alloc): Allocate dll information in the cygwin heap. (dll_list::detach): Free dll information from the cygwin heap. (dll_list::load_after_fork): Use dll information in the cygwin heap directly rather than querying parent. * fork.cc (frok::first_dll): Delete. (frok::child): Don't report on first_dll. Don't pass it to load_on_fork. (frok::parent): Don't set first_dll. (fork): Ditto.
2009-06-07 * dll_init.cc (dll_list::alloc): Allocate memory using a sectionCorinna Vinschen2-25/+72
object. Explain why. Drop call to GetSystemInfo, rather call getpagesize to get allocation granularity. Only align to allocation granularity under WOW64. Use roundup2 to align. (dll_list::detach): Call NtUnmapViewOfSection instead of VirtualFree.
2009-06-06 * mmap.cc: Use NtUnmapViewOfSection instead of UnmapViewOfFileCorinna Vinschen2-5/+12
throughout for symmetry. (fhandler_dev_mem::munmap): Use correct process handle in call to NtUnmapViewOfSection.
2009-06-06 * dll_init.h (struct dll): Set size of name element to ANYSIZE_ARRAY.Corinna Vinschen3-36/+60
* dll_init.cc: Fix formatting. (dll_list::alloc): Only allocate as much memory for struct dll as necessary for given DLL name. (dll_list::load_after_fork): Only read a single page of parent memory. Only read more if namelen indicates that it's necessary.
2009-06-05 * winbase.h (ilockexch): Fix asm constraints.Dave Korn2-11/+25
(ilockcmpexch): Likewise.
2009-06-05 * heap.cc (heap_init): Fix typo in comment.Corinna Vinschen2-1/+5
2009-06-04 * fhandler_clipboard.cc: Avoid calling system_printf.Corinna Vinschen2-103/+112
(set_clipboard): Add basic error checking. Set errno here. Per MSDN, don't call GlobalFree on data block transferred to clipboard. (fhandler_dev_clipboard::write): Drop setting errno after call to set_clipboard. (fhandler_dev_clipboard::read): Add basic error checking. Simplify code.
2009-06-04 * fhandler_console.cc (set_console_title): Convert title string toCorinna Vinschen2-5/+9
wchar_t and call SetConsoleTitleW.
2009-06-04 * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space toCorinna Vinschen2-1/+9
emit a NUL byte.
2009-06-04 * thread.cc (__cygwin_lock_lock): Delete racy optimisation.Dave Korn2-14/+10
(__cygwin_lock_unlock): Likewise.
2009-06-03 * strfuncs.cc (sys_cp_mbstowcs): Fix condition.Corinna Vinschen2-1/+5
2009-06-03 * strfuncs.cc (sys_cp_wcstombs): Implement reverse functionalityCorinna Vinschen2-12/+29
of the change to sys_cp_mbstowcs from 2009-05-30. (sys_cp_mbstowcs): Slightly reformat. Fix comment to accommodate change to sys_cp_wcstombs. Don't write to *ptr if dst is NULL.
2009-06-03 * fhandler_console.cc (fhandler_console::read): Convert Alt-BackspaceCorinna Vinschen2-2/+10
to \033\177 or to \377 dependent on the setting of dev_state->metabit.
2009-06-02 * path.cc (path_conv::check): Don't call set_exec for files on "noacl"Corinna Vinschen2-1/+9
mount points.
2009-05-31* strfuncs.cc (sys_cp_mbstowcs): Treat src as unsigned char *. Convert failureChristopher Faylor2-7/+30
of f_mbtowc into a single malformed utf-16 value.
2009-05-30* cygwin/include/sys/termios.h: Make default erase character "^?".Christopher Faylor2-1/+5
2009-05-30* fhandler_console.cc (fhandler_console::read): Convert backspace key to DEL.Christopher Faylor2-4/+14
2009-05-29* path.cc (cwdstuff::set): Rewrite previous change to properly test the end ofChristopher Faylor2-5/+17
the buffer.
2009-05-28* path.cc (cwdstuff::set): Avoid removing a nonexistent trailing slash.Christopher Faylor3-7/+12
2009-05-20* net.cc (gethostby_helper): Use correct signedness.Christopher Faylor2-35/+40
2009-05-19* mount.cc (mount_info::add_item): Avoid using any-old '/' as indicating root.Christopher Faylor2-1/+6
2009-05-18* mount.cc (mount_info::got_usr_bin): Mark as NO_COPY.Christopher Faylor2-3/+9
(mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto.
2009-05-15 * wchar.h (sys_mbstowcs): Add missing __stdcall attribute.Corinna Vinschen2-1/+5
2009-05-14 * cygheap.cc (cygheap_init): Set Cygwin default locale values.Corinna Vinschen10-57/+95
* cygheap.h (struct cygheap_locale): New structure. (struct user_heap_info): Add cygheap_locale member locale. * dcrt0.cc (dll_crt0_1): Revert to calling _setlocale_r so that only the applications locale is reverted to "C". * environ.cc (environ_init): Remove unused got_lc variable. * fhandler.h (class dev_console): Remove now unsed locale variables. * fhandler_console.cc (fhandler_console::get_tty_stuff): Remove setting dev_console's locale members. (dev_console::con_to_str): Use internal locale settings. Default to __ascii_wctomb if charset is "ASCII". (fhandler_console::write_normal): Ditto. * strfuncs.cc (__ascii_wctomb): Drop declaration. (__db_wctomb): Use fixed value 2 instead of not necessarily matching MB_CUR_MAX. (__eucjp_wctomb): Use 3 instead of MB_CUR_MAX. (sys_cp_wcstombs): Remove special case for "C" locale. (sys_wcstombs): Implement here. Use internal locale data stored on cygheap. (sys_cp_mbstowcs): Remove special case for "C" locale. (sys_mbstowcs): Implement here. Use internal locale data stored on cygheap. * syscalls.cc (internal_setlocale): New function to set cygheap locale data and to reset CWD posix path. (setlocale): Just call internal_setlocale from here if necessary. * wchar.h (__ascii_wctomb): Declare. (sys_wcstombs): Don't define inline, just declare. (sys_mbstowcs): Ditto.
2009-05-14* mount.cc (mount_info::init): Remove MOUNT_CYGWIN_EXEC setting whenChristopher Faylor2-1/+6
auto-mounting /usr/bin.
2009-05-14 * mount.cc (oopts): Add a no-op "auto" option.Corinna Vinschen2-1/+8
(mount_info::create_root_entry): Set root dir to MOUNT_IMMUTABLE rather than to MOUNT_OVERRIDE.
2009-05-14cygwin ChangeLogChristopher Faylor4-37/+122
2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (mount_info::got_usr_bin): Define. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. (mount_info::create_root_entry): Create root entry as immutable and flag as automatic. (mount_info::init): Remove "Huh? No /etc/fstab..." warning. Unconditionally call from_fstab for user and system tables. Fill in /usr/bin and /usr/lib if they have not been specified in /etc/fstab. (oopts): Alphabetize. Add "override" option to allow overriding immutable mount points. (mount_info::add_item): Accommodate new MOUNT_IMMUTABLE flag intended for root mount. (mount_info::add_item): Detect "/usr/bin", "/usr/lib", and "/" and set appropriate global state. (fillout_mntent): Add ,auto to mount points added by Cygwin DLL. (mount): Remove masking of MOUNT_SYSTEM. Allow user to shoot themselves. Add comment. * mount.h (mount_info::got_usr_bin): Declare. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. * include/sys/mount.h: Reformat enum. Add MOUNT_{OVERRIDE,IMMUTABLE,AUTOMATIC}. doc ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * pathnames.sgml (mount-table): Sort mount options and add override option. Add description of root mount handling. utils ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (oopts): Sort. Add override option. Add dummy "auto" option for consistency. (mount_entries): Avoid adding auto-mounted entries to -m output. * utils.sgml: Sort mount options. Add description of override option.
2009-05-13 * cygheap.h (cwdstuff): Convert to class. Make posix and dir private.Corinna Vinschen7-11/+75
(cwdstuff::get_posix): New method. (cwdstuff::reset_posix): New method. * dcrt0.cc (dll_crt0_1): Call setlocale rather than _setlocale_r. * environ.cc (environ_init): Ditto. Prefer "C" locale over current codepage default locale. * path.cc (chdir): Use cwdstuff::get_posix method instead of accessing cwdstuff::posix directly. (cwdstuff::set): Defer creating posix path to first usage. (cwdstuff::get_posix): Create posix path if it's empty, and return it. (cwdstuff::get): Create posix path if it's empty. * strfuncs.cc (sys_cp_wcstombs): Use UTF-8 conversion in the "C" locale. (sys_cp_mbstowcs): Ditto. * syscalls.cc (gen_full_path_at): Fetch CWD posix path locked. (setlocale): Implement here. Reset CWD posix path.
2009-05-09* cygwin/version.h (CYGWIN_VERSION_CYGWIN_CONV): New define.Christopher Faylor2-0/+6
2009-05-09 * dtable.cc (dtable::init_std_file_from_handle): Add workaround forCorinna Vinschen4-3/+96
Windows 7 64 bit issue. Add lengthy comment to explain what happens. * wincap.h (wincaps::has_console_handle_problem): New element. * wincap.cc: Implement above element throughout. (wincap_7): New wincaps structure for NT 6.1 kernels. (wincapc::init): Set has_console_handle_problem to false for 32 bit systems. Fix broken older ChangeLog entry.
2009-05-09 * sec_auth.cc (str2uni_cat): Move from here...Corinna Vinschen4-18/+21
* path.cc (str2uni_cat): ...to here. Simplify. Make static inline. (get_nt_native_path): Use RtlAppendUnicodeToString rather than str2uni_cat for constant strings for speed. * security.h (str2uni_cat): Drop declaration.
2009-05-08 * strfuncs.cc (sys_cp_wcstombs): save and restore previous errno value.Corinna Vinschen2-1/+8
(sys_cp_mbstowcs): Ditto.
2009-05-08 * strfuncs.cc (sys_cp_wcstombs): Set errno to 0 before convertingCorinna Vinschen2-0/+6
wide char to SO/UTF-8 sequence.
2009-05-08 * include/sys/select.h: Guard definitions with __USE_W32_SOCKETS asCorinna Vinschen2-2/+7
the accompanying fd_set definitions in newlib's sys/types.h.
2009-05-06* fhandler_console.cc (fhandler_console::ioctl): Properly treat TIOCLINUXChristopher Faylor3-3/+10
argument as a char. * fhandler_tty.cc (fhandler_tty_slave::ioctl): Use coercion to properly set char value.
2009-05-06 * libc/minires.c (scanline): Fix type in calls to ctype functionsCorinna Vinschen4-10/+17
to stay in unsigned char range for char values >= 0x80. * regex/regcomp.c: Ditto, throughout. * regex/regex2.h (ISWORD): Ditto.
2009-05-06 * cygheap.cc (cygheap_init): Set umask to a sane default.Corinna Vinschen3-18/+12
* uinfo.cc (cygheap_user::ontherange): Don't use HOMEDRIVE/HOMEPATH to set HOME. Default to /home/USERNAME.
2009-05-04 * security.cc (set_file_sd): Drop using FILE_OPEN_FOR_RECOVERY flag inCorinna Vinschen6-23/+26
call to NtOpenFile. * exceptions.cc (open_stackdumpfile): Ditto in call to NtCreateFile. * fhandler.cc (fhandler_base::open): Ditto. Simplify setting create_options. * mount.cc (fs_info::update): Recognize offline storage. (fillout_mntent): Report UDF and offline storage. * mount.h (class fs_info): Add is_csc_cache status flag.
2009-05-04* fhandler_console.cc (fhandler_console::write_console): Eliminate unneededChristopher Faylor2-3/+6
debugging output. (fhandler_console::write_normal): Eliminate unneeded __seterrno.
2009-05-04* libc/minires.c (scanline): Accommodate ctype changes which disallow use of anChristopher Faylor4-10/+17
unadorned char argument to is* macros. * regex/regcomp.c: Ditto, throughout. * regex/regex2.h (ISWORD): Ditto.
2009-05-04* fhandler.h (fhandler_console::MAX_WRITE_CHARS): Declare.Christopher Faylor3-15/+46
(fhandler_console::write_replacement_char): Declare as inline. (fhandler_console::write_console): Declare new function. * fhandler_console.cc (fhandler_console::MAX_WRITE_CHARS): Define. (handler_console::write_console): Define. (fhandler_console::write_replacement_char): Define as inline. (fhandler_console::write_normal): Use write_console when writing buffers of unknown length.