]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
18 years ago Fix unforgivable spelling error in ChangeLog.
Corinna Vinschen [Wed, 14 Dec 2005 20:04:16 +0000 (20:04 +0000)]
Fix unforgivable spelling error in ChangeLog.

18 years ago2005-12-14 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 14 Dec 2005 18:00:22 +0000 (18:00 +0000)]
2005-12-14  Paolo Bonzini  <bonzini@gnu.org>

* configure.in: Flip the top-level bootstrap switch.
* configure: Regenerate.

Merge from gcc:

2005-12-14  Daniel Jacobowitz  <dan@codesourcery.com>

        * Makefile.tpl: Throughout the file, use : $(MAKE) along with
        $(stage) and $(unstage).
        (EXTRA_TARGET_FLAGS): Correct double-quoting.
        (all): Remove stray semicolon.
        (local-distclean): Don't handle multilib.tmp and multilib.out.
        (install.all): Set $s for consistency.
        (configure-[+prefix+][+module+]): Instead of [+deps+], handle
        check_multilibs setting.  Always make the install directory.
        (configure-stage[+id+]-[+prefix+][+module+]): Likewise.
        Correct @if/@endif.
        (all-stage[+id+]-[+prefix+][+module+]): Correct @if/@endif.
        ($(TARGET_SUBDIR)/[+module+]/multilib.out): Remove.
        (stage[+id+]-start, stage[+id+]-end): Stage $(TARGET_SUBDIR).
        (multilib.out): Remove.
        * Makefile.in: Regenerated.

18 years ago * fhandler.cc (ACCFLAGS): Remove macro.
Corinna Vinschen [Wed, 14 Dec 2005 16:38:22 +0000 (16:38 +0000)]
* fhandler.cc (ACCFLAGS): Remove macro.
(fhandler_base::get_default_fmode): Use O_ACCMODE instead of ACCFLAGS
and or'ed read/write flags.
(fhandler_base::open_9x): Use O_ACCMODE instead of or'ed read/write
flags.
(fhandler_base::open): Ditto.
* fhandler_disk_file.cc (fhandler_base::open_fs): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::open): Ditto.

18 years ago * fhandler.cc (fhandler_base::open_9x): Handle O_SYNC and O_DIRECT
Corinna Vinschen [Wed, 14 Dec 2005 15:54:33 +0000 (15:54 +0000)]
* fhandler.cc (fhandler_base::open_9x): Handle O_SYNC and O_DIRECT
flags.
(fhandler_base::open): Ditto.
* fhandler_floppy.cc (fhandler_dev_floppy::open): Don't allocate devbuf
in O_DIRECT case.
* fhandler_raw.cc (fhandler_dev_raw::ioctl): Don't allow buffer
changes in O_DIRECT case.  Allow returning a buffer size 0, which
indicates O_DIRECT.
* fhandler_tape.cc (fhandler_dev_tape::open): Use O_SYNC flag to
hand down the !buffer_writes case.  Don't allocate devbuf in O_DIRECT
case.
(fhandler_dev_tape::raw_read): Don't mess with devbuf if it's NULL.
* include/fcntl.h: Define _FDIRECT, O_DIRECT, O_DSYNC and O_RSYNC.
* include/cygwin/version.h: Bump API minor version.

18 years ago * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
Corinna Vinschen [Wed, 14 Dec 2005 09:06:00 +0000 (09:06 +0000)]
* libc/include/sys/fcntl.h: Define O_SYNC unconditionally.  Fix
typo in O_NDELAY comment.

18 years ago* m32c/crt0.S: Add support for preinit, init, and fini arrays, and
DJ Delorie [Wed, 14 Dec 2005 03:38:27 +0000 (03:38 +0000)]
* m32c/crt0.S: Add support for preinit, init, and fini arrays, and
.init and .fini processing.
* m32c/crtn.S: Likewise.
* m32c/exit.S: Likewise.

18 years ago2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
Jeff Johnston [Tue, 13 Dec 2005 22:59:26 +0000 (22:59 +0000)]
2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>

        * mt/16-002.ld: Change architecture to 'mt'.  Remove
        SEARCH_DIR.
        * mt/16-003.ld: Likewise.
        * mt/64-001.ld: Likewise.
        * mt/Makefile.in: Change comment to reference 'mt' rather than 'ms1'.
        * mt/crt0.S: Likewise.

18 years ago2005-12-13 Nathan Sidwell <nathan@codesourcery.com>
Jeff Johnston [Tue, 13 Dec 2005 22:57:31 +0000 (22:57 +0000)]
2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>

        * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__.
        * libc/include/machine/setjmp.h (__mt__): Likewise.
        * libc/machine/mt/setjmp.S: Rename ms1 reference to mt.
        * libc/machine/configure.in: Ditto.

18 years ago* cygtls.cc (_cygtls::remove): Don't bother if we're exiting.
Christopher Faylor [Tue, 13 Dec 2005 16:01:57 +0000 (16:01 +0000)]
* cygtls.cc (_cygtls::remove): Don't bother if we're exiting.
* sigproc.cc (_cygtls::remove_wq): Ditto.

18 years ago* fhandler_tty.cc (fhandler_tty::open): Enhance comment.
Christopher Faylor [Tue, 13 Dec 2005 14:47:18 +0000 (14:47 +0000)]
* fhandler_tty.cc (fhandler_tty::open): Enhance comment.

18 years ago * fhandler_tty.cc (fhandler_tty::open): Close newly created window
Corinna Vinschen [Tue, 13 Dec 2005 09:07:12 +0000 (09:07 +0000)]
* fhandler_tty.cc (fhandler_tty::open): Close newly created window
station after switching to original window station.

18 years ago* fhandler_tty.cc (fhandler_tty::open): Add a comment.
Christopher Faylor [Tue, 13 Dec 2005 05:43:30 +0000 (05:43 +0000)]
* fhandler_tty.cc (fhandler_tty::open): Add a comment.

18 years ago* faq-programming.xml: Add note about struct stat64.
Joshua Daniel Franklin [Tue, 13 Dec 2005 05:32:43 +0000 (05:32 +0000)]
* faq-programming.xml: Add note about struct stat64.

18 years ago* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
Christopher Faylor [Tue, 13 Dec 2005 02:55:11 +0000 (02:55 +0000)]
* times.cc (hires_ms::usecs): Subtract from slop from system time or we'll
always end up priming the pump.

18 years ago* times.cc (systime): Correct precision referenced in comment.
Christopher Faylor [Tue, 13 Dec 2005 02:02:51 +0000 (02:02 +0000)]
* times.cc (systime): Correct precision referenced in comment.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't free original windows
station since that will cause strange problems displaying fonts.  Reset windows
station to original station after creating console.
* times.cc (hires_ms::usecs): Only reprime when calculated time is less than
system time.

18 years ago* include/winuser.h (WINSTA_ALL_ACCESS): Define.
Christopher Faylor [Tue, 13 Dec 2005 01:24:36 +0000 (01:24 +0000)]
* include/winuser.h (WINSTA_ALL_ACCESS): Define.

