summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * syscalls.cc (_read): Behave properly when passed previous version ofChristopher Faylor2000-10-072-3/+13
| | | | O_NDELAY. Fix up debugging output.
* * net.cc (set_socket_inheritance): Rename from duplicate_socket. Use NTChristopher Faylor2000-10-065-58/+60
| | | | | | | | | | | | specific call when appropriate. (__set_winsock_errno): Rename from set_winsock_errno. Accept function and line as arguments. * path.cc (path_conv::check): Continue the neverending battle to make cygwin properly understand that path specs ending in a slash require that the path refer to a directory. Windows does not do this by default. (symlink_info::check): Remove ENOTDIR test. Move it to path_conv::check. * path.h: Remove obsolete constant. * winsup.h (set_winsock_errno): New macro.
* =====================================Corinna Vinschen2000-10-053-64/+220
| | | | | | | | | | | | | | | | | These changes require rebuilding all. ===================================== * fhandler.h: Add mmap(), munmap() and msync() to fhandler_base and fhandler_disk_file. * mmem.cc (mmap): Eliminated device dependent implementation details. These are moved to the appropriate fhandler class. (munmap): Ditto. (msync): Ditto. (fhandler_base::mmap): New method. (fhandler_base::munmap): Ditto. (fhandler_base::msync): Ditto. (fhandler_disk_file::mmap): Ditto. (fhandler_disk_file::munmap): Ditto. (fhandler_disk_file::msync): Ditto.
* * net.cc: General cleanup.Christopher Faylor2000-10-052-117/+76
| | | | | | (fdsock): Return pointer to created fhandler_socket. (cygwin_socket): Use pointer returned by fdsock. Return correct errno when fd < 0.
* * exceptions.cc (interruptible): Add extra debugging.Christopher Faylor2000-10-054-2/+9
| | | | | * sigproc.h (wait_sig): Fill in frame pointer, by default, prior to calling or suffer confusion due to September 7 change below.
* * include/netinet/tcp.h: Remove winsock.h include.Christopher Faylor2000-10-053-5/+11
| | | | * include/sys/cygwin.h: Move windows specific reference within conditional.
* * include/sys/mman.h: Add missing MAP_FAILED macro.Corinna Vinschen2000-10-042-0/+6
|
* * fhandler.h (fhandler_dev_mem): Add method `init'. Add membersCorinna Vinschen2000-10-043-17/+144
| | | | | | | | | | | | | | `mem_size' and `init_phase'. * fhandler_mem.cc (init): New function to figure out the size of the physical memory. (open): Add checking for illegal flags. Change usage of access mode. (write): Add intended functionality. (read): Add parameter checking. Eliminate page size constant. Use getpagesize() instead. Don't touch errno and don't create debug output while init() is running. (lseek): Add bounds checking. Fix SEEK_END. (fstat): Eliminate page size constant. Use getpagesize() instead. (dup): Add intended functionality.
* * dcrt0.cc: Add LoadDLLFunc statement for RegEnumValueA().Corinna Vinschen2000-10-023-97/+196
| | | | | | | | * net.cc: Change comments related to get_ifconf. (get_2k_ifconf): Eliminate `type' variable. Eliminate `sa' parameter. (get_nt_ifconf): Ditto. (get_9x_ifconf): Ditto. Rewritten. (get_ifconf): Chage calls to OS specific functions.
* * signal.cc (sigaction): Allow new action == oldaction.Christopher Faylor2000-10-022-37/+31
|
* * include/ras.h: New file.Corinna Vinschen2000-10-023-0/+58
| | | | | * lib/rasapi32.def: Add symbols for RasEnumDevicesA and RasEnumDevicesW.
* * include/ntdef.h: Add define for NTAPI.Corinna Vinschen2000-10-022-0/+6
|
* * fhandler_mem.cc: Load ntdll functions via autoload method.Corinna Vinschen2000-10-022-82/+58
| | | | (load_ntdll_funcs): Eliminated.
* * fhandler_mem.cc (load_ntdll_funcs): Add missing __stdcall qualifiers.Corinna Vinschen2000-10-022-7/+13
|
* * cygheap.cc (cygheap_init): Born again function.Christopher Faylor2000-10-027-44/+60
| | | | | | | | | | (_cmalloc): Reorganize to accomodate muto locking. (_cfree): Use muto lock to avoid multi-thread problems. * cygheap.h (incygheap): Just use cygheap_max to find upper cygwin heap bounds. * dcrt0.cc (dll_crt0_1): Reinstitute cygheap_init call. * path.cc (getcwd): Just return cwdstuff::get result, allowing correct handling of negative length. (cwdstuff::get): Malloc a buffer if one is not available.
* * Makefile.common: Extend VERBOSE default.Christopher Faylor2000-10-023-3/+12
| | | | | * Makefile.in: Don't clean the testsuite separately. It's already part of CLEAN_SUBDIRS.
* * include/ipexport.h: Add missing `extern "C"' directives.Corinna Vinschen2000-10-015-0/+39
| | | | | | * include/iphlpapi.h: Ditto. * include/iprtrmib.h: Ditto. * include/iptypes.h: Ditto.
* * include/ipifcons.h: New header file.Corinna Vinschen2000-10-014-7/+31
| | | | | | * include/iprtrmib.h: Move operational states to ipifcons.h. * include/iphlpapi.h: Add missing parameters to GetIfTable() declaration.
* * include/iprtrmib.h: Add missing MIB_IF_OPER_STATUS_xxx definitions.Corinna Vinschen2000-10-012-0/+12
|
* * lib/iphlpapi.def: New stub for iphlpapi.dll.Corinna Vinschen2000-10-016-0/+397
| | | | | | | * include/iptypes.h: New header file. * include/ipexport.h: Ditto. * include/iphlpapi.h: Ditto. * include/iprtrmib.h: Ditto.
* * Makefile.common: Default to VERBOSE when part of overall sourceChristopher Faylor2000-10-012-0/+9
| | | | tree build.
* * Makefile.in: Add fhandler_mem.o to the dependencies.Corinna Vinschen2000-10-016-2/+300
| | | | | | | | * dtable.cc (dtable::build_fhandler): Add case for FH_MEM. * fhandler.h: Add FH_MEM device type. Add class fhandler_dev_mem. * fhandler_mem.cc: New file. Implementation of class fhandler_dev_mem. * path.cc: Add /dev/mem to windows_device_names. (get_device_number): Add FH_MEM type.
* * include/ntdef.h: New file.Corinna Vinschen2000-10-012-0/+48
|
* * ltconfig, ltmain.sh, libtool.m4: Updated from libtoolAlexandre Oliva2000-09-304-88/+99
| | | | | multi-language branch, to work around Solaris' /bin/sh bug. Rebuilt all affected `configure' scripts.
* * cygheap.cc (init_cheap): Set aside space for heap walk pointer.Christopher Faylor2000-09-305-39/+104
| | | | | | | | | | | | | | | | | (_csbrk): Make logic for detecting when to alloc cognizant of initialization condition. (_cmalloc): Use a structure to hold bucket size and heap chain pointer. Store pointer to next freed block in bucket size location so that it will be easy to see if a block is allocated. (_cfree): Store pointer to next freed block in bucket size location. (_crealloc): Use macro to retrieve bucket size. (cygheap_init): Eliminate. (cygheap_fixup_in_child): Add second argument to determine if we were execed or not. In execed case, walk the heap, cleaning up any orphaned blocks. * cygheap.h: Add a "MAX" value to cygheap_types. Remove cygheap_init declaration. Accomodate new argument to cygheap_fixup_in child. * fork.cc (fork): Accomodate extra argument to cygheap_fixup_in_child. * dcrt0.cc (dll_crt0_1): Ditto. Remove call to cygheap_init.
* * path.cc (symlink_info::check): Set executable bit for a file if the first twoChristopher Faylor2000-09-304-97/+58
| | | | characters are 'MZ' to mirror spawn_guts check.
* * winsup.h: Add `winME' to os_type symbols.Corinna Vinschen2000-09-304-2/+16
| | | | | | * dcrt0.cc (set_os_type): Identify Windows ME systems. * (host_dependent_constants::init): Care for winME. * uname.cc (uname): Ditto.
* Added missing articleCorinna Vinschen2000-09-291-1/+1
|
* * pathnames.sgml: Add documentation about raw block specialCorinna Vinschen2000-09-292-7/+58
| | | | devices and tape devices to the "POSIX devices" chapter.
* Correct date of checkinHans-Peter Nilsson2000-09-291-1/+1
|
* * dis-asm.h: Declare cris_get_disassembler, not print_insn_cris.Hans-Peter Nilsson2000-09-292-2/+7
| | | | Fix typo in comment.
* * cris.h (EF_CRIS_UNDERSCORE): New.Hans-Peter Nilsson2000-09-292-0/+7
|
* Forgot to remove cygkeycheck.ccCorinna Vinschen2000-09-291-105/+0
|
* * cygcheck.cc (keyeprint): New function.Corinna Vinschen2000-09-293-21/+149
| | | | | | | | (check_keys): New function. Perform checking keycodes. (main): Add option `-k' for invoking check_keys. Change option processing to use long options and getopt_long. * cygkeycheck.cc: Removed. Functionality moved to `cygcheck.cc'. * Makefile.in: Remove cygkeycheck from the dependencies.
* Add alloca-conf.h from libiberty.Alan Modra2000-09-282-0/+28
|
* * cygkeycheck.cc: New file. Utility to retrieve keycodes.Corinna Vinschen2000-09-283-1/+111
| | | | * Makefile.in: Add cygkeycheck to the dependencies.
* * net.cc (get_ifconf): Code cleanup. Split. Call os dependentCorinna Vinschen2000-09-282-295/+427
| | | | | | | subfunctions instead. (get_9x_ifconf): New function for 9X systems, called by get_ifconf. (get_nt_ifconf): New function for NT systems, called by get_ifconf. (get_2k_ifconf): New function for W2K systems, called by get_ifconf.
* .plt stub for lazy linking, --stub-group-size=N ld switch,Alan Modra2000-09-272-0/+7
| | | | import stub fix, extra DIR14F reloc to fix abort in tc_gen_reloc
* * spawn.cc (spawn_guts): Attempt to accomodate archaic windows quotingChristopher Faylor2000-09-274-11/+31
| | | | mechanism when dealing with '\' and '"'.
* New entry "Why doesn't man work?"David Starks-Browning2000-09-261-0/+14
| | | | (need ash)
* Remove entry "How do I set /etc up?"David Starks-Browning2000-09-261-13/+0
| | | | (never been updated to latest, no longer helpful)
* * dcrt0.cc (quoted): Fix problem where ' quoted strings were skipped.Christopher Faylor2000-09-265-22/+15
| | | | | | | | | * fhandler.h (fhandler_socket::~fhandler_socket): Delete declaration. * net.cc: Remove unnecessary "number_of_sockets" usage. (fhandler_socket::fhandler_socket): Ditto. (fhandler_socket::~fhandler_socket): Delete definition. * spawn.cc (spawn_guts): Force first argument passed to CreateProcess as a command line to be windows style.
* * Makefile.in (DEVO_SUPPORT): Added gettext.m4, libtool.m4 andAlexandre Oliva2000-09-252-1/+7
| | | | ltcf-c.sh.
* * spawn.cc (av::dup_maybe): Make function void rather than void *.Christopher Faylor2000-09-256-46/+50
| | | | | | | | | * environ.cc (environ_init): Remember to reparse CYGWIN if envp is supplied. * heap.cc (_sbrk): Remember frame for signal handling. * syscalls.cc (read_handler): Eliminate. (_read): Move read_handler code here. Reorganize for one path through 'ready_for_read'.
* Fix ia64 gas testsuite. Update ia64 DV tables. Fix ia64 gas testsuite again.Jim Wilson2000-09-222-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | gas/ChangeLog * config/tc-ia64.c (dv_sem): Add "stop". (specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now. (specify_resource, case IA64_RS_PRr): New for regs 16 to 62. (specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to match above. (mark_resources): Check IA64_RS_PRr. gas/testsuite/ChangeLog * gas/ia64/dv-raw-err.s: Add new testcases for PR%, 16 - 62. * gas/ia64/dv-waw-err.s: Likewise. * gas/ia64/dv-imply.d: Regenerate. * gas/ia64/dv-mutex.d, gas/ia64/dv-raw-err.l, gas/ia64/dv-safe.d, gas/ia64/dv-srlz.d, gas/ia64/dv-war-err.l, gas/ia64/dv-waw-err.l, gas/ia64/opc-f.d, gas/ia64/opc-i.d, gas/ia64/opc-m.d: Likewise. include/opcode/ChangeLog * ia64.h (enum ia64_dependency_semantics): Add IA64_DVS_STOP. opcodes/ChangeLog * ia64-dis.c (print_insn_ia64): Revert Aug 7 byte skip count change. * ia64-gen.c (parse_semantics): Handle IA64_DVS_STOP. (lookup_specifier): Handle "PR%, 1 to 15" and "PR%, 16 to 62". * ia64-ic.tbl, ia64-raw.tbl, ia64-war.tbl, ia64-waw.tbl: Update. * ia64-asmtab.c: Regnerate.
* * libc/signal/signal.c (__sigtramp_r): ISO C requiresGeoffrey Keating2000-09-192-30/+27
| | | | | | case labels to be integral constant expressions, so use an if/else tree instead. (_raise_r): Likewise.
* * spawn.cc (spawn_guts): Use actual program argument passed in for argv[0] asChristopher Faylor2000-09-192-1/+7
| | | | originally suggested by Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
* * path.h: Create new input path flag PATH_NEEDDIR.Christopher Faylor2000-09-193-3/+31
| | | | | | | * path.cc (path::check): Detect trailing slash before converting to windows path. Tell symlink_info::check to check for directory if one is found. (symlink_info::check): Set errno when path is not a directory if pflags & PATH_NEEDDIR.
* * cygpath.cc: Add new options: -s and -i.Christopher Faylor2000-09-193-16/+136
| | | | * utils.sgml: Document the new options.
* * fhandler_tty.cc (fhandler_tty_slave::write): Correct typo which causedChristopher Faylor2000-09-182-1/+6
| | | | resetting of windows error to ERROR_IO_DEVICE to be ignored.