]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years ago2007-08-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 24 Aug 2007 20:49:59 +0000 (20:49 +0000)]
2007-08-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libm/common/sf_lround.c (lroundf): Cast sizeof calculation
        to int before comparing it to a signed int value.

16 years ago * syscalls.cc (open): Don't follow symlinks if O_EXCL is given.
Corinna Vinschen [Fri, 24 Aug 2007 14:55:56 +0000 (14:55 +0000)]
* syscalls.cc (open): Don't follow symlinks if O_EXCL is given.

16 years ago* dll.sgml: myprog.ca -> myprog.c
Christopher Faylor [Fri, 24 Aug 2007 14:52:39 +0000 (14:52 +0000)]
* dll.sgml: myprog.ca -> myprog.c

16 years agobinutils/
Ben Elliston [Fri, 24 Aug 2007 00:56:30 +0000 (00:56 +0000)]
binutils/
* doc/binutils.texi (objdump): Document -Mppcps.

gas/
* config/tc-ppc.c (parse_cpu): Handle "750cl".
(pre_defined_registers): Add "gqr0" to "gqr7", "gqr.0" to "gqr.7".
(md_show_usage): Document -m750cl.
(md_assemble): Handle two delimiters in succession (eg. `),').
* doc/c-ppc.texi (PowerPC-Opts): Document -m750cl.
* testsuite/gas/ppc/ppc.exp: Run ppc70ps dump tests.
* testsuite/gas/ppc/ppc750ps.s: New file.
* testsuite/gas/ppc/ppc750ps.d: Likewise.

include/opcode/
* ppc.h (PPC_OPCODE_PPCPS): New.

opcodes/
* ppc-opc.c (PSW, PSWM, PSQ, PSQM, PSD, MTMSRD_L): New.
(XOPS, XOPS_MASK, XW, XW_MASK): Likewise.
(PPCPS): Likewise.
(powerpc_opcodes): Add all pair singles instructions.
* ppc-dis.c (powerpc_dialect): Handle "ppcps".
(print_ppc_disassembler_options): Document -Mppcps.

16 years ago * libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
Hans-Peter Nilsson [Thu, 23 Aug 2007 23:40:28 +0000 (23:40 +0000)]
* libc/machine/cris/sys/errno.h (ECANCELED, ENOKEY, EKEYEXPIRED)
(EKEYREVOKED, EKEYREJECTED, EOWNERDEAD, ENOTRECOVERABLE, ENOTSUP):
Define.

16 years ago2007-08-23 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
Jeff Johnston [Thu, 23 Aug 2007 18:45:22 +0000 (18:45 +0000)]
2007-08-23  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>

        Reduce the memory consumption of variable argument functions
        for SPU (cell):
        * libc/machine/spu/Makefile.am: Replace printf/scanf family C sources
          to assembler sources.
        * libc/machine/spu/Makefile.in: Regenerated.
        * libc/machine/spu/stdio.c: Add __check_init function wrapping
          CHECK_INIT macro to use from assembler routines.
        * libc/machine/spu/c99ppe.h: Add definitions for assembler code.
        * libc/machine/spu/fiprintf.S: New file.
        * libc/machine/spu/fiscanf.S: Ditto.
        * libc/machine/spu/fprintf.S: Ditto.
        * libc/machine/spu/fscanf.S: Ditto.
        * libc/machine/spu/iprintf.S: Ditto.
        * libc/machine/spu/iscanf.S: Ditto.
        * libc/machine/spu/printf.S: Ditto.
        * libc/machine/spu/scanf.S: Ditto.
        * libc/machine/spu/siprintf.S: Ditto.
        * libc/machine/spu/siscanf.S: Ditto.
        * libc/machine/spu/sniprintf.S: Ditto.
        * libc/machine/spu/snprintf.S: Ditto.
        * libc/machine/spu/sprintf.S: Ditto.
        * libc/machine/spu/sscanf.S: Ditto.
        * libc/machine/spu/stack_reg_va.S: Ditto.
        * libc/machine/spu/syscall.def: Ditto. (for maintenance)
        * libc/machine/spu/mk_syscalls: Ditto. (for maintenance)
        * libc/machine/spu/fiprintf.c: Removed. (Replaced by .S)
        * libc/machine/spu/fiscanf.c: Ditto.
        * libc/machine/spu/fprintf.c: Ditto.
        * libc/machine/spu/fscanf.c: Ditto.
        * libc/machine/spu/iprintf.c: Ditto.
        * libc/machine/spu/iscanf.c: Ditto.
        * libc/machine/spu/printf.c: Ditto.
        * libc/machine/spu/scanf.c: Ditto.
        * libc/machine/spu/siprintf.c: Ditto.
        * libc/machine/spu/siscanf.c: Ditto.
        * libc/machine/spu/sniprintf.c: Ditto.
        * libc/machine/spu/snprintf.c: Ditto.
        * libc/machine/spu/sprintf.c: Ditto.
        * libc/machine/spu/sscanf.c: Ditto.

16 years ago Switch the license of all .h files to GPLv3.
Joel Brobecker [Thu, 23 Aug 2007 18:17:33 +0000 (18:17 +0000)]
    Switch the license of all .h files to GPLv3.

16 years ago * ntdll.h (STATUS_NO_SUCH_FILE): Define.
Corinna Vinschen [Thu, 23 Aug 2007 07:43:24 +0000 (07:43 +0000)]
* ntdll.h (STATUS_NO_SUCH_FILE): Define.
* path.cc (get_nt_native_path): Reset upath.Length to 0 on each
invocation.
(symlink_info::check): Use NT native functions.

16 years ago * uinfo.cc (pwdgrp::load): Use NT native functions.
Corinna Vinschen [Tue, 21 Aug 2007 17:38:27 +0000 (17:38 +0000)]
* uinfo.cc (pwdgrp::load): Use NT native functions.

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Rewrite checking
Corinna Vinschen [Tue, 21 Aug 2007 15:37:10 +0000 (15:37 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Rewrite checking
for executable file magic using a thread safe method and re-enable this
code.

16 years ago * syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct.
Corinna Vinschen [Tue, 21 Aug 2007 12:39:53 +0000 (12:39 +0000)]
* syscalls.cc (unlink_nt): Drop one local FILE_BASIC_INFORMATION struct.

16 years ago * ntdll.h (NtNotifyChangeDirectoryFile): Declare.
Corinna Vinschen [Tue, 21 Aug 2007 12:37:40 +0000 (12:37 +0000)]
* ntdll.h (NtNotifyChangeDirectoryFile): Declare.
(NtQueryAttributesFile): Move to maintain alphabetical order of
declarations.  Add comment to note that timestamp information returned
by NtQueryAttributesFile is unreliable.
* path.h (etc::changed_h): Move here.
(etc::fn): Change type to OBJECT_ATTRIBUTES.
(etc::last_modified): Change type to LARGE_INTEGER.
(etc::init): Take PUNICODE_STRING as second argument.
* path.cc: Accomodate above changes.
(etc::test_file_change): Use NT native functions.
(etc::dir_changed): Ditto.
* uinfo.cc (pwdgrp::load): Call etc::init with NT native path.

16 years ago * fhandler_disk_file.cc: Change debugging output througout to print
Corinna Vinschen [Tue, 21 Aug 2007 12:09:38 +0000 (12:09 +0000)]
* fhandler_disk_file.cc: Change debugging output througout to print
the NT status consistently.  Use UNICODE path information if available.

16 years agoBring over from the GCC tree:
Ben Elliston [Tue, 21 Aug 2007 04:15:07 +0000 (04:15 +0000)]
Bring over from the GCC tree:

2007-08-21  Richard Guenther  <rguenther@suse.de>

  * configure.ac: Add types checking to stage1 checking flags.
* configure: Regenerate.

16 years ago * hookapi.cc (ld_preload): Call LoadLibraryW.
Corinna Vinschen [Mon, 20 Aug 2007 15:41:08 +0000 (15:41 +0000)]
* hookapi.cc (ld_preload): Call LoadLibraryW.
* path.h (path_conv::get_wide_win32_path_len): Define.

16 years ago * fhandler.cc (rootdir): Delete.
Corinna Vinschen [Mon, 20 Aug 2007 15:16:27 +0000 (15:16 +0000)]
* fhandler.cc (rootdir): Delete.
* winsup.h (rootdir): Drop declaration.

16 years ago * path.cc (fillout_mntent): Append backslash to drive-only paths before
Corinna Vinschen [Sun, 19 Aug 2007 15:55:06 +0000 (15:55 +0000)]
* path.cc (fillout_mntent): Append backslash to drive-only paths before
calling fs_info::update.
* path.h (fs_info::clear): Simplify.
(fs_info::fs_info): Add constructor.

16 years ago2007-08-18 Paul Brook <paul@codesourcery.com>
Joseph Myers [Sat, 18 Aug 2007 15:19:10 +0000 (15:19 +0000)]
2007-08-18  Paul Brook  <paul@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* Makefile.tpl (DEBUG_PREFIX_CFLAGS_FOR_TARGET): New.
(CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Include it.
* Makefile.in: Regenerate.
* configure.ac (--with-debug-prefix-map): New.
* configure: Regenerate.

config:
2007-08-18  Paul Brook  <paul@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* mt-gnu (CXXFLAGS_FOR_TARGET): Add
$(DEBUG_PREFIX_CFLAGS_FOR_TARGET).

16 years ago * spawn.cc (spawn_guts): Fix typo in comment.
Corinna Vinschen [Fri, 17 Aug 2007 20:22:24 +0000 (20:22 +0000)]
* spawn.cc (spawn_guts): Fix typo in comment.

16 years ago * autoload.cc (CloseDesktop): Define.
Corinna Vinschen [Fri, 17 Aug 2007 19:58:57 +0000 (19:58 +0000)]
* autoload.cc (CloseDesktop): Define.
(CreateDesktopA): Define.
(SetThreadDesktop): Define.
* spawn.cc (spawn_guts): When starting a process under another user
account, don't open up permissions on current window station and
desktop.  Instead, if not in interactive session, create a new per-user
window station plus default desktop and use that for the child process.

16 years ago2007-08-17 Richard Sandiford <richard@codesourcery.com>
Richard Sandiford [Fri, 17 Aug 2007 13:15:24 +0000 (13:15 +0000)]
2007-08-17  Richard Sandiford  <richard@codesourcery.com>
    Nigel Stephens  <nigel@mips.com>

* config/mt-sde: New file.
* configure.ac (mips*-sde-elf*): New stanza.  Use config/mt-sde
as target_makefile_frag.
* configure: Regenerate.

16 years ago* Makefile.def (STAGE2_CFLAGS, STAGE3_CFLAGS, STAGE4_CFLAGS):
Alexandre Oliva [Fri, 17 Aug 2007 00:03:44 +0000 (00:03 +0000)]
* Makefile.def (STAGE2_CFLAGS, STAGE3_CFLAGS, STAGE4_CFLAGS):
Add to flags_to_pass.  Adjust uses of BOOT_CFLAGS.
(bootstrap2-debug, bootstrap-debug): New bootstrap stages.
* Makefile.tpl (STAGE2_CFLAGS, STAGE3_CFLAGS, STAGE4_CFLAGS): New.
(do-compare, do-compare3, do-compare-debug): New.
([+compare-target+]): Use them.

16 years agobfd/
H.J. Lu [Thu, 16 Aug 2007 18:49:42 +0000 (18:49 +0000)]
bfd/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c: Revert last change.

binutils/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c: Revert last change.

include/elf/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* common.h: Revert last change.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Handle S_IFSOCK
Corinna Vinschen [Thu, 16 Aug 2007 16:59:25 +0000 (16:59 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Handle S_IFSOCK
mode bit by setting the SYSTEM attribute.
* fhandler_socket.cc (fhandler_socket::fchmod): Add S_IFSOCK mode bit
when calling fhandler_disk_file::fchmod.  Don't set attributes here.

16 years ago * path.h (path_conv::operator char *): Delete.
Corinna Vinschen [Thu, 16 Aug 2007 15:07:42 +0000 (15:07 +0000)]
* path.h (path_conv::operator char *): Delete.
(path_conv::operator const char *): Delete.
* dlfcn.cc: Throughout, replace path_conv::operator char * and
path_conv::operator const char * by call to path_conv::get_win32
for easier transition to UNICODE_PATHs.
* fhandler_socket.cc: Ditto.
* hookapi.cc: Ditto.
* path.cc: Ditto.
* spawn.cc: Ditto.
* syscalls.cc: Ditto.
* uinfo.cc: Ditto.

16 years ago * dir.cc (readdir_worker): Convert w32name to PUNICODE_STRING.
Corinna Vinschen [Thu, 16 Aug 2007 14:46:23 +0000 (14:46 +0000)]
* dir.cc (readdir_worker): Convert w32name to PUNICODE_STRING.
* sec_acl.cc (getacl): Convert debug output to print native NT path.
* security.cc (set_file_attribute): Ditto.
* syscalls.cc (try_to_bin): Ditto and fix buggy debug statement.

16 years ago * ntdll.h (RtlAcquirePebLock): Declare.
Corinna Vinschen [Thu, 16 Aug 2007 14:30:53 +0000 (14:30 +0000)]
* ntdll.h (RtlAcquirePebLock): Declare.
(RtlReleasePebLock): Declare.
* path.cc (cwdstuff::set): Change PEB only while it's locked.

16 years ago * fhandler.h (fhandler_base::get_namehash): Use NT native path.
Corinna Vinschen [Thu, 16 Aug 2007 14:10:06 +0000 (14:10 +0000)]
* fhandler.h (fhandler_base::get_namehash): Use NT native path.
* fhandler_disk_file.cc (readdir_get_ino): Ditto in call to
hash_path_name.

16 years agobfd/
H.J. Lu [Thu, 16 Aug 2007 13:38:09 +0000 (13:38 +0000)]
bfd/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR.
(bfd_section_from_phdr): Likewise.
(get_program_header_size): Likewise. Add a PT_GNU_ATTR segment
if there is an attribute section.
(_bfd_elf_map_sections_to_segments): Likewise.
(IS_SECTION_IN_INPUT_SEGMENT): Likewise.

binutils/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (get_segment_type): Change PT_GNU_STACK to
PT_GNU_ATTR.

include/elf/

2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (PT_GNU_STACK): Renamed to ...
(PT_GNU_ATTR): This.
(PT_GNU_STACK): New.  Make an alias of PT_GNU_ATTR.

16 years ago * ntdll.h (RtlCreateUnicodeStringFromAsciiz): Fix declaration.
Corinna Vinschen [Thu, 16 Aug 2007 10:41:45 +0000 (10:41 +0000)]
* ntdll.h (RtlCreateUnicodeStringFromAsciiz): Fix declaration.
(RtlUpcaseUnicodeChar): Declare.
* path.cc (hash_path_name): Split into three functions, taking
the path as char *, PWCSTR, or PUNICODE_STRING.  Move implementation
into PUNICODE_STRING-based function.  Drop old drive-relative path
consideration.
* winsup.h (iswdirsep): Like isdirsep but for WCHARs.
(isabspath_u): Like isabspath, for PUNICODE_STRINGs.
(iswabspath): Like isabspath, for PWCHARs.
(hash_path_name): Add new declarations.

16 years ago * path.cc (get_nt_native_path): Allow to convert special paths which
Corinna Vinschen [Wed, 15 Aug 2007 16:27:09 +0000 (16:27 +0000)]
* path.cc (get_nt_native_path): Allow to convert special paths which
have no native NT path representation for simplified debug output.
* syscalls.cc: Convert debug output to print native NT path.
(unlink): Drop redundant debug output.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous
Corinna Vinschen [Wed, 15 Aug 2007 15:31:19 +0000 (15:31 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluous
test for trailing dot.
* path.h (path_conv::operator []): Remove.

16 years ago * fhandler_socket.cc (get_inet_addr): Use NT native functions for
Corinna Vinschen [Wed, 15 Aug 2007 15:17:05 +0000 (15:17 +0000)]
* fhandler_socket.cc (get_inet_addr): Use NT native functions for
accessing the file representing the local socket.
(fhandler_socket::bind): Ditto.
* ntdll.h: Declare NtReadFile.

16 years ago * path.cc (symlink_info::check): In case of ERROR_SHARING_VIOLATION and
Corinna Vinschen [Tue, 14 Aug 2007 16:19:13 +0000 (16:19 +0000)]
* path.cc (symlink_info::check): In case of ERROR_SHARING_VIOLATION and
ERROR_ACCESS_DENIED, try to get file attributes by using directory
functions.

16 years ago * path.cc (fs_info::update): Correctly handle the volume root directory.
Corinna Vinschen [Tue, 14 Aug 2007 15:54:45 +0000 (15:54 +0000)]
* path.cc (fs_info::update): Correctly handle the volume root directory.

16 years ago * fhandler.h (fhandler_base::pc): Make public.
Corinna Vinschen [Tue, 14 Aug 2007 14:48:52 +0000 (14:48 +0000)]
* fhandler.h (fhandler_base::pc): Make public.
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop extern
declaration of stat_suffixes.  Use NT native path in debug output.
(fhandler_base::utimes_fs): Simplify closeit case.  Use close_fs
to close newly opened file handle.
(fhandler_base::open_fs): Use NT native path in debug output.
* path.cc: Throughout drop extern declaration of stat_suffixes.
* path.h (stat_suffixes): Declare.
* sec_acl.cc (acl_worker): Drop extern declaration of stat_suffixes.
* times.cc (utimes_worker): Take path_conv as parameter instead of
single-byte pathnam, drop nofollow argument, accommodate throughout.
Compare UNICODE paths when enumerating file descriptors.  Fix
formatting.  Use NT native path in debug output.

16 years ago * mmap.cc: Call NtClose instead of CloseHandle throughout.
Corinna Vinschen [Mon, 13 Aug 2007 19:44:31 +0000 (19:44 +0000)]
* mmap.cc: Call NtClose instead of CloseHandle throughout.
(CreateMapping): Drop unused last argument.  Accommodate throughout.
(mmap64): Re-open file with execute permissions using NtOpenFile.

16 years ago * fhandler.h (fhandler_base::close_fs): Reintroduce (as inline function)
Corinna Vinschen [Mon, 13 Aug 2007 19:15:47 +0000 (19:15 +0000)]
* fhandler.h (fhandler_base::close_fs): Reintroduce (as inline function)
for clearness.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Revert previous
change.
(fhandler_base::open_fs): Ditto.
* fhandler_socket.cc (fhandler_socket::close): Ditto.

16 years ago2007-08-13 Carlos O'Donell <carlos@codesourcery.com>
Jeff Johnston [Mon, 13 Aug 2007 18:13:39 +0000 (18:13 +0000)]
2007-08-13  Carlos O'Donell  <carlos@codesourcery.com>

* arm/crt0.S: Remove '.set' for __stack, hardware_init_hook,
and software_init_hook.

16 years ago * Makefile.in (DLL_OFILES): Remove delqueue.o.
Corinna Vinschen [Mon, 13 Aug 2007 17:16:05 +0000 (17:16 +0000)]
* Makefile.in (DLL_OFILES): Remove delqueue.o.
* delqueue.cc: Delete.
* fhandler.h (fhandler_base::close_fs): Drop declaration.
(fhandler_disk_file::close): Drop declaration.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Call close instead of
close_fs.
(fhandler_base::fstat_helper): Use open FH_UNIX handle in call to
get_file_attribute.
(fhandler_base::open_fs): Call close instead of get_file_attribute.
(fhandler_disk_file::close): Remove.
(fhandler_base::close_fs): Remove.
* fhandler_socket.cc (fhandler_socket::close): Just call
fhandler_base::close for FH_UNIX sockets.
* shared.cc (user_shared_initialize): Drop call to
user_shared->delqueue.init.
* shared_info.h (CURR_USER_MAGIC): Change according to below change.
(MAX_DELQUEUES_PENDING): Remove.
(class delqueue_list): Remove.
(class user_info): Remove delqueue.
* syscalls.cc (close_all_files): Drop call to
user_shared->delqueue.process_queue.
(unlink): Drop delqueue handling.

16 years ago * devices.in (dev_storage): Use native NT device name for kmsg mailslot.
Corinna Vinschen [Mon, 13 Aug 2007 15:08:25 +0000 (15:08 +0000)]
* devices.in (dev_storage): Use native NT device name for kmsg mailslot.
* devices.cc: Regenerate.
* fhandler.cc (fhandler_base::operator =): Use path_conv assignment
operator.
(fhandler_base::set_name): Ditto.
(fhandler_base::open): Use NT native path in debug output.
* fhandler_mailslot.cc: Convert to NT native function calls.
* ntdll.h (struct _FILE_MAILSLOT_SET_INFORMATION): Define.
(NtCreateMailslotFile): Declare.
* path.cc (path_conv::set_normalized_path): Don't set wide_path to NULL.
(path_conv::set_name): Remove unused function.
* path.h (path_conv::set_name): Drop declaration.
(path_conv::operator =): Define.

16 years ago* standards.texi: Import 22 July 2007 version.
Nick Clifton [Mon, 13 Aug 2007 09:45:22 +0000 (09:45 +0000)]
* standards.texi: Import 22 July 2007 version.
* fdl.texi: Import version 1.2.
* make-stds.texi: Import 2006 version.

16 years ago * configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Pass
Ben Elliston [Mon, 13 Aug 2007 01:32:36 +0000 (01:32 +0000)]
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Pass
--silent if $silent.
* configure: Regenerate.

16 years ago* faq-programming.xml: Clarify where to run "make check".
Christopher Faylor [Sun, 12 Aug 2007 19:45:45 +0000 (19:45 +0000)]
* faq-programming.xml: Clarify where to run "make check".

16 years ago * src-release (DEVO_SUPPORT): Add COPYING3 and COPYING3.LIB.
Daniel Jacobowitz [Sun, 12 Aug 2007 19:05:42 +0000 (19:05 +0000)]
* src-release (DEVO_SUPPORT): Add COPYING3 and COPYING3.LIB.

16 years ago * fhandler.cc (fhandler_base::open): Remove HIDDEN_DOT_FILES code.
Corinna Vinschen [Sun, 12 Aug 2007 15:42:02 +0000 (15:42 +0000)]
* fhandler.cc (fhandler_base::open): Remove HIDDEN_DOT_FILES code.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto.
* path.cc (symlink_worker): Ditto.

16 years ago * syscalls.cc (getw): Remove redundant implementation.
Corinna Vinschen [Sun, 12 Aug 2007 15:20:16 +0000 (15:20 +0000)]
* syscalls.cc (getw): Remove redundant implementation.
(putw): Ditto.
(wcscmp): Ditto.
(wcslen): Ditto.
(memccpy): Ditto.

16 years ago * ntdll.h: Add descriptive comments to special Rtl functions.
Corinna Vinschen [Sun, 12 Aug 2007 12:48:02 +0000 (12:48 +0000)]
* ntdll.h: Add descriptive comments to special Rtl functions.
(STATUS_OBJECT_PATH_NOT_FOUND): Define.
(STATUS_BUFFER_OVERFLOW): Define.
(FILE_SUPERSEDED): Define.
(FILE_OPENED): Define.
(FILE_CREATED): Define.
(FILE_OVERWRITTEN): Define.
(FILE_EXISTS): Define.
(FILE_DOES_NOT_EXIST): Define.
(PIO_APC_ROUTINE): Typedef.
(NtFsControlFile): Fix parameter types to use PIO_APC_ROUTINE.
(NtWriteFile): Declare.
(RtlInt64ToHexUnicodeString): Declare.
* strfuncs.cc: Include ntdll.h.
(RtlInt64ToHexUnicodeString): New function.
* syscalls.cc (try_to_bin): Rewrite using native NT functions.
Only try to create recycle bin after unsuccessfully trying to move
file.  Also try to create special files in recycle bin so that Windows
Explorer isn't unnecessarily stampeded.

16 years ago2007-08-10 Carlos O'Donell <carlos@codesourcery.com>
Jeff Johnston [Fri, 10 Aug 2007 19:36:46 +0000 (19:36 +0000)]
2007-08-10  Carlos O'Donell  <carlos@codesourcery.com>

        2007-07-12  Daniel Jacobowitz  <dan@codesourcery.com>

        * arm/syscalls.c (_stat): Use _close

        * arm/syscalls.c (struct poslog): Rename to...
        (struct fdent): ... this.
        (FILE_HANDLE_OFFSET): Remove.
        (findslot): Return a struct fdent* if fd is valid, otherwise return NULL.
        (newslot): New function.
        (remap_handle): Remove.
        (initialise_monitor_handles): Use stdout as fallback for stderr.
        (wrap): Rename to...
        (checkerror): ...  this.
        (_swiread): Use checkerror() for the return of SWI calls.  Correct the use of r0.
        (_read): Use findslot().  Return EBADF on bad handle.
        (_swilseek): Call findslot().  Check for valid whence.  Check for negative offset when using
        SEEK_CUR, and check for overflow.  Use checkerror().  Check *_Flen calls for errors.
        (_swiwrite): Correct the use of r0.
        (_write): Call findslot().
        (_swiopen): Call findslot().  Check for valid flags.  Use checkerror().  Call newslot().
        Handle O_TRUNC, and O_WRONLY.  Return index into openfiles[] for fd.
        (_swiclose): Correct the use of r0.
        (_close): Handle stderr == stdout case.  Only reclaim handle if _swiclose succeeded.
        (_getpid): Use __attribute__((unused)).
        (_sbrk): Fix formatting.
        (_swistat): New function.
        (_stat): Call _swistat().
        (_fstat): Call _swistat().
        (_unlink): Correct the use of r0.
        (isatty): Call finslot().  Correct the use of r0.
        (_system): Call checkerror().  Correct the use of r0.
        (_rename): Correct the use of r0.

16 years ago * path.cc (fillout_mntent): Fix calculation of unicode buffer size.
Corinna Vinschen [Fri, 10 Aug 2007 16:47:26 +0000 (16:47 +0000)]
* path.cc (fillout_mntent): Fix calculation of unicode buffer size.

16 years ago * syscalls.cc (rename): Check oldpath and newpath for trailing dir
Corinna Vinschen [Fri, 10 Aug 2007 11:16:27 +0000 (11:16 +0000)]
* syscalls.cc (rename): Check oldpath and newpath for trailing dir
separators, require them to be existing directories if so.  Check
for a request to change only the case of the filename.  Check paths
for case insensitve equality only once.  Handle renaming a directory
to another, existing directory by unlinking the destination directory
first.  If newpath points to an existing file with R/O attribute set,
try to unset R/O attribute first.  Augment hardlink test by not
checking directories.  If renaming fails with STATUS_ACCESS_DENIED,
try to unlink existing destination filename and try renaming again.
Drop useless test for non-empty directory.  Always close fh at the
end of the function.

16 years ago* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a
Christopher Faylor [Thu, 9 Aug 2007 17:20:09 +0000 (17:20 +0000)]
* gendef (sigbe): Reset "incyg" while the stack lock is active to avoid a
potential race.

16 years ago * syscalls.cc (rename): Close oldpath file handle immediately after
Corinna Vinschen [Thu, 9 Aug 2007 10:32:25 +0000 (10:32 +0000)]
* syscalls.cc (rename): Close oldpath file handle immediately after
trying to rename it.  Use nfh handle when checking for non-empty
newpath directory.  Only change status if check_dir_not_empty really
returns STATUS_DIRECTORY_NOT_EMPTY.

16 years ago2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 3 Aug 2007 22:51:23 +0000 (22:51 +0000)]
2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.13.
        * Makefile.in: Reset CYGRELEASE to 1

16 years ago2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Fri, 3 Aug 2007 22:36:59 +0000 (22:36 +0000)]
2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.13.

16 years ago2007-08-03 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Fri, 3 Aug 2007 22:22:31 +0000 (22:22 +0000)]
2007-08-03  Chris Sutcliffe  <ir0nh34d@users.sf.net>

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

16 years ago2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston [Fri, 3 Aug 2007 21:03:40 +0000 (21:03 +0000)]
2007-08-03  Ralf Corsepius  <ralf.corsepius@rtems.org>

        * libc/include/tar.h: New.

16 years ago2007-08-03 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 3 Aug 2007 21:01:11 +0000 (21:01 +0000)]
2007-08-03  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to
        lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string.
        * libc/sys/linux/intl/Makefile.in: Regenerated.
        * libc/sys/linux/intl/stpcpy.c: Renamed to...
        * libc/sys/linux/intl/lcl_stpcpy.c: ..this.

16 years ago * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
Dave Korn [Fri, 3 Aug 2007 19:41:48 +0000 (19:41 +0000)]
* Makefile.in (cygcheck.exe):  Add bloda.o as prerequisite, adjusting
dependency-filtering $(wordlist ...) call appropriately.  Link ntdll.
(bloda.o):  New rule to build bloda.o
* cygcheck.cc (dump_sysinfo):  Call bloda function dump_dodgy_apps().
* bloda.cc:  New file implements detection of applications from the
Big List Of Dodgy Apps.

16 years agoImplement fmemopen and open_memstream.
Eric Blake [Thu, 2 Aug 2007 20:23:06 +0000 (20:23 +0000)]
Implement fmemopen and open_memstream.
* libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file.
* libc/stdio/open_memstream.c (_open_memstream_r, open_memstream):
New file.
* libc/stdio/fopencookie.c (fcwriter): Minor optimization.
* libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x
functions together.
(fmemopen, open_memstream): Declare new functions.
* libc/stdio/stdio.tex: Document them.
* libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add
fmemopen and open_memstream.
* libc/stdio/Makefile.in: Regenerate.

16 years agobfd/
H.J. Lu [Thu, 2 Aug 2007 16:02:01 +0000 (16:02 +0000)]
bfd/

2007-08-02  H.J. Lu  <hongjiu.lu@intel.com>

* coffcode.h (ALIGN_SET): Removed.
(ELIFALIGN_SET): Likewise.
(coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES,
IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES,
IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES,
IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES.

include/coff/

2007-08-02  H.J. Lu  <hongjiu.lu@intel.com>

* pe.h (IMAGE_SCN_ALIGN_POWER_BIT_POS): New.
(IMAGE_SCN_ALIGN_POWER_BIT_MASK): Likewise.
(IMAGE_SCN_ALIGN_POWER_NUM): Likewise.
(IMAGE_SCN_ALIGN_POWER_CONST): Likewise.
(IMAGE_SCN_ALIGN_128BYTES): Likewise.
(IMAGE_SCN_ALIGN_256BYTES): Likewise.
(IMAGE_SCN_ALIGN_512BYTES): Likewise.
(IMAGE_SCN_ALIGN_1024BYTES): Likewise.
(IMAGE_SCN_ALIGN_2048BYTES): Likewise.
(IMAGE_SCN_ALIGN_4096BYTES): Likewise.
(IMAGE_SCN_ALIGN_8192BYTES): Likewise.
(IMAGE_SCN_ALIGN_1BYTES): Redefined with
IMAGE_SCN_ALIGN_POWER_CONST.
(IMAGE_SCN_ALIGN_2BYTES): Likewise.
(IMAGE_SCN_ALIGN_4BYTES): Likewise.
(IMAGE_SCN_ALIGN_8BYTES): Likewise.
(IMAGE_SCN_ALIGN_16BYTES): Likewise.
(IMAGE_SCN_ALIGN_32BYTES): Likewise.
(IMAGE_SCN_ALIGN_64BYTES): Likewise.

16 years ago * fhandler_disk_file.cc (readdir_get_ino): Accommodate native symlinks.
Corinna Vinschen [Thu, 2 Aug 2007 15:13:56 +0000 (15:13 +0000)]
* fhandler_disk_file.cc (readdir_get_ino): Accommodate native symlinks.
* syscalls.cc (rename): Ditto.

16 years ago * smallprint.c: Remove.
Corinna Vinschen [Thu, 2 Aug 2007 14:38:21 +0000 (14:38 +0000)]
* smallprint.c: Remove.

16 years ago* lib/Makefile: Add missed file to accommodate below changes.
Christopher Faylor [Thu, 2 Aug 2007 14:34:46 +0000 (14:34 +0000)]
* lib/Makefile: Add missed file to accommodate below changes.

16 years agoAdd missing checkin.
Christopher Faylor [Thu, 2 Aug 2007 14:33:32 +0000 (14:33 +0000)]
Add missing checkin.

16 years ago* lib/cygwin_attach_dll.c: Fix compiler warning.
Christopher Faylor [Thu, 2 Aug 2007 14:30:17 +0000 (14:30 +0000)]
* lib/cygwin_attach_dll.c: Fix compiler warning.
* lib/cygwin_crt0.c: Ditto.

16 years ago* Makefile.in: Add -lntdll to link line.
Christopher Faylor [Thu, 2 Aug 2007 14:23:22 +0000 (14:23 +0000)]
* Makefile.in: Add -lntdll to link line.
(CYGWIN_OBJS): Include strfuncs.o.

16 years ago* dcrt0.cc (codepage_type): Remove definition.
Christopher Faylor [Thu, 2 Aug 2007 14:21:53 +0000 (14:21 +0000)]
* dcrt0.cc (codepage_type): Remove definition.
* strfuncs.cc: Move it here.  New file with bits of miscfuncs.cc.
* miscfuncs.cc: Remove wide character stuff.

16 years ago * smallprint.c: New file.
Corinna Vinschen [Thu, 2 Aug 2007 14:07:19 +0000 (14:07 +0000)]
* smallprint.c: New file.
* Makefile.in (OBJS): Add smallprint.o.
(CYGWIN_OBJS): Remove smallprint.o from Cygwin dir.

16 years ago * syscalls.cc (rename): Move and add text to comment about testing
Corinna Vinschen [Thu, 2 Aug 2007 11:11:34 +0000 (11:11 +0000)]
* syscalls.cc (rename): Move and add text to comment about testing
oldpath and newpath referring to the same file.  Test if oldpath
has more than one hardlink before opening oldpath (idea by Eric Blake).
Reorder test so that file id is tested before volume serial number.

16 years ago * path.h (struct fs_info): Drop root_len and name_hash members.
Corinna Vinschen [Thu, 2 Aug 2007 10:33:28 +0000 (10:33 +0000)]
* path.h (struct fs_info): Drop root_len and name_hash members.
(fsinfo::length): Remove.
(path_conv::rootdir): Remove.
* syscalls.cc (try_to_bin): Use rootdir function instead of
path_conv::rootdir method.

16 years ago * fhandler_disk_file.cc (path_conv::ndisk_links): Fix typo in call to
Corinna Vinschen [Thu, 2 Aug 2007 10:22:30 +0000 (10:22 +0000)]
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix typo in call to
NtClose.

16 years ago * include/winbase.h (ReOpenFile): Add prototype.
Corinna Vinschen [Thu, 2 Aug 2007 07:22:46 +0000 (07:22 +0000)]
* include/winbase.h (ReOpenFile): Add prototype.
* lib/kernel32.def (ReOpenFile@16): Add export.

16 years ago * syscalls.cc (rename): Check if oldpath and newpath refer to the
Corinna Vinschen [Wed, 1 Aug 2007 21:02:24 +0000 (21:02 +0000)]
* syscalls.cc (rename): Check if oldpath and newpath refer to the
same file.  If so, return successfully and perform no other action,
as per SUSv3.

16 years agoCorrect ChangeLog entries.
H.J. Lu [Wed, 1 Aug 2007 15:27:55 +0000 (15:27 +0000)]
Correct ChangeLog entries.

16 years ago * ntdll.h (STATUS_ACCESS_DENIED): Define.
Corinna Vinschen [Wed, 1 Aug 2007 14:46:09 +0000 (14:46 +0000)]
* ntdll.h (STATUS_ACCESS_DENIED): Define.
* syscalls.cc (check_dir_not_empty): New static function.
(unlink_nt): Move code checking for non-empty dir to check_dir_not_empty
and call check_dir_not_empty instead.
(rename): Add fault handler.  Check oldpath and newpath for trailing
. and .. path components and return EINVAL if so.  Check oldpath
for being on a vrtual file system.  If renaming a dir fails with
STATUS_ACCESS_DENIED, check if the target dir is non-empty and return
ENOTEMPTY if so.

16 years ago * localtime.cc (tzsetwall): Don't set TZ.
Corinna Vinschen [Wed, 1 Aug 2007 13:26:56 +0000 (13:26 +0000)]
* localtime.cc (tzsetwall): Don't set TZ.

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop
Corinna Vinschen [Wed, 1 Aug 2007 12:55:25 +0000 (12:55 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop
usage of path_conv::volser().
(fhandler_base::fstat_by_name): Ditto.
* ntdll.h (STATUS_NO_MEDIA_IN_DEVICE): Define.
(STATUS_OBJECT_NAME_NOT_FOUND): Define.
(FILE_REMOVABLE_MEDIA, FILE_READ_ONLY_DEVICE, FILE_FLOPPY_DISKETTE)
(FILE_WRITE_ONCE_MEDIA, FILE_REMOTE_DEVICE, FILE_DEVICE_IS_MOUNTED)
(FILE_VIRTUAL_VOLUME, FILE_AUTOGENERATED_DEVICE_NAME)
FILE_DEVICE_SECURE_OPEN): Define Device Characteristics.
(struct _FILE_FS_DEVICE_INFORMATION): Define.
* path.cc (MAX_FS_INFO_CNT): Remove.
(fsinfo): Remove.
(fsinfo_cnt): Remove.
(fs_info::update): Rewrite using native NT functions.  Drop fs_info
cashing since it's incorrect.
(path_conv::fillin): Use NtQueryInformationFile.  Drop setting serial
number.
(path_conv::check): Accommodate new fs_info::update parameters.
(fillout_mntent): Ditto.
* path.h (fs_info): Drop serial, has_ea and drive_type status
flags.
(fs_info::update): Declare with new parameters.
(path_conf::drive_type): Remove.
(path_conf::fs_has_ea): Remove.
(path_conf::volser): Remove.

16 years ago * fhandler.cc (check_posix_perms): Remove.
Corinna Vinschen [Wed, 1 Aug 2007 08:36:38 +0000 (08:36 +0000)]
* fhandler.cc (check_posix_perms): Remove.
(fhandler_base::fpathconf): Return value of pc.has_acls () instead
of calling check_posix_perms.

16 years ago * syscalls.cc (rename): Use unchanged path_conv in condition.
Corinna Vinschen [Wed, 1 Aug 2007 07:52:35 +0000 (07:52 +0000)]
* syscalls.cc (rename): Use unchanged path_conv in condition.

16 years ago * smallprint.cc (__small_vsprintf): Add format specifier 'W' for
Corinna Vinschen [Wed, 1 Aug 2007 07:39:21 +0000 (07:39 +0000)]
* smallprint.cc (__small_vsprintf): Add format specifier 'W' for
PWCHAR arguments.  Move wide char handling after char handling.

16 years agoMore POSIX stream corner cases.
Eric Blake [Tue, 31 Jul 2007 20:49:40 +0000 (20:49 +0000)]
More POSIX stream corner cases.
* libc/stdio/findfp.c (__sinit): Open stderr read/write.
* libc/stdio/fdopen.c (_fdopen_r): Set O_APPEND on fd when
requested.
* libc/stdio64/fdopen64.c (_fdopen64_r): Likewise.

16 years ago * ntdll.h (RtlFreeAnsiString): Declare.
Corinna Vinschen [Tue, 31 Jul 2007 20:48:17 +0000 (20:48 +0000)]
* ntdll.h (RtlFreeAnsiString): Declare.
* ntdll.h (RtlFreeOemString): Declare.
* ntdll.h (RtlUnicodeStringToAnsiString): Declare.
* ntdll.h (RtlUnicodeStringToOemString): Declare.
* smallprint.cc: Renamed from smallprint.c.  Drop unnecessary
forward declarations.
(__small_vsprintf): Add format specifiers 'C' for WCHAR arguments
and 'S' for PUNICODE_STRING arguments.

16 years ago2007-07-31 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 31 Jul 2007 17:55:40 +0000 (17:55 +0000)]
2007-07-31  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wtsapi32.h (WTS_CURRENT_SESSION, WTSDisconnectSession): Define.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Revert to checking
Corinna Vinschen [Tue, 31 Jul 2007 15:20:00 +0000 (15:20 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Revert to checking
for binary in case of .exe files.
* ntdll.h (RtlPrefixUnicodeString): Declare.
* path.cc (path_conv::is_binary): New method.
* path.h (path_conv::is_binary): Declare.
* syscalls.cc (rename_append_suffix): New static helper function for
rename.
(rename): Rewrite.  New suffix tests.  Use native NT functions.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::facl): If file can't be
Corinna Vinschen [Mon, 30 Jul 2007 10:58:16 +0000 (10:58 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::facl): If file can't be
opened for reading the ACLs, fall back to faking them.
* sec_acl.cc (acl_worker): Handle non-existing files.
* security.cc (get_file_attribute): Return ILLEGAL_UID/ILLEGAL_GID
as owner/group for non-readable ACLs on file systems supporting them.

16 years ago * syscalls.cc (stat_worker): Don't call build_fh_pc with invalid pc.
Corinna Vinschen [Mon, 30 Jul 2007 10:05:27 +0000 (10:05 +0000)]
* syscalls.cc (stat_worker): Don't call build_fh_pc with invalid pc.

16 years ago2007-7-30 Martijn Wargers <martijnw22@users.sourceforge.net>
Danny Smith [Mon, 30 Jul 2007 01:02:31 +0000 (01:02 +0000)]
2007-7-30  Martijn Wargers  <martijnw22@users.sourceforge.net>

* include/wingdi.h (GetTextExtentExPointI): Add prototype.
* lib/gdi32.def (GetTextExtentExPointI@28): Add export.

16 years ago* fhandler.cc (fhandler_base::wait_overlapped): Handle read EOF better and
Christopher Faylor [Sun, 29 Jul 2007 17:24:54 +0000 (17:24 +0000)]
* fhandler.cc (fhandler_base::wait_overlapped): Handle read EOF better and
issue a SIGPIPE when we get ERROR_NO_DATA.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't allow
Corinna Vinschen [Sun, 29 Jul 2007 15:57:41 +0000 (15:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't allow
FileAttributes set to 0 when calling NtSetInformationFile since it has
a special meaning.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::link): Only set attributes after copying files.
Use SetFileAttributesW.
* syscalls.cc (unlink_nt): Only care for actual FILE_ATTRIBUTE_READONLY.
Don't allow FileAttributes set to 0 when calling NtSetInformationFile.
After marking for deletion, restore R/O attribute on files to
accommodate hardlinks.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Use FILE_ANY_ACCESS.
Corinna Vinschen [Sun, 29 Jul 2007 12:27:22 +0000 (12:27 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Use FILE_ANY_ACCESS.
(fhandler_base::utimes_fs): Fix white space.
(fhandler_disk_file::lock): Remove 9x blurb from comment.
(fhandler_disk_file::mkdir): Use NtCreateFile/NtClose instead of
CreateDirectoryA.
(fhandler_disk_file::rmdir): Accommodate changes to unlink_nt.
Simplify post-delete SMB-related tests.  Use NtQueryAttributesFile
instead of GetFileAttributes.
* ntdll.h (STATUS_DIRECTORY_NOT_EMPTY): Define.
(NtQueryAttributesFile): Declare.
* syscalls.cc (unlink_nt): Return NTSTATUS.  Drop setattrs parameter.
Never use FILE_DELETE_ON_CLOSE, always use
NtSetInformationFile(FileDispositionInformation) instead.
Check for R/O attributes and open file with FILE_WRITE_ATTRIBUTES
access if any of them are set.  Remove R/O attributes before
marking for delete if necessary.  Revert them afterwards if necessary.
(unlink): Accommodate changes to unlink_nt.

16 years ago * fhandler_disk_file.cc: Use get_handle throughout.
Corinna Vinschen [Sun, 29 Jul 2007 08:23:04 +0000 (08:23 +0000)]
* fhandler_disk_file.cc: Use get_handle throughout.
(fhandler_disk_file::fchmod): Always try to open file with required
access rights.  Use NtSetInformationFile instead of SetFileAttributes.
(fhandler_disk_file::facl): Use NtSetInformationFile instead of
SetFileAttributes.
(fhandler_base::utimes_fs): Change lastaccess and lastwrite to
LARGE_INTEGER.  Drop 9x directory case.  Use NtSetInformationFile
instead of SetFileAttributes.  Drop temporarily changing R/O attribute
since NtSetInformationFile(FileBasicInformation) also works on R/O
files.
* ntdll.h (STATUS_NOT_SUPPORTED): Define.

16 years ago* cygtls.h (_cygtls::inside_kernel): Move function declaration into _cygtls
Christopher Faylor [Sun, 29 Jul 2007 05:22:05 +0000 (05:22 +0000)]
* cygtls.h (_cygtls::inside_kernel): Move function declaration into _cygtls
class.
* exceptions.cc (_cygtls::inside_kernel): Move function definition into _cygtls
class.
* fhandler.cc (fhandler_base::wait_overlapped): Make return tri-state to detect
when there is a EINTR situation.  Add a pointer to a length parameter.  Move
GetOverlappedResult into this function.
(fhandler_base::read_overlapped): Accommodate above changes and loop if we
receive a restartable signal.
(fhandler_base::write_overlapped): Ditto.
* fhandler.h (fhandler_base::wait_overlapped): Reflect above changes.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.

16 years ago * ntdll.h (RtlEqualUnicodePathPrefix): Rename from RtlEqualPathPrefix.
Corinna Vinschen [Sat, 28 Jul 2007 16:08:45 +0000 (16:08 +0000)]
* ntdll.h (RtlEqualUnicodePathPrefix): Rename from RtlEqualPathPrefix.
(RtlEqualUnicodePathSuffix): Rename from RtlEqualPathSuffix.
* fhandler_disk_file.cc (fhandler_disk_file::link): Accommodate above
change.

16 years ago * ntdll.h (RtlInitCountedUnicodeString): Swap order of string and length
Corinna Vinschen [Sat, 28 Jul 2007 16:00:35 +0000 (16:00 +0000)]
* ntdll.h (RtlInitCountedUnicodeString): Swap order of string and length
parameters to be the same as for RtlInitEmptyUnicodeString.
(RtlEqualPathPrefix): New inline function.
(RtlEqualPathSuffix): New inline function.
* fhandler_disk_file.cc: Accommodate parameter order change of
RtlInitEmptyUnicodeString throughout.
(fhandler_disk_file::link): Do path checking in unicode.  Call
CopyFileW instead of CopyFileA.

16 years ago * autoload.cc (CreateHardLinkA): Remove.
Corinna Vinschen [Fri, 27 Jul 2007 16:24:07 +0000 (16:24 +0000)]
* autoload.cc (CreateHardLinkA): Remove.
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop GetBinaryType
test.  Just check exe suffix instead.  Tune creating new file name.
Implement creating hard link using native NT functions which works
on all platforms.
* ntdll.h (STATUS_INVALID_DEVICE_REQUEST): Define.
(struct _FILE_LINK_INFORMATION): Define.

16 years ago * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Use
Corinna Vinschen [Fri, 27 Jul 2007 13:19:41 +0000 (13:19 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Use
NtQueryInformationFile instead of GetFileSize, NtFsControlFile instead
of DeviceIoControl.

16 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_name): Use
Corinna Vinschen [Fri, 27 Jul 2007 10:10:57 +0000 (10:10 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Use
RtlSplitUnicodePath.
(fhandler_disk_file::fstat): Rename oret to opened.  Open file using NT
functions right here.  Try to open parent dir instead of root directory
to avoid call to rootdir.  Use NtFsControlFile.
* ntdll.h (RtlSplitUnicodePath): Define.

16 years ago * fhandler_disk_file.cc (is_volume_mountpoint): New static inline
Corinna Vinschen [Fri, 27 Jul 2007 09:00:12 +0000 (09:00 +0000)]
* fhandler_disk_file.cc (is_volume_mountpoint): New static inline
function.
(path_conv::ndisk_links): Call is_volume_mountpoint.
(fhandler_disk_file::readdir_helper): Ditto.

16 years ago * fhandler.h (enum query_state): Drop redundant query_stat_control.
Corinna Vinschen [Fri, 27 Jul 2007 08:38:00 +0000 (08:38 +0000)]
* fhandler.h (enum query_state): Drop redundant query_stat_control.
* fhandler.cc (fhandler_base::open): Ditto.  Add READ_CONTROL to
access and FILE_OPEN_FOR_BACKUP_INTENT to create_options when opening
for writing.  Always set security attributes to avoid calling
has_acls.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Don't try to
open file twice.

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