18 years ago* pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin process
Christopher Faylor [Tue, 13 Dec 2005 00:54:32 +0000 (00:54 +0000)]
* pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin process
associated with the pid, i.e., procinfo == NULL.

18 years ago* times.cc (hires_ms::usecs): Correct order when checking if high precision
Christopher Faylor [Tue, 13 Dec 2005 00:43:46 +0000 (00:43 +0000)]
* times.cc (hires_ms::usecs): Correct order when checking if high precision
time is <= current time.

18 years agocorrect ChangeLog
Christopher Faylor [Mon, 12 Dec 2005 19:10:02 +0000 (19:10 +0000)]
correct ChangeLog

18 years ago* pinfo.cc (size_copied): New convenience macro.
Christopher Faylor [Mon, 12 Dec 2005 18:43:31 +0000 (18:43 +0000)]
* pinfo.cc (size_copied): New convenience macro.
(winpids::add): Alias the element that we are working on for slightly better
clarity.  Honor the "make_copy" flag.
(winpids::release): Free and zero procinfo field if it was allocated via
malloc.
(winpids::~winpids): Free copied array.
* pinfo.h (class pinfo): Make winpids class a friend.
(winpids::make_copy): New field.
(winpids::copied): New array.
(winpids::reset): Reset npids after releasing pinfos or suffer a memory leak.
(winpids::winpids): Try harder to allocate all fields in the class.

18 years ago2005-12-12 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 12 Dec 2005 17:03:40 +0000 (17:03 +0000)]
2005-12-12  Paul Brook  <paul@codesourcery.com>

bfd/
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and
BFD_RELOC_ARM_PCREL_JUMP.
(check_use_blx): New function.
(bfd_elf32_arm_process_before_allocation): Don't allocate glue if
using BLX.
(elf32_arm_final_link_relocate): Perform bl<->blx conversion for
R_ARM_CALL and R_ARM_THM.
(elf32_arm_get_eabi_attr_int): New function.
(elf32_arm_size_dynamic_sections): Call check_use_blx.
* libbfd.h: Regenerate.
* reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP.
gas/
* config/tc-arm.c (do_branch): Generate EABI branch relocations.
(do_bl): New function.
(do_blx): Generate BFD_RELOC_ARM_PCREL_CALL relocation.
(do_t_blx): Generate BFD_RELOC_THUMB_PCREL_BRANCH23.
(insns): Use do_bl.
(md_pcrel_from_section): Add BFD_RELOC_ARM_PCREL_CALL and
BFD_RELOC_ARM_PCREL_JUMP.
(md_apply_fix): Merge BFD_RELOC_ARM_PCREL_BRANCH and
BFD_RELOC_ARM_PCREL_BLX cases.  Handle BFD_RELOC_ARM_PCREL_CALL and
BFD_RELOC_ARM_PCREL_JUMP.
(tc_gen_reloc): Handle BFD_RELOC_ARM_PCREL_CALL and
BFD_RELOC_ARM_PCREL_JUMP.
gas/testsuite/
* gas/arm/pic.d: Allow R_ARM_CALL relocations.
include/elf/
* arm.h (elf32_arm_get_eabi_attr_int): Add prototype.
ld/testsuite/
* ld-arm/arm-call.d: New test.
* ld-arm/arm-call1.s: New file.
* ld-arm/arm-call1.s: New file.
* ld-arm/arm-elf.exp: Add arm-call and mixed-app-v5.
* ld-arm/arm.ld: Add .glue_7 and .ARM.attribues.
* ld-arm/mixed-app-v5.d: New file.
* ld-arm/mixed-app.r: Tweak expected output.

18 years ago * autoload.cc (GetSystemTimes): Remove.
Corinna Vinschen [Mon, 12 Dec 2005 14:27:16 +0000 (14:27 +0000)]
* autoload.cc (GetSystemTimes): Remove.

18 years ago * fhandler_proc.cc (format_proc_uptime): Drop usage of GetSystemTimes.
Corinna Vinschen [Mon, 12 Dec 2005 12:18:14 +0000 (12:18 +0000)]
* fhandler_proc.cc (format_proc_uptime): Drop usage of GetSystemTimes.
Use NtQuerySystemInformation to evaluate uptime and idle_time from
all CPU's processor times.  Fallback to GetTickCount.

18 years ago Rename ms1 to mt, part 1
Nathan Sidwell [Mon, 12 Dec 2005 11:25:07 +0000 (11:25 +0000)]
Rename ms1 to mt, part 1
* config.sub: Replace ms1 arch with mt.  Allow ms1 as alias.
* configure.in: Replace ms1 arch with mt.
* configure: Rebuilt.

* bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
(cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
* bfd/Makefile.in: Rebuilt.
* bfd/config.bfd: Replace ms1 arch with mt.
* bfd/configure.in: Replace ms1 files with mt files.
* bfd/configure: Rebuilt.
* bfd/elf32-mt.c: Renamed from elf32-ms1.c.  Update include files.
* bfd/cpu-mt.c: Renamed from cpu-ms1.c.

* cpu/mt.cpu: Rename from ms1.cpu.
* cpu/mt.opc: Rename from ms1.opc.

* binutils/Makefile.am: Replace ms1 files with mt files.
* binutils/Makefile.in: Rebuilt.
* binutils/readelf.c (elf/mt.h): Adjust #include.

* gas/configure.in: Replace ms1 arch with mt arch.
* gas/configure: Rebuilt.
* gas/configure.tgt: Replace ms1 arch with mt arch.
* gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files.

* gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files.
* gas/doc/Makefile.in: Rebuilt.

* gas/testsuite/gas/mt: Renamed from ms1 dir.  Update file names as
needed.
* gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch.
* gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch.
* gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch.

* gdb/configure.tgt: Replace ms1 arch with mt arch.
* gdb/config/mt: Renamed from ms1 dir.  Update file names as needed.
* gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file.

* include/elf/mt.h: Renamed from ms1.h

* ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
(eelf32mt.c): Update target name and dependencies.
* ld/Makefile.in: Rebuilt.
* ld/configure.tgt: Replace ms1 arch with mt arch.
* ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
comment.

* libgloss/configure.in: Replace ms1 arch with mt arch.
* libgloss/configure: Rebuilt.
* libgloss/mt: Renamed from ms1 dir.

* newlib/configure.host: Replace ms1 arch with mt arch.
* newlib/libc/machine/mt: Renamed from ms1 dir.

* opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1
with mt.
* opcodes/Makefile.in: Rebuilt.
* opcodes/configure.in: Replace ms1 files with mt files.
* opcodes/configure: Rebuilt.

* sid/component/cgen-cpu/mt: Renamed from ms1 dir.  Update file
names as appropriate.
* sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt
files.
* sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.

18 years agoRename ms1 files to mt files (part 1 -- renames only)
Nathan Sidwell [Mon, 12 Dec 2005 11:16:41 +0000 (11:16 +0000)]
Rename ms1 files to mt files (part 1 -- renames only)

18 years ago * mmap.cc (gen_create_protect): Always generate WRITECOPY protection
Corinna Vinschen [Mon, 12 Dec 2005 10:00:32 +0000 (10:00 +0000)]
* mmap.cc (gen_create_protect): Always generate WRITECOPY protection
for private maps.
(fixup_mmaps_after_fork): Fix calculation of WRITECOPY protection for
VirtualProtect.  Add some words to the comment.

18 years ago* winsup.api/ltp/dup03.c (cleanup): Fix longstanding off-by-one error when
Christopher Faylor [Sun, 11 Dec 2005 22:31:00 +0000 (22:31 +0000)]
* winsup.api/ltp/dup03.c (cleanup): Fix longstanding off-by-one error when
setting array element to -1.

18 years agofix typo.
Christopher Faylor [Sun, 11 Dec 2005 17:30:53 +0000 (17:30 +0000)]
fix typo.

18 years agomerge from gcc
DJ Delorie [Sun, 11 Dec 2005 02:16:04 +0000 (02:16 +0000)]
merge from gcc

18 years ago* dirent.h: Change the rest of the d_ino's to __deprecated_d_ino.
Christopher Faylor [Sat, 10 Dec 2005 23:25:24 +0000 (23:25 +0000)]
* dirent.h: Change the rest of the d_ino's to __deprecated_d_ino.

18 years ago* malloc.cc: Update to version 2.8.3.
Christopher Faylor [Sat, 10 Dec 2005 17:09:58 +0000 (17:09 +0000)]
* malloc.cc: Update to version 2.8.3.
* cygmalloc.h (MSPACE): Remove unneeded definition.

18 years ago * lib/kernel32.def (CreateFiberEx): Correct suffix.
Danny Smith [Fri, 9 Dec 2005 07:49:40 +0000 (07:49 +0000)]
* lib/kernel32.def (CreateFiberEx): Correct suffix.

18 years ago2005-12-09 Huw Davies <hdavies@users.sourceforge.net>
Danny Smith [Fri, 9 Dec 2005 04:59:24 +0000 (04:59 +0000)]
2005-12-09  Huw Davies <hdavies@users.sourceforge.net>
    Danny Smith <dannysmith@users.sourceforge.net>

* lib/msxml-uuid.c: New file to generate UUIDs for
MSXML interfaces.
* lib/Makefile.in (UUID_OBJS): Add msxml-uuid.o.

Add missing ChangeLog entries for 2005-12-07 commits.

18 years ago2005-12-08 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Thu, 8 Dec 2005 19:45:43 +0000 (19:45 +0000)]
2005-12-08  Shaun Jackman  <sjackman@gmail.com>

* libc/include/sys/types.h: Remove the ifdef armour around
standard POSIX types.

18 years ago * fhandler_raw.cc (fhandler_dev_raw::ioctl): Only allow 0, 1 or a
Corinna Vinschen [Thu, 8 Dec 2005 10:55:29 +0000 (10:55 +0000)]
* fhandler_raw.cc (fhandler_dev_raw::ioctl): Only allow 0, 1 or a
multiple of 512 as new buffersize.

18 years ago * fhandler_socket.cc (fhandler_socket::recvfrom): Mask flags with
Corinna Vinschen [Thu, 8 Dec 2005 10:13:57 +0000 (10:13 +0000)]
* fhandler_socket.cc (fhandler_socket::recvfrom): Mask flags with
MSG_WINMASK for Windows socket calls.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendmsg): Ditto.

18 years ago* hires.h (hires_ms::initime_ms): Delete.
Christopher Faylor [Wed, 7 Dec 2005 22:28:49 +0000 (22:28 +0000)]
* hires.h (hires_ms::initime_ms): Delete.
(hires_ms::initime_us): Just define as LONGLONG.
(hires_ms::uptime): New function.
* select.cc (select_stuff::wait): Use gtod for timing to attempt to avoid
windows 32 bit wraparound.
* times.cc (systime): New function.
(times): Replace GetTickCount with gtod.uptime.
(hires_us::prime): Use systime() to calculate system time rather than calling
GetSystemTimeAsFileTime directly.
(hires_ms::prime): Ditto.  Eliminate initime_ms.
(hires_ms::usecs): Try harder to detect wraparound.
* fhandler_proc.cc (format_proc_partitions): Set drive_size to zero to avoid a
compiler warning.

18 years ago * fhandler_proc.cc (format_proc_partitions): Use modern IOCTLs
Corinna Vinschen [Wed, 7 Dec 2005 20:32:27 +0000 (20:32 +0000)]
* fhandler_proc.cc (format_proc_partitions): Use modern IOCTLs
to determine drive size as far as possible.

18 years ago * include/winbase.h (GetDevicePowerState): Add prototype.
Danny Smith [Wed, 7 Dec 2005 20:27:09 +0000 (20:27 +0000)]
* include/winbase.h (GetDevicePowerState): Add prototype.
* lib/kernel32.def (GetDevicePowerState): Correct suffix.

18 years ago2005-12-07 Brian Gunlogson <gmb300@users.sourceforge.net>
Danny Smith [Wed, 7 Dec 2005 20:17:39 +0000 (20:17 +0000)]
2005-12-07  Brian Gunlogson  <gmb300@users.sourceforge.net>

* include/winuser.h (GetClassLongPtr{AW}): Guard prototypes with _WIN64.
Define as macro if !_WIN64.
(SetClassLongPtr{AW}): Likewise.
(GCLP_*): Add GetClassLongPtr defines.
* lib/user32.def (GetClassLongPtr{AW}): Remove stubs.
(SetClassLongPtr{AW}): Likewise.

18 years ago * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix INVALID_PARAMETER
Corinna Vinschen [Wed, 7 Dec 2005 19:01:29 +0000 (19:01 +0000)]
* fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix INVALID_PARAMETER
condition.  Only copy devbuf to buf if buf is non-NULL.

18 years ago * fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix setting devbuf
Corinna Vinschen [Wed, 7 Dec 2005 18:35:29 +0000 (18:35 +0000)]
* fhandler_raw.cc (fhandler_dev_raw::ioctl): Fix setting devbuf
when rd_parm is 0 or 1.

18 years ago * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test for
Corinna Vinschen [Wed, 7 Dec 2005 18:11:10 +0000 (18:11 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::lseek): Fix test for
valid file position at EOM.

18 years ago* include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib.
Christopher Faylor [Wed, 7 Dec 2005 15:17:43 +0000 (15:17 +0000)]
* include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib.

18 years ago * cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS)
Hans-Peter Nilsson [Wed, 7 Dec 2005 12:53:57 +0000 (12:53 +0000)]
* cris.h (MOVE_M_TO_PREG_OPCODE, MOVE_M_TO_PREG_ZBITS)
(MOVE_PC_INCR_OPCODE_PREFIX, MOVE_PC_INCR_OPCODE_SUFFIX): New macros.
(ADD_PC_INCR_OPCODE): Don't define.

