aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-07-252008-07-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2-0/+17
* include/winuser.h (MENUGETOBJECTINFO, MNGO_NOINTERFACE, MNGO_NOERROR, MNGOF_TOPGAP, MNGOF_BOTTOMGAP): Define.
2008-07-252008-07-24 techrazy <techrazy@users.sourceforge.net>Chris Sutcliffe2-0/+6
* include/wingdi.h (OUT_PS_ONLY_PRECIS): Define.
2008-07-24 * mount.cc (mount_info::from_fstab): Change system_printf toCorinna Vinschen2-1/+6
debug_printf on NtOpenFile failure.
2008-07-24 * shared.cc (user_shared_initialize): Fetch potentially changed CygwinCorinna Vinschen10-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-242008-07-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+8
* libc/include/ctype.h (_ctype_): Restore for C++ backward compatability only.
2008-07-24 * include/lmaccess.h (struct _USER_INFO_4): Define.Corinna Vinschen2-1/+51
(struct _USER_INFO_23): Define. (struct _GROUP_INFO_3): Define.
2008-07-23 * mkgroup.c (main): Fix test for duplicate domain/machine request.Corinna Vinschen3-9/+32
* mkpasswd.c (main): Ditto.
2008-07-23 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.Corinna Vinschen4-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.
2008-07-23 * mkgroup.c: Consolidate variable names.Corinna Vinschen4-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.
2008-07-23 * spawn.cc (spawn_guts): Fix previous patch for UNC paths.Corinna Vinschen2-1/+5
2008-07-22 * mkgroup.c (enum_groups): Create full qualified groupname usingCorinna Vinschen3-2/+10
domain or servername, depending on printing domain or machine accounts. * mkpasswd.c (enum_users): Ditto for users.
2008-07-22 * mkgroup.c (main): Remove special root group code. Only printCorinna Vinschen2-24/+22
SYSTEM group in case of printing local machine or local domain groups.
2008-07-22Remove erroneous ChangeLog entry.Corinna Vinschen1-11/+0
2008-07-22 * spawn.cc (spawn_guts): Remove long path prefix from win32 pathCorinna Vinschen2-0/+19
before calling CreateProcess if path length is < MAX_PATH.
2008-07-22 * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen9-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.
2008-07-22 * include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy.Corinna Vinschen2-0/+7
2008-07-212008-07-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston13-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.
2008-07-21 * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen1-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.
2008-07-21 * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.Luis Machado2-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.
2008-07-19 * autoload.cc (WNetGetProviderNameA): Define.Corinna Vinschen3-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-182008-07-18 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2-2/+6
* libc/machine/spu/strcpy.h: Fix error in previous patch.
2008-07-18 * fhandler.cc (fhandler_base::open): Rename x to fh. On Samba, alwaysCorinna Vinschen2-17/+30
create file with NULL security descriptor and set the permissions afterwards. Explain why.
2008-07-18 * cygwinenv.sgml: Move binmode option to list of removed options.Corinna Vinschen2-15/+14
2008-07-18 * environ.cc (known): Remove "binmode" option.Corinna Vinschen6-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-172008-07-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-2/+11
* libc/include/assert.h (__ASSERT_FUNC): Define to __FUNCTION__ when __STDC_VERSION__ < 199901L and __GNUC__ >= 2.
2008-07-172008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2-1/+13
* spu/syscalls.c: Check and set the errno value.
2008-07-172008-07-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2-0/+8
* libc/machine/spu/strcpy.h: Pad null bytes if necessary.
2008-07-17 * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen3-27/+10
(oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
2008-07-17 * mount.cc (mount_info::from_fstab_line): Default to binary mount.Corinna Vinschen2-1/+5
2008-07-17 * Revamp documentation for Cygwin 1.7, part 1.Corinna Vinschen16-755/+917
2008-07-17 * utils.sgml: Add id's to all examples.Corinna Vinschen2-13/+17
2008-07-16 * path.cc (allow_winsymlinks): Revert default to create system bitCorinna Vinschen2-1/+6
symlinks for speed.
2008-07-16 Add case-sensitivity.Corinna Vinschen22-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.
2008-07-16 * cyglsa-config: Always create a /bin/cyglsa directory and copy theCorinna Vinschen2-13/+26
LSA DLL there. Register this copy in the registry.
2008-07-15 * fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.Corinna Vinschen5-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.
2008-07-15 * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.Corinna Vinschen4-2/+11
* cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Fix comment.
2008-07-14 * fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONSCorinna Vinschen2-1/+6
and _PC_POSIX_SECURITY, return true for NFS, too.
2008-07-14 Throughout drop allow_ntsec and allow_smbntsec handling.Corinna Vinschen13-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.
2008-07-14 * miscfuncs.cc (cygwin_strncasecmp): Fix bug which results inCorinna Vinschen2-6/+10
prematurely truncated strings. Simplify target length argument to sys_mbstowcs.
2008-07-14 * autoload.cc (GetExtendedTcpTable): Define.Corinna Vinschen4-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.
2008-07-14 * include/iphlpapi.h (GetExtendedTcpTable): Add prototype.Corinna Vinschen4-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.
2008-07-13 * cyglsa.c: Don't include ntddk.h.Corinna Vinschen5-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.
2008-07-12Fix usage of recently fixed Interlocked* functions.Eric Blake2-10/+15
* winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add volatile qualifier, to match Interlocked* functions.
2008-07-12Revert my last change since it has not been approved.Jie Zhang3-6/+9
2008-07-11 bfd/Jie Zhang3-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.
2008-07-11 * select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.Corinna Vinschen2-4/+10
2008-07-11 * mh-mingw (LDFLAGS): Append to rather than replacing previousJoseph Myers2-1/+6
value.
2008-07-11 * cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domainCorinna Vinschen2-13/+19
and authinf->username are now of type WCHAR. Change sam_username and sam_u size to be deifned in terms of MAX_DOMAIN_NAME_LEN instead of INTERNET_MAX_HOST_NAME_LENGTH.
2008-07-11 Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH toCorinna Vinschen7-90/+135
MAX_DOMAIN_NAME_LEN throughout. * cyglsa.h (CYG_LSA_MAGIC): New value. (cyglsa_t): Define username and domain as WCHAR arrays. * errno.cc (errmap): Add mapping for ERROR_NONE_MAPPED. * sec_auth.cc: Drop 'w' prefix from WCHAR string variable names where appropriate. (extract_nt_dom_user): Prefer resolving by SID before resolving by domain\name pair. (cygwin_logon_user): Don't print cleartext password in debug output. Change comment. (get_user_groups): Revert calls to LookupAccountNameW to use NULL server instead of explicit server name, according to MSDN. (get_user_local_groups): Ditto. (get_server_groups): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. (lsaauth): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. * sec_helper.cc (cygpriv): Convert to wchar_t pointer array. (privilege_luid): Convert first parameter to PWCHAR. (privilege_name): Return wchar_t pointer. (set_privileges): Accommodate debug output. * security.h (privilege_luid): Change prototype accordingly.
2008-07-10include/elf/Richard Sandiford2-0/+6
* mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros. bfd/ * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. (mips_elf_calculate_relocation): Likewise. (_bfd_mips_elf_add_symbol_hook): Likewise. (_bfd_mips_elf_finish_dynamic_symbol): Likewise. (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. opcodes/ * mips-dis.c (_print_insn_mips): Use ELF_ST_IS_MIPS16. gas/ * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16. (mips_fix_adjustable): Likewise. (mips_frob_file_after_relocs): Likewise. gas/testsuite/ * gas/mips/mips16-vis-1.d, gas/mips/mips16-vis-1.s: New tests. * gas/mips/mips.exp: Run them.