summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mention generic-build-script in packaging FAQJoshua Daniel Franklin2005-03-262-13/+22
|
* 2005-03-25 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2005-03-253-62/+50
| | | | | * configure.in (RPATH_ENVVAR): Set to DYLD_LIBRARY_PATH on Darwin. * configure: Regenerate.
* merge from gccDJ Delorie2005-03-252-0/+8
|
* * cygcheck.cc (init_paths): Use full path instead of "." for theCorinna Vinschen2005-03-242-3/+15
| | | | | current directory. Do not add "." if present in $PATH. (dump_sysinfo): Skip placeholder first value of paths[].
* * fhandler.h (fhandler_socket::secret_event): Remove.Corinna Vinschen2005-03-245-263/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (fhandler_socket::af_local_set_secret): New function combining former set_connect_secret and get_connect_secret into one function. (fhandler_socket::af_local_setblocking): Rename from eid_setblocking. (fhandler_socket::af_local_unsetblocking): Rename from eid_unsetblocking. (fhandler_socket::af_local_set_cred): New method. (fhandler_socket::af_local_copy): New method. (fhandler_socket::af_local_recv_secret): New method. (fhandler_socket::af_local_send_secret): New method. (fhandler_socket::af_local_recv_cred): Rename from eid_recv. (fhandler_socket::af_local_send_cred): Rename from eid_send. (fhandler_socket::af_local_accept): New method. (fhandler_socket::af_local_set_sockpair_cred): Rename from set_socketpair_eids. (fhandler_socket::eid_accept): Remove. (fhandler_socket::eid_connect): Remove. (fhandler_socket::set_connect_secret): Remove. (fhandler_socket::get_connect_secret): Remove. (fhandler_socket::create_secret_event): Remove. (fhandler_socket::check_peer_secret_event): Remove. (fhandler_socket::signal_secret_event): Remove. (fhandler_socket::close_secret_event): Remove. (fhandler_socket::sec_event_accept): Remove. (fhandler_socket::sec_event_connect): Remove. * fhandler_socket.cc (secret_event_name): Remove. (fhandler_socket::af_local_set_sockpair_cred): Rename from set_socketpair_eids. (fhandler_socket::af_local_setblocking): Rename from eid_setblocking. (fhandler_socket::af_local_unsetblocking): Rename from eid_unsetblocking. (fhandler_socket::af_local_recv_secret): New function to receive AF_LOCAL connect secret over socket itself. (fhandler_socket::af_local_send_secret): New function to send AF_LOCAL connect secret over socket itself. (fhandler_socket::af_local_recv_cred): Rename from eid_recv. (fhandler_socket::af_local_send_cred): Rename from eid_send. (fhandler_socket::eid_connect): Remove. (fhandler_socket::af_local_connect): Take over connect side handling of AF_LOCAL secret and credential handshake. (fhandler_socket::eid_accept): Remove. (fhandler_socket::af_local_accept): New method, take over accept side handling of AF_LOCAL secret and credential handshake. (fhandler_socket::af_local_set_cred): New method, set eid credentials to start values. (fhandler_socket::af_local_copy): New method, copy secret and credentials to another socket. (fhandler_socket::af_local_set_secret): New function combining former set_connect_secret and get_connect_secret into one function. (fhandler_socket::create_secret_event): Remove. (fhandler_socket::signal_secret_event): Remove. (fhandler_socket::close_secret_event): Remove. (fhandler_socket::check_peer_secret_event): Remove. (fhandler_socket::sec_event_connect): Remove. (fhandler_socket::sec_event_accept): Remove. (fhandler_socket::fixup_after_fork): Drop secret_event handling. (fhandler_socket::bind): Call af_local_set_secret. (fhandler_socket::connect): Call af_local_set_cred and af_local_connect. (fhandler_socket::listen): Call af_local_set_cred. (fhandler_socket::accept): Call af_local_copy and af_local_accept on accepted socket. (fhandler_socket::close): Don't call close_secret_event. (fhandler_socket::set_close_on_exec): Don't set secret_event inheritance. * net.cc (cygwin_getsockopt): Add debug output. (socketpair): Call af_local_set_sockpair_cred instead of set_socketpair_eids. * select.cc (set_bits): Drop AF_LOCAL special handling in case of except bit set.
* * include/stdio.h (__mingw_fwrite): Change return value toDanny Smith2005-03-243-2/+8
| | | | | size_t. * mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.
* * include/ctype.h: Always define macros when inside cygwin.Christopher Faylor2005-03-232-2/+8
| | | | (isblank): New macro.
* Fix whitespace with crx entry.Jeff Johnston2005-03-231-1/+1
|
* checkin previously missed file.Christopher Faylor2005-03-231-1/+0
|
* fix commentChristopher Faylor2005-03-231-1/+1
|
* * fhandler.h (fhandler_socket::eid_connect): Make private.Corinna Vinschen2005-03-234-76/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (fhandler_socket::set_connect_secret): Ditto. (fhandler_socket::get_connect_secret): Ditto. (fhandler_socket::create_secret_event): Ditto. Remove secret argument. (fhandler_socket::check_peer_secret_event): Ditto. (fhandler_socket::signal_secret_event): Make private. (fhandler_socket::close_secret_event): Ditto. (fhandler_socket::sec_event_accept): New private method. (fhandler_socket::sec_event_connect): Ditto. (fhandler_socket::af_local_connect): New public method. * fhandler_socket.cc: Use 'struct sockaddr' and 'struct sockaddr_in' rather than just 'sockaddr' and 'sockaddr_in' throughout. (fhandler_socket::eid_connect): Drop AF_LOCAL/SOCK_STREAM test. (fhandler_socket::create_secret_event): Remove secret argument. Always use connect_secret instead. (fhandler_socket::check_peer_secret_event): Ditto. (fhandler_socket::sec_event_connect): New method, combining entire secret event handshake on connect side. (fhandler_socket::af_local_connect): New method, combining secret event handshake and eid credential transaction on connect side, to be called from select. (fhandler_socket::sec_event_accept): New method, combining entire secret event handshake on accept side. (fhandler_socket::connect): Drop secret, use connect_secret instead. Move entire secret event handshake to sec_event_connect. (fhandler_socket::accept): Move entire secret event handshake to sec_event_accept. * select.cc (set_bits): Just call af_local_connect here.
* * include/cygwin/version.h: Change coment for most recent API version bump toChristopher Faylor2005-03-232-1/+7
| | | | | reflect new additions to the DLL and to remove change obsoleted by the previous checkin.
* * include/ctype.h: New file.Christopher Faylor2005-03-234-4/+194
| | | | | | * ctype.cc: Ditto. * Makefile.in: Add ctype.o to DLL_OFILES. * cygwin.din: Remove _ctype_ptr (for now?).
* * configure.host: For cygwin, redefine CC with cygwin include directory firstChristopher Faylor2005-03-232-1/+8
| | | | | to mimic the behavior of the top-level configury. Move include directory out of newlib_cflags.
* Undo previous deltaNick Clifton2005-03-232-8/+1
|
* (getopt): Allow full prototype when builind under FreeBSD.Nick Clifton2005-03-232-1/+8
|
* * Makefile.common: Add -dD to options when creating preprocess files.Christopher Faylor2005-03-232-6/+10
|
* merge from gccDJ Delorie2005-03-232-1/+5
|
* 2005-03-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-03-223-7/+17
| | | | | | * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on. * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather than errno.
* * dwarf.h: Merge with GCC's dwarf.h.Ben Elliston2005-03-222-25/+33
|
* include ChangeLogBob Wilson2005-03-222-2/+17
| | | | | | | | | * xtensa-isa.h: Update a comment and whitespace. bfd ChangeLog * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup, xtensa_sysreg_lookup_name, xtensa_interface_lookup, xtensa_funcUnit_lookup): Skip bsearch call if count is zero. (xtensa_opcode_decode): Rearrange code.
* * Makefile.in (DLL_OFILES): Add hookapi.o. Eliminate some cruft.Christopher Faylor2005-03-2213-16/+282
| | | | | | | | | | | | | | | | | * cygheap.h (cygheap_types): Add new enum: HEAP_1_HOOK. (hook_chain): New struct. (init_cygheap::hooks): Define new element. * cygheap.cc (cygheap_fixup_in_child): Zero hook chain on exec. * dcrt0.cc (dll_crt0_1): Call ld_preload just before calling main function. * external.cc (cygwin_internal): Implement CW_HOOK. * fork.cc (fork_child): Call fixup_hooks_after_fork. * init.cc (cygwin_hmodule): Reinstate after a long absence. * include/sys/cygwin.h: Define CW_HOOK. * hookapi.cc: New file. * select.cc (start_thread_socket): Add debugging output. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): gcc 4.x accommodation. * fhandler_socket.cc (fhandler_socket::connect): Make sure that err is initialized.
* * libc/include/machine/_types.h: Make trivial change to comment to avoid aChristopher Faylor2005-03-222-1/+6
| | | | spurious warning from gcc.
* * cygwin.din (__ctype_ptr): Export.Corinna Vinschen2005-03-223-1/+8
| | | | * include/cygwin/version.h: Bump API minor version.
* top:Zack Weinberg2005-03-228-190/+122
| | | | | | | | | | | | | | | * Makefile.def: Remove libstdcxx_incdir, libsubdir, gxx_include_dir, gcc_version, and gcc_version_trigger from set of flags to pass. * Makefile.tpl: Remove definitions of above variables. (config.status): Remove dependency on $(gcc_version_trigger). * Makefile.in: Regenerate. * configure.in: Do not reference config/gcc-version.m4 nor config/gxx-include-dir.m4. Do not invoke TL_AC_GCC_VERSION nor TL_AC_GXX_INCLUDE_DIR. Do not set gcc_version_trigger. * configure: Regenerate. config: * gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be expanded by the Makefile.
* 2005-03-21 Nicholas Wourms <nwourms@netscape.net>Jeff Johnston2005-03-212-2/+7
| | | | | | * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test, since _WANT_IO_POS_ARGS is now defined in there. Remove duplicate reent.h include.
* * fhandler.h (class cygthread): Remove forward declaration.Corinna Vinschen2005-03-212-1/+4
|
* * fhandler.h (class cygthread): Forward declare.Corinna Vinschen2005-03-214-137/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (fhandler_socket::sec_pipe): Remove. (fhandler_socket::eid_pipe_name): Remove. (fhandler_socket::eid_setblocking): New private method. (fhandler_socket::eid_unsetblocking): Ditto (fhandler_socket::eid_recv): Ditto (fhandler_socket::eid_send): Ditto (fhandler_socket::eid_accept): Ditto (fhandler_socket::eid_connect): New public method. * fhandler_socket.cc (ASYNC_MASK): Move to beginning of file. (fhandler_socket::eid_pipe_name): Remove. (fhandler_socket::set_socketpair_eids): Move down to fhandler_socket methods. (fhandler_socket::fhandler_socket): Drop initializing sec_pipe. (fhandler_socket::~fhandler_socket): Drop closing sec_pipe. (fhandler_socket::eid_setblocking): New method. (fhandler_socket::eid_unsetblocking): New method. (fhandler_socket::eid_recv): New method. (fhandler_socket::eid_send): New method. (fhandler_socket::eid_connect): New method. (fhandler_socket::eid_accept): New method. (fhandler_socket::dup): Drop sec_pipe handling. (fhandler_socket::connect): Fix WinSock error handling. Prepare eid credential transaction. Call eid_connect on successful connect. (fhandler_socket::listen): Drop creating sec_pipe. (fhandler_socket::accept): Slightly simplify code. Call eid_accept on accepted socket. (fhandler_socket::getpeereid): Reshuffle code for readability. Fix test for invalid pid. * select.cc (set_bits): Call eid_connect on successfully connected socket.
* * how-programming.texinfo: Remove incorrect libm.a note.Joshua Daniel Franklin2005-03-192-2/+4
|
* * child_info.h (fork_info): Use different method to alias variable.Christopher Faylor2005-03-199-896/+921
| | | | | | | | | | | | | (spawn_info): Ditto. * cxx.cc (__cxa_guard_acquire): New function (needed for gcc 4.x). (__cxa_guard_release): Ditto. * devices.in: Make sure stuff is correctly bracketed (for gcc 4.x). * devices.cc: Regenerate. * fhandler.h (fhandler_disk_file::fchmod): Avoid left coercion (for gcc 4.x). * smallprint.c (__rn): Declare as __fastcall since gcc 4.x complains about use of regparm, for some reason. * sync.h (sync::init_lock): Remove. * sync.cc (sync::init_lock): Ditto.
* * net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.Christopher Faylor2005-03-182-2/+8
| | | | (cygwin_getprotobynumber): Ditto.
* Add support for generating PLT lookups for the ColdFire.Nick Clifton2005-03-182-1/+6
|
* 2005-03-18 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2005-03-182-12/+19
| | | | | | | | Corinna Vinschen <corinna@vinschen.de> * libc/include/ctype.h: Remove invalid +1 offset from ctype macro references to __ctype_ptr. (_ctype_): Move declaration outside #ifndef __cplusplus.
* * elf32-arm.c (elf32_arm_modify_segment_map): New function.Mark Mitchell2005-03-182-0/+9
| | | | | | | | | | | | | (elf32_arm_additional_program_headers): Likewise. (elf_backend_modify_segment_map): Define. (elf_backend_additional_program_headers): Likewise. (elf32_arm_symbian_modify_segment_map): Use elf32_arm_modify_segment_map. * binutils/readelf.c (get_arm_segment_type): New function. (get_segment_type): Use it. * arm.h (PT_ARM_EXIDX): Define.
* * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension toCorinna Vinschen2005-03-182-0/+29
| | | | | evaluate first parameter only once. (siglongjmp): Ditto.
* 2005-03-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-03-177-20/+106
| | | | | | | | | | | | * configure.in: Add new check to see if compiler supports aliasing of arrays and define _HAVE_ARRAY_ALIASING if true. * configure: Regenerated. * Makefile.in: Ditto. * newlib.hin: Add _HAVE_ARRAY_ALIASING. * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before aliasing the _ctype_ array to _ctype_b. * libc/include/ctype.h: Change macros to use __ctype_ptr. Mark _ctype_ as deprecated.
* * fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle openingCorinna Vinschen2005-03-172-4/+8
| | | | directories under 9x gracefully.
* * fhandler_socket.cc (fhandler_socket::connect): Always set sun_pathCorinna Vinschen2005-03-172-42/+41
| | | | | | in case of a successful or pending connect. (fhandler_socket::accept): Don't run secret event and eid credential transactions if OS accept returned WSAEWOULDBLOCK.
* * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: AddHans-Peter Nilsson2005-03-172-1/+6
| | | | -DCOMPACT_CTYPE.
* complete a sentencChristopher Faylor2005-03-161-1/+1
|
* bfd/H.J. Lu2005-03-162-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_mark_used_section): New. (bfd_elf_gc_sections): Call elf_gc_mark_section for non-relocatable link if we don't do GC. include/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Add gc_sections. ld/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove unused empty output sections for non-relocatable link. * ld.h (args_type): Remove gc_sections. * ldlang.c (lang_mark_used_section): New. (lang_gc_sections): Use link_info.gc_sections instead of command_line.gc_sections. * ldmain.c (main): Likewise. * lexsup.c (parse_args): Likewise. * ldlang.c (lang_process): Call lang_mark_used_section. * ldmain.c (main): Initialize link_info.gc_sections to FALSE. ld/testsuite/ 2005-03-16 H.J. Lu <hongjiu.lu@intel.com> * ld-alpha/tlsbin.rd: Updated for empty section removal. * ld-alpha/tlsbinr.rd: Likewise. * ld-alpha/tlspic.rd: Likewise. * ld-arm/mixed-lib.sym: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlspic.rd: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-powerpc/apuinfo.rd: Likewise. * ld-powerpc/powerpc.exp: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-sh/tlsbin-2.d: Likewise. * ld-sh/tlspic-2.d: Likewise. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunpic32.rd: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-x86-64/tlspic.rd: Likewise.
* * fhandler_tape.cc (get_ll): This is a generally useful function so move itChristopher Faylor2005-03-164-4/+13
| | | | | | * winsup.h (get_ll): to here * security.cc (get_token_group_sidlist): Use get_ll to figure out the long long version of the luid since QuadPart is not part of the standard Windows API.
* * winclude/winnt.h (SYSTEM_LUID): Fix definitition invalidated by below change.Christopher Faylor2005-03-162-1/+6
|
* missing file from previous checkin.Christopher Faylor2005-03-161-20/+12
|
* * dir.cc: Rename opendir_* to dirent_* throughout.Christopher Faylor2005-03-165-15/+34
| | | | | | | | | | | | | (opendir_states): Move and rename. * fhandler.h (dirent_states): to here. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Use raw readdir when skipping through entries since it is keeping track of "." and "..". (fhandler_cygdrive::seekdir): Use fhandler_disk_file::readdir to do everything. * fhandler_virtual.cc (fhandler_virtual::opendir): Set flag indicating that we provide . and .. (fhandler_virtual::seekdir): Ditto. (fhandler_virtual::rewinddir): Ditto. * fhandler_registry.cc (fhandler_registry::rewinddir): Ditto.
* * Makefile.tpl (check-[+module+]): Fix shell statement inside if ... fi.DJ Delorie2005-03-163-6/+12
| | | | * Makefile.in: Regenerate.
* merge from gccDJ Delorie2005-03-162-28/+4
|
* * cygtls.cc (free_local): New macro.Christopher Faylor2005-03-165-92/+93
| | | | | | | | | | | | | | | | | | | | | (_cygtls::remove): Use free_local to free known-malloced local variables. * cygtls.h: Mark some variables as "malloced". * net.cc (enum struct_type): Rename from is_* to t_* for clarity. (dump_protoent): Delete. (dup_ent): New macro. (__dup_ent): Renamed from dup_ent. Change arguments for convenience. Replace first argument with newly alloced value. Allocate a rounded number of bytes in an attempt to try to reuse space. Subsume "dump_protent". (cygwin_getprotobyname): Simplify using new dup_ent functionality. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostname): Ditto. (cygwin_gethostbyname): Ditto. * tlsoffsets.h: Regenerate. * syslog.cc (openlog): Use NULL rather than 0, for consistency with the rest of cygwin. (pass_handler::initialize): Use unbuffered I/O in pass one.
* * errno.cc (errmap): Correct typo in previous change.Christopher Faylor2005-03-162-1/+5
|
* * include/winnt.h (_LUID): Add structure. Correct LUID typedef.Danny Smith2005-03-162-1/+10
| | | | | Thanks to: Paul-Christiaan Spruijtenburg <wakarimasu at users dot sf dot net>