18 years ago * exceptions.cc (_cygtls::handle_exceptions): In case of a
Corinna Vinschen [Wed, 7 Dec 2005 11:16:47 +0000 (11:16 +0000)]
* exceptions.cc (_cygtls::handle_exceptions): In case of a
STATUS_ACCESS_VIOLATION, check if the page is a mmaped page beyond
a file's EOF.  Generate SIGBUS instead of SIGSEGV then.
* mmap.cc (__PROT_ATTACH): New define.
(__PROT_FILLER): Ditto.
(fh_anonymous): Rename from fh_paging_file;
(fh_disk_file): New global static variable.
(attached): New inline function.
(filler): Ditto.
(gen_create_protect): Split off from gen_protect to use the file's
access mode to create mapping always with maximum allowed protections.
(gen_protect): Accomodate pages attached beyond EOF.  Use symbolic
values instead of numerics when possible.  Drop create parameter.
(gen_access): Use file's access mode instead of protection.
(CreateMapping9x): Create named mapping names so that different
creation access modes result in different mappings.
(CreateMappingNT): Only reserve attached pages, don't commit them.
(MapViewNT): Ditto.  Set AT_ROUND_TO_PAGE for all non-NULL base
addresses.
(mmap_func_t): Define CreateMapping and MapView function pointers
with additional openflags parameter.
(class mmap_record): Add openflags member.
(mmap_record::mmap_record): Add openflags parameter.
(mmap_record::get_openflags): New accessor.
(mmap_record::attached): Call global attached function.
(mmap_record::filler): Call global filler function.
(mmap_record::gen_create_protect): Call global gen_create_protect
function.
(mmap_record::gen_protect): Drop create parameter.
(mmap_record::alloc_fh): Set fhandler's access flags.
(list::search_record): Accomodate filler pages.
(list::set): Use inode number as hash value.
(map::get_list_by_fd): Check hash value against file's inode number.
(mmap_is_attached_page): New function to evaluate if a given address
is on a attached page.  Called from _cygtls::handle_exceptions.
(mmap_worker): New function to do mapping and bookkeeping in a
single call.
(mmap64): Use roundup2 to round length to pagesize alignment.
Initialize global fhandlers.  Simplify anonymous initialization.
Add SUSv3 compatible check of file open mode vs. requested protection.
Try creating new file handles to allow maximum page protection.
Allow creating attached pages in case of mapping beyond EOF.
Close new file handle if one has been created.
(munmap): Align len to pagesize.
(msync): Rework argument checks. Align len to pagesize.
(mprotect): Ditto.  Accomodate attached pages.
(mlock): Use roundup/rounddown macros instead of homemade expressions.
(munlock): Add page alignment as in mlock.
(fhandler_dev_zero::munmap): Fix unmapping of non-private mappings.
(fhandler_dev_zero::fixup_mmap_after_fork): Accomodate filler pages.
(fixup_mmaps_after_fork): Don't fail if attached pages couldn't be
created in child.  Avoid superfluous call to VirtualFree.  Check for
original allocation protection to fix PAGE_WRITECOPY protection.
* ntdll.h: Revert deletion of AT_ROUND_TO_PAGE define.
* winsup.h (mmap_is_attached_page): Declare.

18 years ago2005-12-06 Paul Brook <paul@codesourcery.com>
Jeff Johnston [Tue, 6 Dec 2005 22:04:29 +0000 (22:04 +0000)]
2005-12-06  Paul Brook  <paul@codesourcery.com>

        * m68k/bcc.ld: Add .text.*, .rodata.*, .data.* and .bss.*.
        * m68k/idp.ld: Ditto.
        * m68k/idpgdb: Ditto.
        * m68k/mvme135.ld: Ditto.
        * m68k/sbc5204.ld: Ditto.
        * m68k/sbc5206.ld: Ditto.
        * m68k/sim.ld: Ditto.

18 years ago2005-12-06 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston [Tue, 6 Dec 2005 21:58:45 +0000 (21:58 +0000)]
2005-12-06  Ralf Corsepius <ralf.corsepius@rtems.org>

        * libc/sys/rtems/crt0.c: Add rtems_gxx_key_create,
        rtems_gxx_key_delete, rtems_gxx_getspecific,
        rtems_gxx_setspecific, rtems_gxx_mutex_trylock,
        rtems_gxx_recursive_mutex_init, rtems_gxx_recursive_mutex_lock,
        rtems_gxx_recursive_mutex_trylock, rtems_gxx_recursive_mutex_unlock.

18 years agogas/
H.J. Lu [Tue, 6 Dec 2005 12:40:57 +0000 (12:40 +0000)]
gas/

2005-12-06  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/1874
* config/tc-i386.c (match_template): Handle monitor.
(process_suffix): Likewise.

gas/testsuite/

2005-12-06  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/1874
* gas/i386/i386.exp: Add x86-64-prescott for 64bit.

* gas/i386/prescott.s: Test address size override for monitor.
* gas/i386/prescott.d: Updated.

* gas/i386/x86-64-prescott.d: New file.
* gas/i386/x86-64-prescott.s: Likewise.

include/opcode/

2005-12-06  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/1874
* i386.h (i386_optab): Add 64bit support for monitor and mwait.

opcodes/

2005-12-06  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/1874
* i386-dis.c (address_mode): New enum type.
(address_mode): New variable.
(mode_64bit): Removed.
(ckprefix): Updated to check address_mode instead of mode_64bit.
(prefix_name): Likewise.
(print_insn): Likewise.
(putop): Likewise.
(print_operand_value): Likewise.
(intel_operand_size): Likewise.
(OP_E): Likewise.
(OP_G): Likewise.
(set_op): Likewise.
(OP_REG): Likewise.
(OP_I): Likewise.
(OP_I64): Likewise.
(OP_OFF): Likewise.
(OP_OFF64): Likewise.
(ptr_reg): Likewise.
(OP_C): Likewise.
(SVME_Fixup): Likewise.
(print_insn): Set address_mode.
(PNI_Fixup): Add 64bit and address size override support for
monitor and mwait.

18 years ago* include/cygwin/stdlib.h: New file.
Christopher Faylor [Mon, 5 Dec 2005 22:30:03 +0000 (22:30 +0000)]
* include/cygwin/stdlib.h: New file.
* environ.cc (unsetenv): Change to return -1 on input error.
* include/cygwin/version.h: Add more description to latest api bump.

18 years ago* libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.
Christopher Faylor [Mon, 5 Dec 2005 22:15:21 +0000 (22:15 +0000)]
* libc/include/stdlib.h: Move cygwin declarations to cygwin-specific file.
Declare unsetenv and _unsetenv_r when not cygwin.

18 years ago* dir.cc (readdir_workdir): Only fill out d_ino when linked into older app.
Christopher Faylor [Mon, 5 Dec 2005 21:02:53 +0000 (21:02 +0000)]
* dir.cc (readdir_workdir): Only fill out d_ino when linked into older app.
* include/cygwin/version.h: Bump api minor number to 147, reflecting
obsolescence of d_ino.
(CYGWIN_VERSION_USER_API_VERSION_COMBINED): New convenience macro.
(CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): New convenience macro.

18 years agorevert accidental checkin
Christopher Faylor [Mon, 5 Dec 2005 20:30:40 +0000 (20:30 +0000)]
revert accidental checkin

