]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
17 years agobfd/
Kazu Hirata [Thu, 7 Dec 2006 15:39:02 +0000 (15:39 +0000)]
bfd/
* elf32-m68k.c: Update uses of EF_M68K_*.

binutils/
* readelf.c: Update uses of EF_M68K_*.

gas/
* config/tc-m68k.c: Update uses of EF_M68K_*.

include/elf
* m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV,
EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP,
EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to
EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A,
EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP,
EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK,
EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B,
EF_M68K_CF_FLOAT, respectively.

17 years ago * autoload.cc (SHFileOperationA): Define.
Corinna Vinschen [Thu, 7 Dec 2006 11:53:46 +0000 (11:53 +0000)]
* autoload.cc (SHFileOperationA): Define.
* syscalls.cc (try_to_bin): New function trying to move a file to
the recycle bin.
(unlink): Fix arguments used in CreateFile for delete on close.
Before closing the handle, try to move the file to the recycle bin.

17 years ago * cygheap.h (struct cwdstuff): Add "sync" member and accompanying
Corinna Vinschen [Thu, 7 Dec 2006 10:04:52 +0000 (10:04 +0000)]
* cygheap.h (struct cwdstuff): Add "sync" member and accompanying
"keep_in_sync" methods.
* external.cc (cygwin_internal): Call above keep_in_sync method when
CW_SYNC_WINENV is requested.
* path.cc (cwdstuff::init): Don't change to windows_system_directory
if keep_in_sync is requested.
(cwdstuff::keep_in_sync): New method.
(cwdstuff::set): Take sync flag into account.

17 years ago * termios.cc: Change include order to accomodate change to sys/ioctl.h.
Corinna Vinschen [Wed, 6 Dec 2006 19:44:07 +0000 (19:44 +0000)]
* termios.cc: Change include order to accomodate change to sys/ioctl.h.

17 years agomerge from gcc
DJ Delorie [Wed, 6 Dec 2006 19:28:41 +0000 (19:28 +0000)]
merge from gcc

17 years ago * fhandler_mem.cc (fhandler_dev_mem::open): Fix comment.
Corinna Vinschen [Wed, 6 Dec 2006 16:33:03 +0000 (16:33 +0000)]
* fhandler_mem.cc (fhandler_dev_mem::open): Fix comment.
* wincap.cc (has_physical_mem_access): Reflect the fact that physical
memory access has been made a protected operation beginning with
2003 Server.

17 years agoDefine ATTRIBUTE_PACKED and use as necessary.
Nick Clifton [Wed, 6 Dec 2006 14:36:41 +0000 (14:36 +0000)]
Define ATTRIBUTE_PACKED and use as necessary.

17 years ago * include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.
Corinna Vinschen [Wed, 6 Dec 2006 14:08:08 +0000 (14:08 +0000)]
* include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.

