summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/include/math.h: The C++ standard adds the single-precisionGeoffrey Keating2001-10-232-0/+13
| | | | versions of the elementary functions.
* merge from gccDJ Delorie2001-10-232-1/+8
|
* * internal.h: White space changes to keep lines under 80 chars.Alan Modra2001-10-232-14/+18
|
* * debug.cc (set_errno): Return value of errno that was set, just like theChristopher Faylor2001-10-225-10/+24
| | | | | | | | | macro. (setclexec_pid): Replace old handle with new handle. * debug.h: Reflect change in arguments for setclexec_pid. * fhandler.cc (fhandler_base::set_inheritance): Ditto. (fhandler_base::fork_fixup): Ditto. * cygerrno.h: Reflect return value change for set_errno.
* Remove 'cb' parameter and modify fhandler_* constructors throughout.Christopher Faylor2001-10-2218-92/+70
| | | | | | | | | | | | | | | | | * dtable.cc (dtable::build_fhandler): Remove debugging output which uses 'cb'. * exec.cc (execvp): New function. (execvpe): Ditto. * fhandler.cc (fhandler_base::fhandler_base): Use constructor initialization. * fhandler.h (fhandler_tty_common::fhandler_tty_common): Ditto. * fhandler_clipboard.cc (fhandler_dev_clipboard::fhandler_dev_clipboard): Ditto. * fhandler_console.cc (fhandler_console::fhandler_console): Ditto. * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Ditto. * fhandler_serial.cc (fhandler_serial::fhandler_serial): Ditto. * fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Ditto. (fhandler_tty_slave::fhandler_tty_slave): Ditto. (fhandler_pty_master::fhandler_pty_master): Ditto. * fhandler_windows.cc (fhandler_windows::fhandler_windows): Ditto.
* Patch suggested by Ian Ray <ian.ray@nokia.com>:Corinna Vinschen2001-10-223-32/+54
| | | | | | | * syscalls.cc (seteuid): Unset environment variables HOMEDRIVE and HOMEPATH before calling internal_getlogin(). * uinfo.cc (internal_getlogin): Use default HOMEPATH and HOMEDRIVE from environment if both are present, else query NetUserGetInfo().
* * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations throughout.Christopher Faylor2001-10-225-24/+11
| | | | | | * signal.h: Change comment to reflect __CYGWIN__ rather than __CYGWIN32__. * popen.c (popen): Use __CYGWIN_ rather than __CYGWIN32__. * system.c (_system_r): Ditto.
* * net.cc (get_2k_ifconf): Change multiple IP address naming schemeCorinna Vinschen2001-10-222-74/+98
| | | | | | | | to Linux style. Patch by Alexander Gottwald <ago@informatik.tu-chemnitz.de>: * net.cc (get_2k_ifconf): Added support for multiple IP addresses on one interface.
* * miscfuncs.cc (__check_invalid_read_ptr_errno): Return error, if any.Corinna Vinschen2001-10-222-1/+5
|
* * resource.cc (fill_rusage): Perform paranoid zero structure passed toChristopher Faylor2001-10-222-4/+8
| | | | GetProcessMemoryInfo.
* * autoload.cc: Autoload GetProcessMemoryInfo.Christopher Faylor2001-10-213-5/+23
| | | | | | * resource.cc (fill_rusage): Calculate ru_maxrss and ru_majflt entries. (Bug report on this from Guido Serassio in the squid project). This requires including psapi.h.
* * dll_init.cc (dll_list::alloc): Increase retry count to 1000.Christopher Faylor2001-10-212-1/+5
|
* fix typo.Christopher Faylor2001-10-201-1/+1
|
* * mkgroup.c: Avoid compiler warnings.Corinna Vinschen2001-10-203-207/+238
| | | | | | | | | | (print_special): New function. (main): Print special accounts by calling print_special(). * mkpasswd.c: Avoid compiler warnings. (enum_users): Print additional U-domain\username info in gecos field when SIDs are printed. (print_special): New function. (main): Print special accounts by calling print_special().
* * include/winnetwk.h (WNetGetResourceInformationA): Add declaration.Corinna Vinschen2001-10-202-0/+10
| | | | | (WNetGetResourceInformationW): Ditto. (WNetGetResourceInformation): Add define.
* * miscfuncs.cc (+__check_invalid_read_ptr_errno): New function.Christopher Faylor2001-10-204-3/+21
| | | | | | * syscalls.c (_write): Validate that write buffer is accessible for reading, not writing. * winsup.h: Declare new function, increase regparmization of check_* functions.
* * path.cc (getcwd): Allow len == 0 when buf == NULL.Corinna Vinschen2001-10-192-1/+5
|
* * syscalls.cc (_read): Validate input pointer.Christopher Faylor2001-10-192-1/+16
| | | | | (_write): Ditto. (system): Ditto.
* 2001-10-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2001-10-182-1/+7
| | | | | * mips.h (OPCODE_IS_MEMBER): Add a no-op term to the end of the expression, to make source code merging easier.
* Add ddb-kseg0.ld and switch to kseg1 if sizing memory from kseg0Michael Meissner2001-10-186-22/+212
|
* 2001-10-17 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2001-10-182-1/+6
| | | | | * mips.h: Sort coprocessor instruction argument characters in comment, add a few more words of description for "H".
* [gas/testsuite/ChangeLog]Chris Demetriou2001-10-182-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-17 Chris Demetriou <cgd@broadcom.com> * gas/mips/mips.exp (sb1-ext-ps): New test to test SB-1 core's paired-single extensions to the MIPS64 ISA. * gas/mips/sb1-ext-ps.d: New file. * gas/mips/sb1-ext-ps.s: New file. [include/opcode/ChangeLog] 2001-10-17 Chris Demetriou <cgd@broadcom.com> * mips.h (INSN_SB1): New cpu-specific instruction bit. (OPCODE_IS_MEMBER): Allow instructions matching INSN_SB1 if cpu is CPU_SB1. [opcodes/ChangeLog] 2001-10-17 Chris Demetriou <cgd@broadcom.com> * mips-dis.c (mips_isa_type): Make the ISA used to disassemble SB-1 binaries include instructions specific to the SB-1. * mips-opc.c (SB1): New definition. (mips_builtin_opcodes): Add SB-1 extension opcodes "div.ps", "recip.ps", "rsqrt.ps", and "sqrt.ps".
* Add __rtems__ as system defining fchdir().Corinna Vinschen2001-10-172-2/+2
|
* Patch from Frederic Devernay <Frederic.Devernay@sophia.inria.fr>:Corinna Vinschen2001-10-172-8/+11
| | | | * poll.cc (poll): Call cygwin_select() if any fd is valid.
* * libc/include/sys/unistd.h: Add prototype for fchdir() whenCorinna Vinschen2001-10-172-0/+8
| | | | __CYGWIN__ is defined.
* [gas/ChangeLog]Matthew Green2001-10-172-1/+5
| | | | | | | | | | | | | | | | | | | * config/tc-ppc.c (md_show_usage): Add missing -maltivec, -m7400, -m7410, -m7450 and -m7455 options. [gas/testsuite/ChangeLog] * gas/ppc/altivec.s: New test for AltiVec. * gas/ppc/altivec.d: New file. * gas/ppc/ppc.exp: Test altivec.s [include/opcode/ChangeLog] * ppc.h (PPC_OPCODE_BOOKE64): Fix typo. [opcodes/ChangeLog] * ppc-opc.c (STRM): New AltiVec operand. (XDSS): New AltiVec instruction form. (mtvscr): Correct operand list. (dst, dstt, dstst, dststt, dss, dssall): AltiVec instructions.
* 2001-10-16 Jeff Holcomb <jeffh@redhat.com>Jeff Holcomb2001-10-172-1/+5
| | | | * internal.h (elf_internal_shdr): Make contents a unsigned char *.
* * fhandler_raw.cc (fhandler_dev_raw::open): Eliminate compatibilityCorinna Vinschen2001-10-164-39/+40
| | | | | | | | | | code since no Win32 device names are used anymore. * fhandler_tape.cc (fhandler_dev_tape::tape_set_blocksize): Allow 0 as blocksize to indicate variable blocksize. * path.cc (win32_device_name): Generate NT internal device names using upper/lower case names for readability. Generate \DosDevices\<letter>: device name for mount table compatibility devices.
* Forgot ChangeLogCorinna Vinschen2001-10-161-0/+8
|
* * fhandler.cc (fhandler_base::fork_fixup): Guard against compiler warning.Christopher Faylor2001-10-162-0/+7
|
* * fhandler_tape.cc (fhandler_dev_tape::tape_status): ReportCorinna Vinschen2001-10-163-2/+10
| | | | | | | EOTWarningZoneSize in get->mt_eotwarningzonesize. * include/cygwin/mtio.h: Define DEFTAPE. (struct mtget): Add member `mt_eotwarningzonesize'. Add a comment. * include/cygwin/version.h: Bump API minor version to 47.
* * pathnames.sgml: Cleanup raw device text to be more coherent.Corinna Vinschen2001-10-162-24/+29
|
* * pathnames.sgml: Add description for new fixed device paths.Corinna Vinschen2001-10-162-4/+80
|
* * autoload.cc: Add load statement for `NtOpenFile'.Corinna Vinschen2001-10-1610-60/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_dev_raw::get_unit): New method. (fhandler_dev_tape::norewind): Eliminate. (fhandler_dev_tape::is_rewind_device): New method. * fhandler_raw.cc (fhandler_dev_raw::open): Open new fixed device name devices using NT internal method. Keep calling fhandler_base::open() for old mount table device mapping compatibility devices. (fhandler_dev_raw::fstat): Eliminate. Settings are done by fhandler_base::fstat() already. * fhandler_tape.cc: Remove `norewind' usage throughout. * ntdll.h: Define FILE_SYNCHRONOUS_IO_NONALERT. Define struct _IO_STATUS_BLOCK. Declare NtOpenFile(). * path.cc (get_raw_device_number): Add new approach for using fixed device names. (win32_device_name): Ditto. (get_device_number): Ditto. Require POSIX path to begin with "/dev/". (mount_info::conv_to_win32_path): Call win32_device_name() instead of get_device_number() after evaluating mount points to allow changing the win32 destination path again. * security.cc (str2buf2uni): Remove `static' to be able to call function from fhandler_dev_raw::open(). * wincap.cc: Set flag has_raw_devices appropriately. * wincap.h: Add flag has_raw_devices.
* * cygheap.h (cygheap_fdget::cygheap_fdget): Remove debugging operation fromChristopher Faylor2001-10-162-1/+6
| | | | set_errno.
* * mmap.cc (mmap): Assign 'fh' from cygheap_fdget. Use 'fh' everywhere.Christopher Faylor2001-10-162-3/+8
|
* minor reformat.Christopher Faylor2001-10-161-42/+21
|
* * filenames.h: Add cygwin to the list of dosish style path systems.Christopher Faylor2001-10-162-2/+6
|
* * cygerrno.h (set_errno): Define more informative version of this function forChristopher Faylor2001-10-166-10/+32
| | | | | | | | | | | | debugging. (__set_errno): Declare when DEBUGGING. * cygheap.h (cygheap_fdget::cygheap_fdget): Add a flag to control when errno is set. * debug.cc (__set_errno): New function. * fcntl.cc (_fcntl): Fix so that correct fd is used for second argument to dup2. * syscalls.cc (_cygwin_istext_for_stdio): Don't set errno here when using cygheap_fdget.
* * 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.