18 years agoRemove unneeded whitespace.
Christopher Faylor [Mon, 5 Dec 2005 20:20:18 +0000 (20:20 +0000)]
Remove unneeded whitespace.
* cygtls.cc (_cygtls::set_state): Delete.
(_cygtls::reset_exception): Ditto.
(_cygtls::init_thread): Set initialized state directly here.
(_cygtls::push): Remove exception argument.  Don't treat exceptions specially.
* cygtls.h (_cygtls::push): Ditto.
(_cygtls::isinitialized): Don't treat exceptions specially.
(_cygtls::reset_exception): Delete.
(_cygtls::set_state): Ditto.
(_cygtls::handle_exceptions): Don't push ebp on the stack prior to calling
sig_send.  Just set incyg instead.
(_cygtls::interrupt_setup): Accommodate _cygtls::push argument change.
(_cygtls::interrupt_now): Ditto.
(setup_handler): Don't treat exceptions specially.
* gendef (longjmp): Always zero incyg flag.

18 years ago* strace.cc (show_usecs): Renamed from 'usecs'.
Christopher Faylor [Mon, 5 Dec 2005 16:39:06 +0000 (16:39 +0000)]
* strace.cc (show_usecs): Renamed from 'usecs'.
(main): Use show_usecs rather than usecs.  Toggle delta if '-u' is specified.
(handle_output_debug_string): Avoid printing microsecond timestamp if
show_usecs == 0.
* utils.sgml (strace): Add words to describe '-u'.

18 years agotoplevel:
Paolo Bonzini [Mon, 5 Dec 2005 15:16:05 +0000 (15:16 +0000)]
toplevel:
2005-12-05  Paolo Bonzini  <bonzini@gnu.org>

Sync with gcc:

