Christopher Faylor
fb4489a53f
add missing file
2004-05-16 16:38:27 +00:00
Corinna Vinschen
32880f1e4a
* fhandler_socket.cc (fhandler_socket::recvfrom): Use original flags
...
value in each WSARecvFrom call.
(fhandler_socket::recvmsg): Ditto. Reformat slightly.
2004-05-16 15:38:03 +00:00
Christopher Faylor
0c565ab35b
* cygthread.cc (cygthread::is): Eliminate.
...
* 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.
2004-05-16 04:18:50 +00:00
Christopher Faylor
aafd8a545f
revert previous not-ready-for-primetime checkin.
2004-05-15 16:10:41 +00:00
Christopher Faylor
71af2ed39e
* cygheap.h: Remove some parameter names from declarations throughout.
...
(cygheap::set): Reflect changes in declaration for arguments and return value
from previous checkin.
2004-05-15 16:09:04 +00:00
Christopher Faylor
982c8ecdb4
* cygheap.h (cwdstuff::set): Modify return value and arguments.
...
* 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 15:55:43 +00:00
Danny Smith
99189153b3
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* 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 10:08:06 +00:00
Danny Smith
34f35cf5e0
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* include/ddk/ntddk.h: Don't set 4-byte alignment on included
headers.
2004-05-15 09:47:02 +00:00
DJ Delorie
cb2333e85e
merge from gcc
2004-05-13 18:14:28 +00:00
Christopher Faylor
f30298c13b
remove keyword stuff
2004-05-12 16:21:18 +00:00
Corinna Vinschen
8d8bc1e139
* path.cc (path_conv::check): Don't bail out with error if path is "//".
2004-05-12 14:04:23 +00:00
Corinna Vinschen
191ea07aa5
* cygheap.h (struct init_cygheap): Add mt_h member.
...
* fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle.
(mtinfo_init): Use cygheap->mt_h handle. Protect it.
2004-05-12 12:28:59 +00:00
Pierre Humblet
8bdfa78a69
2004-05-12 Pierre Humblet <pierre.humblet@ieee.org>
...
* 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-12 01:44:11 +00:00
Jeff Johnston
5b4c8ae219
2004-05-11 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* libc/stdio/vfprintf.c (VFPRINTF_R): Use _free_r instead
of free.
2004-05-11 20:59:20 +00:00
Jakub Jelinek
b509e930ff
bfd/
...
* 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.
2004-05-11 17:08:38 +00:00
Corinna Vinschen
0175b5311e
* fhandler.cc (fhandler_base::open): Set file attributes to correct
...
value when creating files.
* path.h (class path_conv): Add write accessor for file_attributes.
2004-05-11 15:39:50 +00:00
Corinna Vinschen
75b5f30fdd
* fhandler.h (class fhandler_socket): Add "owner" status flag.
...
* 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-10 15:21:01 +00:00
Pierre Humblet
94f29ccdf6
2004-05-09 Pierre Humblet <pierre.humblet@ieee.org>
...
* environ.cc (build_env): Only try to construct required-but-missing
variables while issetuid.
2004-05-09 15:17:15 +00:00
Aldy Hernandez
b5793c5c8c
* libc/include/machine/endian.h: Add missing endif.
2004-05-08 17:13:38 +00:00
Christopher Faylor
ac3003157b
* syscalls.cc: Include environ.h.
...
(chroot): Set errno in case of path error. Call getwinenv.
* environ.cc: Remove the NO_COPY attribute of conv_envvars.
2004-05-08 02:55:38 +00:00
Corinna Vinschen
f8aae275a4
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Move
...
initialization of "mem_size" from here...
(fhandler_dev_mem::open): ...to here. Fix typo in FH_PORT case.
2004-05-07 21:28:53 +00:00
Jeff Johnston
186420eccf
2004-05-07 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* 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 21:00:41 +00:00
Jeff Johnston
631fbe65fa
2004-05-07 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 20:39:57 +00:00
Jeff Johnston
f1559722eb
2004-05-07 Jeff Johnston <jjohnstn@redhat.com>
...
* 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>.
2004-05-07 20:29:24 +00:00
Corinna Vinschen
367ff06ea4
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Move delete of
...
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.
2004-05-07 07:54:28 +00:00
Corinna Vinschen
3e101fb2cd
Revert code reversion from 2004-04-03. So, revert to async I/O again.
...
* 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.
2004-05-07 07:51:31 +00:00
Christopher Faylor
dab22ff6e6
fix entry
2004-05-07 03:51:22 +00:00
Christopher Faylor
9b0b76ba92
* thread.cc (pthread::create): Move postcreate call to avoid a potential race.
...
(pthread::cancelable_wait): Don't allow signal interrupt unless main thread.
2004-05-07 03:31:04 +00:00
Christopher Faylor
1940656ab9
Christopher Faylor <cgf@timesys.com>
...
* path.cc (mount_info::conv_to_posix_path): Add return.
2004-05-07 03:27:37 +00:00
Danny Smith
718123fada
* include/wingdi.h: Correct non-unicode typedefs of
...
ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV.
2004-05-06 21:04:26 +00:00
Danny Smith
bbf3df482a
2004-05-07 Pascal Obry <obry@act-europe.fr>
...
* include/winsock.h (IN_CLASSA): Fix macro.
* include/winsock2.h (IN_CLASSA): Fix macro.
2004-05-06 20:54:50 +00:00
Pierre Humblet
14017d5313
2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>
...
* 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.
2004-05-06 16:26:10 +00:00
Nick Clifton
0520aabb5a
Add support for 521x,5249,547x,548x.
2004-05-05 14:33:14 +00:00
Richard Sandiford
8c91dd0a29
* mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld,
...
* 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.
2004-05-05 12:16:31 +00:00
Christopher Faylor
6767691ff0
fix changelog dates
2004-05-05 03:55:48 +00:00
DJ Delorie
ad0c938782
merge from gcc
2004-05-04 20:06:15 +00:00
Christopher Faylor
5cc2189c09
* path.cc (normalize_win32_path): Detect components with only dots. Remove a
...
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.
2004-05-04 15:14:48 +00:00
Christopher Faylor
3dcb399b58
* path.cc (is_unc_share): Remove redundant tests.
2004-05-04 15:09:58 +00:00
Corinna Vinschen
423ea473f4
* crt0.o (mainCRTStartup): 16 byte align stack for main function.
2004-05-04 14:46:25 +00:00
Corinna Vinschen
ad7ba32b2d
* path.cc (check_sysfile): Don't scan string twice.
2004-05-04 10:54:06 +00:00
Jeff Johnston
1af84bb7f5
2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* 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 20:17:59 +00:00
Jeff Johnston
1c63798e1d
2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* testsuite/include/check.h (CHECK): Add flush of stdout.
2004-05-03 17:31:22 +00:00
Jeff Johnston
20b0251ab3
2004-05-03 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* 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.
2004-05-03 17:27:56 +00:00
Corinna Vinschen
1e98729b2a
* dir.cc (writable_directory): Remove.
...
(mkdir): Remove call to writable_directory.
* syscalls.cc (unlink): Ditto.
(rename): Ditto.
* winsup.h (writable_directory): Remove declaration.
2004-05-03 11:53:07 +00:00
Luke Dunstan
2d465f741f
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winbase.h (EXECUTION_STATE): Add typedef.
(SetThreadExecutionState): Declare.
* include/wingdi.h (_WINGDI_): Define.
* include/objbase.h (_OBJBASE_H_): Define.
2004-05-01 01:52:58 +00:00
Corinna Vinschen
43b2d5bace
* fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_path
...
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-30 17:36:36 +00:00
Luke Dunstan
ed8dd3c858
2004-04-29 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type.
* include/aclui.h: Remove '\r', throughout.
* include/msacm.h: Likewise.
* lib/aclui.def: Likewise.
2004-04-30 17:06:21 +00:00
Corinna Vinschen
e6b21dafc1
* fhandler.cc (fhandler_base::open): Fix NT native path evaluation
...
to allow opening serial ports.
2004-04-30 14:02:37 +00:00
Corinna Vinschen
72f3756e07
* init.cc (threadfunc_fe): Hack to make thread stacks always 16
...
byte aligned.
2004-04-30 13:27:27 +00:00
Jeff Johnston
6194cf4a4b
2004-04-28 Artem B. Bityuckiy <abitytsky@softminecorp.com>
...
* 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.
2004-04-28 18:02:38 +00:00