17 years ago * winsup.h (WINVER): Set to 0x0600 to cover Vista.
Corinna Vinschen [Wed, 6 Dec 2006 14:06:38 +0000 (14:06 +0000)]
* winsup.h (WINVER): Set to 0x0600 to cover Vista.

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Fix typo.
Corinna Vinschen [Wed, 6 Dec 2006 14:05:59 +0000 (14:05 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Fix typo.

17 years ago * path.cc (cwdstuff::init): Don't change to windows_system_directory
Corinna Vinschen [Tue, 5 Dec 2006 21:46:26 +0000 (21:46 +0000)]
* path.cc (cwdstuff::init): Don't change to windows_system_directory
if Cygwin DLL has been loaded dynamically.

17 years ago * path.cc (cwdstuff::set): Don't try to open directory on systems not
Corinna Vinschen [Tue, 5 Dec 2006 13:20:38 +0000 (13:20 +0000)]
* path.cc (cwdstuff::set): Don't try to open directory on systems not
supporting that.

17 years ago * dcrt0.cc (get_cygwin_startup_info): Fix comment.
Corinna Vinschen [Tue, 5 Dec 2006 13:16:24 +0000 (13:16 +0000)]
* dcrt0.cc (get_cygwin_startup_info): Fix comment.
* wincap.cc (wincapc::init): Always reset needs_count_in_si_lpres2 to
false on non 64-bit systems.

17 years ago Fix date.
Corinna Vinschen [Tue, 5 Dec 2006 11:07:12 +0000 (11:07 +0000)]
Fix date.

17 years ago * dcrt0.cc (get_cygwin_startup_info): Change zeros to DWORD array.
Corinna Vinschen [Tue, 5 Dec 2006 10:59:21 +0000 (10:59 +0000)]
* dcrt0.cc (get_cygwin_startup_info): Change zeros to DWORD array.
Expect first DWORD in child_info struct being set to non-zero if
wincap.needs_count_in_si_lpres2 is set.  Add comment to explain why.
* fork.cc (frok::parent): Set ch.zero[0] to a sensible count value
if wincap.needs_count_in_si_lpres2 is set.
* spawn.cc (spawn_guts): Ditto.  Add filler bytes after ch on stack
to accomodate needs_count_in_si_lpres2.
* wincap.h: Define needs_count_in_si_lpres2 throughout.
* wincap.cc: Ditto.

17 years ago2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
Jeff Johnston [Mon, 4 Dec 2006 17:29:10 +0000 (17:29 +0000)]
2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>

        * libc/machine/spu/strncpy.c: Add padding.

17 years ago2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
Jeff Johnston [Mon, 4 Dec 2006 17:25:13 +0000 (17:25 +0000)]
2006-12-04  Kazunori Asayama  <asayama@sm.sony.co.jp>

        * testsuite/newlib.string/tstring.c:

17 years ago2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>
Jeff Johnston [Fri, 1 Dec 2006 17:18:36 +0000 (17:18 +0000)]
2006-12-01  Kazunori Asayama  <asayama@sm.sony.co.jp>

        * libc/machine/spu/strchr.c: Fix mask for misaligned string.
        * libc/machine/spu/strrchr.c: Ditto.

17 years ago2006-11-30 Lev Bishop <lev.bishop@gmail.com>
Jeff Johnston [Thu, 30 Nov 2006 23:40:12 +0000 (23:40 +0000)]
2006-11-30  Lev Bishop  <lev.bishop@gmail.com>

        * libc/include/math.h: Allow C99 functions/macros to be
        defined for C++ even when __STRICT_ANSI__.

17 years agoinclude:
Joern Rennecke [Thu, 30 Nov 2006 17:36:10 +0000 (17:36 +0000)]
include:
2006-05-03  Andrew Stubbs  <andrew.stubbs@st.com>
            J"orn Rennecke <joern.rennecke@st.com>

PR driver/29931
* libiberty.h (make_relative_prefix_ignore_links): Declare.

libiberty:
2006-05-03  Andrew Stubbs  <andrew.stubbs@st.com>
            J"orn Rennecke <joern.rennecke@st.com>

PR driver/29931
* make-relative-prefix.c (make_relative_prefix_1): New function,
broken out of make_relative_prefix.  Make link resolution dependent
on new parameter.
(make_relative_prefix): Use make_relative_prefix_1.
(make_relative_prefix_ignore_links): New function.

17 years ago * dir.cc (mkdir): Check last path component for "..".
Corinna Vinschen [Thu, 30 Nov 2006 10:17:24 +0000 (10:17 +0000)]
* dir.cc (mkdir): Check last path component for "..".
(rmdir): Don't check last path component for "..".
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Drop kludge
which tries to allow deleting the current working directory.
* path.cc (has_dot_last_component): Add parameter to indicate testing
for "..".  Take trailing slash into account.
(symlink_info::posixify): Rely on cygheap->cwd.win32 having a
useful value.
(cwdstuff::init): Initialize cygheap->cwd with current working
directory.  Change to windows_system_directory afterwards.
(cwdstuff::set): Never call SetCurrentDirectory here.  Just check
if changing into target directory would be allowed.  Add comment to
explain why.
* path.h (has_dot_last_component): Declare with second parameter.
* pinfo.cc (pinfo::zap_cwd): Remove.
(pinfo::exit): Drop call to zap_cwd.
* pinfo.h (class pinfo): Remove declaration of zap_cwd.
* spawn.cc (spawn_guts): Set current working directory for non-Cygwin
child applications.  Drop call to zap_cwd.

17 years ago2006-11-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 30 Nov 2006 00:35:57 +0000 (00:35 +0000)]
2006-11-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/makebuf.c (__smakebuf): If dealing with
        an asprintf-family buffer, make the default initial size 64.

17 years ago2006-11-29 Eric Blake <ebb9@byu.net>
Jeff Johnston [Wed, 29 Nov 2006 21:36:54 +0000 (21:36 +0000)]
2006-11-29  Eric Blake  <ebb9@byu.net>

        * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in
        asprintf, as well as quadratic realloc behavior.

17 years ago2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>
Jeff Johnston [Wed, 29 Nov 2006 19:54:05 +0000 (19:54 +0000)]
2006-11-29  Kazunori Asayama  <asayama@sm.sony.co.jp>

        * libc/machine/spu/memset.c: Fix type of explicit cast.
        * libc/machine/spu/strncmp.c: Add explicit cast.
        * libc/machine/spu/strrchr.c: Ditto.
        * libc/machine/spu/strspn.c: Ditto.

17 years ago * security.cc (create_token): Revert erroneous change to test
Corinna Vinschen [Tue, 28 Nov 2006 23:15:01 +0000 (23:15 +0000)]
* security.cc (create_token): Revert erroneous change to test
subauth_token for INVAILD_HANDLE_VALUE.
* syscalls.cc (seteuid32): Set create_token's subauth_token parameter
back to NULL.

17 years ago * fhandler.cc (fhandler_base::open): Fix previous patch to handle the
Corinna Vinschen [Tue, 28 Nov 2006 09:57:01 +0000 (09:57 +0000)]
* fhandler.cc (fhandler_base::open): Fix previous patch to handle the
SYSTEM attribute as well.

17 years agoRemove entries checked in by accident.
H.J. Lu [Mon, 27 Nov 2006 22:05:26 +0000 (22:05 +0000)]
Remove entries checked in by accident.

17 years agobfd/
Bob Wilson [Mon, 27 Nov 2006 20:14:52 +0000 (20:14 +0000)]
bfd/
* elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info.
gas/
* config/tc-xtensa.c (XSHAL_ABI): Add default definition.
(directive_state): Disable scheduling by default.
(xtensa_add_config_info): New.
(xtensa_end): Call xtensa_add_config_info.
gas/testsuite/
* gas/elf/section2.e-xtensa: New file.
* gas/elf/elf.exp: Use it.
include/
* xtensa-config.h (XSHAL_ABI): New.
(XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New.
ld/
* emultempl/xtensaelf.em (XSHAL_ABI): Add default definition.
(replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags.
Delete redundant code to set sections flags and alignment.
(xt_config_info_unpack_and_check, check_xtensa_info): New.
(elf_xtensa_after_open): Iterate over input statements instead of
link_info.input_bfds.
(elf_xtensa_before_allocation): Likewise.  Call check_xtensa_info for
each input, and write a new .xtensa.info section in the output.

17 years ago * xtensa-isa.h (STATIC_LIBISA): Delete.
Bob Wilson [Mon, 27 Nov 2006 19:23:21 +0000 (19:23 +0000)]
* xtensa-isa.h (STATIC_LIBISA): Delete.

17 years ago * fhandler.cc (fhandler_base::open): Fix handling of files with
Corinna Vinschen [Mon, 27 Nov 2006 19:14:24 +0000 (19:14 +0000)]
* fhandler.cc (fhandler_base::open): Fix handling of files with
HIDDEN attribute set.

17 years ago* include/cygwin/signal.h: Add __extension__ to various anonymous unions and
Christopher Faylor [Mon, 27 Nov 2006 16:43:34 +0000 (16:43 +0000)]
* include/cygwin/signal.h: Add __extension__ to various anonymous unions and
structs.  (thanks to V.Haisman)

17 years ago2006-11-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 27 Nov 2006 16:12:51 +0000 (16:12 +0000)]
2006-11-27  Jeff Johnston  <jjohnstn@redhat.com>

        * mips/crt0.S: Fix preprocessor statements from previous patch
        to be ANSI.

17 years ago Initial release of the Cygwin LSA authentication package.
Corinna Vinschen [Mon, 27 Nov 2006 13:05:54 +0000 (13:05 +0000)]
Initial release of the Cygwin LSA authentication package.
* ChangeLog: New file.
* Makefile.in: Ditto.
* aclocal.m4: Ditto.
* configure.in: Ditto.
* configure: Ditto. Generated from configure.in.
* cyglsa-config: Ditto.
* cyglsa.c: Ditto.
* cyglsa.din: Ditto.
* cyglsa64.dll: Ditto.
* make-64bit-version-with-visual-c.bat: Ditto.
* mslsa.def: Ditto.

17 years ago * Makefile.in: Add dependencies for lsaauth.
Corinna Vinschen [Mon, 27 Nov 2006 13:01:36 +0000 (13:01 +0000)]
* Makefile.in: Add dependencies for lsaauth.
* configure.in: Disable building subauth.  Add building lsaauth.
* configure: Regenerate.

17 years ago * cyglsa.h: New header file.
Corinna Vinschen [Mon, 27 Nov 2006 12:59:59 +0000 (12:59 +0000)]
* cyglsa.h: New header file.
* environ.cc: Disable subauth settings.
* grp.cc: Accomodate cygsidlist's count now being a method.
* sec_helper.cc (SECURITY_MANDATORY_INTEGRITY_AUTHORITY): Remove.
(mandatory_medium_integrity_sid): Remove.
(mandatory_high_integrity_sid): Remove.
(mandatory_system_integrity_sid): Remove.
(fake_logon_sid): Add.
(cygsid::get_sid): Add well_known parameter.  Set well_known_sid
accordingly.
(cygsid::getfromstr): Ditto.
(cygsidlist::alloc_sids): Move here from security.cc.
(cygsidlist::free_sids): Ditto.
(cygsidlist::add): Move here from security.h.  Add well_known parameter.
Set well_known_sid accordingly.  Don't allow duplicate SIDs.
* security.cc: Include cyglsa.h and cygwin/version.h.  Throughout
accomodate cygsidlist's count now being a method.  Throughout drop
redundant "contains" tests.
(get_user_local_groups): Add local groups as well known SIDs.
(get_token_group_sidlist): Add well known groups as well known SIDs.
(get_server_groups): Ditto.  Only call get_unix_group_sidlist after
get_user_local_groups to maintain "well_known_sid" attribute.
(get_initgroups_sidlist): Add well known groups as well known SIDs.
(get_setgroups_sidlist): Add usersid and struct passwd parameter to
allow calling get_server_groups from here.
(get_system_priv_list): Make static.  Return size of TOKEN_PRIVILEGES
structure.
(get_priv_list): Ditto.
(create_token): Accomodate above changes.  Drop misguided attempt to
add MIC SIDs to created user token.  Print returned token as hex value.
(subauth): Disable.
(lsaauth): New function implementing client side of LSA authentication.
* security.h (class cygsid): Add well_known_sid attribute.  Accomodate
throughout.  Add *= operator to create a well known SID.
(class cygsidlist): Rename count to cnt.  Make count a method.
(cygsidlist::add): Move to sec_helper.cc.
(cygsidlist::operator *=): New method to add well known SID.
(cygsidlist::non_well_known_count): New method returning number of
non well known SIDs in list.
(cygsidlist::next_non_well_known_sid): New method returning next non
well known SID by index.
(mandatory_medium_integrity_sid): Drop declaration.
(mandatory_high_integrity_sid): Drop declaration.
(mandatory_system_integrity_sid): Drop declaration.
(fake_logon_sid): Add declaration.
(subauth): Disable declaration.
(lsaauth): Add declaration.
* syscalls.cc (seteuid32): Disable subauthentication.  Add LSA
authentication.
* wincap.h: Define needs_logon_sid_in_sid_list throughout.
* wincap.cc: Ditto.

17 years agoconfigure.in: Update to autoconf 2.5x syntax; fix macro argument quoting;
Keith Marshall [Sat, 25 Nov 2006 15:55:05 +0000 (15:55 +0000)]
configure.in: Update to autoconf 2.5x syntax; fix macro argument quoting;
remove invalid use of AC_ALLOCA; remove redundant use of AC_SUBST.

17 years ago2006-11-24 Thiemo Seufer <ths@mips.com>
Jeff Johnston [Fri, 24 Nov 2006 18:19:18 +0000 (18:19 +0000)]
2006-11-24  Thiemo Seufer  <ths@mips.com>
            Nigel Stephens  <nigel@mips.com>

        * mips/crt0.S (_start): Use all available float registers. Don't touch
        SR_PE on post-mips2 CPUs, it means soft reset there.

17 years ago * security.h (DBGSID): Define for debugging purposes.
Corinna Vinschen [Thu, 23 Nov 2006 16:44:55 +0000 (16:44 +0000)]
* security.h (DBGSID): Define for debugging purposes.
(MKSID): Rename from SID so as to not hide SID definition from winnt.h.
* sec_helper.cc: Change SID to MKSID throughout.

17 years ago * net.cc (get_ipv6_funcs): Fix formatting.
Corinna Vinschen [Thu, 23 Nov 2006 16:30:12 +0000 (16:30 +0000)]
* net.cc (get_ipv6_funcs): Fix formatting.

17 years ago * path.cc (fs_info::update): Define GETVOLINFO_VALID_MASK and TEST_GVI.
Corinna Vinschen [Thu, 23 Nov 2006 11:28:52 +0000 (11:28 +0000)]
* path.cc (fs_info::update): Define GETVOLINFO_VALID_MASK and TEST_GVI.
Change FS_IS_SAMBA and FS_IS_SAMBA_WITH_QUOTA and their usage
accordingly.  Define FS_IS_NETAPP_DATAONTAP.  Recognize NetApp device
and store in is_netapp flag.  Mark NetApp device as having no good
inodes.
* path.h (struct fs_info): Add is_netapp flag.  Add matching accessors.

17 years ago * fhandler_console.cc (set_color): Avoid (again) inappropriate
Corinna Vinschen [Thu, 23 Nov 2006 10:08:04 +0000 (10:08 +0000)]
* fhandler_console.cc (set_color): Avoid (again) inappropriate
intensity interchanging that used to render reverse output unreadable
when (non-reversed) text is bright.
See http://sourceware.org/bugzilla/show_bug.cgi?id=514

17 years ago * devices.h: Add additional SCSI disk block device numbers per
Corinna Vinschen [Thu, 23 Nov 2006 09:55:55 +0000 (09:55 +0000)]
* devices.h: Add additional SCSI disk block device numbers per
http://www.kernel.org/pub/linux/docs/device-list/devices.txt
up to 128 devices.
* devices.in: Ditto.
(device::parsedisk): Add additonal else-if cases for decoding base
and drive indices.
* devices.cc: Regenerate.
* dtable.cc (build_fh_pc): Add additional DEV_SD{2..7}_MAJOR cases.

17 years ago2006-11-22 Luca Barbato <lu_zero@gentoo.org>
Jeff Johnston [Wed, 22 Nov 2006 21:20:31 +0000 (21:20 +0000)]
2006-11-22  Luca Barbato  <lu_zero@gentoo.org>

        * spu/syscalls.c: Include spu_intrinsics.h to provide vector keyword.

17 years ago2006-11-22 Luca Barbato <lu_zero@gentoo.org>
Jeff Johnston [Wed, 22 Nov 2006 21:19:56 +0000 (21:19 +0000)]
2006-11-22  Luca Barbato  <lu_zero@gentoo.org>

        * libc/machine/spu/memcpy.c: Use spu_splats, explicit cast.
        * libc/machine/spu/memmove.c: Use spu_splats, explicit cast.
        * libc/machine/spu/memset.c: Use spu_splats, remove apple-cast.
        * libc/machine/spu/strchr.c: Use spu_splats, remove apple-cast.
        * libc/machine/spu/strncat.c: Explicit cast.
        * libc/machine/spu/strncmp.c: Use spu_splats.
        * libc/machine/spu/strncpy.c: Explicit cast.
        * libc/machine/spu/strrchr.c: Use spu_splats.
        * libc/machine/spu/strspn.c: Use spu_splats.

17 years ago * Makefile.in: Add aclocal.m4 to source release.
Danny Smith [Tue, 21 Nov 2006 09:36:00 +0000 (09:36 +0000)]
* Makefile.in: Add aclocal.m4 to source release.

17 years ago * Makefile.in: Add aclocal.m4:to source release.
Danny Smith [Tue, 21 Nov 2006 09:30:15 +0000 (09:30 +0000)]
* Makefile.in:  Add aclocal.m4:to source release.
* mingwex/Makefile.in: Ditto.
* profile/Makefile.in: Ditto.

17 years ago2006-11-18 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 18 Nov 2006 22:39:52 +0000 (22:39 +0000)]
2006-11-18  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.8.
        * Makefile.in: Ditto.

17 years ago2006-11-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 18 Nov 2006 22:26:49 +0000 (22:26 +0000)]
2006-11-18  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * Include/_mingw.h: Increment version to 3.11.
        * Makefile.in: Ditto.

