summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add missing fileChristopher Faylor2004-05-161-0/+32
|
* * fhandler_socket.cc (fhandler_socket::recvfrom): Use original flagsCorinna Vinschen2004-05-162-12/+15
| | | | | value in each WSARecvFrom call. (fhandler_socket::recvmsg): Ditto. Reformat slightly.
* * cygthread.cc (cygthread::is): Eliminate.Christopher Faylor2004-05-169-105/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygthread.h (cygthread::is): Eliminate declaratin. * fhandler_console.cc (fhandler_console::read): Only wait for signal_arrived in the main thread. * fhandler_socket.cc: Include new "wininfo.h". (fhandler_socket::ioctl): Use 'winmsg' rather than 'gethwnd()'. * sync.cc (muto::grab): Define new function. (muto::acquire): Use tls pointer rather than tid. (muto::acquired): Ditto. (muto::reset): Delete. (muto::release): Ditto. Also implement "close on last release". * sync.h (muto::tid): Delete. (muto::tls): New field. (muto::ismine): Delete. (muto::owner): Delete. (muto::unstable): Delete. (muto::reset): Delete. (muto::upforgrabs): New method. (muto::grab): Ditto. (new_muto_name): New define. * wininfo.h: New file. (wininfo): New class. * window.cc: Rework throughout to use winfo class for controlling invisible window operation. (gethwnd): Delete definition. * winsup.h (gethwnd): Delete declaration.
* revert previous not-ready-for-primetime checkin.Christopher Faylor2004-05-156-93/+55
|
* * cygheap.h: Remove some parameter names from declarations throughout.Christopher Faylor2004-05-158-61/+105
| | | | | (cygheap::set): Reflect changes in declaration for arguments and return value from previous checkin.
* * cygheap.h (cwdstuff::set): Modify return value and arguments.Christopher Faylor2004-05-152-36/+68
| | | | | | | * path.cc (chdir): Specify PC_POSIX. Do not call SetCurrentDirectory. Set posix_cwd in a way that does not break find.exe. Change call to cwd.set. (cwdstuff::get_initial): Do not call GetCurrentDirectory here. (cwdstuff::set): Call SetCurrentDirectory and GetCurrentDirectory as needed.
* 2004-05-15 Filip Navara <xnavara@volny.cz>Danny Smith2004-05-154-9/+108
| | | | | | | | * include/ddk/kbdmou.h: New file. * lib/ddk/videoprt.def (VideoPortMapBankedMemory, VideoPortMapDmaMemory, VideoPortMapMemory): Correct suffix. * lib/ddk/ntoskrnl.def (_snprintf, _snwprintf, _vsnprintf, _vsnwprintf, sprintf, swprintf): Export.
* 2004-05-15 Filip Navara <xnavara@volny.cz>Danny Smith2004-05-152-5/+6
| | | | | * include/ddk/ntddk.h: Don't set 4-byte alignment on included headers.
* merge from gccDJ Delorie2004-05-138-95/+1909
|
* remove keyword stuffChristopher Faylor2004-05-121-292/+2
|
* * path.cc (path_conv::check): Don't bail out with error if path is "//".Corinna Vinschen2004-05-122-1/+5
|
* * cygheap.h (struct init_cygheap): Add mt_h member.Corinna Vinschen2004-05-123-3/+10
| | | | | * fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle. (mtinfo_init): Use cygheap->mt_h handle. Protect it.
* 2004-05-12 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-124-36/+61
| | | | | | | | | | | | | | | * tty.h: Remove the %d or %x from all cygtty strings. (tty::open_output_mutex): Only declare. (tty::open_input_mutex): Ditto. (tty::open_mutex): New definition. * fhandlet_tty.cc (fhandler_tty_slave::open): Declare buf with size CYG_MAX_PATH and replace __small_printf calls by shared_name. * tty.cc (tty::create_inuse): Ditto. (tty::get_event): Ditto. (tty::common_init): Ditto. (tty::open_output_mutex): New method definition. (tty::open_input_mutex): Ditto. (tty::open_mutex): New method.
* 2004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-05-112-2/+17
| | | | | * libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead of free.
* bfd/Jakub Jelinek2004-05-113-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol into .dynsym if elf_section_data (sec)->dynindx <= 0. Adjust counting of last_local. (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt created by the linker nor !SHF_ALLOC. * elf32-i386.c (elf_i386_finish_dynamic_sections): Point DT_PLTGOT to the start of the .got.plt section instead of the .got output section. Set sh_entsize for .got section in addition to .got.plt. (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ is at sgot->output_section->vma. * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point DT_PLTGOT to the start of the .got.plt section instead of the .got output section. (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_ is at sgot->output_section->vma. Set sh_entsize for .got section in addition to .got.plt. * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO. (bfd_section_from_phdr): Likewise. (map_sections_to_segments): Likewise. (assign_file_positions_for_segments): Likewise. (get_program_header_size): Likewise. * elflink.c (bfd_elf_size_dynamic_sections): Set elf_tdata (output_bfd)->relro from info->relro. * elf-bfd.h (struct elf_obj_tdata): Add relro field. include/ * bfdlink.h (struct bfd_link_info): Add relro, relro_start and relro_end fields. * elf/common.h (PT_GNU_EH_FRAME, PT_GNU_STACK): Add comments. (PT_GNU_RELRO): Define. binutils/ * readelf.c (get_segment_type): Handle PT_GNU_RELRO. ld/ * genscripts.sh: Generate -z combreloc -z now -z relro scripts for binaries, -shared and -pie. * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set. * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set. * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to... (OTHER_RELRO_SECTIONS): ... this. * ldlex.l (DATA_SEGMENT_RELRO_END): Add. * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle -z relro and -z norelro. (gld${EMULATION_NAME}_list_options): Add it to usage. (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now -z relro scripts when appropriate. * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set. Create separate .got.plt section if SEPARATE_GOTPLT. Move sections which are only written during relocation handling to the beginning of RW segment. If NO_SMALL_DATA, move .got before .data. Add DATA_SEGMENT_RELRO_END directive. Include OTHER_RELRO_SECTIONS. * ldgram.y (DATA_SEGMENT_RELRO_END): Add. * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END. (fold_unary): Likewise. (fold_binary): Handle -z relro. * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and exp_dataseg_relro_adjust phases. Add relro_end field. * ldmain.c (main): Initialize link_info.relro to FALSE. * ldlang.c (lang_size_sections): Handle -z relro. ld/testsuite/ * ld-i386/tlspic.rd: Adjust for section reordering changes and removal of unneeded STT_SECTION symbols from .dynsym. * ld-i386/tlspic.dd: Likewise. * ld-i386/tlspic.sd: Likewise. * ld-i386/tlsbin.rd: Likewise. * ld-i386/tlsbinpic.s: Likewise. * ld-i386/tlsbin.dd: Likewise. * ld-i386/tlsbin.sd: Likewise. * ld-i386/tlsnopic.rd: Likewise. * ld-i386/tlsnopic1.s: Likewise. * ld-i386/combreloc.d: Likewise. * ld-i386/tlsnopic.dd: Likewise. * ld-i386/tlsnopic.sd: Likewise. * ld-x86-64/tlspic.rd: Likewise. * ld-x86-64/tlspic.dd: Likewise. * ld-x86-64/tlsbin.dd: Likewise. * ld-x86-64/tlspic.sd: Likewise. * ld-x86-64/tlsbin.sd: Likewise. * ld-x86-64/tlspic.td: Likewise. * ld-x86-64/tlsbin.td: Likewise. * ld-x86-64/tlsbin.rd: Likewise. * ld-s390/tlspic1.s: Likewise. * ld-s390/tlsbinpic.s: Likewise. * ld-s390/tlspic.rd: Likewise. * ld-s390/tlsbin.rd: Likewise. * ld-s390/tlspic.dd: Likewise. * ld-s390/tlsbin.dd: Likewise. * ld-s390/tlsbin.sd: Likewise. * ld-s390/tlsbin.td: Likewise. * ld-s390/tlspic.sd: Likewise. * ld-s390/tlspic.td: Likewise. * ld-s390/tlspic1_64.s: Likewise. * ld-s390/tlsbinpic_64.s: Likewise. * ld-s390/tlspic_64.rd: Likewise. * ld-s390/tlsbin_64.rd: Likewise. * ld-s390/tlspic_64.dd: Likewise. * ld-s390/tlsbin_64.dd: Likewise. * ld-s390/tlspic_64.sd: Likewise. * ld-s390/tlspic_64.td: Likewise. * ld-s390/tlsbin_64.td: Likewise. * ld-s390/tlsbin_64.sd: Likewise. * ld-powerpc/tlsexe32.r: Likewise. * ld-powerpc/tlsso32.r: Likewise. * ld-powerpc/tlsso32.d: Likewise. * ld-powerpc/tlsso32.g: Likewise. * ld-powerpc/tlsso32.t: Likewise. * ld-powerpc/tlsexe.r: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsexetoc.r: Likewise. * ld-powerpc/tlstocso.r: Likewise. * ld-powerpc/tlstocso.g: Likewise. * ld-ia64/tlspic.rd: Likewise. * ld-ia64/tlspic.dd: Likewise. * ld-ia64/tlspic.sd: Likewise. * ld-ia64/tlspic.td: Likewise. * ld-ia64/tlsbin.rd: Likewise. * ld-ia64/tlsbin.sd: Likewise. * ld-ia64/tlsbin.td: Likewise. * ld-elfvsb/elfvsb.exp: XFAIL non-PIC load offset tests on s390x. * ld-shared/shared.exp: Likewise.
* * fhandler.cc (fhandler_base::open): Set file attributes to correctCorinna Vinschen2004-05-113-0/+9
| | | | | value when creating files. * path.h (class path_conv): Add write accessor for file_attributes.
* * fhandler.h (class fhandler_socket): Add "owner" status flag.Corinna Vinschen2004-05-103-12/+50
| | | | | | | | | | | * fhandler_socket.cc (wait): Take flag parameter to take FD_OOB into account. Don't wait infinitely. (fhandler_socket::recvfrom): Also wait for FD_OOB if socket owner. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::fcntl): Set owner status flag if F_SETOWN with own pid is called.
* 2004-05-09 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-092-11/+17
| | | | | * environ.cc (build_env): Only try to construct required-but-missing variables while issetuid.
* * libc/include/machine/endian.h: Add missing endif.Aldy Hernandez2004-05-081-0/+1
|
* * syscalls.cc: Include environ.h.Christopher Faylor2004-05-083-11/+14
| | | | | (chroot): Set errno in case of path error. Call getwinenv. * environ.cc: Remove the NO_COPY attribute of conv_envvars.
* * fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): MoveCorinna Vinschen2004-05-072-19/+19
| | | | | initialization of "mem_size" from here... (fhandler_dev_mem::open): ...to here. Fix typo in FH_PORT case.
* 2004-05-07 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-05-074-7/+54
| | | | | | | | | | * libc/stdio/iprintf.c (_iprintf_r): Fix old-style argument list for reentrant pointer. Call _vfiprintf_r. * libc/stdio/siprintf.c (_siprintf_r): New function. * libc/stdio/vfprintf.c (__sbprintf): Add reetrant struct pointer argument. Change all callers. Call _VFPRINTF_R. * libc/include/stdio.h (_siprintf_r, _vfiprintf_r): New prototypes.
* 2004-05-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-05-072-0/+13
| | | | | | | | | | | | * libc/include/sys/param.h: Remove endian info and include <machine/endian.h> instead. * libc/include/machine/endian.h: New file. * libc/include/machine/param.h: Ditto. * libc/machine/arm/machine/endian.h: Ditto. * libc/machine/arm/machine/param.h: Ditto. * libc/sys/arm/sys/param.h: Removed. * libc/sys/sysvi386/sys/param.h: Ditto. * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
* 2004-05-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-05-076-45/+42
| | | | | | | | | | | * libc/include/sys/param.h: Remove endian info and include <machine/endian.h> instead. * libc/include/machine/endian.h: New file. * libc/machine/arm/machine/endian.h: Ditto. * libc/machine/arm/machine/param.h: Ditto. * libc/sys/arm/sys/param.h: Removed. * libc/sys/sysvi386/sys/param.h: Ditto. * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
* * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Move delete ofCorinna Vinschen2004-05-072-10/+23
| | | | | | | bigwavebuffer_ so that it is always cleaned, also in child processes. (fhandler_dev_dsp::Audio_in::stop): Ditto. (fhandler_dev_dsp::close): Stop audio play immediately in case of abnormal exit.
* Revert code reversion from 2004-04-03. So, revert to async I/O again.Corinna Vinschen2004-05-075-143/+193
| | | | | | | | | | | | | | | | | | | * fhandler.h (status): Add "closed" flag. (prepare): New method declaration. (wait): Ditto. (release): Ditto. * fhandler_socket.cc: Don't include wsock_event.h. (fhandler_socket::prepare): New method, moved from wsock_event. (fhandler_socket::wait): Ditto. (fhandler_socket::release): New method. (fhandler_socket::recvfrom): Simplify loop. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. * net.cc: Don't include wsock_event.h. (wsock_event::prepare): Remove. (wsock_event::wait): Ditto. * wsock_event.h: Remove.
* fix entryChristopher Faylor2004-05-071-1/+6
|
* * thread.cc (pthread::create): Move postcreate call to avoid a potential race.Christopher Faylor2004-05-071-0/+7
| | | | (pthread::cancelable_wait): Don't allow signal interrupt unless main thread.
* Christopher Faylor <cgf@timesys.com>Christopher Faylor2004-05-073-16/+33
| | | | * path.cc (mount_info::conv_to_posix_path): Add return.
* * include/wingdi.h: Correct non-unicode typedefs ofDanny Smith2004-05-062-3/+8
| | | | ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV.
* 2004-05-07 Pascal Obry <obry@act-europe.fr>Danny Smith2004-05-063-2/+7
| | | | | * include/winsock.h (IN_CLASSA): Fix macro. * include/winsock2.h (IN_CLASSA): Fix macro.
* 2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2004-05-062-74/+52
| | | | | | | | | * path.cc (path_conv::check): Strip trailing dots and spaces and return error if the final component had only dots and spaces. (normalize_posix_path): Revert 2004-04-30. (chdir): Do not check for trailing spaces. Do not set native_dir to c:\ for virtual devices. Pass only native_dir to cwd.set. (cwdstuff::set): Assume posix_cwd is already normalized.
* Add support for 521x,5249,547x,548x.Nick Clifton2004-05-052-16/+26
|
* * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,Richard Sandiford2004-05-0513-0/+55
| | | | | | * mips/dve.ld, mips/idt32.ld, mips/idt64.ld, mips/idt.ld * mips/jmr3904app.ld, mips/lsi.ld, mips/nullmon.ld, mips/pmon.ld (.eh_frame_hdr, .eh_frame, .gcc_except_table, .jcr): New sections.
* fix changelog datesChristopher Faylor2004-05-051-2/+2
|
* merge from gccDJ Delorie2004-05-042-1/+6
|
* * path.cc (normalize_win32_path): Detect components with only dots. Remove aChristopher Faylor2004-05-042-36/+32
| | | | | | | final . if it follows '\\'. (mount_info::conv_to_win32_path): Only backslashify the path when no mount is found. (chdir): Do not look for components with only dots.
* * path.cc (is_unc_share): Remove redundant tests.Christopher Faylor2004-05-043-11/+14
|
* * crt0.o (mainCRTStartup): 16 byte align stack for main function.Corinna Vinschen2004-05-042-0/+6
|
* * path.cc (check_sysfile): Don't scan string twice.Corinna Vinschen2004-05-042-2/+7
|
* 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-05-032-6/+22
| | | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Set error flag when multibyte functions return failure for %C, %S, %lc, and %ls format specifiers.
* 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-05-032-0/+5
| | | | * testsuite/include/check.h (CHECK): Add flush of stdout.
* 2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-05-033-6/+28
| | | | | | | * libc/include/stdio.h (_ungetc_r): New prototype. * libc/stdio/ungetc.c (_ungetc_r): New reentrant function. (__submore): Add reentrant struct pointer argument. (ungetc): Change to call _ungetc_r.
* * dir.cc (writable_directory): Remove.Corinna Vinschen2004-05-034-51/+8
| | | | | | | (mkdir): Remove call to writable_directory. * syscalls.cc (unlink): Ditto. (rename): Ditto. * winsup.h (writable_directory): Remove declaration.
* 2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>Luke Dunstan2004-05-012-0/+2
| | | | | | | * include/winbase.h (EXECUTION_STATE): Add typedef. (SetThreadExecutionState): Declare. * include/wingdi.h (_WINGDI_): Define. * include/objbase.h (_OBJBASE_H_): Define.
* * fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_pathCorinna Vinschen2004-04-304-20/+40
| | | | | | | for evaluating NT path. * path.cc (normalize_posix_path): Remove trailing dots and spaces. (path_conv::get_nt_native_path): New function. * path.h (class path_conv): Declare get_nt_native_path method.
* 2004-04-29 Bart Oldeman <bartoldeman@users.sourceforge.net>Luke Dunstan2004-04-305-328/+335
| | | | | | | * include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type. * include/aclui.h: Remove '\r', throughout. * include/msacm.h: Likewise. * lib/aclui.def: Likewise.
* * fhandler.cc (fhandler_base::open): Fix NT native path evaluationCorinna Vinschen2004-04-302-10/+20
| | | | to allow opening serial ports.
* * init.cc (threadfunc_fe): Hack to make thread stacks always 16Corinna Vinschen2004-04-302-0/+7
| | | | byte aligned.
* 2004-04-28 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2004-04-283-5/+13
| | | | | | | | * libc/stdio/local.h (_fwalk_reent): Specify prototype of function pointer argument. * libc/stdio/fwalk.c (_fwalk, _fwalk_reent): Change prototypes to specify function pointer arguments. (__fwalk, __fwalk_reent): Ditto.