summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * cygheap.cc (cygheap_init): Set Cygwin default locale values.Corinna Vinschen2009-05-1410-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.
* * mount.cc (mount_info::init): Remove MOUNT_CYGWIN_EXEC setting whenChristopher Faylor2009-05-142-1/+6
| | | | auto-mounting /usr/bin.
* * faq-setup.xml (faq.setup.upgrade-mountpoints): New entry.Corinna Vinschen2009-05-144-5/+49
| | | | | | | * faq-using.xml (faq.using.directory-structure): Align example to latest mount output. * pathnames.sgml (mount-table): Add note about upgrade helper scripts to create /etc/fstab and /etc/fstab.f/${USER}.
* * new-features.sgml: Add automounting of /, /usr/bin, and /usr/lib.Corinna Vinschen2009-05-143-9/+36
| | | | | | | | * pathnames.sgml (pathnames-intro): Be more verbose about POSIX and Win32 paths. (mount-table): Add "auto" flag. Add a paragraph about /usr/bin and /usr/lib. (pathnames-mount-ex): Enhance flags output.
* * mount.cc (oopts): Add a no-op "auto" option.Corinna Vinschen2009-05-142-1/+8
| | | | | (mount_info::create_root_entry): Set root dir to MOUNT_IMMUTABLE rather than to MOUNT_OVERRIDE.
* cygwin ChangeLogChristopher Faylor2009-05-149-70/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * pathnames.sgml (pathnames-unusual): Talk about using UTF-8 in CCorinna Vinschen2009-05-133-4/+18
| | | | | locale. * setup2.sgml (setup-locale-problems): Ditto.
* * cygheap.h (cwdstuff): Convert to class. Make posix and dir private.Corinna Vinschen2009-05-137-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.
* * Makefile.in: Link ps.exe agains ntdll.dll.Corinna Vinschen2009-05-113-2/+83
| | | | | | | * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes have to be enumerated. Workaround EnumProcessModules problem when running under WOW64 and use NtQueryInformationProcess to fetch process image name.
* * cygwin/version.h (CYGWIN_VERSION_CYGWIN_CONV): New define.Christopher Faylor2009-05-092-0/+6
|
* * dtable.cc (dtable::init_std_file_from_handle): Add workaround forCorinna Vinschen2009-05-094-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.
* * sec_auth.cc (str2uni_cat): Move from here...Corinna Vinschen2009-05-094-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.
* * strfuncs.cc (sys_cp_wcstombs): save and restore previous errno value.Corinna Vinschen2009-05-082-1/+8
| | | | (sys_cp_mbstowcs): Ditto.
* * strfuncs.cc (sys_cp_wcstombs): Set errno to 0 before convertingCorinna Vinschen2009-05-082-0/+6
| | | | wide char to SO/UTF-8 sequence.
* * include/sys/select.h: Guard definitions with __USE_W32_SOCKETS asCorinna Vinschen2009-05-082-2/+7
| | | | the accompanying fd_set definitions in newlib's sys/types.h.
* * fhandler_console.cc (fhandler_console::ioctl): Properly treat TIOCLINUXChristopher Faylor2009-05-063-3/+10
| | | | | | argument as a char. * fhandler_tty.cc (fhandler_tty_slave::ioctl): Use coercion to properly set char value.
* * Move ChangeLog entry.Corinna Vinschen2009-05-062-5/+5
|
* * libc/minires.c (scanline): Fix type in calls to ctype functionsCorinna Vinschen2009-05-064-10/+17
| | | | | | to stay in unsigned char range for char values >= 0x80. * regex/regcomp.c: Ditto, throughout. * regex/regex2.h (ISWORD): Ditto.
* * faq-setup.xml: Fix entry explaing how the homedir is evaluatedCorinna Vinschen2009-05-062-4/+6
| | | | according to recent change.
* * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generateCorinna Vinschen2009-05-065-30/+25
| | | | | | | | | user's homedir. * mkgroup.c: Accommodate ctype changes. * mkpasswd.c: Ditto. * setfacl.c: Ditto. * ssp.c: Ditto.
* * cygheap.cc (cygheap_init): Set umask to a sane default.Corinna Vinschen2009-05-063-18/+12
| | | | | * uinfo.cc (cygheap_user::ontherange): Don't use HOMEDRIVE/HOMEPATH to set HOME. Default to /home/USERNAME.
* * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if find_on_pathChristopher Faylor2009-05-042-0/+8
| | | | doesn't find the app on the path.
* * cygcheck.cc (usage): Fix option order and print.Corinna Vinschen2009-05-042-5/+10
|
* * security.cc (set_file_sd): Drop using FILE_OPEN_FOR_RECOVERY flag inCorinna Vinschen2009-05-046-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.
* * fhandler_console.cc (fhandler_console::write_console): Eliminate unneededChristopher Faylor2009-05-042-3/+6
| | | | | debugging output. (fhandler_console::write_normal): Eliminate unneeded __seterrno.
* * libc/minires.c (scanline): Accommodate ctype changes which disallow use of anChristopher Faylor2009-05-044-10/+17
| | | | | | unadorned char argument to is* macros. * regex/regcomp.c: Ditto, throughout. * regex/regex2.h (ISWORD): Ditto.
* * fhandler.h (fhandler_console::MAX_WRITE_CHARS): Declare.Christopher Faylor2009-05-043-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.
* 2009-05-01 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-05-023-0/+17
| | | | | | * include/shellapi.h (SHIL_LARGE, SHIL_SMALL, SHIL_EXTRALARGE, SHIL_SYSSMALL, SHIL_JUMBO, SHIL_LAST SHIL_JUMBO, SHGetImageList): Define. * lib/shell32.def (SHGetImageList): Define.
* * include/cygwin/socket.h: Define SOL_IPV6.Christopher Faylor2009-04-272-0/+5
|
* * strace.cc (create_child): Set CYGWIN=noglob when starting new process so thatChristopher Faylor2009-04-222-1/+16
| | | | Cygwin will leave already-parsed the command line alonw.
* * ctype.cc (__set_ctype): Copy exact part of the current activeCorinna Vinschen2009-04-212-2/+7
| | | | character class array.
* * flock.cc (lf_setlock): Handle border case which results in WFMO loopCorinna Vinschen2009-04-202-0/+14
| | | | | exiting with ret == WAIT_TIMEOUT gracefully. Add a system_printf to uncover other potential problems with WFMO loop.
* * mkimport: Specify .text for stub explicitly.Christopher Faylor2009-04-183-7/+36
| | | | | * speclib: Add a dummy '.idata$7' section referring to the dll associated with the real import library.
* * dcrt0.cc (globify): Only call mbtowc for non-ascii chars.Corinna Vinschen2009-04-182-1/+5
|
* * dcrt0.cc (globify): Make multibyte-aware.Corinna Vinschen2009-04-172-1/+13
|
* * flock.cc (class inode_t): Add i_wait member and matching methodsCorinna Vinschen2009-04-172-4/+25
| | | | | | | | | | wait(), unwait(), and waiting(). (inode_t::inode_t): Initialize i_wait to 0. (fhandler_disk_file::lock): Only remove node if no other thread is waiting for a blocking lock. (lf_setlock): Manipulate node->i_wait to signal that a thread is waiting for a blocking lock in this node. (lf_findoverlap): Reinstantiate SELF test as in original code.
* * dlfcn.cc (get_full_path_of_dll): Just return a bool value. DropCorinna Vinschen2009-04-162-23/+31
| | | | | | | local path_conv in favor of getting it as parameter. Add local string buffer instead of getting it as parameter. (dlopen): Accommodate get_full_path_of_dll change. Fetch WCHAR Windows path from path_conv variable and call LoadLibraryW.
* * ntdll.h (STATUS_LOCK_NOT_GRANTED): Define.Corinna Vinschen2009-04-163-2/+19
| | | | | * syscalls.cc (unlink_nt): Handle STATUS_LOCK_NOT_GRANTED same as STATUS_SHARING_VIOLATION. Add lengthy comment to explain why.
* * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's reallyCorinna Vinschen2009-04-152-9/+18
| | | | | given. Do backslash to slash conversion for mixed paths after handling \\?\ prefix.
* * path.cc (path_conv::get_wide_win32_path): Allow relative paths.Corinna Vinschen2009-04-152-6/+24
| | | | | | (cygwin_conv_path): In case of CCP_POSIX_TO_WIN_W, convert relative paths to absolute paths if the relative pathname length exceeds MAX_PATH.
* * libc/bsdlib.cc: Align copyright with upstream.Corinna Vinschen2009-04-158-27/+10
| | | | | | | | | * libc/fnmatch.c: Ditto. * libc/fts.c: Ditto. * libc/inet_addr.c: Ditto. * libc/inet_network.c: Ditto. * libc/rcmd.cc: Ditto. * libc/rexec.cc: Ditto.
* * speclib: Really revert to using tempdir.Christopher Faylor2009-04-142-2/+6
|
* * speclib: Revert to using tempdir.Christopher Faylor2009-04-142-1/+5
|
* * localtime.cc (tzload): Implement setting __tzrule's offset memberCorinna Vinschen2009-04-142-0/+10
| | | | | using newlib's __gettzinfo () interface also when tzload returns successfully.
* * include/stdint.h (intptr_t): Remove long from type.Dave Korn2009-04-132-5/+12
| | | | | | (uintptr_t): Likewise. (INTPTR_MIN): Remove 'L' suffix. (INTPTR_MAX, UINTPTR_MAX): Likewise.
* * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.Dave Korn2009-04-132-1/+5
|
* * speclib: Initial stab at cleaning up temp files. More work needed.Christopher Faylor2009-04-123-4/+14
| | | | * mkimport: Ditto.
* * Makefile.in (clean): Clean globals.h.Christopher Faylor2009-04-122-2/+7
| | | | (LIBCOS): Depend on globals.h.
* * mkimport: New script to perform all operations necessary to createChristopher Faylor2009-04-126-139/+188
| | | | | | | | | | | | | | | | libcygwin.a. * rmsym: Delete. * newsym: Delete. * Makefile.in (toolopts): New variable which holds options relating to binutils/gcc tools. (speclib): Use toolopts. Add symbols to avoid copying to special libraries. (OBSOLETE_FUNCTIONS): Delete. (NEW_FUNCTIONS): Change to represent an argument to new mkimport script. (libcygwin.a): Use only new mkimport script to create libcygwin.a. Only rely on ${LIBCOS}. (*/lib*.a): Simplify speclib dependencies. (speclib): Accept toolchain options. Convert every argument to absolute path. Simplify parsing of nm output. Accommodate new exclude option.
* 2009-04-11 Danny Smith <dannsymith@users.sourceforge.net>Chris Sutcliffe2009-04-112-7/+13
| | | | | | * include/stdint.h (int_fast8_t): Specify as signed char. (INT8_C, UINT8_C, INT16_C, UINT16_C): Simplify: just allow promotion to int. (INT32_C, UINT32_C): Remove 'L' type specifier on constant.