17 years ago2006-11-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 17 Nov 2006 19:18:02 +0000 (19:18 +0000)]
2006-11-17  Jeff Johnston  <jjohnstn@redhat.com>

        * mn10300/Makefile.in: Add spaces after do in "for" loop.

17 years ago2006-11-16 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 17 Nov 2006 10:35:45 +0000 (10:35 +0000)]
2006-11-16  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (clean-target-libgcc): Test for gcc Makefile presence.
(unstage): Test for stage_last presence.

PR bootstrap/29802
* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Add HOST_SUBDIR in STAGE_PREFIX.
* Makefile.in: Regenerate.

17 years ago2006-11-15 Till Straumann <strauman@slac.stanford.edu>
Jeff Johnston [Wed, 15 Nov 2006 20:10:25 +0000 (20:10 +0000)]
2006-11-15  Till Straumann  <strauman@slac.stanford.edu>

        * libc/time/tzset_r.c (_tzset_r): Initialize local variable.

17 years ago* Makefile.tpl (clean-stage*): Sync with GCC (clean).
DJ Delorie [Tue, 14 Nov 2006 23:26:39 +0000 (23:26 +0000)]
* Makefile.tpl (clean-stage*): Sync with GCC (clean).
* Makefile.in: Sync with GCC.
* configure.in: Sync with GCC (mpfr, gmp).
* configure: Sync with GCC.

