Corinna Vinschen
b2d3f28fda
* fhandler.cc (fhandler_base::open): Use Samba workaround generally
...
for all remote filesystems supporting ACLs. Change comment and
explain why. Refer to the discussion which led to this.
2008-08-07 16:20:03 +00:00
Brian Dessent
af15c95e70
* config/i386/profile.h (mcount): Mark asms volatile.
2008-08-05 19:20:58 +00:00
Christopher Faylor
53364a1fae
* dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the
...
linked list if it is empty.
(dll_list::detach): Don't set dll_global_dtors_recorded if we aren't actually
going to record any dlls.
2008-08-05 14:26:47 +00:00
Christopher Faylor
bee18f45fd
Changes suggested by Dave Korn.
...
* dcrt0.cc (cygwin_exit): Remove (hopefully) extraneous call to
dll_global_dtors.
* dll_init.cc (dll_global_dtors): Run destructors in reverse dependency/load
order.
* dll_init.h (dll_list): Add dll_global_dtors as a friend.
2008-08-04 15:55:32 +00:00
Christopher Faylor
ea8432dfb1
* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when
...
cygwin1.dll is unloaded.
2008-08-04 15:30:06 +00:00
Alan Modra
ef432bbddf
* common.h (ELFOSABI_AROS): Update comment.
2008-08-03 23:20:42 +00:00
Alan Modra
f65427cd09
* mt-spu (all-ld): Update for ld Makefile changes.
2008-08-03 03:38:07 +00:00
Keith Seitz
e852daa1f5
* tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal
...
with cygwin.
(SC_PATH_TKCONFIG): Likewise.
2008-08-02 21:20:13 +00:00
Peter Bergner
b5bffab8d3
gas/
...
* config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
Handle -mvsx and -mpower7.
(md_show_usage): Document -mpower7 and -mvsx.
* doc/as.texinfo (Target PowerPC): Document -mvsx.
* doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
gas/testsuite/
* gas/ppc/power7.d: New.
* gas/ppc/power7.s: Likewise.
* gas/ppc/ppc.exp: Run power7 test.
include/opcode/
* ppc.h (PPC_OPCODE_VSX, PPC_OPERAND_VSR): New.
opcodes/
* ppc-dis.c (powerpc_init_dialect): Handle power7 and vsx options.
(print_insn_powerpc): Prepend 'vs' when printing VSX registers.
(print_ppc_disassembler_options): Document -Mpower7 and -Mvsx.
* ppc-opc.c (insert_xt6): New static function.
(extract_xt6): Likewise.
(insert_xa6): Likewise.
(extract_xa6: Likewise.
(insert_xb6): Likewise.
(extract_xb6): Likewise.
(insert_xb6s): Likewise.
(extract_xb6s): Likewise.
(XS6, XT6, XA6, XB6, XB6S, DM, XX3, XX3DM, XX1_MASK, XX3_MASK,
XX3DM_MASK, PPCVSX): New.
(powerpc_opcodes): Add opcodes "lxvd2x", "lxvd2ux", "stxvd2x",
"stxvd2ux", "xxmrghd", "xxmrgld", "xxpermdi", "xvmovdp", "xvcpsgndp".
2008-08-02 04:38:51 +00:00
Christopher Faylor
b23b171641
* dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main().
...
* exceptions.cc (stack_info::walk): Stop walking the stack when we hit
_cygwin_exit_return rather than just blindly stopping when PC becomes zero.
2008-08-01 19:12:49 +00:00
Corinna Vinschen
3462d736b6
* path.cc (symlink_info::check): Handle (and explain) a special case
...
when accessing files matching DOS device names on SMB shares.
2008-07-31 14:48:28 +00:00
Corinna Vinschen
9fe98985b3
* spawn.cc (spawn_guts): Check constructed short pathname for being
...
a DOS device name and fall back to long path name, if so.
2008-07-31 14:41:19 +00:00
Paolo Bonzini
9ad2ea2fd9
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
...
Sync with gcc:
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Add makefile fragments for hpux.
* Makefile.def (flags_to_pass): Add ADA_CFLAGS.
* Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
* configure: Regenerate.
* Makefile.in: Regenerate.
2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.tpl ($(srcdir)/configure): Update dependencies.
* Makefile.in: Regenerate.
* configure: Regenerate.
config:
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
* mh-pa: New, from gcc/config/pa/x-ada.
* mh-pa-hpux10: New, from gcc/config/pa/x-ada-hpux10.
2008-06-11 Bernhard Fischer <aldot@gcc.gnu.org>
* tls.m4: Fix typos.
2008-07-30 15:03:57 +00:00
Corinna Vinschen
d79a78e5c8
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for
...
file systems incapable of handling FileIdBothDirectoryInformation
correctly.
(fhandler_disk_file::opendir): Ditto.
* path.cc (fs_info::update): Always clear at the start.
Rearrange to make certain tests only on non-Samba, non-NFS remote
drives.
Add test for file systems known to be incapable of handling
FileIdBothDirectoryInformation correctly. Right now that's just
"UNIXFS".
* path.h (struct fs_info): Add has_buggy_fileid_dirinfo flag and
accessor methods.
(class path_conv): Add has_buggy_fileid_dirinfo method.
2008-07-30 14:41:59 +00:00
Corinna Vinschen
b54881352d
* sec_auth.cc (extract_nt_dom_user): Return domain and user name as
...
WCHAR.
(cygwin_logon_user): Accommodate above change. Convert password to
WCHAR and call LogonUserW.
* external.cc (cygwin_internal): Accommodate above change.
* security.h (extract_nt_dom_user): Change prototype accordingly.
2008-07-30 12:10:20 +00:00
Alan Modra
79ea8bbb10
include/opcode/
...
* ppc.h (PPC_OPCODE_405): Define.
(PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define.
gas/
* config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
(md_show_usage): Likewise.
opcodes/
* ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields.
* ppc-opc.c (powerpc_operands): Add Xilinx APU related operands.
(insert_sprg, PPC405): Use PPC_OPCODE_405.
(powerpc_opcodes): Add Xilinx APU related opcodes.
2008-07-30 06:29:21 +00:00
Christopher Faylor
e3e942ac00
* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
2008-07-30 06:07:42 +00:00
Christopher Faylor
a010e6abed
* cygwin.din (_getutline): Remove.
...
* lib/bsdlib.cc (login): Make argument const as per linux.
(logout): Ditto.
* syscalls.cc (getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto.
(getutxent): Add comment mentioning non-thread-safety.
(getutxid): Ditto.
(getutxline): Ditto.
(pututxline): Ditto.
* sys/utmp.h: Declare arguments to various functions as const as per linux.
Remove bogus _getutline definition.
2008-07-30 04:58:24 +00:00
Christopher Faylor
dbfc6f0e78
(missing changelog entry)
...
* include/cygwin/version.h: Add comment indicating that current API number bump
also has another consequence.
2008-07-30 01:37:55 +00:00
Christopher Faylor
f5b18cbef7
* include/cygwin/version.h: Add comment indicating that current API number bump
...
also has another consequence.
2008-07-29 14:07:21 +00:00
Corinna Vinschen
f9afd0ced7
* Makefile.in (DLL_OFILES): Remove v8 regexp files.
...
(OBSOLETE_FUNCTIONS): Remove v8 regexp functions.
(NEW_FUNCTIONS): Remove POSIX regex functions.
* cygwin.din: Export POSIX regex functions with their correct symbol
name. Export with posix_ prefix for backward compatibility.
* syscalls.cc (regfree): Remove ancient fake function.
* regex/regex.h: Remove renaming regex functions within Cygwin.
* regexp/*: Remove.
* include /cygwin/version,.h: Bump API minor number.
2008-07-29 10:40:37 +00:00
Keith Marshall
f2cb69fd8e
Replace __mingw_snprintf() with new generic family implementation; likewise, replace __mingw_vsnprintf().
2008-07-28 23:24:20 +00:00
Keith Marshall
8c7a3134dd
Lay foundations for new printf() function family implementation.
2008-07-28 22:57:43 +00:00
Christopher Faylor
038af33480
* dcrt0.cc (dll_crt0_0): Remove calling malloc_init and
...
user_shared_initialize_1 from here.
(dll_crt0_1): Remove dynamically_loaded check. Just call malloc_init and
user_shared_initialize unconditionally.
* shared.cc (user_shared_create): Rename from user_shared_initialize.
(user_shared_initialize): Rename from user_shared_initialize_1. Move complete
user_shared content initialization code here from user_shared_create.
* syscalls.cc (seteuid32): Remove call to user_shared_initialize_1. That is
implied by the "true" argument to user_shared_create().
2008-07-27 22:31:48 +00:00
Christopher Faylor
b58e5f427a
* mount.cc (mount_info::init): Add location where we're looking for fstab to
...
temporary message.
* lib/cygwin_crt0.c (cygwin_crt0): Simplify by eliminating accommodations for
ancient cygwin DLLs.
* lib/crt0.h: Include <windows.h> directly since it is needed.
2008-07-27 16:59:07 +00:00
Christopher Faylor
34aa62035b
* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.
2008-07-27 14:53:42 +00:00
Christopher Faylor
904413e731
* shared_info.h (shared_destroy): Declare.
...
* shared.cc (shared_destroy): Define new function to destroy shared memory
regions.
* init.cc (dll_entry): Call shared_destroy when dll detaches from the process.
2008-07-27 14:52:46 +00:00
Corinna Vinschen
bfd2b1c930
* fhandler_socket.cc (fhandler_socket::send_internal): Send never more
...
then 64K bytes at once. For blocking sockets, loop until entire data
has been sent or an error occurs.
(fhandler_socket::sendto): Drop code which sends on 64K bytes.
(fhandler_socket::sendmsg): Ditto.
2008-07-27 10:20:49 +00:00
Christopher Faylor
34cc372abe
* fhandler_tty.cc (fhandler_pty_master::setup): Reorganize so that all
...
operations for each end of the pipe are grouped together.
2008-07-26 19:35:21 +00:00
Alan Modra
d9f2119e32
Support PowerPC single-precision float.
2008-07-26 13:10:47 +00:00
Corinna Vinschen
e643b202e6
* dcrt0.cc (dll_crt0_1): Call malloc_init and user_shared_initialize_1
...
only in non-dynamically loaded case.
2008-07-26 08:32:28 +00:00
Chris Sutcliffe
b73c0b890e
2008-07-25 Bo Yang <techrazy@users.sourceforge.net>
...
* lib/gdi32.def (SetLayout): Export.
2008-07-25 22:13:22 +00:00
Chris Sutcliffe
b6e1c2af52
2008-07-25 Bo Yang <techrazy@users.sourceforge.net>
...
* include/wincrypt.h (struct _CRYPT_KEY_PROV_PARAM,
struct _CRYPT_KEY_PROV_INFO, CertGetCertificateContextProperty,
CryptEnumKeyIdentifierProperties, CryptAcquireCertificatePrivateKey,
CertCreateCertificateContext, CryptGetKeyIdentifierProperty,
CertSetCertificateContextProperty, CertCompareCertificateName,
CryptSetKeyIdentifierProperty, CertOIDToAlgId, CryptGetDefaultProviderA,
CryptGetDefaultProviderW and many corresponding macroes): Define.
* lib/crypt32.def (Export the above 11 functions): Export.
* include/winerror.h (CRYPT_E_NOT_FOUND and other crypt related
macroes): Define.
2008-07-25 22:09:36 +00:00
Keith Seitz
2fd104c0a7
* acinclude.m4: Remove libide, libgui, and all the other Tcl
...
functions.
* tcl.m4: New file.
2008-07-25 18:00:17 +00:00
Corinna Vinschen
1d011c0a68
* dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1
...
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.
2008-07-25 15:23:56 +00:00
Christopher Faylor
5f853b3fc5
* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
...
(oopts): Use boolean constants for slightly increased clarity.
* configure.in: Remove apparently unneeded program_transfer_name code.
* configure: Regenerate.
2008-07-25 15:03:25 +00:00
Corinna Vinschen
e93f946aa7
* utils.sgml: Remove useless text.
2008-07-25 07:08:56 +00:00
Chris Sutcliffe
9c7041ca01
2008-07-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/winuser.h (MENUGETOBJECTINFO, MNGO_NOINTERFACE, MNGO_NOERROR,
MNGOF_TOPGAP, MNGOF_BOTTOMGAP): Define.
2008-07-25 01:50:35 +00:00
Chris Sutcliffe
f42ef1eba7
2008-07-24 techrazy <techrazy@users.sourceforge.net>
...
* include/wingdi.h (OUT_PS_ONLY_PRECIS): Define.
2008-07-25 01:19:11 +00:00
Corinna Vinschen
e0fa82235a
* mount.cc (mount_info::from_fstab): Change system_printf to
...
debug_printf on NtOpenFile failure.
2008-07-24 18:32:41 +00:00
Corinna Vinschen
520fcc9747
* shared.cc (user_shared_initialize): Fetch potentially changed Cygwin
...
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 18:25:52 +00:00
Jeff Johnston
410c1d122d
2008-07-24 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/ctype.h (_ctype_): Restore for C++ backward
compatability only.
2008-07-24 17:55:26 +00:00
Corinna Vinschen
854c14daa4
* include/lmaccess.h (struct _USER_INFO_4): Define.
...
(struct _USER_INFO_23): Define.
(struct _GROUP_INFO_3): Define.
2008-07-24 09:01:12 +00:00
Corinna Vinschen
f36c78a487
* mkgroup.c (main): Fix test for duplicate domain/machine request.
...
* mkpasswd.c (main): Ditto.
2008-07-23 20:12:12 +00:00
Corinna Vinschen
f9519bcd1a
* mkgroup.c: Rework to allow per-domain/per-machine id_offset.
...
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 18:09:50 +00:00
Corinna Vinschen
0bdab5c8a9
* mkgroup.c: Consolidate variable names.
...
(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 11:41:10 +00:00
Corinna Vinschen
02151f07e6
* spawn.cc (spawn_guts): Fix previous patch for UNC paths.
2008-07-23 10:17:04 +00:00
Corinna Vinschen
7e1fdc9e2c
* mkgroup.c (enum_groups): Create full qualified groupname using
...
domain or servername, depending on printing domain or machine accounts.
* mkpasswd.c (enum_users): Ditto for users.
2008-07-22 20:47:14 +00:00
Corinna Vinschen
4aeb44ee37
* mkgroup.c (main): Remove special root group code. Only print
...
SYSTEM group in case of printing local machine or local domain groups.
2008-07-22 20:12:02 +00:00
Corinna Vinschen
73814f5ee2
Remove erroneous ChangeLog entry.
2008-07-22 17:31:35 +00:00