summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.cc (fhandler_base::fork_fixup): Don't protect handle.Christopher Faylor2001-10-1524-396/+398
| | | | | | | | | | | | | | | | | | | * dlfcn.cc: Fix to confirm to coding standards. Reorganize includes throughout to accomodate new cygheap.h usage. * cygheap.h (cygheap_fdmanip): New class: simplifies locking and retrieval of fds from cygheap->fdtab. (cygheap_fdget): Ditto. (cygheap_fdnew): Ditto. * fcntl.cc (_fcntl): Use new method to lock fdtab and retrieve info. * ioctl.cc (ioctl): Ditto. * mmap.cc (mmap): Ditto. * net.cc: Ditto, throughout. * passwd.cc (getpass): Ditto. * path.cc (fchdir): Ditto. * pipe.cc (make_pipe): Ditto. * sec_acl.cc (facl): Ditto. * syscalls.cc: Ditto, throughout. * termios.cc: Ditto, throughout.
* new known problem "hang or core-dump during make"David Starks-Browning2001-10-151-0/+9
|
* cvs+ssh problem on Win9x now FITNR.David Starks-Browning2001-10-151-11/+2
|
* * mkpasswd.cc (enum_users): Shorten "unused" passwd field.Christopher Faylor2001-10-152-1/+5
|
* * uname.cc (uname): Use `wProcessorLevel' unless OS sets it wrong.Corinna Vinschen2001-10-154-6/+36
| | | | | | Use `dwProcessorType' then instead. * wincap.cc: Set flag has_valid_processorlevel appropriately. * wincap.h: Add flag has_valid_processorlevel.
* * dtable.cc (dtable::build_fhandler_from_name): Use PC_FULL to determine pathChristopher Faylor2001-10-144-18/+12
| | | | | | name. * fork.cc (fork_parent): Correct the "unable to allocate forker_finished event" error message. It named the wrong event before.
* * autoload.cc (load_wsock32): Declare dummy function to force loading ofChristopher Faylor2001-10-149-42/+74
| | | | | | | | | | | | | | | | | | | | | | | | winsock. * fhandler.cc (fhandler_base::set_inheritance): Make debugging output more verbose. * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Force loading of winsock32 if winsock2 not available. * net.cc (set_socket_inheritance): Use DuplicateHandle in all cases to set inheritance correctly. (fdsock): Use winsock2_active macro to determine when to set socket inheritance. Remove fdtab resource locking since this function should already be protected. (cygwin_accept): Simplify logic. Ensure that fdtab unlock is not called inappropriately. (cygwin_rcmd): Use fdtab locking. (cygwin_rresvport): Ditto. (cygwin_rexec): Ditto. * select.cc (peek_socket): Set errno appropriately if winsock select fails. * winsup.h: Declare check_pty_fds. * syscalls.cc (check_pty_fds): Rename from check_ttys_fds. Also check pty master. (setsid): Use check_pty_fds. * dtable.cc (dtable::dec_console_fds): Add check on pty fds.
* * fhandler_dsp.cc (fhandler_dsp::ioctl): Return 0 for successfulChristopher Faylor2001-10-1325-135/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | SNDCTL_DSP_GETBLKSIZE operation. Remove obsolete 'name' arg from fhandler_* constructors throughout. * winsup.h (winsock_active): New macro. (winsock2_active): Ditto. * autoload.cc (wsock_init): Use new macros to decide if winsock or winsock2 is loaded. (nonexist_wsock32): Dummy function to force winsock load. (nonexist_ws2_32): Dummy function to force winsock2 load. * fhandler.h (fhandler_socket::fstat): Declare new method. Currently unused. * fhandler_socket.cc (fhandler_socket::fixup_before_fork_exec): Check that winsock2 is active before trying WSADuplicateSocketA. (fhandler_socket::fixup_after_fork): Add extra check for winsock2_active. Otherwise use iffy procedures for Windows 95. (fhandler_socket::fixup_after_exec): Add debugging. (fhandler_socket::dup): Add debugging. (fhandler_socket::fstat): New method. (fhandler_socket::set_close_on_exec): Attempt to perform iffy stuff on Windows 95. * errno.cc (_sys_nerr): Work around compiler strangeness. * pinfo.cc (winpids::add): Add extra element at end of allocated array for setting to NULL. (winpids::enumNT): Ditto. (winpids::init): Don't modify pidlist if it hasn't been allocated (possibly due to malloc problem).
* * Makefile.in: Allow stdinc searching for dumper.Christopher Faylor2001-10-132-6/+10
|
* oops, fix an error in the previous entry.Matthew Green2001-10-131-2/+3
|
* [gas/ChangeLog]Matthew Green2001-10-132-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-ppc.c (md_parse_option): New -m7410, -m7450 and -m7455 flags, equivalent to -m7400. New -maltivec to enable AltiVec instructions. New -mbook64 and -mbooke/-mbooke32 flags to enable 64-bit and 32-bit BookE support, respectively. Change -m403 and -m405 to set PPC403 option. (md_show_usage): Adjust for new options. * doc/all.texi: Set PPC. * doc/as.texinfo: Add PPC support and pull in c-ppc.texi. * doc/c-ppc.texi: New file. * doc/Makefile.am (CPU_DOCS): Add c-ppc.texi. * doc/Makefile.in: Regenerate. [gas/testsuite/ChangeLog] * gas/ppc/booke.s: New test for Motorola BookE. * gas/ppc/booke.d: New file. * gas/ppc/ppc.exp: Test booke.s. [include/opcode/ChangeLog] * ppc.h (PPC_OPCODE_BOOKE, PPC_OPCODE_403): New opcode flags for BookE and PowerPC403 instructions. [opcodes/ChangeLog] * ppc-opc.c (insert_de, extract_de, insert_des, extract_des): New instruction field instruction/extraction functions for new BookE DE form instructions. (CT): New macro for CT field in an X form instruction. (DE, DES, DEO, DE_MASK): New macros for DE/DES fields in DE form instructions. (PPC64): Don't include PPC_OPCODE_PPC. (403): New opcode macro for PPC403 processors. (BOOKE): New opcode macro for BookE processors. (bce, bcel, bcea, bcela, bclre, bclrel: New BookE instructions. (bcctre, bcctrel, be, bel, bea, bela, icbt, icbte, lwzxe): Likewise. (dcbste, lwzuxe, luxe, dcbfe, lbzxe, lwarxe, lbzuxe): Likewise. (stwcxe, stwxe, stxe, stwuxe, stuxe, stbxe, dcbtste, stbuxe): Likewise. (mfapidi, dcbte, lhzxe, lhzuxe, lhaxe, lhauxe, subfe64): Likewise. (subfeo64, adde64, addeo64, sthxe, sthuxe, subfze64): Likewise. (subfzeo64, addze64, addzeo64, dcbie, subfme64, subfmeo64): Likewise. (addme64, addmeo64, stdcxe., mcrxr64, lwbrxe, lfsxe, lfsuxe): Likewise. (lfdxe, lfduxe, stwbrxe, stfsxe, stfsuxe, stfdxe, dcbae): Likewise. (stfduxe, tlbivax, tlbivaxe, lhbrxe, ldxe, lduxe, tlbsx): Likewise. (tlbsxe, sthbrxe, stdxe, stduxe, icbie, stfiwxe, dcbze, lbze): Likewise. (lbzue, ldue, lhze, lhzue, lhae, lhaue, lwze, lwzue): Likewise. (stbe, stbue, sthe, sthue, stwe, stwue, lfse, lfsue, lfde): Likewise. (lfdue, stde, stdue, stfse, stfsue, stfde, stfdue): Likewise. * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc): Look for a disassembler option of `booke', `booke32' or `booke64' to enable BookE support in the disassembler.
* * autoload.cc (wsock_init): Reorganize slightly to accomodate a new compiler.Christopher Faylor2001-10-1312-14/+19
|
* * Makefile.in: Add -nostdinc to CXXFLAGS.Christopher Faylor2001-10-132-1/+5
|
* * Makefile.in: Comment out install for now.Christopher Faylor2001-10-122-5/+9
|
* * Makefile.in: Accomodate changes to w32api_include macro.Christopher Faylor2001-10-122-1/+5
|
* * Makefile.common: Perform more include file testing trickery.Christopher Faylor2001-10-122-4/+12
|
* Red HatizeChristopher Faylor2001-10-122-26/+10
|
* * net.cc (cygwin_sendto): Use correct socket address when sendingEgor Duda2001-10-112-2/+7
| | | | data to AF_UNIX socket.
* * net.cc (get_95_ifconf): Using other registry values pointing toCorinna Vinschen2001-10-102-49/+31
| | | | correct networkdevice identification for Windows95.
* New entries:David Starks-Browning2001-10-101-2/+29
| | | | | | | My application cannot locate cygncurses5.dll!!! Why is Cygwin suddenly @emph{so} slow? Modified: Why doesn't //c (for C:) work anymore?
* Throughout, rename PROC_FORK1 to PROC_FORK.Christopher Faylor2001-10-106-41/+73
| | | | | | | | | | | | | | | | | | * child_info.h: Rename PROC_* to _PROC_*. Define PROC_* with additional testing magic. Eliminate old PROC_FORK and rename PROC_FORK1 to PROC_FORK. * dcrt0.cc (_cygwin_testing_magic): New variable. Added to magic number in proc_info. (alloc_stack): Eliminate old PROC_FORK test. (dll_crt0_1): Ditto. Use _PROC_* enums for test. Subtract _cygwin_testing_magic from child_proc_info->type so that normal cygwin programs invoked by test suite programs do not consider themselves to be in a cygwin environment. (_dll_crt0): Ditto. Move environment checks to initial_env function to conserve on stack space. (initial_env): New function. Checks for testing and debugging environment variables. * init.cc (cygwin_hmodule): Move declaration. * winsup.h: Declare variables used for cygwin testing.
* * Makefile.in (MINGW_INCLUDES): Accomodate changes in Makefile.common.Christopher Faylor2001-10-102-1/+5
|
* * Makefile.common: Avoid adding -I options to compile if they already exist inChristopher Faylor2001-10-102-5/+24
| | | | CC or C*FLAGS. This prevents warnings from newer versions of gcc.
* * uinfo.cc (internal_getlogin): Reorganize slightly to minimize work in defaultChristopher Faylor2001-10-095-14/+24
| | | | condition.
* fix typosEgor Duda2001-10-091-6/+6
|
* * fhandler.cc (fhandler_disk_file::open): Add missing case clash check.Corinna Vinschen2001-10-092-0/+11
|
* * winsup.api/mmaptest01.c: Add several tests on mmaps. Use libltp.Corinna Vinschen2001-10-083-19/+87
| | | | * winsup.api/winsup.exp: Link all tests agains libltp.
* * dtable.cc (dtable::build_fhandler): Allocate correct amount for givenChristopher Faylor2001-10-083-28/+48
| | | | | | fhandler class. * fhandler.h (fhandler_union): Properly define rather than relying on fhandler_console being "big enough".
* * external.cc (fillout_pinfo): Reset counter whenever we initialize the pidChristopher Faylor2001-10-082-2/+10
| | | | list.
* * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor cleanup.Christopher Faylor2001-10-083-22/+21
|
* * path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it hasChristopher Faylor2001-10-073-3/+22
| | | | | special meaning on NT. * syscalls.cc (access): Use stat_worker.
* merge from gccDJ Delorie2001-10-073-6/+11
|
* fix typoChristopher Faylor2001-10-061-1/+1
|
* * fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record itChristopher Faylor2001-10-063-10/+19
| | | | | | | as non-inheritable for debugging purposes in case there is a subsequent fork or exec. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Allow fork_fixup to call ProtecHandle.
* * path.cc (get_raw_device_number): Correct length arguments for wdeveqn.Christopher Faylor2001-10-052-2/+7
|
* * winsup.api/nullgetcwd.c: New file. Check that NULL first argument to getcwdChristopher Faylor2001-10-052-0/+21
| | | | works.
* * path.cc (getcwd): Allow NULL first argument.Christopher Faylor2001-10-052-1/+5
|
* Revert incorrect checkins.Christopher Faylor2001-10-053-8/+1
|
* * heap.h (inheap): Check for NULL.Christopher Faylor2001-10-055-2/+13
|
* Add second path_conv * argument to fstat()s throughout.Christopher Faylor2001-10-058-213/+223
| | | | | | | | | | | | | | | | | | | | | | * fhandler.h: Change read and fstat to regparm/stdcall throughout. (fhandler_base::fstat): Just declare. Don't define. (fhandler_disk_file::fstat_helper): Declare. * fhandler.cc (fhandler_base::fstat): Move here from fhandler.h, adapt from former stat_dev(). (fhandler_disk_file::fstat): Move most of the disk-file-specific logic from stat_worker to here. Use fstat_helper to derive final fstat output. (fhandler_disk_file::fstat_helper): New method, renamed from former fstat method. (num_entries): Moved here from syscalls.cc. * fhandler_mem.cc (fhandler_dev_mem::fstat): Use base class to initialize most stuff. Invert has_physical_mem_access test for establishing permissions. * fhandler_raw.cc (fhandler_dev_raw::fstat): Eliminate unneed test and memory clearing. Use base class to initialize most stuff. * syscalls.cc (stat_dev): Eliminate. (stat_worker): Simply call fstat method to generate fstat output. Move all device specific code to appropriate fstats. * dir.cc (opendir): Pass correct arg to stat_worker to allow following symlinks.
* * winsup.api/systemcall.c (main): Change some messages for clarity.Christopher Faylor2001-10-052-2/+6
|
* * winsup.api/systemcall.c: New file. Check for system call problems.Christopher Faylor2001-10-052-0/+62
|
* * spawn.cc (perhaps_suffix): Return NULL on non-existence of file as well asChristopher Faylor2001-10-052-1/+7
| | | | | "directoryness". Previous code modified on 2001/09/30 actually had an arguable bug which was unmasked by the change on that day.
* * path.cc (path_conv::check): Return ENOTDIR when leading device and trailingChristopher Faylor2001-10-052-0/+10
| | | | component.
* * syscalls.cc (stat_worker): Make global. Accept path_conv parameter forChristopher Faylor2001-10-056-60/+102
| | | | | | | | | | | passing information back to caller. * winsup.h: Declare stat_worker. * dir.cc (opendir): Use stat_worker rather than stat and pass path_conv parameter to stat_worker for later inspection. * syslog.cc (syslog): Teach syslog about syslog priorities other than LOG_ERR, LOG_WARNING and LOG_INFO * path.cc (path_conv::check): Don't perform file system or rootdir checks on devices.
* * dcrt0.cc (dll_crt0_1): Don't close hexec_proc if it is NULL.Christopher Faylor2001-10-0422-208/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fork.cc (vfork): Add debugging statements. * path.cc (get_device_number): Make static. Rewrite to inspect both unix and windows paths. (get_raw_device_number): Just check for parts of raw device that we care about. (get_devn): New function, pulled from get_device_number. (win32_device_name): Accomodate arg changes to get_device_number. (mount_info::get_device_number): Call get_device_number on translated Windows path. * spawn.cc (spawn_guts): Don't treat P_VFORK differently from P_NOWAIT. Add handle to child's shared region to child so that it will be preserved if the parent goes away. * fhandler.h: Throughout, simplify to one open method for all fhandler classes, requiring a path_conv first element. * fhandler.cc (fhandler_base::open): Remove obsolete method. Generalize to require path_conv * as first argument. (fhandler_disk_file::open): Remove obsolete method. (fhandler_disk_file::open): Use path_conv pointer rather than reference. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Use new open method. (fhandler_dev_clipboard::open): Accomodate new argument for open methods. * fhandler_console.cc (fhandler_console::open): Ditto. (fhandler_console::dup): Use new open method. (fhandler_console::fixup_after_fork): Ditto. (fhandler_console::fixup_after_exec): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::open): Accomodate new argument for open methods. * fhandler_floppy.cc (fhandler_dev_floppy::open): Ditto. * fhandler_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_random (fhandler_dev_random::open): Ditto. * fhandler_raw.cc (fhandler_dev_raw::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tape.cc (fhandler_dev_tape::open): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. (fhandler_pty_master::open): Ditto. * fhandler_windows.cc (fhandler_windows::open): Ditto. * fhandler_zero.cc (fhandler_dev_zero::open): Ditto. * fhandler_socket.cc (fhandler_socket::set_connect_secret): Accomodate new argument for open methods. * syscalls.cc (_open): Ditto. (stat_worker): Ditto.
* Add support for -z nocopyreloc.Alan Modra2001-10-032-0/+8
|
* * cygheap.cc (cfree): Remove malloc debugging probe.Christopher Faylor2001-10-038-76/+120
| | | | | | | | | | | | | | | | | | | | | | | * dlmalloc.c (errprint): Remove abort() call which causes interesting error message printing to abort prematurely. * environ.cc: Sprinkle MALLOC_CHECKs liberally throughout. (_addenv): Allocate two empty elements at end of environ to (apparently) work around problems with some buggy applications. (winenv): Avoid calling alloca if no forced environment variable is present. * exceptions.cc (open_stackdumpfile): Don't print "Dumping stack trace to..." when running in a cygwin environment (i.e., the parent is a cygwin process). * dtable.cc (dtable::init_std_file_from_handle): Move device type detection code from build_fhandler here since it is only used by this function. (dtable::build_fhandler_from_name): New method. Renamed from dtable::build_fhandler. (dtable::build_fhandler): Use build_fhandler_from_name. (cygwin_attach_handle_to_fd): Ditto. * syscalls.cc (_open): Ditto. (stat_worker): Ditto. * dtable.h (dtable::build_fhandler_from_name): Rename declaration from dtable::build_fhandler.
* * gettext.m4: Test po/POTFILES.in exists before trying to read.Alan Modra2001-10-032-2/+6
|
* Tue Oct 2 22:25:23 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-10-022-0/+69
| | | | * how-fhandlers-work.txt: New file.