17 years ago2006-11-14 Eric Blake <ebb9@byu.net>
Jeff Johnston [Tue, 14 Nov 2006 21:29:26 +0000 (21:29 +0000)]
2006-11-14  Eric Blake  <ebb9@byu.net>

        * libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
        (chclass): ' is a flag.  j, t, and z are modifiers.

17 years ago* peXXigen.c: Updates for PE/COFF V8.0, and clarification
Nick Clifton [Tue, 14 Nov 2006 19:03:32 +0000 (19:03 +0000)]
* peXXigen.c: Updates for PE/COFF V8.0, and clarification
  (dir_names): Added CLR Runtime Header to dir_names[].
  (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX subsystem names
  (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out)
  (pe_print_idata, pe_print_edata)
  (_bfd_XX_bfd_copy_private_bfd_data_common)
  (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into DataDirectory.
* pe.h: Added defines for IMAGE_SUBSYSTEM_EFI_ROM and IMAGE_SUBSYSTEM_XBOX.
* internal.h: Added defines for PE directory entry types.
  NB: in internal.h because IMAGE_NUMBEROF_DIRECTORY_ENTRYIES is in pe.h

17 years ago * tls.m4 (GCC_CHECK_TLS): Fall back to a link test.
Daniel Jacobowitz [Tue, 14 Nov 2006 03:32:36 +0000 (03:32 +0000)]
* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.

17 years agoMerge ChangeLog and multi.m4 from GCC repository.
Geoffrey Keating [Tue, 14 Nov 2006 02:04:57 +0000 (02:04 +0000)]
Merge ChangeLog and multi.m4 from GCC repository.

17 years ago2006-11-13 Daniel Schlyder <thrug@users.sourceforge.net>
Danny Smith [Mon, 13 Nov 2006 02:11:45 +0000 (02:11 +0000)]
2006-11-13  Daniel Schlyder  <thrug@users.sourceforge.net>

* include/winnt.h (VER_SUITE_EMBEDDEDNT, VER_SUITE_SINGLEUSERTS,
VER_SUITE_STORAGE_SERVER, VER_SUITE_COMPUTE_SERVER): Define.

* include/winuser.h (SM_STARTER, SM_SERVERR2): Define.

17 years ago2006-11-08 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 9 Nov 2006 16:25:54 +0000 (16:25 +0000)]
2006-11-08  Jie Zhang  <jie.zhang@analog.com>

        * configure.in: Remove target-libgloss from noconfigdirs for
        bfin-*-*.
        * configure: Regenerated.

17 years agoChange Jie Zhang's e-mail address to work address.
Jeff Johnston [Thu, 9 Nov 2006 16:24:43 +0000 (16:24 +0000)]
Change Jie Zhang's e-mail address to work address.

17 years agoChange Jie Zhang's e-mail address to work e-mail.
Jeff Johnston [Thu, 9 Nov 2006 16:24:06 +0000 (16:24 +0000)]
Change Jie Zhang's e-mail address to work e-mail.

17 years ago * autoload.cc (EqualPrefixSid): Define.
Corinna Vinschen [Thu, 9 Nov 2006 15:24:34 +0000 (15:24 +0000)]
* 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.

17 years ago [ mingw-Bugs-1590623 ]
Danny Smith [Wed, 8 Nov 2006 21:58:18 +0000 (21:58 +0000)]
[ mingw-Bugs-1590623 ]
* include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
in C99 mode.

17 years ago2006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston [Wed, 8 Nov 2006 20:28:29 +0000 (20:28 +0000)]
2006-11-08  Jie Zhang  <jzhang918@gmail.com>

        * configure.in: Remove target-libgloss from noconfigdirs for
        bfin-*-*.
        * configure: Regenerated.

17 years agogas/
H.J. Lu [Wed, 8 Nov 2006 19:56:02 +0000 (19:56 +0000)]
gas/

2006-11-08  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.h (CpuPNI): Removed.
(CpuUnknownFlags): Replace CpuPNI with CpuSSE3.
* config/tc-i386.c (md_assemble): Likewise.

include/opcode/

2006-11-08  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (i386_optab): Replace CpuPNI with CpuSSE3.

17 years ago2006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston [Wed, 8 Nov 2006 19:36:56 +0000 (19:36 +0000)]
2006-11-08  Jie Zhang  <jzhang918@gmail.com>

        * bfin/configure.in: New.
        * bfin/crt0.S: New.
        * bfin/Makefile.in: New.
        * bfin/syscalls.c: New.
        * bfin/aclocal.m4: Generate.
        * bfin/configure: Ditto.
        * configure.in: Add support for bfin-*-*.
        * configure: Regenerate.
        * syscall.h (SYS_argc): Define.
        (SYS_argnlen): Define.
        (SYS_argn): Define.

17 years ago2006-11-08 Jie Zhang <jzhang918@gmail.com>
Jeff Johnston [Wed, 8 Nov 2006 19:26:43 +0000 (19:26 +0000)]
2006-11-08  Jie Zhang  <jzhang918@gmail.com>

        * configure.host: Add support for bfin.
        * libc/include/machine/ieeefp.h: Define __IEEE_LITTLE_ENDIAN for bfin.
        * libc/include/machine/setjmp.h: Define _JBLEN for bfin.
        * libc/machine/bfin/aclocal.m4: Generate.
        * libc/machine/bfin/configure.in: New.
        * libc/machine/bfin/configure: Generate.
        * libc/machine/bfin/Makefile.am: New.
        * libc/machine/bfin/Makefile.in: Generate.
        * libc/machine/bfin/setjmp.S: New.
        * libc/machine/bfin/longjmp.S: New.
        * libc/machine/configure.in: Add bfin support.
        * libc/machine/configure: Generate.

17 years ago * sec_helper.cc (sid_auth): Remove.
Corinna Vinschen [Wed, 8 Nov 2006 11:38:05 +0000 (11:38 +0000)]
* 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.

17 years ago * fhandler.cc (check_posix_perm): Moved here from syscalls.cc.
Corinna Vinschen [Tue, 7 Nov 2006 17:59:54 +0000 (17:59 +0000)]
* 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.

17 years ago * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
Corinna Vinschen [Tue, 7 Nov 2006 15:33:40 +0000 (15:33 +0000)]
* libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin.
(_PC_FILESIZEBITS): Add definition.
(_PC_2_SYMLINKS): Ditto.
(_PC_SYMLINK_MAX): Ditto.

17 years ago * dtable.cc (build_fh_pc): Add missing DEV_SD1_MAJOR case (Thanks to
Corinna Vinschen [Mon, 6 Nov 2006 13:46:24 +0000 (13:46 +0000)]
* dtable.cc (build_fh_pc): Add missing DEV_SD1_MAJOR case (Thanks to
Joe Loh for noticing).

17 years ago * path.cc (symlink_info::posixify): Fix comment.
Corinna Vinschen [Thu, 2 Nov 2006 13:39:44 +0000 (13:39 +0000)]
* path.cc (symlink_info::posixify): Fix comment.

17 years ago * path.cc (symlink_info::check): Eliminate PATH_REP bit from pflags.
Corinna Vinschen [Thu, 2 Nov 2006 12:19:16 +0000 (12:19 +0000)]
* path.cc (symlink_info::check): Eliminate PATH_REP bit from pflags.

17 years ago * path.cc (symlink_info::posixify): New mothod converting NT and DOS
Corinna Vinschen [Thu, 2 Nov 2006 11:45:03 +0000 (11:45 +0000)]
* 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.

17 years ago * include/winuser.h (LR_DEFAULTSIZE): Remove duplicate.
Danny Smith [Thu, 2 Nov 2006 00:54:46 +0000 (00:54 +0000)]
* include/winuser.h (LR_DEFAULTSIZE): Remove duplicate.

C99 'extern inline' patrol.
* include/winnt.h (GetCurrentFiber): Remove extern declaration.  Make
inline static.
(GetFiberData): Likewise.
* lib/kernel32.c: Remove.
* lib/Makefile.in: Remove reference to kernel32.[co].

17 years ago * security.h (cygpriv_idx): Add privileges new in Vista.
Corinna Vinschen [Wed, 1 Nov 2006 09:00:14 +0000 (09:00 +0000)]
* security.h (cygpriv_idx): Add privileges new in Vista.
* security.cc (sys_privs): Ditto.
* sec_helper.cc (cygpriv): Ditto.  Fix comment.

17 years ago * include/winnt.h (SE_RELABEL_NAME): Define.
Corinna Vinschen [Wed, 1 Nov 2006 08:57:57 +0000 (08:57 +0000)]
* include/winnt.h (SE_RELABEL_NAME): Define.
(SE_INCREASE_WORKING_SET_NAME): Define.
(SE_TIME_ZONE_NAME): Define.
(SE_CREATE_SYMBOLIC_LINK_NAME): Define.

17 years ago2006-10-30 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 31 Oct 2006 20:21:56 +0000 (20:21 +0000)]
2006-10-30  Paul Brook  <paul@codesourcery.com>

binutils/
* objdump.c (disassemble_section): Set info->symtab_pos.
(disassemble_data): Set info->symtab and info->symtab_size.

include/
* dis-asm.h (disassemble_info): Add symtab, symtab_pos and
symtab_size.

opcodes/
* arm-dis.c (last_is_thumb, last_mapping_sym, last_mapping_addr): New.
(get_sym_code_type): New function.
(print_insn): Search for mapping symbols.

17 years ago * cygheap.h (struct user_heap_info): Add slop member.
Corinna Vinschen [Tue, 31 Oct 2006 18:41:16 +0000 (18:41 +0000)]
* 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.

17 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop
Corinna Vinschen [Tue, 31 Oct 2006 11:40:47 +0000 (11:40 +0000)]
* 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.

17 years ago * include/winnt.h (IO_REPARSE_TAG_SYMLINK): Define.
Corinna Vinschen [Tue, 31 Oct 2006 11:39:58 +0000 (11:39 +0000)]
* include/winnt.h (IO_REPARSE_TAG_SYMLINK): Define.
(struct _REPARSE_DATA_BUFFER): Add missing Flags field to
SymbolicLinkReparseBuffer substructure.

17 years ago* tc-score.c (data_op2): Check invalid operands.
Nick Clifton [Tue, 31 Oct 2006 09:54:41 +0000 (09:54 +0000)]
* 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.

17 years agobfd/
H.J. Lu [Mon, 30 Oct 2006 23:25:51 +0000 (23:25 +0000)]
bfd/

2006-10-30  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3111
* elf-bfd.h (elf_obj_tdata): Add symbuf.
(_bfd_elf_section_already_linked): Add struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(bfd_elf_match_symbols_in_sections): Likewise.

* elf.c (assign_section_numbers): Updated to add
struct bfd_link_info *.
(bfd_elf_match_symbols_in_sections): Updated. Cache symbol
buffer if info->reduce_memory_overheads is false.

* elflink.c (match_group_member): Updated to add
struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(elf_link_input_bfd): Likewise.
(_bfd_elf_section_already_linked): Likewise.
(bfd_elf_final_link): Free symbol buffer if
info->reduce_memory_overheads is false.

* libbfd-in.h (_bfd_nolink_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* libbfd.h: Regenerated.

* linker.c (bfd_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* targets.c (bfd_target): Add struct bfd_link_info * to
_section_already_linked.
* bfd-in2.h: Regenerated.

include/

2006-10-30  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3111
* bfdlink.h (bfd_link_info): Add reduce_memory_overheads.

ld/

2006-10-30  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/3111
* ld.h (args_type): Remove reduce_memory_overheads.

* ldlang.c (lang_map): Updated.
(section_already_linked): Likewise.
(print_input_section): Likewise.
* ldmain.c (main): Likewise.
* lexsup.c (parse_args): Likewise.

17 years ago2006-10-29 Daniel Atallah <datallah@users.sourceforge.net>
Danny Smith [Sun, 29 Oct 2006 22:37:10 +0000 (22:37 +0000)]
2006-10-29  Daniel Atallah  <datallah@users.sourceforge.net>

* lib/ws2_32.def (WSANSPIoctl): Add to lib.

17 years agoinclude/elf/
Richard Sandiford [Sat, 28 Oct 2006 10:13:49 +0000 (10:13 +0000)]
include/elf/
* mips.h (R_MIPS_GLOB_DAT): Define
(R_MIPS_max): Bump by 1.

bfd/
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
* elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
(elf_mips_howto_table_rela): Likewise.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
(mips_elf64_howto_table_rela): Likewise.

17 years ago2006-10-27 Joel Schopp <jschopp@austin.ibm.com>
Jeff Johnston [Fri, 27 Oct 2006 23:02:00 +0000 (23:02 +0000)]
2006-10-27  Joel Schopp  <jschopp@austin.ibm.com>

        * libc/machine/spu/memcpy.c: Override generic function with vectorized
        version optimized for the cell spu.
        * libc/machine/spu/memmove.c: Ditto.
        * libc/machine/spu/memset.c: Ditto.
        * libc/machine/spu/strcat.c: Ditto.
        * libc/machine/spu/strchr.c: Ditto.
        * libc/machine/spu/strcmp.c: Ditto.
        * libc/machine/spu/strcpy.c: Ditto.
        * libc/machine/spu/strcspn.c: Ditto.
        * libc/machine/spu/strlen.c: Ditto.
        * libc/machine/spu/strncat.c: Ditto.
        * libc/machine/spu/strncmp.c: Ditto.
        * libc/machine/spu/strncpy.c: Ditto.
        * libc/machine/spu/strpbrk.c: Ditto.
        * libc/machine/spu/strrchr.c: Ditto.
        * libc/machine/spu/strspn.c: Ditto.
        * libc/machine/spu/strxfrm.c: Ditto.
        * libc/machine/spu/vec_literal.h: Add abstraction of vector literals,
        removing altivec style initializers.
        * libc/machine/spu/Makefile.am: Add new files to list so they build
        * libc/machine/spu/Makefile.in: Regenerate from new Makefile.am

17 years ago2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Oct 2006 23:00:35 +0000 (23:00 +0000)]
2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add spu license.
        * COPYING.LIBGLOSS: Ditto.

17 years ago2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Oct 2006 22:57:03 +0000 (22:57 +0000)]
2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add spu license.

17 years ago2006-10-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Oct 2006 19:22:57 +0000 (19:22 +0000)]
2006-10-27  Jeff Johnston  <jjohnstn@redhat.com>

        * README: Add a brief section on how to regenerate
        configuration files in newlib.