2005-12-05  Paolo Bonzini  <bonzini@gnu.org>

        * configure.in (CONFIGURED_BISON, CONFIGURED_YACC, CONFIGURED_M4,
        CONFIGURED_FLEX, CONFIGURED_LEX, CONFIGURED_MAKEINFO): Remove
        "CONFIGURED_" from the AC_CHECK_PROGS invocation.  Move below.
        Find in-tree tools if available.
        (EXPECT, RUNTEST, LIPO, STRIP): Find them and substitute them.
        (CONFIGURED_*_FOR_TARGET): Don't set nor substitute.
        (*_FOR_TARGET): Set them with GCC_TARGET_TOOL.
        (COMPILER_*_FOR_TARGET): New.
        * Makefile.tpl (HOST_EXPORTS): Add *_FOR_TARGET symbols that gcc needs.
        (BASE_TARGET_EXPORTS): Use COMPILER_*_FOR_TARGET symbols.
        (CONFIGURED_*, USUAL_*): Remove.
        (BISON, YACC, FLEX, LEX, M4, MAKEINFO, EXPECT, RUNTEST, LIPO,
        STRIP): Use autoconf substitutions.
        (COMPILER_AS_FOR_TARGET, COMPILER_LD_FOR_TARGET,
        COMPILER_NM_FOR_TARGET): New.
        (EXTRA_HOST_FLAGS): Pass LIPO and STRIP.

        (all): Make all-host and all-target in parallel.
        (do-[+make_target+], do-check, install, [+compare-target+]): Ensure
        that $$r and $$s are set before invoking a recursive make.
        (stage[+id+]-bubble): Likewise, and invoke the comparison at the end.
        ([+bootstrap-target+]): Inline most of the `all' target.

2005-11-29  Ben Elliston  <bje@au.ibm.com>

        * Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc
        from the gcc build directory.
        * Makefile.in: Regenerate.

2005-11-29  Ben Elliston  <bje@au.ibm.com>

        * Makefile.def: Add new libdecnumber host_module.  Make all-gcc
        depend on all-libdecnumber.
        * configure.in (host_libs): Include libdecnumber.
        * Makefile.in: Regenerate.
        * configure: Likewise.

2005-11-21  Kean Johnston  <jkj@sco.com>

        * config.sub, config.guess: Sync from upstream sources.

config:
2005-12-05  Paolo Bonzini  <bonzini@gnu.org>

* acx.m4 (GCC_TARGET_TOOL): New.

18 years ago * environ.cc (spenvs): Add "windir" as an "always export" variable
Corinna Vinschen [Sun, 4 Dec 2005 21:47:03 +0000 (21:47 +0000)]
* environ.cc (spenvs): Add "windir" as an "always export" variable
to accomodate WinSock on Windows 95.

18 years agofix description
Christopher Faylor [Sun, 4 Dec 2005 19:24:10 +0000 (19:24 +0000)]
fix description

18 years ago* faq-setup.xml: Add note about clean_setup.pl.
Joshua Daniel Franklin [Sun, 4 Dec 2005 03:55:28 +0000 (03:55 +0000)]
* faq-setup.xml: Add note about clean_setup.pl.
* faq-using.xml: Remove unnecessary line of elisp.

18 years ago* include/exceptions.h (exception_list): Revert previous change. Windows
Christopher Faylor [Sat, 3 Dec 2005 05:01:51 +0000 (05:01 +0000)]
* include/exceptions.h (exception_list): Revert previous change.  Windows
doesn't care.
(exception_handler): Use real exception_list parameter type rather than void *
* tlsoffsets.h: Regenerate.
* cygtls.h (_cygtls::handle_exceptions): Use real exception_list parameter type
rather than void *.
(handle_threadlist_exception): Ditto.
(init_exception_handler): Ditto.
* cygtls.cc (_cygtls::handle_threadlist_exception ): Ditto.
(_cygtls::init_exception_handler): Add kludge to terminate linked list with a
loop, which seems to solve problem of RtlUnwind causing problems
* exceptions.cc (rtl_unwind): Use real exception_list parameter type rather
than void *.
(_cygtls::handle_exceptions): Ditto.

18 years agoAdd missing ChangeLog entry.
Christopher Faylor [Sat, 3 Dec 2005 04:24:34 +0000 (04:24 +0000)]
Add missing ChangeLog entry.

18 years ago* cygtls.h (_cygtls::el): New field.
Christopher Faylor [Sat, 3 Dec 2005 04:23:35 +0000 (04:23 +0000)]
* cygtls.h (_cygtls::el): New field.
(_cygtls::handle_exceptions): New function declaration.
(_cygtls::handle_threadlist_exception): Ditto.
(_cygtls::init_exception_handler): Ditto.
(_cygtls::init_threadlist_exceptions): Remove arg from declaration.
* cygtls.cc (_cygtls::call2): Don't initialize exceptions here.
(_cygtls::init_thread): Do it here instead and use member function.
(_cygtls::handle_threadlist_exception): Move into _cygtls class.
(_cygtls::init_exception_handler): Ditto.  Rely on existence of 'el' memmber in
_cygtls.
(_cygtls::init_threadlist_exceptions): Ditto.
* dcrt0.cc (dll_crt0_1): Remove exception_list definition and setting since it
now commonly resides in the tls.
* exceptions.cc (init_exception_handler): Move to cygtls.cc.
(init_exceptions): Ditto.
(rtl_unwind): New, safe wrapper function for RtlUnwind.
(_cygtls::handle_exceptions): Move to _cygtls.  Call rtl_unwind to unwind
frames and eliminate copying of structures.  Put address of failing instruction
in si_addr, not the address on the stack.  Return 0 to indicate that we've
handled this exception.
* external.cc (cygwin_internal): Make CW_INIT_EXCEPTIONS a no-op.
* sigproc.cc (wait_sig): Accommodate argument change to
_cygtls::init_threadlist_exceptions.
* tlsoffsets.h: Regenerate.
* include/exceptions.h (exception_list): Add more stuff to the exception list.
Apparently windows needs this?
(init_exceptions): Remove bogus declaration.
* include/cygwin/signal.h (SI_USER): Redefine as zero as per SUSv3.
* thread.cc (pthread_kill): Set si_pid and si_uid.
* timer.cc (timer_thread): Set si_code to SI_TIMER.

18 years ago* dcrt0.cc (getstack): Try harder to modify memory.
Christopher Faylor [Fri, 2 Dec 2005 03:12:06 +0000 (03:12 +0000)]
* dcrt0.cc (getstack): Try harder to modify memory.
(alloc_stack): Alloc page prior to stack top, too.

18 years ago* devices.h (_major): Revert previous ill-advised change.
Christopher Faylor [Fri, 2 Dec 2005 00:37:21 +0000 (00:37 +0000)]
* devices.h (_major): Revert previous ill-advised change.
(_minor): Ditto.

18 years ago* exceptions.cc (handle_exceptions): Translate a guard page exception to a
Christopher Faylor [Thu, 1 Dec 2005 20:52:00 +0000 (20:52 +0000)]
* exceptions.cc (handle_exceptions): Translate a guard page exception to a
"SIGBUS".

18 years ago * mmap.cc: Make debug output more consistently. Fix some comments.
Corinna Vinschen [Thu, 1 Dec 2005 20:35:13 +0000 (20:35 +0000)]
* mmap.cc: Make debug output more consistently.  Fix some comments.
(gen_protect): Convert to inline function.
(gen_access): Ditto.
(mmap_record::gen_protect): Add create parameter as in global function.
(mmap_record::alloc_page_map): Change condition so that always the
correct protection setting is set after mapping has been established.
(mmap64): For anonymous mappings set offset always to 0.
(fixup_mmaps_after_fork): Always call fixup_mmap_after_fork method
with the MAP_FIXED flag set.

18 years ago* devices.h (_minor): Coerce argument to proper type before manipulating.
Christopher Faylor [Thu, 1 Dec 2005 17:33:59 +0000 (17:33 +0000)]
* devices.h (_minor): Coerce argument to proper type before manipulating.
(_major): Ditto.
(device::is_fs_special): New function.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set the size to 0 for
devices rather than reporting the size of the symlink.
(fhandler_disk_file::readdir): Use is_fs_special to determine if .lnk should be
stripped.
* path.cc: Rename symlink_info::is_symlink to symlink_info::issymlink
throughout.
(symlink_info::isdevice): New field.
(path_conv::check): Use 'isdevice' to determine if just-parsed entity is a
device rather than relying on non-zero major/minor.
(symlink_info::parse_device): Set isdevice to true if we've discovered a
device.
(symlink_info::check): Clear isdevice field prior to processing.  Use isdevice
to control debugging output.
(symlink_info::set): Set isdevice to false.
* path.h (path_conv::is_fs_special): New function.
* devices.cc: Regenerate.

18 years ago2005-11-30 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 30 Nov 2005 23:43:57 +0000 (23:43 +0000)]
2005-11-30  Shaun Jackman  <sjackman@gmail.com>

        * libnosys/Makefile.in (OBJS): Add chown, readlink, and symlink.
        * libnosys/chown.c: New file.
        * libnosys/readlink.c: New file.
        * libnosys/symlink.c: New file.

18 years ago2005-11-30 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 30 Nov 2005 23:37:14 +0000 (23:37 +0000)]
2005-11-30  Shaun Jackman  <sjackman@gmail.com>

        * arm/libcfunc.c (clock, sleep, usleep): New functions.
        * arm/syscalls.c (_clock): New function.
        (_times): Call _clock.

18 years ago* times.cc (hires_ms::prime): Remove debugging stuff.
Christopher Faylor [Wed, 30 Nov 2005 18:14:07 +0000 (18:14 +0000)]
* times.cc (hires_ms::prime): Remove debugging stuff.
(hires_ms::usecs): Ditto.

18 years ago * mmap.cc (list::try_map): New method, implementing trying to map
Corinna Vinschen [Wed, 30 Nov 2005 15:05:48 +0000 (15:05 +0000)]
* mmap.cc (list::try_map): New method, implementing trying to map
within another already existing map, moved from mmap64 here.
(mmap64): Just call try_map now.
(fhandler_dev_zero::fixup_mmap_after_fork): Always create new private
map with PAGE_READWRITE protection.
(fixup_mmaps_after_fork): Fix comment.

18 years ago * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen [Tue, 29 Nov 2005 18:25:36 +0000 (18:25 +0000)]
* include/cygwin/version.h: Bump API minor version.

18 years ago * fhandler.h (fhandler_dev_zero::mmap): Add method.
Corinna Vinschen [Tue, 29 Nov 2005 16:28:05 +0000 (16:28 +0000)]
* fhandler.h (fhandler_dev_zero::mmap): Add method.
(fhandler_dev_zero::munmap): Ditto.
(fhandler_dev_zero::msync): Ditto.
(fhandler_dev_zero::fixup_mmap_after_fork): Ditto.
* mmap.cc: Implement anonymous mapping using fhandler_dev_zero class.
Implement private anonymous maps using VirtualAlloc/VirtualFree.  Fix
or add some more comments.
(fh_paging_file): Change to type fhandler_dev_zero.
(priv): New static inline function to avoid having lots of flag bit
tests in the code.  Use throughout were appropriate.
(fixed): Ditto.
(anonymous): Ditto.
(noreserve): Ditto.
(autogrow): Ditto.
(gen_protect): Never generate PAGE_WRITECOPY protection for
private anonymous maps.
(gen_access): Drop FILE_MAP_EXECUTE handling since it's not supported
correctly on 9x.
(VirtualProt9x): Move comment from mmap64 here.
(mmap_record::mmap_record): Gegerate correct device entry for
anonymous maps, though unused right now.
(mmap_record::priv): Call global priv function.
(mmap_record::fixed): Call global fixed function.
(mmap_record::anonymous): Call global anonymous function.
(mmap_record::noreserve): Call global noreserve function.
(mmap_record::autogrow): Call global autogrow function.
(list::anonymous): New method.  Use throughout were appropriate.
(mmap_record::compatible_flags): Drop now useless ifdef.
(mmap_record::alloc_page_map): Accomodate private anonymous maps.
(mmap_record::map_pages): Accomodate MAP_NORESERVE mappings.
(mmap_record::unmap_pages): Accomodate private anonymous maps.
(mmap64): Simplify argument check.  Don't remove the MAP_PRIVATE flag
for anonymous mappings on 9x anymore since that's now handled
gracefully.
(mprotect): Accomodate MAP_NORESERVE mappings.  Fix case when
non-mmap areas are just MEM_RESERVEd.
(fhandler_dev_zero::mmap): Implement anonymous mapping here.
(fhandler_dev_zero::munmap): Ditto.
(fhandler_dev_zero::msyn): Ditto.
(fhandler_dev_zero::fixup_mmap_after_fork): Ditto.
(fixup_mmaps_after_fork): Accomodate private anonymous maps.  Enhance
debug output in case VirtualProtect fails.
* include/sys/mman.h: Really define MAP_NORESERVE now.

18 years ago * autoload.cc (NtCreateSection): Define.
Corinna Vinschen [Mon, 28 Nov 2005 22:32:29 +0000 (22:32 +0000)]
* autoload.cc (NtCreateSection): Define.
* cygheap.cc (_csbrk): Call getpagesize instead of getshmlba.
* dcrt0.cc (dll_crt0_0): Call mmap_init.
* external.cc (cygwin_internal): Call getpagesize instead of getshmlba.
* fhandler.h (fhandler_base::mmap): Change access to prot parameter.
(fhandler_base::fixup_mmap_after_fork): Ditto.
(fhandler_disk_file::mmap): Ditto.
(fhandler_disk_file::fixup_mmap_after_fork): Ditto.
(fhandler_dev_mem::mmap): Ditto.
(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::write): Call getsystempagesize
instead of getpagesize.
(fhandler_dev_mem::read): Ditto.
(fhandler_dev_mem::fstat): Ditto.
(fhandler_dev_mem::mmap): Move to mmap.cc.
(fhandler_dev_mem::munmap): Ditto.
(fhandler_dev_mem::msync): Ditto.
(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.
* fhandler_proc.cc (format_proc_meminfo): Call getsystempagesize
instead of getpagesize.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(get_mem_values): Ditto.
* mmap.cc: Fix formatting.  Try to make more readable and modular.
Take advantage of pagesize==granularity.
(gen_protect): New static function to evaluate Windows
protection bits from POSIX protection and flags.
(gen_access): Ditto for Windows access mode.
(VirtualProt9x): Wrapper function to call VirtualProtect on 9x.
(VirtualProtNT): Ditto for NT.
(VirtualProtEx9x): Ditto for VirtualProtectEx on 9x.
(VirtualProtExNT): Ditto for NT.
(CreateMapping9x): Wrapper function for creating a mapping handle on 9x.
(CreateMappingNT): Ditto for NT.
(MapView9x): Wrapper function to map a view on 9x.
(MapViewNT): Ditto for NT.
(mmap_funcs_9x): Structure containing function pointers to wrapper
functions for 9x.
(mmap_funcs_nt): Ditto for NT.
(mmap_func): Pointer to wrapper functions used in subsequent code.
(mmap_init): Initialize mmap_func depending on OS.
(class mmap_record): Use sensible member names.  Add POSIX protection
member. Drop Windows access flags member.  Constify more methods.
Use accessors instead of direct member access inside of own methods.
(mmap_record::gen_protect): Class wrapper to evaluate matching
Windows protection bits.
(mmap_record::gen_access): Ditto for Windows access flags.
(mmap_record::compatible_flags): New function to check if flags are
compatible with flags of existing map.
(list::add_record): Drop offset and length arguments.
(class map): Change counters to unsigned.  Match usage throughout.
(mmapped_areas): Convert from pointer to global struct.
(mmap_record::alloc_page_map): Simplify.
(mmap_record::map_pages): Ditto.
(mmap_record::fixup_page_map): Delete.
(mmap64): Simplify.  Add workaround for Windows 98 bug.  Fix bug on
NT that existing anonymous mappings weren't searched for a match.
(munmap): Add workaround for Windows 98 bug.
(msync): Simplify.
(mprotect): Handle existing maps correctly.
(mlock): Add local pagesize variable and enlightening comment.
(fhandler_disk_file::mmap): Main functionality now in CreateMapping/
MapView wrapper functions.
(fhandler_disk_file::fixup_mmap_after_fork): Call MapView wrapper.
(fhandler_dev_mem::mmap): Moved from fhandler_mem.cc.  Simplify by
calling MapViewNT.
(fhandler_dev_mem::munmap): Moved from fhandler_mem.cc.
(fhandler_dev_mem::msync): Ditto.
(fhandler_dev_mem::fixup_mmap_after_fork): Ditto.  Call MapViewNT.
(fixup_mmaps_after_fork): Restructure and hopefully speed up loop for
setting protection and memory content on MAP_PRIVATE maps.
* ntdll.h (AT_ROUND_TO_PAGE): Remove define.
(AT_EXTENDABLE_FILE): Add define.
(NtCreateSection): Add prototype.
* syscalls.cc (getpagesize): Return granularity as pagesize now.
(getsystempagesize): New function to retrieve "real" pagesize.
(getshmlba): Delete since it's replaced by getpagesize now.
* wincap.h (wincaps::has_mmap_alignment_bug): New element.
* wincap.cc: Implement above element throughout.
* winsup.h (getshmlba): Drop prototype.
(getsystempagesize): Add prototype.
(mmap_init): Ditto.
* include/sys/mman.h: (Not yet) define MAP_NORESERVE.

18 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't rely on
Corinna Vinschen [Mon, 28 Nov 2005 10:06:33 +0000 (10:06 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Don't rely on
has_acl() state for evaluating inodes.  Temporarily(?) enable "real"
inodes for remote drives.

18 years agoFix changelog typo.
Daniel Jacobowitz [Mon, 28 Nov 2005 03:29:07 +0000 (03:29 +0000)]
Fix changelog typo.

18 years ago* heap.cc: Remove spurious getpagesize declaration.
Christopher Faylor [Fri, 25 Nov 2005 19:53:52 +0000 (19:53 +0000)]
* heap.cc: Remove spurious getpagesize declaration.
* exceptions.cc (ctrl_c_handler): Distinguish CTRL-BREAK from CTRL-C in some
cases.

18 years ago* autoload.cc (CloseWindowStation): Define.
Christopher Faylor [Thu, 24 Nov 2005 02:34:49 +0000 (02:34 +0000)]
* autoload.cc (CloseWindowStation): Define.

18 years ago* fhandler_tty.cc (fhandler_tty_slave::open): Reset the current windows station
Christopher Faylor [Thu, 24 Nov 2005 02:34:31 +0000 (02:34 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::open): Reset the current windows station
whenever ctty == -1 regardles of whetehr there's a windows station already
assigned.  Close the old windows station in this situation.
* pinfo.cc (_pinfo::set_ctty): Reinstate incrementing of console count when
recording ctty so that the current tty is always around.

18 years ago* Makefile.in: Link cygcheck with libwininet.a.
Christopher Faylor [Tue, 22 Nov 2005 17:19:17 +0000 (17:19 +0000)]
* Makefile.in: Link cygcheck with libwininet.a.
* cygcheck.cc: Add includes.
(grep_packages): New global variable.
(display_internet_error): New function.
(safe_chars): New global variable.
(base_url): Ditto.
(package_grep): New function.
(usage): Reword --help output for clarity.  Document new argument.
(longopts): Add 'package-query' option.
(opts): Add 'p' option, reorder to be consistent with 'longopts'.
(main): Accommodate new option.
* utils.sgml (cygcheck): Update --help output.  Document new -p option.

18 years ago* strptime.cc (_strptime): Fix gcc warnings.
Christopher Faylor [Fri, 18 Nov 2005 19:43:02 +0000 (19:43 +0000)]
* strptime.cc (_strptime): Fix gcc warnings.

18 years ago* memmem.cc: Move from here.
Christopher Faylor [Fri, 18 Nov 2005 19:39:53 +0000 (19:39 +0000)]
* memmem.cc: Move from here.
* lib/memmem.cc: Move to here.

18 years ago2005-11-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 18 Nov 2005 19:00:29 +0000 (19:00 +0000)]
2005-11-18  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/time/strptime.c (strptime): Don't abort for %c and %Z.
        Treat %c as "%a %b %e %H:%M:%S %Y" and ignore %Z.

18 years ago * libc: Add subdirectory.
Corinna Vinschen [Fri, 18 Nov 2005 17:48:23 +0000 (17:48 +0000)]
* libc: Add subdirectory.
* Makefile.in (VPATH): Add libc subdir.
(DLL_OFILES): Add strptime.o and timelocal.o.
* cygwin.din: Export timelocal and timegm.
* localtime.cc: Define STD_INSPIRED unconditionally.
* include/cygwin/time.h (timelocal): Add declaration.
(timegm): Ditto.
* include/cygwin/version.h: Bump API minor version.
* libc/strptime.cc: New file.
* libc/timelocal.cc: New file.
* libc/timelocal.h: New file.

18 years ago * libc/include/ieeefp.h: Add C++ guards.
Corinna Vinschen [Fri, 18 Nov 2005 17:40:21 +0000 (17:40 +0000)]
* libc/include/ieeefp.h: Add C++ guards.

18 years ago* include/cygwin/sys_time.h: Move futimes and lutimes declaration here from
Christopher Faylor [Fri, 18 Nov 2005 16:08:33 +0000 (16:08 +0000)]
* include/cygwin/sys_time.h: Move futimes and lutimes declaration here from
newlib.

18 years ago* include/sys/time.h: Move more cygwin stuff to cygwin-specific header.
Christopher Faylor [Fri, 18 Nov 2005 16:08:10 +0000 (16:08 +0000)]
* include/sys/time.h: Move more cygwin stuff to cygwin-specific header.

18 years ago* include/time.h: Remove more cygwin-specific stuff.
Christopher Faylor [Fri, 18 Nov 2005 15:57:24 +0000 (15:57 +0000)]
* include/time.h: Remove more cygwin-specific stuff.

18 years ago* times.cc (timezone): Put back (void).
Christopher Faylor [Fri, 18 Nov 2005 15:57:16 +0000 (15:57 +0000)]
* times.cc (timezone): Put back (void).
* include/cygwin/time.h: Add more cygwin stuff from newlib.

18 years ago* include/time.h: Move cygwin declarations to cygwin-specific header.
Christopher Faylor [Fri, 18 Nov 2005 15:45:54 +0000 (15:45 +0000)]
* include/time.h: Move cygwin declarations to cygwin-specific header.
* include/sys/time.h: Rename cygwin include to "sys_time.h".

18 years ago* include/cygwin/sys_time.h: Rename from include/cygwin/time.h.
Christopher Faylor [Fri, 18 Nov 2005 15:45:51 +0000 (15:45 +0000)]
* include/cygwin/sys_time.h: Rename from include/cygwin/time.h.
* include/cygwin/time.h: New file.

18 years ago2005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net>
Danny Smith [Fri, 18 Nov 2005 00:44:22 +0000 (00:44 +0000)]
2005=11-18  Brian Gunlogson  <gmb300@users.sourceforge.net>

* include/winuser.h (GetClassLongPtr{AW}): Add prototypes.
(SetClassLongPtr{AW}): Likewise.
(GCLP_*): Add GetClassLongPtr defines.
* lib/user32.def (GetClassLongPtr{AW}): Add stubs.
(SetClassLongPtr{AW}): Likewise.

18 years ago2005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net>
Danny Smith [Fri, 18 Nov 2005 00:30:27 +0000 (00:30 +0000)]
2005=11-18  Brian Gunlogson  <gmb300@users.sourceforge.net>

* include/winuser.h (GetClassLongPtr{AW}): Add prototypes.
(SetClassLongPtr{AW}): Likewise.
(GCLP_*): Add GetClassLongPtr defines.
* lib/user32.def (GetClassLongPtr{AW}): Add stubs.
(SetClassLongPtr{AW}): Likewise.

18 years ago2005-11-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Nov 2005 21:51:21 +0000 (21:51 +0000)]
2005-11-17  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/dl/dl-local.h: New file based on old dlfcn.h
        in libc/sys/linux/include.
        * libc/sys/linux/dl/dlfcn.h: Moved to libc/sys/linux/include.
        * libc/sys/linux/dl/ldsodefs.h: Include dl-local.h instead of dlfcn.h.
        * libc/sys/linux/include/dlfcn.h: Replaced with dlfcn.h formerly
        in libc/sys/linux/dl.

18 years ago2005-11-17 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Thu, 17 Nov 2005 18:56:41 +0000 (18:56 +0000)]
2005-11-17  Shaun Jackman  <sjackman@gmail.com>

* libgloss/arm/libcfunc.c (isatty): Call _isatty. GDB now supports
the IsTTY SWI that _isatty calls.

18 years ago* fork.cc (fork): Move top-of-stack calculation later.
Christopher Faylor [Thu, 17 Nov 2005 16:36:00 +0000 (16:36 +0000)]
* fork.cc (fork): Move top-of-stack calculation later.
* pinfo.cc (_pinfo::set_ctty): Use __ctty to print current console in debugging
output.

18 years ago * fhandler_tty.cc (fhandler_tty_slave::open): Don't expect that
Corinna Vinschen [Thu, 17 Nov 2005 16:17:17 +0000 (16:17 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::open):  Don't expect that
service applications have no window station attached.

18 years ago * cris/linunistd.h: Don't redefine errno as extern int.
Hans-Peter Nilsson [Thu, 17 Nov 2005 12:01:44 +0000 (12:01 +0000)]
* cris/linunistd.h: Don't redefine errno as extern int.

18 years ago* times.cc (hires_ms::prime): Don't escalate the priority.
Christopher Faylor [Wed, 16 Nov 2005 05:12:11 +0000 (05:12 +0000)]
* times.cc (hires_ms::prime): Don't escalate the priority.

18 years ago* include/sys/elf64.h: Fix types to reflect linux usage.
Christopher Faylor [Mon, 14 Nov 2005 20:34:33 +0000 (20:34 +0000)]
* include/sys/elf64.h: Fix types to reflect linux usage.

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