96da86f7e82006-11-13 Daniel Schlyder <thrug@users.sourceforge.net>
Danny Smith
2006-11-13 02:11:45 +0000
2d579e01f42006-11-08 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston
2006-11-09 16:25:54 +0000
b61bfe0440Change Jie Zhang's e-mail address to work address.
Jeff Johnston
2006-11-09 16:24:43 +0000
9842c7e4e8Change Jie Zhang's e-mail address to work e-mail.
Jeff Johnston
2006-11-09 16:24:06 +0000
c3a0492e16* autoload.cc (EqualPrefixSid): Define. * security.cc (create_token): Drop grps_buf. Use alloca instead. Only add the MIC SID to the TOKEN_GROUPS list for the NtCreateToken call. If the subauthentication token exists, use its MIC SID. Set SID Attributes for the MIC SID to 0.
Corinna Vinschen
2006-11-09 15:24:34 +0000
cb505ee695[ mingw-Bugs-1590623 ] * include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute in C99 mode.
Danny Smith
2006-11-08 21:58:18 +0000
2d46f1ddfb2006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston
2006-11-08 20:28:29 +0000
c0977673ac2006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston
2006-11-08 19:36:56 +0000
292f8e23282006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston
2006-11-08 19:26:43 +0000
2fd2ddf3f5* sec_helper.cc (sid_auth): Remove. (well_known_this_org_sid): New well known sid. (SECURITY_MANDATORY_INTEGRITY_AUTHORITY): Define. (mandatory_medium_integrity_sid): New well known sid. (mandatory_high_integrity_sid): Ditto. (mandatory_system_integrity_sid): Ditto. (cygsid::get_sid): Use local SID_IDENTIFIER_AUTHORITY. Allow all authorities fitting in a UCHAR. * security.cc (get_token_group_sidlist): Always add the local group to the token. Add comment. Add "This Organization" group if available in incoming group list. (get_server_groups): Only add world and authenticated users groups if not already in list. (create_token): Add matching mandatory integrity SID to group list on systems supporting Mandatory Integrity Control. * security.h (well_known_this_org_sid): Define. (mandatory_medium_integrity_sid): Define. (mandatory_high_integrity_sid): Define. (mandatory_system_integrity_sid): Define. * wincap.h: Define has_mandatory_integrity_control throughout. * wincap.cc: Ditto.
Corinna Vinschen
2006-11-08 11:38:05 +0000
86bc8fadff* fhandler.cc (check_posix_perm): Moved here from syscalls.cc. (fhandler_base::fpathconf): New method implementing (f)pathconf. * fhandler.h (class fhandler_base): Declare fpathconf method. * path.cc (path_conv::check): Replace MAX_LINK_DEPTH with SYMLOOP_MAX. * path.h (MAX_LINK_DEPTH): Delete. * syscalls.cc (check_posix_perm): Move to fhandler.cc. (fpathconf): Call fhandler's fpathconf method. (pathconf): Build fhandler and call fhandler's fpathconf method. * sysconf.cc (sysconf): Reorder switch according to order of flags in sys/unistd.h. Add handling for some missing flags. * include/limits.h: Reorder according to SUSv3 description. Add some missing definitions. Add comments. * include/sys/syslimits.h: New file overriding newlib's syslimits.h file.
Corinna Vinschen
2006-11-07 17:59:54 +0000
4521c4bd0c* path.cc (symlink_info::check): Eliminate PATH_REP bit from pflags.
Corinna Vinschen
2006-11-02 12:19:16 +0000
5fc8f227dc* path.cc (symlink_info::posixify): New mothod converting NT and DOS paths in symlinks to POSIX. (symlink_info::check_shortcut): Allocate buf allowing for a trailing 0. Call posixify on the result. (symlink_info::check_sysfile): Read from file into local buffer. Eliminate old b16 considerations. Call posixify on the result. (symlink_info::check_reparse_point): Don't use PrintName but SubstituteName which is relevant for Windows' path handling. Call posixify on the result.
Corinna Vinschen
2006-11-02 11:45:03 +0000
a45b9181ea* include/winuser.h (LR_DEFAULTSIZE): Remove duplicate.
Danny Smith
2006-11-02 00:54:46 +0000
d6e43089372006-10-30 Paul Brook <paul@codesourcery.com>
Paul Brook
2006-10-31 20:21:56 +0000
c2b10dc4d8* cygheap.h (struct user_heap_info): Add slop member. * heap.cc (heap_init): Add slop factor to heap allocation. Add comment. * mmap.cc (MapViewNT): Allocate memory maps top down. (fhandler_dev_zero::mmap): Ditto. * shared.cc (shared_info::heap_slop_size): New method. (shared_info::heap_chunk_size): Don't use debug_printf at early stage. * shared_info.h (SHARED_INFO_CB): Accomodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add heap_slop member. Declare heap_slop_size. * wincap.h: Define heapslop throughout. * wincap.cc: Ditto.
Corinna Vinschen
2006-10-31 18:41:16 +0000
9740f34d11* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop directory attribute for reparse points to avoid mistreating. (fhandler_base::fstat_by_name): Ditto. * path.cc (symlink_info::check_reparse_point): New method testing reparse points for symbolic links. (symlink_info::check_shortcut): Move file attribute tesat to calling function. (symlink_info::check): Add handling for reparse points. * path.h (enum path_types): Add PATH_REP to denote reparse point based symlinks. (path_conv::is_rep_symlink): New method. * syscalls.cc (unlink): Handle reparse points.
Corinna Vinschen
2006-10-31 11:40:47 +0000
3ddf69712b* include/winnt.h (IO_REPARSE_TAG_SYMLINK): Define. (struct _REPARSE_DATA_BUFFER): Add missing Flags field to SymbolicLinkReparseBuffer substructure.
Corinna Vinschen
2006-10-31 11:39:58 +0000
a6c48c3850* tc-score.c (data_op2): Check invalid operands. (my_get_expression): Const operand of some instructions can not be symbol in assembly. (get_insn_class_from_type): Handle instruction type Insn_internal. (do_macro_ldst_label): Modify inst.type. (Insn_PIC): Delete. * score-inst.h (enum score_insn_type): Add Insn_internal. * tc-score.c (data_op2): The immediate value in lw is 15 bit signed. * score-dis.c (print_insn): Correct the error code to print correct PCE instruction disassembly.
Nick Clifton
2006-10-31 09:54:41 +0000
2be593d961* external.cc (cygwin_internal): Use security_descriptor::copy method. * sec_helper.cc (security_descriptor::malloc): Use own free method. Set type. (security_descriptor::realloc): Handle the case that psd has been allocated using LocalAlloc. Set type. (security_descriptor::free): Ditto. * security.cc (get_nt_attribute): Remove. (get_reg_security): Remove. (get_nt_object_security): Use GetSecurityInfo which handles all securable objects. (get_nt_object_attribute): Remove. (get_object_attribute): Call get_nt_object_security instead of get_nt_object_attribute. (get_file_attribute): Ditto. (check_registry_access): Call get_nt_object_security instead of get_reg_security. * security.h (cygpsid::operator PSID): Make method const, not the result. (class security_descriptor): Add type member. Accomodate throughout. (security_descriptor::copy): New method. (security_descriptor::operator PSECURITY_DESCRIPTOR *): New operator.
Corinna Vinschen
2006-10-22 14:57:43 +0000
2b26c2fc41* fhandler.cc (fhandler_base::fhaccess): Check if opening registry actually created a handle. This handles the registry root dir. * fhandler_registry.cc (fhandler_registry::open): Set io_handle in case of opening one of the predefined registry keys.
Corinna Vinschen
2006-10-22 09:38:47 +0000
70158cafd7* regtool.cc (key_type): Drop. (REG_AUTO): Define. (value_type): Replace key_type. Use REG_xxx values directly. Accomodate change throughout. (longopts): Add --dword, --dword-le, --none, --qword and --hex options. (opts): Add -d, -D, -n, -Q and -x options. (types): Array to convert REG_xxx into strings. (hex): New variable to keep value of --hex option. (usage): Accomodate new options. Print only the necessary by default. Only be verbose in case of -h/--help option. (cmd_list): Use key separator from -K option when printing. Print value type when verbose option is given. Handle so far not handled REG_xxx types. (cmd_set): Avoid SEGV due to missing argument. Handle so far not handled REG_xxx types. (cmd_get): Handle --binary option type agnostic. Handle so far not handled REG_xxx types. (main): Handle new options.
Corinna Vinschen
2006-10-21 17:19:29 +0000
1b4153db74* fhandler.cc (fhandler_base::fhaccess): Call check_registry_access for registry keys/values if ntsec is on. * security.cc (check_access): New static function derived from check_file_access, but object type agnostic. (check_file_access): Only do file specific stuff. Call check_access. (check_registry_access): New access check function for registry keys/ values. * security.h (check_registry_access): Declare.
Corinna Vinschen
2006-10-21 11:05:32 +0000
9367c0dcff* fhandler_registry.cc (fhandler_registry::fstat): Set restrictive permission and ownership if key can't be opened for reading security. (open_key): If opening key fails, retry opening with backup intent.
Corinna Vinschen
2006-10-21 10:58:35 +0000
09a35955fbFix score bugs
Nick Clifton
2006-10-19 15:47:34 +0000
20f9af5348* fhandler.h (fhandler_base::set_name): Make virtual. (class fhandler_registry): Add wow64 and prefix_len members. Declare set_name method. * fhandler_proc.cc (PROC_REGISTRY32): Define. (PROC_REGISTRY64): Define. (proc_listing): Add "registry32" and "registry64" elements. (proc_fhandlers): Add corresponding FH_REGISTRY values. * fhandler_registry.cc (registry_len): Drop static value in favor of class member prefix_len. Use preifx_len instead of registry_len throughout. (fhandler_registry::set_name): Define. Set wow64 and prefix_len according to directory prefix. (fhandler_registry::fhandler_registry): Set wow64 and prefix_len to default values. (open_key): Add wow64 argument. Handle wow64 in call to RegOpenKeyEx. Use fhandler_registry member wow64 in this place throughout.
Corinna Vinschen
2006-10-19 10:01:03 +0000
d145878a07* fhandler_proc.cc: Drop superfluous definition of _WIN32_WINNT. * miscfuncs.cc: Ditto. * sched.cc: Ditto.
Corinna Vinschen
2006-10-19 09:15:26 +0000
3c256e38f9* regtool.cc (longopts): Add --wow32 option. (opts): Add -W option. (usage): Add text for --wow32/-W option. (main): Handle --wow32/-W option. * utils.sgml: Document the new -W option.
Corinna Vinschen
2006-10-19 09:08:44 +0000
6d44157687* Fix ChangeLog entry to mention full path of changed file.
Corinna Vinschen
2006-10-19 08:36:02 +0000
733c9ed374* glob.c: Remove. * glob.cc: New file. Latest glob version from FreeBSD plus Cygwin specific changes (__stat64/__stat32, ignore_case_with_glob, drop collate functions). (glob3): Return GLOB_ABORTED in case directory is unreadable and GLOB_ERR is set, as demanded by SUSv3. * glob.h: Import latest version from FreeBSD.
Corinna Vinschen
2006-10-17 17:34:56 +0000
c4e12ec359bfd/ * elf32-arm.c (elf32_arm_howto_table_1): Change offset for R_THM_CALL to 25 and remove FIXME comment. (using_thumb2): New function. (elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding.
Mark Shinwell
2006-10-17 15:46:21 +0000
bf4875e4b0* winsup.h (WINVER): Define instead of _WIN32_WINNT. Set to 0x0502. (_NO_W32_PSEUDO_MODIFIERS): Define.
Corinna Vinschen
2006-10-17 13:55:05 +0000
39bbbb69692006-10-17 Brooks Moses <bmoses@stanford.edu> * Makefile.def: Added pdf target handling. * Makefile.tpl: Added pdf target handling. * Makefile.in: Regenerated.
DJ Delorie
2006-10-17 04:23:49 +0000
53930874cb* regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define WINVER to 0x0502 before including windows.h.
Corinna Vinschen
2006-10-16 19:34:27 +0000
40c60b89d5* regtool.cc (KEY_WOW64_64KEY): Define. (longopts): Add --wow64 option. (opts): Add -w option. (wow64): New variable to control usage of KEY_WOW64_64KEY access flag. (usage): Add text for --wow64/-w option. (print_version): Fix copyright. (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx. (cmd_add): Use wow64 value in call to RegCreateKeyEx. (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function dynamically. (cmd_remove): Load and use regDeleteKeyEx when wow64 is set. (main): Handle --wow64/-w option. * utils.sgml: Document the new -w option.
Corinna Vinschen
2006-10-16 18:00:06 +0000
2c1ffdbf5e* autoload.cc (PrivilegeCheck): Define. * fhandler.cc (fhandler_base::open): Always try opening with backup resp. restore intent. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Always try opening with backup intent. (fhandler_disk_file::readdir): Ditto when trying to retrieve file id explicitely. * security.cc (check_file_access): Replace pbuf with correctly PPRIVILEGE_SET typed pset. Check explicitely for backup and/or restore privileges when AccessCheck fails, to circumvent AccessCheck shortcoming. Add comment to explain.
Corinna Vinschen
2006-10-16 12:26:59 +0000
7af26e0cc0* winsup.h: Turn off DEBUGGING.
Christopher Faylor
2006-10-13 12:49:18 +0000
ace7360b45* Makefile.in (CFLAGS): Drop -nostdinc. * cygsuba.c: Reorder includes to allow building with VC++. * make-64bit-version-with-visual-c.bat: New file.
Corinna Vinschen
2006-10-13 11:55:05 +0000
fb7dc2480c* autoload.cc (Wow64DisableWow64FsRedirection): Define. (Wow64RevertWow64FsRedirection): Define. * security.cc (cygsuba_installed): New shared variable to store result of cygsuba.dll installation test. (subauth): Check if cygsuba.dll has been installed and registered before issuing the (sub)authentication.
Corinna Vinschen
2006-10-13 11:10:28 +0000
0d94042d8f* include/winuser.h (LR_DEFAULTSIZE, LR_VGACOLOUR): Define.
Danny Smith
2006-10-12 04:25:56 +0000
b8c30b54c72006-10-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2006-10-11 19:30:34 +0000
f8fe93f9b82006-10-11 Yang Tse <yangsita@gmail.com>
Jeff Johnston
2006-10-11 19:20:31 +0000
9565e2333c* select.cc (struct socketinf): Convert ser_num and w4 to dynamically allocated arrays. Add max_w4 member to keep track. (thread_socket): Make timeout depending on number of sockets to wait for. Loop WFMO over all sockets. (start_thread_socket): Handle any number of sockets. Fix typo. Don't close socket event in out of memory condition. (socket_cleanup): Free ser_num and w4.
Corinna Vinschen
2006-10-11 16:21:12 +0000
d1468607622006-10-10 Thiemo Seufer <ths@mips.com>
Jeff Johnston
2006-10-10 18:27:56 +0000
74e2b21eacRemoved.
Jeff Johnston
2006-10-10 15:52:39 +0000
b9c7deed9a* path.cc (path_conv::get_nt_native_path): Properly detect \\?\ paths. (mount_info::conv_to_win32_path): Update comment. * fhandler_disk_file.cc (path_conv::ndisk_links): Use backslashes to make NT kernel functions work for \\?\GLOBALROOT paths.
Corinna Vinschen
2006-10-09 14:01:52 +0000
5623fbd4ca* devices.in: Raise number of handled serial ports to 64. * devices.cc: Regenerate.
Corinna Vinschen
2006-10-09 08:27:23 +0000
16b6142ad4.
Christopher Faylor
2006-10-06 22:32:09 +0000
8375a056612006-10-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2006-10-06 20:34:49 +0000
cea9b62102* cygcheck.cc (get_word, get_dword): Move to path.cc. (LINK_EXTENSION): New macro. (check_existence): New static function. (find_on_path): Check for symbolic links if asked. (dll_info): New error handling. (track_down): Only call dll_info() for executables, display an error for symlinks, and print magic number for others. (find_app_on_path): New static function. (cygcheck, dump_sysinfo): Call find_app_on_path() instead of find_on_path(). * path.cc (cmp_shortcut_header): New static function. (get_word, get_dword): Moved from cygcheck.cc. (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New macros. (is_exe, is_symlink, readlink): New functions. * path.h (is_exe, is_symlink, readlink): Declare. (get_word, get_dword): Ditto.
Corinna Vinschen
2006-10-05 17:24:13 +0000
66845c62b1* include/winreg.h (RegDeleteKeyEx{A|W}): Add prototype and UNICODE mappings. (KEY_WOW64_32KEY, KEY_WOW64_64KEY): Define. * lib/advapi.def (RegDeleteKeyEx{A|W}): Export.
Danny Smith
2006-10-05 07:36:06 +0000
fbcc8bbe74* Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now correctly parenthesized.
Corinna Vinschen
2006-10-04 12:52:42 +0000
e4aebff6e8* include/winnt.h (CASSERT): Define.
Danny Smith
2006-10-04 08:57:27 +0000
bdcabb255c2006-10-03 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2006-10-03 16:33:50 +0000
b3fc0d3bf5* lib/rpcrt4.def: Remove "_imp__"-prefixed export symbols. * lib/user32.def: Likewise.
Danny Smith
2006-10-03 08:43:40 +0000
04a8b4ee182006-10-02 Nick Clifton <nickc@redhat.com>
Jeff Johnston
2006-10-02 19:57:46 +0000
2a441538f9* tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE.
Tom Tromey
2006-10-02 18:03:18 +0000
adb51f0a912006-09-27 Dave Brolley <brolley@redhat.com>
Dave Brolley
2006-09-27 16:20:49 +0000
e5e148d15b2006-09-26 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2006-09-26 21:22:19 +0000
1aeca89244bfd/ 2006-09-26 Mark Shinwell <shinwell@codesourcery.com> Joseph Myers <joseph@codesourcery.com> Ian Lance Taylor <ian@wasabisystems.com> Ben Elliston <bje@wasabisystems.com>
Joseph Myers
2006-09-26 12:04:45 +0000
477192898e* config.sub, config.guess: Update from upstream sources.
Ben Elliston
2006-09-26 05:22:50 +0000
e83c3d0ae52006-09-22 Paul Brook <paul@codesourcery.com>
Jeff Johnston
2006-09-22 19:33:11 +0000
70f1ec33cb* configure.in: Remove redundant handling of mips*-dec-bsd*. Likewise for mipstx39-*-*. Disable libgloss for mips64*-*-linux*. * configure: Regenerate.
Thiemo Seufer
2006-09-20 12:33:49 +0000
b0c0973d9aAdd x86_64-mingw64 target
Nick Clifton
2006-09-20 11:35:11 +0000
c0b5e094e2* mingwex/mb_wc_common.h (get_codepage): Get it from __lc_codepage.
Danny Smith
2006-09-19 09:09:58 +0000
b44ba33a1f* byteorder.h: Correct typo.
Christopher Faylor
2006-09-17 23:22:10 +0000
22aa38a0a8* byteorder.h: Don't #define n* macros if -fnoinline is specified.
Christopher Faylor
2006-09-17 22:34:45 +0000
dad3363707* mingwex/gdtoa/g_xfmt.c (g_xfmt): Fix representation of infinity. Use fpclassify. * mingwex/gdtoa/strtopx (__strtopx): Avoid cast of long double* to void*. * mingwex/gdtoa/gdtoa.h (__g_fmt): Make declaration consistent with others.
Danny Smith
2006-09-17 22:27:56 +0000
7aa8dc8eb0Add support for Score target.
Nick Clifton
2006-09-16 23:51:50 +0000
3e231d9a38* mingwex/gdtoa/strtopx.c (strtopx): Fix (sic) infinity.
Danny Smith
2006-09-16 07:35:45 +0000