summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * acinclude.m4: Remove libide, libgui, and all the other TclKeith Seitz2008-07-253-1277/+3246
| | | | | functions. * tcl.m4: New file.
* * dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1Corinna Vinschen2008-07-257-24/+79
| | | | | | | | | | | | | | | | | | | here in case we're dynamically loaded. Explain why. (dll_crt0_1): Call user_shared_initialize_1 from here. * mount.cc (is_native_path): New inline function testing for native and long Win32 path prefix. (is_unc_share): Remove long WIn32 path prefix test. (mount_info::create_root_entry): Use PATH_MAX buffer. (mount_info::init): Ditto. (mount_info::add_item): Test for is_native_path as well. * path.cc (normalize_win32_path): Simplify native path prefix code. * shared.cc (user_shared_initialize_1): New function taking user shared initialization code relying on malloc and cygtls. (user_shared_initialize): Move mountinfo initialization to user_shared_initialize_1. * shared_info.h (user_shared_initialize_1): Declare. * syscalls.cc (seteuid32): Call user_shared_initialize_1 after user changed.
* * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.Christopher Faylor2008-07-254-1835/+2600
| | | | | | (oopts): Use boolean constants for slightly increased clarity. * configure.in: Remove apparently unneeded program_transfer_name code. * configure: Regenerate.
* * utils.sgml: Remove useless text.Corinna Vinschen2008-07-252-10/+6
|
* 2008-07-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2008-07-252-0/+17
| | | | | * include/winuser.h (MENUGETOBJECTINFO, MNGO_NOINTERFACE, MNGO_NOERROR, MNGOF_TOPGAP, MNGOF_BOTTOMGAP): Define.
* 2008-07-24 techrazy <techrazy@users.sourceforge.net>Chris Sutcliffe2008-07-252-0/+6
| | | | * include/wingdi.h (OUT_PS_ONLY_PRECIS): Define.
* * mount.cc (mount_info::from_fstab): Change system_printf toCorinna Vinschen2008-07-242-1/+6
| | | | debug_printf on NtOpenFile failure.
* * shared.cc (user_shared_initialize): Fetch potentially changed CygwinCorinna Vinschen2008-07-2410-89/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | username from /etc/passwd before loading mount table. (shared_info::init_installation_root): New function fetching Cygwin's installation root dir and storing as native NT path in global shared memory. (shared_info::initialize): Call init_installation_root exactly once at first startup. * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add installation_root member. (shared_info::init_installation_root): Declare. * grp.cc (pwdgrp::read_group): Call pwdgrp::load with native WCHAR path. * passwd.cc (pwdgrp::read_passwd): Ditto. Avoid recursion. (etc::init): Take POBJECT_ATTRIBUTES instead of path_conv. * path.h (etc::init): Change prototype accordingly. * pwdgrp.h (class pwdgrp): Store path as UNICODE_STRING/PWCHAR instead of as path_conv. (pwdgrp::load): Accommodate prototype. * uinfo.cc (pwdgrp::load): Change argument type from char to wchar_t. Create native NT path here instead of calling path_conv. * mount.cc (find_root_from_cygwin_dll): Drop in favor of global initializaion in shared_info. (mount_info::init): Fetch native NT root dir from cygwin_shared. (mount_info::from_fstab): Expect native NT path and use native NT functions to access file. Convert username part in user fstab path according to special char transformation rules. * path.cc (tfx_chars): Convert slash to backslash. (transform_chars): Implement for path given as PWCHAR. (transform_chars): PUNICODE_STRING version calls PWCHAR version. Remove useless commented code.
* 2008-07-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-242-0/+8
| | | | | * libc/include/ctype.h (_ctype_): Restore for C++ backward compatability only.
* * include/lmaccess.h (struct _USER_INFO_4): Define.Corinna Vinschen2008-07-242-1/+51
| | | | | (struct _USER_INFO_23): Define. (struct _GROUP_INFO_3): Define.
* * mkgroup.c (main): Fix test for duplicate domain/machine request.Corinna Vinschen2008-07-233-9/+32
| | | | * mkpasswd.c (main): Ditto.
* * mkgroup.c: Rework to allow per-domain/per-machine id_offset.Corinna Vinschen2008-07-234-166/+192
| | | | | | | | | Add -b option to skip builtin groups. (main): Simplify code. * mkpasswd.c: Rework to allow per-domain/per-machine id_offset. (main): Simplify code. * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options. Add mkgroup -b option.
* * mkgroup.c: Consolidate variable names.Corinna Vinschen2008-07-234-44/+323
| | | | | | | | | | | | | | | | | | (enum_unix_groups): New function. (print_special): Use LookupAccountSidW instead of LookupAccountSidA. (current_group): Ditto. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * mkpasswd.c: Consolidate variable names. (current_user): Use LookupAccountSidW instead of LookupAccountSidA. (enum_unix_users): New function. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
* * spawn.cc (spawn_guts): Fix previous patch for UNC paths.Corinna Vinschen2008-07-232-1/+5
|
* * mkgroup.c (enum_groups): Create full qualified groupname usingCorinna Vinschen2008-07-223-2/+10
| | | | | domain or servername, depending on printing domain or machine accounts. * mkpasswd.c (enum_users): Ditto for users.
* * mkgroup.c (main): Remove special root group code. Only printCorinna Vinschen2008-07-222-24/+22
| | | | SYSTEM group in case of printing local machine or local domain groups.
* Remove erroneous ChangeLog entry.Corinna Vinschen2008-07-221-11/+0
|
* * spawn.cc (spawn_guts): Remove long path prefix from win32 pathCorinna Vinschen2008-07-222-0/+19
| | | | before calling CreateProcess if path length is < MAX_PATH.
* * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen2008-07-229-928/+925
| | | | | | | | | | | | | | | | | | | | * bloda.cc: Use statically linked functions throughout. * cygpath.cc: Drop 9x considerations. * mkgroup.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique groupnames in domain\group syntax. Add -S option to define domain\group separator char. Ignore -u and -s options. * mkpasswd.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique usernames in domain\user syntax. Add -S option to define domain\user separator char. Ignore -g and -s options. Prefer to take homedir from $HOME over $HOMEDRIVE/$HOMEPATH. * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options. (getmntent): Accomodate throughout. * ps.cc: Fix copyright dates. * utils.sgml: Fix text for mkgroup and mkpasswd.
* * include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy.Corinna Vinschen2008-07-222-0/+7
|
* 2008-07-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-2113-24/+44
| | | | | | | | | | | | | | | | | | * libc/ctype/ctype_.c: Add new pointer __ctype_ptr__ which is one less than the old __ctype_ptr. * libc/ctype/isalnum.c: Use __ctype_ptr__. * libc/ctype/isalpha.c: Ditto. * libc/ctype/iscntrl.c: Ditto. * libc/ctype/isdigit.c: Ditto. * libc/ctype/islower.c: Ditto. * libc/ctype/isprint.c: Ditto. * libc/ctype/ispunct.c: Ditto. * libc/ctype/isspace.c: Ditto. * libc/ctype/isupper.c: Ditto. * libc/ctype/isxdigit.c: Ditto. * libc/include/ctype.h: Change ctype macros to use new __ctype_ptr__ and add declaration of __ctype_ptr__. Remove older ctype table pointers from here even though they can still work.
* * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen2008-07-211-0/+11
| | | | | | | | | | * bloda.cc: link against ntdll functions statically. * cygpath.cc (get_user_folder): Drop 9x code. (print_version): Fix copyright. * mkgroup.c: Remove 9x code. * mkpasswd.c: Ditto. * path.cc (oopts): Add new mount options. * ps.cc: Fix copyright.
* * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.Luis Machado2008-07-212-0/+6
| | | | | | | | | * bfd/elf.c (elfcore_grok_ppc_vsx): New function. (elfcore_write_ppc_vsx): New function (elfcore_grok_note): Handle VSX notes. (elfcore_write_register_note): Handle VSX notes. * include/elf/common.h: Define NT_PPC_VSX. * binutils/readelf.c (get_note_type): Handle VSX notes.
* * autoload.cc (WNetGetProviderNameA): Define.Corinna Vinschen2008-07-193-34/+101
| | | | | | | | | | | | (WNetGetResourceParentA): Remove. * fhandler_netdrive.cc (struct net_hdls): New structure to keep WNet handles. Stored in dir->__handle throughout. (thread_netdrive): Rewrite to enumerate all servers in all accessible domains and workgroups. (fhandler_netdrive::readdir): Simplify toplevel code. Lowercase all server names in toplevel. (fhandler_netdrive::rewinddir): Close all WNet handles and free net_hdls structure.
* 2008-07-18 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-07-182-2/+6
| | | | * libc/machine/spu/strcpy.h: Fix error in previous patch.
* * fhandler.cc (fhandler_base::open): Rename x to fh. On Samba, alwaysCorinna Vinschen2008-07-182-17/+30
| | | | | create file with NULL security descriptor and set the permissions afterwards. Explain why.
* * cygwinenv.sgml: Move binmode option to list of removed options.Corinna Vinschen2008-07-182-15/+14
|
* * environ.cc (known): Remove "binmode" option.Corinna Vinschen2008-07-186-11/+11
| | | | | | | | * fhandler.cc (binmode): Remove. (fhandler_base::set_flags): Accommodate binmode removal. * path.h (path_conv::set_binary): Remove. * pipe.cc (pipe): Create pipes always as binary pipes. * winsup.h (binmode): Remove declaration.
* 2008-07-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-172-2/+11
| | | | | * libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
* 2008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-07-172-1/+13
| | | | * spu/syscalls.c: Check and set the errno value.
* 2008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-07-172-0/+8
| | | | * libc/machine/spu/strcpy.h: Pad null bytes if necessary.
* * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen2008-07-173-27/+10
| | | | | | | (oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
* * mount.cc (mount_info::from_fstab_line): Default to binary mount.Corinna Vinschen2008-07-172-1/+5
|
* * Revamp documentation for Cygwin 1.7, part 1.Corinna Vinschen2008-07-1716-755/+917
|
* * utils.sgml: Add id's to all examples.Corinna Vinschen2008-07-172-13/+17
|
* * path.cc (allow_winsymlinks): Revert default to create system bitCorinna Vinschen2008-07-162-1/+6
| | | | symlinks for speed.
* Add case-sensitivity.Corinna Vinschen2008-07-1622-490/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unconditionally handle mount points case-sensitive. Unconditionally handle virtual paths case-sensitive. Unconditionally handle registry paths case-insensitive. Otherwise, accommodate case-sensitivity of given path throughout. * cygheap.cc (cygheap_root::set): Get additional caseinsensitive parameter and store it. * cygheap.h (struct cygheap_root_mount_info): Add member caseinsensitive. * dlfcn.cc (get_full_path_of_dll): Drop PC_NOFULL parameter from call to path_conv::check. * environ.cc (pcheck_case): Remove. (check_case_init): Remove. (known): Drop "check_case" option. * exceptions.cc (open_stackdumpfile): Add comment. * fhandler.cc (fhandler_base::get_default_fmode): Call pathmatch instead of strcasematch. * fhandler_disk_file.cc: Accommodate case-sensitivity of given path throughout. (__DIR_mounts::check_mount): Unconditionally check virtual paths case-sensitive. (fhandler_disk_file::link): Drop case clash handling. (fhandler_disk_file::open): Ditto. (fhandler_disk_file::readdir_helper): Drop managed mount code. * mount.cc: Remove managed mount code and datastructures. (struct opt): Remove "managed" option. Add "posix=0" and "posix=1" options. (fillout_mntent): Remove "managed" output. Add "posix" output. * path.cc (struct symlink_info): Remove case_clash member and case_check method. (pcheck_case): Remove. (path_prefix_p): Take additional bool parameter "caseinsensitive". (pathnmatch): Ditto. (pathmatch): Ditto. (mkrelpath): Ditto. (fs_info::update): Set caseinsensitive flag according to file system name and FILE_CASE_SENSITIVE_SEARCH flag. Add comment. (tfx_chars_managed): Remove. (transform_chars): Drop "managed" parameter. Always use tfx_chars. (get_nt_native_path): Drop "managed" parameter. Make sure drive letters are always upper case. (getfileattr): Change second parameter to denote caseinsensitivity. (path_conv::check): Initialize caseinsensitive to OBJ_CASE_INSENSITIVE. Set caseinsensitive according to global obcaseinsensitive flag, file system case sensitivity and MOUNT_NOPOSIX mount flag. Drop case_clash and all the related code. (symlink_worker): Drop case clash handling. (symlink_info::set): Drop setting case_clash. (symlink_info::case_check): Remove. (cwdstuff::set): Add comment. (etc::init): Take path_conv instead of PUNICODE_STRING as parameter to allow case sensitivity. * path.h (enum pathconv_arg): Drop PC_SYM_IGNORE. (enum case_checking): Remove. (enum path_types): Drop PATH_ENC, add PATH_NOPOSIX flag. (struct fs_info): Add caseinsensitive flag and accessor methods. (class path_conv): Add caseinsensitive member and define objcaseinsensitive method. Drop case_clash member and isencoded method. (pathmatch): Change prototype according to above change. (pathnmatch): Ditto. (path_prefix_p): Ditto. (get_nt_native_path): Ditto. (class etc): Ditto. (fnunmunge): Remove prototype. * shared.cc (shared_info::init_obcaseinsensitive): Initialize obcaseinsensitive flag from obcaseinsensitive registry value. (shared_info::initialize): Call init_obcaseinsensitive here by the first process creating the shared memory. * shared_info.h (mount_item::fnmunge): Remove. (shared_info::obcaseinsensitive): Rename from obcaseinsensitivity. (shared_info::init_obcaseinsensitive): Declare. * syscalls.cc (try_to_bin): Add comment. * include/sys/mount.h (MOUNT_ENC): Remove flag. (MOUNT_NOPOSIX): Add flag.
* * cyglsa-config: Always create a /bin/cyglsa directory and copy theCorinna Vinschen2008-07-162-13/+26
| | | | LSA DLL there. Register this copy in the registry.
* * fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.Corinna Vinschen2008-07-155-40/+25
| | | | | | | | | | | | | | Just initialize drive data. * mtinfo.h (MTINFO_MAGIC): Remove. (MTINFO_VERSION): Remove. (class mtinfo): Remove magic and version members. * shared.cc (shared_info::initialize): Move call to get_session_parent_dir so that the dir creation is only called once. Move call to mt.initialize so that it's called only by the first process creating the shared memory. * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add obcaseinsensitivity member.
* * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.Corinna Vinschen2008-07-154-2/+11
| | | | | * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Fix comment.
* * fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONSCorinna Vinschen2008-07-142-1/+6
| | | | and _PC_POSIX_SECURITY, return true for NFS, too.
* Throughout drop allow_ntsec and allow_smbntsec handling.Corinna Vinschen2008-07-1413-56/+51
| | | | | | | | | | | | | | | | * environ.cc (set_ntsec): Remove. (set_smbntsec): Remove. (known): Remove ntsec and smbntsec options. * external.cc (check_ntsec): Return true if no filename is given. * mount.cc (oopts): Add "acl" and "noacl" options. Set MOUNT_NOACL flag accordingly. (fillout_mntent): Handle MOUNT_NOACL flag. * path.h (enum path_types): Add PATH_NOACL. * security.cc (allow_ntsec): Remove. (allow_smbntsec): Remove. * security.h (allow_ntsec): Drop declaration. (allow_smbntsec): Drop declaration. * include/sys/mount.h (MOUNT_NOACL): Define.
* * miscfuncs.cc (cygwin_strncasecmp): Fix bug which results inCorinna Vinschen2008-07-142-6/+10
| | | | | prematurely truncated strings. Simplify target length argument to sys_mbstowcs.
* * autoload.cc (GetExtendedTcpTable): Define.Corinna Vinschen2008-07-144-20/+68
| | | | | | | | | * fhandler_socket.cc (address_in_use): Take const struct sockaddr pointer as argument. Implement additional AF_INET6 table check. (fhandler_socket::bind): Drop AF_INET test before calling address_in_use. * net.cc (ipv4_getnameinfo): Return EAI_FAMILY instead of 1 if called with unsupported af_family.
* * include/iphlpapi.h (GetExtendedTcpTable): Add prototype.Corinna Vinschen2008-07-144-0/+49
| | | | | | | * include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID, MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID, MIB_TCP6TABLE_OWNER_PID): Define. * lib/iphlpapi.def (GetExtendedTcpTable): Export.
* * cyglsa.c: Don't include ntddk.h.Corinna Vinschen2008-07-135-12/+40
| | | | | | | | | | | | | (RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead of "inline". (uni_alloc): Change second argument to USHORT. (printf): Move definition of ap to make Visual-C++ happy. (LsaApLogonUserEx): Compute size of datastructure returned to LSA on 64 bit systems correctly to avoid heap corruption. * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft toolchains. Add more comment. * mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser.
* Fix usage of recently fixed Interlocked* functions.Eric Blake2008-07-122-10/+15
| | | | | * winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add volatile qualifier, to match Interlocked* functions.
* Revert my last change since it has not been approved.Jie Zhang2008-07-123-6/+9
|
* bfd/Jie Zhang2008-07-113-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf.c (_bfd_elf_map_sections_to_segments): Don't put executable sections into the same segment with other read only sections if --sep-code. * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. (elf32_bfin_data_in_l1): New variable. (elf32_bfin_final_write_processing): New. (elf32_bfin_special_sections[]): New. (elf_backend_final_write_processing): Define. (elf_backend_special_sections): Define. binutils/ * readelf.c (get_machine_flags): Deal with Blackfin specific flags. include/ * bfdlink.h (struct bfd_link_info): Add sep_code member variable. * elf/bfin.h (EF_BFIN_CODE_IN_L1): Define. (EF_BFIN_DATA_IN_L1): Define. ld/ * Makefile.am (eelf32bfin.c): Depend on bfin.em. (eelf32bfinfd.c): Likewise. * Makefile.in: Regenerate. * gen-doc.texi: Set Blackfin. * ld.texinfo: Document --sep-code and Blackfin specific options. * ldmain.c (main): Initialize link_info.sep_code. * lexsup.c (enum option_values): Add OPTION_SEP_CODE. (ld_options[]): Add --sep-code. (parse_args): Deal with --sep-code. * emulparams/bfin.sh (EXTRA_EM_FILE): Define. * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. * emultempl/bfin.em: New file.
* * select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.Corinna Vinschen2008-07-112-4/+10
|