17 years ago * shared.cc (open_shared): Drop useless attempt from 2006-08-11.
Corinna Vinschen [Fri, 27 Oct 2006 10:51:25 +0000 (10:51 +0000)]
* shared.cc (open_shared): Drop useless attempt from 2006-08-11.

17 years ago * dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf.
Corinna Vinschen [Fri, 27 Oct 2006 10:41:51 +0000 (10:41 +0000)]
* dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf.
* smallprint.c (__small_vsprintf): Preserve GetLastError value.
* winsup.h (api_fatal): Simplify.  Drop duplicate filename arg.

17 years ago2006-10-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 27 Oct 2006 01:02:29 +0000 (01:02 +0000)]
2006-10-26  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * lib/Makefile.in: Fix order for 'all' rule.

17 years ago2006-10-25 Vladimir Prus <vladimir@codesourcery.com>
Jeff Johnston [Wed, 25 Oct 2006 18:46:40 +0000 (18:46 +0000)]
2006-10-25  Vladimir Prus  <vladimir@codesourcery.com>

        * libc/include/math.h: (exception): Add a comment
        telling fixincludes that we handle C vs. C++ issue.

17 years agoNew Cell SPU port.
Alan Modra [Wed, 25 Oct 2006 06:49:18 +0000 (06:49 +0000)]
New Cell SPU port.

