aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2005-12-27 Add missing ChangeLog entry.Corinna Vinschen1-0/+7
2005-12-27 * path.cc (path_conv::check): Rework loop removing trailing dotsCorinna Vinschen2-9/+19
and spaces. * syslog.cc (vklog): Set facility to LOG_KERN if not set.
2005-12-27Add support for RDOS targets.Nick Clifton3-107/+137
2005-12-27PR binutils/1990Nick Clifton2-9/+113
* libtool.m4: Synchronize with version in GCC sources.
2005-12-26white spaceChristopher Faylor1-1/+0
2005-12-26* dcrt0.cc (__api_fatal): Simplify to just use strace mechamisms.Christopher Faylor5-28/+42
(do_exit): Move minimal_printf... * pinfo.cc (pinfo::exit): ...into here. * strace.cc (strace::vprntf): Guarantee output to the console when system_printf/api_fatal. * heap.cc (heap_init): Wait a second before issuing an error when ERROR_INVALID_ADDRESS since this is probably due to a CTRL-C handler sneaking in, using the memory that we want to use for the heap, and, eventually exiting.
2005-12-25typoChristopher Faylor1-1/+1
2005-12-23* cygtls.cc (_cygtls::handle_threadlist_exception): Make an error fatal.Christopher Faylor12-91/+92
* cygtls.h (sockaddr_in): Use header rather than defining our own structure. * exceptions.cc (_cygtls::interrupt_setup): Use exact contents of sa_mask rather than assuming tht current sig should be masked, too. (_cygtls::call_signal_handler): Use more aggressive locking. * gendef (_sigbe): Wait until later before releasing incyg. (_sigreturn): Remove more arguments to accommodate quasi-sa_sigaction support. (_sigdelayed): Push arguments for sa_sigaction. More work needed here. * signal.cc (sigaction): Implement SA_NODEFER. * tlsoffsets.h: Regenerate. * sigproc.cc (wait_sig): Use default buffer size of Windows 9x complains. * pinfo.cc (_onreturn::dummy_handle): Remove. (_onreturn::h): Make this a pointer. (_onreturn::~_onreturn): Detect whether pointer is NULL rather than value is NULL. (_onreturn::_onreturn): Set h to NULL initially. (_onreturn::no_close_p_handle): Set h to NULL. (winpids::add): Initialize onreturn with value from p.hProcess immediately.
2005-12-23* fork.cc (fork): Honor error return from sig_send. Don't continue with forkChristopher Faylor3-8/+24
if we couldn't suspend signals. * sigproc.cc (sig_send): Set sigCONT event when we see __SIGNOHOLD. (wait_sig): Remove holding_signals. Create pipe with a buffer which will theoretically cause blocking if there is nothing reading on the pipe. Wait for sigCONT at end of loop when we have a __SIGHOLD.
2005-12-22 * fhandler.h (fhandler_base::issymlink): New method.Corinna Vinschen5-2/+21
* syscalls.cc (open): Handle O_NOFOLLOW flag. * include/fcntl.h (_FNOFOLLOW): New define. (O_NOFOLLOW): Ditto. * include/cygwin/version.h: Bump API minor number.
2005-12-22 * lib/ws2_32.c: New file, defining IPv6 constants.Danny Smith3-2/+14
* Makefile.in (SOURCES): Add ws2_32.c (EXTRA_OBJS): Add ws2_32.o.
2005-12-22whitespace cleanup to force snapshot.Christopher Faylor13-74/+74
2005-12-22* pinfo.cc (winpids::add): Increment nelem when winpid is true since we don'tChristopher Faylor2-1/+7
care if it's a cygwin process in that case.
2005-12-22fix ya typoChristopher Faylor1-1/+2
2005-12-22* pinfo.cc (winpids::release): Fix typo.Christopher Faylor2-2/+6
2005-12-22* pinfo.cc (pinfo::init): Clarify comment slightly.Christopher Faylor3-31/+116
(_onreturn): New helper class. (winpids:add): Remove copied stuff. Try to put process handle into pinfo in question and use _onreturn class to control when to close it. (winpids::release): Remove use of copied array. Free procinfo when hProc is NULL. Otherwise call release and call CloseHandle on hProc. * pinfo.h (winpids::copied): Remove throughout class.
2005-12-21* pinfo.cc (pinfo::init): Remove spurious low_priority_sleep.Christopher Faylor2-5/+8
2005-12-21* spawn.cc (spawn_guts): Hide the window whenever ctty == -1, not just when weChristopher Faylor2-1/+6
have no console.
2005-12-21* cygheap.cc (init_cygheap::manage_console_count): Revert previous change.Christopher Faylor6-8/+32
Handle this a different way. * external.cc (cygwin_internal): Accommodate extra hook_or_detect_cygwin argument. * hookapi.cc (cygwin_internal): Fill in subsys variable with the subsystem of the executable. * spawn.cc (av::iscui): New variable. (spawn_guts): Hide window when we don't have a console and this isn't NT/XP/2003. (av::fixup): Set iscui flag. * winsup.h (hook_or_detect_cygwin): Accommodate extra argument.
2005-12-21* cygheap.cc (init_cygheap::manage_console_count): Don't call FreeConsole onChristopher Faylor2-1/+7
9x/Me.
2005-12-21 * (fhandler_disk_file::fchown): Remove execute bits from "sensible"Corinna Vinschen2-6/+7
permissions. Use same setting as in symlink.
2005-12-21 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix inode numberCorinna Vinschen2-5/+26
debug output. (fhandler_disk_file::fchown): Always set sensible permission values when creating the ACL for symlinks.
2005-12-212005-12-21 Michael Jung <mjung@iss.tu-darmstadt.de>Danny Smith3-0/+9
* lib/user32.def (PrivateExtractIconsA@32, PrivateExtractIconsW@32): Define. * lib/shell32.c (IID_IShellLinkDataList): Add GUID.
2005-12-20 * winsup.h (flush_file_buffers): Define as inline function.Corinna Vinschen3-12/+9
* miscfuncs.cc (flush_file_buffers): Remove.
2005-12-20 * winsup.h (flush_file_buffers): Declare new function.Corinna Vinschen3-0/+19
(FLushFileBuffers): New define. * miscfuncs.cc (flush_file_buffers): Define new function.
2005-12-20* fhandler.h (fhandler_termios::fixup_after_exec): Make non-inlined.Christopher Faylor3-1/+14
* fhandler_termios.cc (fhandler_termios::fixup_after_exec): Don't call fixup_after_fork if close_on_exec'ed.
2005-12-202005-12-20 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini8-98/+95
Revert Ada-related part of the previous change. * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET): Do not pass. * Makefile.tpl (BOOT_ADAFLAGS): Do not define. * Makefile.in: Regenerate. * configure.in: Do not include mt-ppc-aix target fragment. * configure: Regenerate. config: 2005-12-20 Paolo Bonzini <bonzini@gnu.org> Revert Ada-related part of the previous change. * mt-ppc-aix: Delete.
2005-12-20* cygtls.h (_cygtls::interrupt_now): Subsume interruptible().Christopher Faylor2-18/+27
(interruptible): Delete. (setup_handler): Remove interruptible call and just use return from interrupt_now.
2005-12-19* fhandler.h (set_console_state_for_spawn): Add an argument to the declaration.Christopher Faylor4-7/+16
* fhandler_console.cc (set_console_state_for_spawn): Ditto for the definition. Only set invisible console for non-cygwin process. Remove debugging leftover. * spawn.cc (spawn_guts): Pass argument denoting whether this is a cygwin process to set_console_state_for_spawn and only call this function when exec'ing.
2005-12-192005-12-19 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini9-103/+169
* configure.in: Select appropriate fragments for PowerPC/AIX. * configure: Regenerate. * Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS, BOOT_CFLAGS, BOOT_LDFLAGS. * Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS, BOOT_CFLAGS, BOOT_LDFLAGS. (TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET. (stage[+id+]-bubble): Pass flags recursively to the comparison target. (stage): Fail if we cannot complete the work. config: 2005-12-19 Paolo Bonzini <bonzini@gnu.org> * mt-ppc-aix, mh-ppc-aix: New.
2005-12-19 * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".Corinna Vinschen2-1/+5
2005-12-19 * mmap.cc (fhandler_dev_zero::mmap): Call VirtualFree(MEM_RELEASE)Corinna Vinschen2-2/+8
with zero length parameter, otherwise it fails. (fhandler_dev_zero::munmap): Ditto.
2005-12-19fix minor typo.Christopher Faylor1-2/+3
2005-12-19* fhandler.h (fhandler_pipe::fixup_in_child): Declare new function.Christopher Faylor8-65/+120
(fhandler_console::invisible_console): Declare new variable. (fhandler_console::need_invisible): Ditto. (fhandler_console::has_a): Ditto. * fhandler_console.cc (set_console_state_for_spawn): Eliminate return value. Set up an invisible console if necessary prior to spawning. (fhandler_console::invisible_console): Define. * fhandler_tty.cc (fhandler_tty_slave::open): Use fhandler_console::invisible_console to setup an invisible console. * pipe.cc (fhandler_pipe::fixup_in_child): Define new function from fixup_after_exec. (fhandler_pipe::fixup_after_exec): Use fixup_in_child when appropriate. (fhandler_pipe::fixup_after_fork): Ditto. * spawn.cc (handle): Reorganize and modernize a little. (spawn_guts): Rely on set_console_state_for_spawn to set the console into the right state but don't create the process with "detached" flag if we have no controlling tty since that confuses 'cmd'. * dtable.cc (dtable::stdio_init): Don't set console as controlling terminal if we have an invisible console. * sigproc.cc (child_info::sync): Use correct name in ForceCloseHandle1.
2005-12-19* include/sys/dirent.h: Change __deprecated_d_ino to __invalid_d_ino throughoutChristopher Faylor3-10/+16
to make things a little clearer. * dir.cc (readdir_worker): Reflect above change.
2005-12-17* winsup.h (child_copy): Change prototype to match new functionality.Christopher Faylor6-105/+134
* cygheap.cc (cygheap_fixup_in_child): Accommodate new child_copy arguments. * dcrt0.cc (dll_data_start): Move definition here from fork. (dll_data_end): Ditto. (dll_bss_start): Ditto. (dll_bss_end): Ditto. (handle_fork): New function. Called when forked to deal with fork issues and copy data to this process from the parent. (dll_crt0_0): Call handle_fork when _PROC_FORK condition. (dll_crt0): Don't copy user_data when we've forked. Don't zero first element of main_environment ever. (cygwin_dll_init): Ditto. * fork.cc (child_copy): Rename from fork_copy and change arguments so that each pair of things to copy gets its own descriptor. (frok::child): Remove fixup_mmaps_after_fork call here. Move to handle_fork in dcrt0.cc. (frok::parent): Use child_copy rather than fork_copy and accommodate changes in parameters. * exceptions.cc (setup_handler): Delay test of whether we're locked until after GetThreadContext has been called since there are apparently cases where SuspendThread does not cause an immediate thread suspension.
2005-12-162005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+6
* COPYING.NEWLIB: Update copyright year for default copyright.
2005-12-162005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston150-159/+190
* NEWS: Update with 1.14.0 info. * README: Ditto. * acinclude.m4: Change version number to 1.14.0. * aclocal.m4: Regenerated. * configure: Ditto. * doc/aclocal.m4: Ditto. * doc/configure: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/configure: Ditto. * libc/libc.texinfo: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/configure: Ditto. * libm/libm.texinfo: Ditto. * libc/sys/linux/shared.ld: Add VERS_1.14.
2005-12-16* init.cc (dll_entry): Call prime_threads after dll_crt0_0 to avoid conflictsChristopher Faylor2-1/+6
between heap allocation and thread stack allocation.
2005-12-162005-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-4/+9
* libc/sys/linux/sys/stat.h: Change *stat64 prototypes to take a pointer to struct stat64 rather than struct stat.
2005-12-162005-12-16 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston3-12/+19
* libc/include/stdint.h: Prefer long over int for int32_t. Use __have_long32 to set up int32_t. * libc/include/inttypes.h: Use "#if xxx" instead of "#ifdef xxx" (Sync with stdint.h).
2005-12-16* hookapi.cc (putmem): Remove query of previous memory protection since we getChristopher Faylor2-14/+8
that for free the first time we call VirtualProtect.
2005-12-16 Second part of ms1 to mt renaming.Nathan Sidwell5-22/+33
* bfd/archures.c (bfd_arch_mt): Renamed. (bfd_mt_arch): Renamed. (bfd_archures_list): Adjusted. * bfd/bfd-in2.h: Rebuilt. * bfd/config.bfd (mt): Remove special case targ_archs. (mt-*-elf): Rename bfd_elf32_mt_vec. * bfd/configure: Rebuilt. * bfd/configure.in (bfd_elf32_mt_vec): Renamed. (selarchs) Remove mt special case. * bfd/cpu-mt.c (arch_info_struct): Adjust. (bfd_mt_arch): Renamed, adjust. * bfd/elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela, mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section, mt_elf_howto_table): Renamed, adjusted. (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs, elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags, mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data, mt_elf_print_private_bfd_data): Renamed, adjusted. (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section, bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, elf_backend_check_relocs, eld_backend_object_p, bfd_elf32_bfd_set_private_flags, bfd_elf32_bfd_copy_private_bfd_data, bfd_elf32_bfd_merge_private_bfd_data, bfd_elf32_bfd_print_private_bfd_data): Adjusted. * bfd/libbfd.h: Regenerated. * bfd/reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16, BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT, BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed. * bfd/targets.c (bfd_elf32_mt_vec): Renamed. (_bfd_target_vector): Adjusted. * binutils/readelf.c (guess_is_rela): Use EM_MT. (dump_relocations, get_machine_name): Adjust. * cpu/mt.cpu (define-arch, define-isa): Set name to mt. (define-mach): Adjust. * cpu/mt.opc (CGEN_ASM_HASH): Update. (mt_asm_hash, mt_cgen_insn_supported): Renamed. (parse_loopsize, parse_imm16): Adjust. * gas/configure: Rebuilt. * gas/configure.in (mt): Remove special case. * gas/config/tc-mt.c (opcodes/mt-desc.h, opcodes/mt-opc.h): Change #includes. (mt_insn, mt_mach, mt_mach_bitmask, mt_flags, mt_architectures): Rename, adjust. (md_parse_option, md_show_usage, md_begin, md_assemble, md_cgen_lookup_reloc, md_atof): Adjust. (mt_force_relocation, mt_apply_fix, mt_fix_adjustable): Rename, adjust. * gas/config/tc-mt.h (TC_MT): Rename. (LISTING_HEADER, TARGET_ARCH, TARGET_FORMAT): Adjust. (md_apply_fix): Adjust. (mt_apply_fix, mt_fix_adjustable, mt_force_relocation): Rename. (TC_FORCE_RELOCATION, tc_fix_adjustable): Adjust. * gdb/mt-tdep.c (mt_arch_constants, mt_gdb_regnums): Rename, adjust. (mt_register_name, mt_register_type, mt_register_reggroup_p, mt_return_value, mt_skip_prologue, mt_breapoint_from_pc, mt_pseudo_register_read, mt_pseudo_register_write, mt_frame_align, mt_registers_info, mt_push_dummy_call, mt_unwind_cache, mt_frame_unwind_cache, mt_unwind_pc, mt_unwind_dummy_id, mt_frame_this_id, mt_frame_prev_register, mt_frame_base_address, mt_frame_unwind, mt_frame_sniffer, mt_frame_base, mt_gdbarch_init, _initialize_mt_tdep): Rename & adjust. * include/dis-asm.h (print_insn_mt): Renamed. * include/elf/common.h (EM_MT): Renamed. * include/elf/mt.h: Rename relocs, cpu & other defines. * ld/emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust. * opcodes/Makefile.am (HFILES, CFILES, ALL_MACHINES): Adjust. (stamp-mt): Adjust rule. (mt-asm.lo, mt-desc.lo, mt-dis.lo, mt-ibld.lo, mt-opc.lo): Rename & adjust. * opcodes/Makefile.in: Rebuilt. * opcodes/configure: Rebuilt. * opcodes/configure.in (bfd_mt_arch): Rename & adjust. * opcodes/disassemble.c (ARCH_mt): Renamed. (disassembler): Adjust. * opcodes/mt-asm.c: Renamed, rebuilt. * opcodes/mt-desc.c: Renamed, rebuilt. * opcodes/mt-desc.h: Renamed, rebuilt. * opcodes/mt-dis.c: Renamed, rebuilt. * opcodes/mt-ibld.c: Renamed, rebuilt. * opcodes/mt-opc.c: Renamed, rebuilt. * opcodes/mt-opc.h: Renamed, rebuilt. * sid/Makefile.in: Rebuilt. * sid/aclocal.m4: Rebuilt. * sid/configure: Rebuilt. * sid/sid.spec: Adjust. * sid/bsp/Makefile.am: Adjust. * sid/bsp/Makefile.in: Rebuilt. * sid/bsp/aclocal.m4: Rebuilt. * sid/bsp/configrun-sid.in: Adjust. * sid/bsp/pregen/Makefile.in: Rebuilt. * sid/bsp/pregen/mt-gdb.conf: Renamed & rebuilt. * sid/bsp/pregen/mt-gloss.conf: Renamed & rebuilt. * sid/bsp/pregen/pregen-configs.in: Adjust. * sid/component/aclocal.m4: Rebuilt. * sid/component/configure: Rebuilt. * sid/component/tconfig.in: Adjust. * sid/component/bochs/aclocal.m4: Rebuilt. * sid/component/cache/Makefile.in: Rebuilt. * sid/component/cgen-cpu/Makefile.in: Rebuilt. * sid/component/cgen-cpu/aclocal.m4: Rebuilt. * sid/component/cgen-cpu/compCGEN.cxx: Adjust. * sid/component/cgen-cpu/configure: Rebuilt. * sid/component/cgen-cpu/configure.in: Rebult. * sid/component/cgen-cpu/mt/Makefile.am: Adjust. * sid/component/cgen-cpu/mt/Makefile.in: Rebuilt. * sid/component/cgen-cpu/mt/hw-cpu-mt.txt: Adjust. * sid/component/cgen-cpu/mt/mt-cpu.h: Rebuilt. * sid/component/cgen-cpu/mt/mt-decode.cxx: Rebuilt. * sid/component/cgen-cpu/mt/mt-decode.h: Rebuilt. * sid/component/cgen-cpu/mt/mt-defs.h: Rebuilt. * sid/component/cgen-cpu/mt/mt-desc.h: Rebuilt. * sid/component/cgen-cpu/mt/mt-sem.cxx: Rebuilt. * sid/component/cgen-cpu/mt/mt-write.cxx: Rebuilt. * sid/component/cgen-cpu/mt/mt.cxx: Adjust. * sid/component/cgen-cpu/mt/mt.h: Adjust. * sid/component/consoles/Makefile.in: Rebuilt. * sid/component/families/aclocal.m4: Rebuilt. * sid/component/families/configure: Rebuilt. * sid/component/gdb/Makefile.in: Rebuilt. * sid/component/gloss/Makefile.in: Rebuilt. * sid/component/glue/Makefile.in: Rebuilt. * sid/component/ide/Makefile.in: Rebuilt. * sid/component/interrupt/Makefile.in: Rebuilt. * sid/component/lcd/Makefile.in: Rebuilt. * sid/component/lcd/testsuite/Makefile.in: Rebuilt. * sid/component/loader/Makefile.am: Rebuilt. * sid/component/loader/Makefile.in: Rebuilt. * sid/component/mapper/Makefile.in: Rebuilt. * sid/component/mapper/testsuite/Makefile.in: Rebuilt. * sid/component/memory/Makefile.in: Rebuilt. * sid/component/mmu/Makefile.in: Rebuilt. * sid/component/parport/Makefile.in: Rebuilt. * sid/component/profiling/Makefile.in: Rebuilt. * sid/component/rtc/Makefile.in: Rebuilt. * sid/component/sched/Makefile.in: Rebuilt. * sid/component/testsuite/Makefile.in: Rebuilt. * sid/component/timers/aclocal.m4: Rebuilt. * sid/component/timers/configure: Rebuilt. * sid/component/uart/Makefile.in: Rebuilt. * sid/component/uart/testsuite/Makefile.in: Rebuilt. * sid/config/config.sub: Adjust. * sid/config/info.tcl.in: Adjust. * sid/config/sidtargets.m4: Adjust. * sid/doc/Makefile.in: Rebuilt. * sid/main/dynamic/Makefile.am: Rebuilt. * sid/main/dynamic/Makefile.in: Rebuilt. * sid/main/dynamic/aclocal.m4: Rebuilt. * sid/main/dynamic/configure: Rebuilt.
2005-12-152005-12-15 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini3-22/+6
* Makefile.tpl (all, do-[+make_target+], do-check, install, install-host-nogcc): Don't invoke $(stage) at the end. * Makefile.in: Regenerate.
2005-12-15 * mmap.cc (fhandler_dev_zero::fixup_mmap_after_fork): UseCorinna Vinschen2-3/+8
system_printf like any other fixup_mmap_after_fork.
2005-12-15* cygcheck.cc (common_apps): Add a few more binaries to look for.Christopher Faylor2-0/+8
2005-12-14 Fix unforgivable spelling error in ChangeLog.Corinna Vinschen1-5/+5
2005-12-142005-12-14 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini5-1980/+2353
* 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.
2005-12-14 * fhandler.cc (ACCFLAGS): Remove macro.Corinna Vinschen5-15/+27
(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.
2005-12-14 * fhandler.cc (fhandler_base::open_9x): Handle O_SYNC and O_DIRECTCorinna Vinschen7-75/+124
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.