Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * fhandler.cc (fhandler_base::fork_fixup): Don't protect handle. | Christopher Faylor | 2001-10-15 | 24 | -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-Browning | 2001-10-15 | 1 | -0/+9 |
| | |||||
* | cvs+ssh problem on Win9x now FITNR. | David Starks-Browning | 2001-10-15 | 1 | -11/+2 |
| | |||||
* | * mkpasswd.cc (enum_users): Shorten "unused" passwd field. | Christopher Faylor | 2001-10-15 | 2 | -1/+5 |
| | |||||
* | * uname.cc (uname): Use `wProcessorLevel' unless OS sets it wrong. | Corinna Vinschen | 2001-10-15 | 4 | -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 path | Christopher Faylor | 2001-10-14 | 4 | -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 of | Christopher Faylor | 2001-10-14 | 9 | -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 successful | Christopher Faylor | 2001-10-13 | 25 | -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 Faylor | 2001-10-13 | 2 | -6/+10 |
| | |||||
* | oops, fix an error in the previous entry. | Matthew Green | 2001-10-13 | 1 | -2/+3 |
| | |||||
* | [gas/ChangeLog] | Matthew Green | 2001-10-13 | 2 | -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 Faylor | 2001-10-13 | 12 | -14/+19 |
| | |||||
* | * Makefile.in: Add -nostdinc to CXXFLAGS. | Christopher Faylor | 2001-10-13 | 2 | -1/+5 |
| | |||||
* | * Makefile.in: Comment out install for now. | Christopher Faylor | 2001-10-12 | 2 | -5/+9 |
| | |||||
* | * Makefile.in: Accomodate changes to w32api_include macro. | Christopher Faylor | 2001-10-12 | 2 | -1/+5 |
| | |||||
* | * Makefile.common: Perform more include file testing trickery. | Christopher Faylor | 2001-10-12 | 2 | -4/+12 |
| | |||||
* | Red Hatize | Christopher Faylor | 2001-10-12 | 2 | -26/+10 |
| | |||||
* | * net.cc (cygwin_sendto): Use correct socket address when sending | Egor Duda | 2001-10-11 | 2 | -2/+7 |
| | | | | data to AF_UNIX socket. | ||||
* | * net.cc (get_95_ifconf): Using other registry values pointing to | Corinna Vinschen | 2001-10-10 | 2 | -49/+31 |
| | | | | correct networkdevice identification for Windows95. | ||||
* | New entries: | David Starks-Browning | 2001-10-10 | 1 | -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 Faylor | 2001-10-10 | 6 | -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 Faylor | 2001-10-10 | 2 | -1/+5 |
| | |||||
* | * Makefile.common: Avoid adding -I options to compile if they already exist in | Christopher Faylor | 2001-10-10 | 2 | -5/+24 |
| | | | | CC or C*FLAGS. This prevents warnings from newer versions of gcc. | ||||
* | * uinfo.cc (internal_getlogin): Reorganize slightly to minimize work in default | Christopher Faylor | 2001-10-09 | 5 | -14/+24 |
| | | | | condition. | ||||
* | fix typos | Egor Duda | 2001-10-09 | 1 | -6/+6 |
| | |||||
* | * fhandler.cc (fhandler_disk_file::open): Add missing case clash check. | Corinna Vinschen | 2001-10-09 | 2 | -0/+11 |
| | |||||
* | * winsup.api/mmaptest01.c: Add several tests on mmaps. Use libltp. | Corinna Vinschen | 2001-10-08 | 3 | -19/+87 |
| | | | | * winsup.api/winsup.exp: Link all tests agains libltp. | ||||
* | * dtable.cc (dtable::build_fhandler): Allocate correct amount for given | Christopher Faylor | 2001-10-08 | 3 | -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 pid | Christopher Faylor | 2001-10-08 | 2 | -2/+10 |
| | | | | list. | ||||
* | * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor cleanup. | Christopher Faylor | 2001-10-08 | 3 | -22/+21 |
| | |||||
* | * path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it has | Christopher Faylor | 2001-10-07 | 3 | -3/+22 |
| | | | | | special meaning on NT. * syscalls.cc (access): Use stat_worker. | ||||
* | merge from gcc | DJ Delorie | 2001-10-07 | 3 | -6/+11 |
| | |||||
* | fix typo | Christopher Faylor | 2001-10-06 | 1 | -1/+1 |
| | |||||
* | * fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record it | Christopher Faylor | 2001-10-06 | 3 | -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 Faylor | 2001-10-05 | 2 | -2/+7 |
| | |||||
* | * winsup.api/nullgetcwd.c: New file. Check that NULL first argument to getcwd | Christopher Faylor | 2001-10-05 | 2 | -0/+21 |
| | | | | works. | ||||
* | * path.cc (getcwd): Allow NULL first argument. | Christopher Faylor | 2001-10-05 | 2 | -1/+5 |
| | |||||
* | Revert incorrect checkins. | Christopher Faylor | 2001-10-05 | 3 | -8/+1 |
| | |||||
* | * heap.h (inheap): Check for NULL. | Christopher Faylor | 2001-10-05 | 5 | -2/+13 |
| | |||||
* | Add second path_conv * argument to fstat()s throughout. | Christopher Faylor | 2001-10-05 | 8 | -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 Faylor | 2001-10-05 | 2 | -2/+6 |
| | |||||
* | * winsup.api/systemcall.c: New file. Check for system call problems. | Christopher Faylor | 2001-10-05 | 2 | -0/+62 |
| | |||||
* | * spawn.cc (perhaps_suffix): Return NULL on non-existence of file as well as | Christopher Faylor | 2001-10-05 | 2 | -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 trailing | Christopher Faylor | 2001-10-05 | 2 | -0/+10 |
| | | | | component. | ||||
* | * syscalls.cc (stat_worker): Make global. Accept path_conv parameter for | Christopher Faylor | 2001-10-05 | 6 | -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 Faylor | 2001-10-04 | 22 | -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 Modra | 2001-10-03 | 2 | -0/+8 |
| | |||||
* | * cygheap.cc (cfree): Remove malloc debugging probe. | Christopher Faylor | 2001-10-03 | 8 | -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 Modra | 2001-10-03 | 2 | -2/+6 |
| | |||||
* | Tue Oct 2 22:25:23 2001 Robert Collins <rbtcollins@hotmail.com> | Robert Collins | 2001-10-02 | 2 | -0/+69 |
| | | | | * how-fhandlers-work.txt: New file. |