17 years agoAdd powerpc cell support.
Alan Modra [Tue, 24 Oct 2006 01:27:28 +0000 (01:27 +0000)]
Add powerpc cell support.

17 years agoFix AMDFAM10 POPCNT instruction
Michael Meissner [Mon, 23 Oct 2006 22:53:28 +0000 (22:53 +0000)]
Fix AMDFAM10 POPCNT instruction

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix comment.
Corinna Vinschen [Mon, 23 Oct 2006 16:41:10 +0000 (16:41 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix comment.

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Accomodate
Corinna Vinschen [Mon, 23 Oct 2006 15:13:55 +0000 (15:13 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Accomodate
buggy RestartScan behaviour of Windows 2000.
* wincap.h: Define has_buggy_restart_scan throughout.
* wincap.cc: Ditto.

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::facl): Fix whitespace.
Corinna Vinschen [Sun, 22 Oct 2006 19:31:33 +0000 (19:31 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::facl): Fix whitespace.
* external.cc: Update copyright.
* fhandler.cc: Ditto.
* sec_helper.cc: Ditto.
* security.h: Ditto.
* security.cc: Ditto.
(check_registry_access): Return -1 if W_OK is requested.

17 years ago * external.cc (cygwin_internal): Use security_descriptor::copy method.
Corinna Vinschen [Sun, 22 Oct 2006 14:57:43 +0000 (14:57 +0000)]
* 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.

17 years ago * fhandler.cc (fhandler_base::fhaccess): Check if opening registry
Corinna Vinschen [Sun, 22 Oct 2006 09:38:47 +0000 (09:38 +0000)]
* 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.

This page took 0.072544 seconds and 5 git commands to generate.