]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
18 years ago * fhandler.h (class fhandler_socket): Remove prot_info_ptr.
Corinna Vinschen [Thu, 27 Jul 2006 09:11:38 +0000 (09:11 +0000)]
* fhandler.h (class fhandler_socket): Remove prot_info_ptr.
(fhandler_socket::fixup_before_fork_exec): Remove.
(fhandler_socket::fixup_after_exec): Remove.
(fhandler_socket::need_fixup_before): Remove.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Drop
initializing prot_info_ptr.  Remove unused code.
(fhandler_socket::~fhandler_socket): Drop free'ing prot_info_ptr.
(struct wsa_event): Rename connect_errorcode to errorcode.
(fhandler_socket::evaluate_events): Handle FD_CLOSE error condition
as FD_CONNECT error condition, except, never reset an FD_CLOSE error
condition.  Always set FD_WRITE after successfully recorded FD_CONNECT.
(fhandler_socket::fixup_before_fork_exec): Remove.
(fhandler_socket::fixup_after_fork): Revert to using handle duplication.
(fhandler_socket::fixup_after_exec): Remove.
(fhandler_socket::dup): Revert to using handle duplication.
(fhandler_socket::send_internal): Only call wait_for_events in case
of WSAEWOULDBLOCK condition.
(fhandler_socket::set_close_on_exec): Call
fhandler_base::set_close_on_exec.
* net.cc (fdsock): Just set socket to inheritable on non-NT.  Don't
call inc_need_fixup_before.
* select.cc (peek_socket): Don't set except_ready on every FD_CLOSE,
just on error.

18 years ago Update some IMAGE flags to PECOFF v8 (May, 2006) specs.
Danny Smith [Thu, 27 Jul 2006 08:30:33 +0000 (08:30 +0000)]
Update some IMAGE flags to PECOFF v8 (May, 2006) specs.
* include/winnt.h (IMAGE_FILE_MACHINE_AM33,
IMAGE_FILE_MACHINE_ARM, IMAGE_FILE_MACHINE_EBC,
IMAGE_FILE_MACHINE_M32R, IMAGE_FILE_MACHINE_MIPS16,
IMAGE_FILE_MACHINE_MIPSFPU, IMAGE_FILE_MACHINE_MIPSFPU16,
IMAGE_FILE_MACHINE_POWERPCFP, IMAGE_FILE_MACHINE_R4000,
IMAGE_FILE_MACHINE_SH3, IMAGE_FILE_MACHINE_SH3DSP,
IMAGE_FILE_MACHINE_SH4, IMAGE_FILE_MACHINE_SH5,
IMAGE_FILE_MACHINE_THUMB, IMAGE_FILE_MACHINE_WCEMIPSV2):
Add defines.

(IMAGE_SUBSYSTEM_EFI_APPLICATION,
IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER,
IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER, IMAGE_SUBSYSTEM_EFI_ROM):
Add defines.

(IMAGE_SYM_CLASS_CLR_TOKEN): Add define

(IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT,
IMAGE_DLLCHARACTERISTICS_NO_ISOLATION, IMAGE_DLLCHARACTERISTICS_NO_SEH,
IMAGE_DLLCHARACTERISTICS_NO_BIND,
IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE): Add defines.

(IMAGE_REL_I386_TOKEN, IMAGE_REL_I386_SECREL7): Add defines.

(IMAGE_REL_AMD64_ABSOLUTE, IMAGE_REL_AMD64_ADDR64,
IMAGE_REL_AMD64_ADDR32, IMAGE_REL_AMD64_ADDR32NB, IMAGE_REL_AMD64_REL32,
IMAGE_REL_AMD64_REL32_1, IMAGE_REL_AMD64_REL32_2,
IMAGE_REL_AMD64_REL32_3, IMAGE_REL_AMD64_REL32_4,
IMAGE_REL_AMD64_REL32_5, IMAGE_REL_AMD64_SECTION,
IMAGE_REL_AMD64_SECREL, IMAGE_REL_AMD64_SECREL7, IMAGE_REL_AMD64_TOKEN,
IMAGE_REL_AMD64_SREL32, IMAGE_REL_AMD64_PAIR, IMAGE_REL_AMD64_SSPAN32):
Add defines.

(IMAGE_REL_IA64_ABSOLUTE, IMAGE_REL_IA64_IMM14, IMAGE_REL_IA64_IMM22,
IMAGE_REL_IA64_IMM64, IMAGE_REL_IA64_DIR32, IMAGE_REL_IA64_DIR64,
IMAGE_REL_IA64_PCREL21B, IMAGE_REL_IA64_PCREL21M,
IMAGE_REL_IA64_PCREL21F, IMAGE_REL_IA64_GPREL22, IMAGE_REL_IA64_LTOFF22,
IMAGE_REL_IA64_SECTION, IMAGE_REL_IA64_SECREL22,
IMAGE_REL_IA64_SECREL64I, IMAGE_REL_IA64_SECREL32,
IMAGE_REL_IA64_DIR32NB, IMAGE_REL_IA64_SREL14, IMAGE_REL_IA64_SREL22,
IMAGE_REL_IA64_SREL32, IMAGE_REL_IA64_UREL32, IMAGE_REL_IA64_PCREL60X,
IMAGE_REL_IA64_PCREL60B, IMAGE_REL_IA64_PCREL60F,
IMAGE_REL_IA64_PCREL60I, IMAGE_REL_IA64_PCREL60M,
IMAGE_REL_IA64_IMMGPREL64, IMAGE_REL_IA64_TOKEN, IMAGE_REL_IA64_GPREL32,
IMAGE_REL_IA64_ADDEND): Add defines.

(IMAGE_SCN_GPREL): Add define.

18 years ago* fhandler.cc (fhandler_base::read): Call get_readahead_into_buffer instead of
Christopher Faylor [Thu, 27 Jul 2006 03:32:51 +0000 (03:32 +0000)]
* fhandler.cc (fhandler_base::read): Call get_readahead_into_buffer instead of
duplicating it.

18 years ago * shared.cc (offsets): Define as offsets relative to cygwin_hmodule
Corinna Vinschen [Wed, 26 Jul 2006 21:02:01 +0000 (21:02 +0000)]
* shared.cc (offsets): Define as offsets relative to cygwin_hmodule
instead of addresses.
(off_addr): New macro.
(open_shared): Use offsets array accordingly.  Remove unused code.
* shared_info.h (cygwin_shared_address): Remove.

18 years ago * cygheap.h (struct init_cygheap): Remove shared_h and mt_h members.
Corinna Vinschen [Wed, 26 Jul 2006 15:59:39 +0000 (15:59 +0000)]
* cygheap.h (struct init_cygheap): Remove shared_h and mt_h members.
* fhandler_tape.cc (mt): Define as DLL shared area in
.cygwin_dll_common instead of as dynamically allocated area.
Change referencing throughout.
* mtinfo.h (mt_h): Remove entirely.
(mt): Remove extern declaration.
* shared.cc (cygwin_shared_area): New global cygwin_shared
variable located in .cygwin_dll_common.
(offsets): Define shared region addresses descending from
cygwin_shared_address.
(open_shared): Replace usage of SH_CYGWIN_SHARED by SH_USER_SHARED.
(memory_init): Set cygwin_shared just by pointing to cygwin_shared_area.
* shared_info.h (shared_locations): Remove SH_CYGWIN_SHARED and
SH_MTINFO.
(cygwin_shared_address): Define as DLL start address.
* tty.h (tty_min::tty_min): Remove constructor.

18 years ago * include/cygwin/in6.h: Guard in_port_t typedef more restrictive to
Corinna Vinschen [Tue, 25 Jul 2006 20:01:38 +0000 (20:01 +0000)]
* include/cygwin/in6.h: Guard in_port_t typedef more restrictive to
avoid compiler warning.

18 years ago* security.cc (get_logon_server): Remove nret and use dret for everything to
Christopher Faylor [Tue, 25 Jul 2006 19:44:17 +0000 (19:44 +0000)]
* security.cc (get_logon_server): Remove nret and use dret for everything to
avoid a g++ warning.

18 years ago2006-07-25 Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Tue, 25 Jul 2006 19:23:23 +0000 (19:23 +0000)]
2006-07-25  Corinna Vinschen  <corinna@vinschen.de>

* include/cygwin/version.h: Bump DLL version to 1.7.0.

2006-07-25  Corinna Vinschen  <corinna@vinschen.de>

* select.h: Remove.
* fhandler_socket.cc: Don't include select.h.
* select.cc: Ditto.

2006-07-25  Corinna Vinschen  <corinna@vinschen.de>

* cygtls.h: Drop socket related includes.
(struct _local_storage): Remove exitsock and exitsock_sin. Add
select_sockevt.
* cygtls.cc: Accomodate above change throughout.
* fhandler.h (class fhandler_socket): Make wsock_evt public.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Accomodate
reordering members.
(fhandler_socket::evaluate_events): Drop FD_CONNECT event as soon as
it gets read once.  Never remove FD_WRITE event here.
(fhandler_socket::wait_for_events): Wait 50 ms instead of INFINITE for
socket events.
(fhandler_socket::accept): Fix conditional.  Set wsock_events members
of accepted socket to useful start values.
(fhandler_socket::recv_internal): Always drop FD_READ/FD_OOB events from
wsock_events after the call to WSARecvFrom.
(fhandler_socket::send_internal): Drop FD_WRITE event from wsock_events
if the call to WSASendTo fails with WSAEWOULDBLOCK.  Fix return value
condition.
* select.cc (struct socketinf): Change to accomodate using socket event
handling.
(peek_socket): Use event handling for peeking socket.
(thread_socket): Ditto.
(start_thread_socket): Ditto.
(socket_cleanup): Same here.
* tlsoffsets.h: Regenerate.

2006-07-20  Corinna Vinschen  <corinna@vinschen.de>

* fhandler.h (class fhandler_socket): Rearrange slightly to keep
event handling methods and members together.  Drop owner status flag.
Split wait method.  Rename event handling methods for readability.
* fhandler_socket.cc (struct wsa_event): Add owner field.
(LOCK_EVENTS): New macro.
(UNLOCK_EVENTS): Ditto.
(fhandler_socket::init_events): rename from prepare.
(fhandler_socket::evaluate_events): First half of former wait method.
Do everything but wait.  Allow specifiying whether or not events from
event_mask should be erased from wsock_events->events.  Simplify
OOB handling.  Allow sending SIGURG to any process (group).
(fhandler_socket::wait_for_events): Second half of former wait method.
Call evaluate_events and wait in a loop if socket is blocking.
(fhandler_socket::release_events): Rename from release.
(fhandler_socket::connect): Accomodate above name changes.
(fhandler_socket::accept): Ditto.
(fhandler_socket::recv_internal): Ditto.
(fhandler_socket::send_internal): Ditto.
(fhandler_socket::close): Ditto.
(fhandler_socket::fcntl): Always set owner to given input value on
F_SETOWN.  Handle F_GETOWN.
* net.cc (fdsock): Accomodate above name changes.

2006-07-20  Corinna Vinschen  <corinna@vinschen.de>

* fhandler_socket.cc (fhandler_socket::wait): Set Winsock errno to
WSAEWOULDBLOCK instead of WSAEINPROGRESS.

2006-07-18  Brian Ford  <Brian.Ford@FlightSafety.com>
    Corinna Vinschen  <corinna@vinschen.de>

* winsup.h (mmap_region_status): New enum.
(mmap_is_attached_or_noreserve_page): Adjust prototype and rename
as below.
* mmap.cc (mmap_is_attached_or_noreserve_page):  Rename
mmap_is_attached_or_noreserve.  Add region length parameter.
Return enum above.
* exceptions.cc (_cygtls::handle_exceptions): Accomodate above.
* fhandler.cc (fhandler_base::raw_read): Call above for NOACCESS
errors and retry on success to allow reads into untouched
MAP_NORESERVE buffers.

2006-07-18  Corinna Vinschen  <corinna@vinschen.de>

* cygwin.din (posix_openpt): Export.
* tty.cc (posix_openpt): New function.
* include/cygwin/stdlib.h (posix_openpt): Declare.
* include/cygwin/version.h: Bump API minor number.

2006-07-14  Corinna Vinschen  <corinna@vinschen.de>

* security.cc (get_token_group_sidlist): Always add the interactive
group to the token.  Add comment.  Create logon_id group SID by
copying it from incoming group list.
(create_token): Add subauth_token parameter.  Use information in
subauth_token if present.  Tweak SourceIdentifier if subauth_token
is present for debugging purposes.
* security.h (create_token): Add subauth_token parameter in declaration.
* syscalls.cc (seteuid32): Call subauth first.  Call create_token
regardless.  Use subauth token in call to create_token if subauth
succeeded.

2006-07-13  Corinna Vinschen  <corinna@vinschen.de>

* include/netinet/in.h: Update copyright.

2006-07-13  Corinna Vinschen  <corinna@vinschen.de>

* fhandler_socket.cc (fhandler_socket::wait): Rework function so that
WaitForMultipleObjects is really only called when necessary.

2006-07-12  Corinna Vinschen  <corinna@vinschen.de>

* include/netdb.h: Declare rcmd, rcmd_af, rexec, rresvport,
rresvport_af, iruserok, iruserok_sa, ruserok.

2006-07-12  Corinna Vinschen  <corinna@vinschen.de>

* Makefile.in (DLL_OFILES): Drop iruserok.o.  Add rcmd.o.
* autoload.cc (rcmd): Drop definition.
* cygwin.din: Export bindresvport, bindresvport_sa, iruserok_sa,
rcmd_af, rresvport_af.
* net.cc (cygwin_rcmd): Remove.
(last_used_bindresvport): Rename from last_used_rrecvport.
(cygwin_bindresvport_sa): New function implementing bindresvport_sa.
(cygwin_bindresvport): New function implementing bindresvport.
(cygwin_rresvport): Remove.
* include/cygwin/version.h: Bump API minor number.
* include/netinet/in.h: Declare bindresvport and bindresvport_sa.
* libc/iruserok.c: Remove file.
* libc/rcmd.cc: New file implementing rcmd, rcmd_af, rresvport,
rresvport_af, iruserok_sa, iruserok and ruserok.

2006-07-12  Corinna Vinschen  <corinna@vinschen.de>

* fhandler_socket.cc (fhandler_socket::getsockname): Return valid
result for unbound sockets.

2006-07-11  Corinna Vinschen  <corinna@vinschen.de>

* fhandler_socket.cc (fhandler_socket::fixup_after_fork): Handle
wsock_mtx and wsock_evt on fork, thus handling close_on_exec correctly.
(fhandler_socket::fixup_after_exec): Drop misguided attempt to handle
close_on_exec here.
(fhandler_socket::dup): Call fixup_after_fork with NULL parent.
Add comment.
(fhandler_socket::set_close_on_exec): Handle wsock_mtx and wsock_evt.

2006-07-10  Corinna Vinschen  <corinna@vinschen.de>

* fhandler.h (class fhandler_socket): Add wsock_mtx, wsock_evt
and wsock_events members.  Remove closed status flag, add listener
status flag.  Accomodate new implementation of socket event handling
methods.  Declare recv* and send* functions ssize_t as the POSIX
equivalents.
(fhandler_socket::recv_internal): Declare.
(fhandler_socket::send_internal): Ditto.
* fhandler_socket.cc (EVENT_MASK): Define mask of selected events.
(fhandler_socket::fhandler_socket): Initialize new members.
(fhandler_socket::af_local_setblocking): Don't actually set the
socket to blocking mode.  Keep sane event selection.
(fhandler_socket::af_local_unsetblocking): Don't actually set the
socket to previous blocking setting, just remember it.
(struct wsa_event): New structure to keep event data per shared
socket.
(NUM_SOCKS): Define number of shared sockets concurrently handled by
all active Cygwin processes.
(wsa_events): New shared datastructure keeping all wsa_event records.
(socket_serial_number): New shared variable to identify shared sockets.
(wsa_slot_mtx): Global mutex to serialize wsa_events access.
(search_wsa_event_slot): New static function to select a new wsa_event
slot for a new socket.
(fhandler_socket::prepare): Rewrite.  Prepare event selection
per new socket.
(fhandler_socket::wait): Rewrite.  Wait for socket events in thread
safe and multiple process safe.
(fhandler_socket::release): Rewrite.  Close per-socket descriptor
mutex handle and event handle.
(fhandler_socket::dup): Duplicate wsock_mtx and wsock_evt.  Fix
copy-paste error in debug output.
(fhandler_socket::connect): Accomodate new event handling.
(fhandler_socket::listen): Set listener flag on successful listen.
(fhandler_socket::accept): Accomodate new event handling.
(fhandler_socket::recv_internal): New inline method centralizing
common recv code.
(fhandler_socket::recvfrom): Call recv_internal now.
(fhandler_socket::recvmsg): Ditto.  Streamline copying from iovec
to WSABUF.
(fhandler_socket::send_internal): New inline method centralizing
common send code.
(fhandler_socket::sendto): Call send_internal now.
(fhandler_socket::sendmsg): Ditto.  Streamline copying from iovec
to WSABUF.
(fhandler_socket::close): Call release now.
(fhandler_socket::ioctl): Never actually switch to blocking mode.
Just keep track of the setting.
* net.cc (fdsock): Call prepare now.
(cygwin_connect): Revert again to event driven technique.
(cygwin_accept): Ditto.
* poll.cc (poll): Don't call recvfrom on a listening socket.
Remove special case for failing recvfrom.
* include/sys/socket.h: Declare recv* and send* functions ssize_t as
requested by POSIX.

2006-07-07  Corinna Vinschen  <corinna@vinschen.de>

* net.cc (cygwin_inet_ntop): Fix data type of forth parameter.

2006-07-06  Corinna Vinschen  <corinna@vinschen.de>

* include/cygwin/in6.h (struct in6_addr): Fix typo.

2006-07-06  Corinna Vinschen  <corinna@vinschen.de>

* cygwin.din: Export in6addr_any, in6addr_loopback, freeaddrinfo,
gai_strerror, getaddrinfo, getnameinfo.
* fhandler_socket.cc: Include cygwin/in6.h.
(get_inet_addr): Accomodate AF_INET6 usage.
(fhandler_socket::connect): Ditto.
(fhandler_socket::listen): Ditto.
(fhandler_socket::sendto): Ditto.
* net.cc: Include cygwin/in6.h.
(in6addr_any): Define.
(in6addr_loopback): Define.
(cygwin_socket): Accomodate AF_INET6 usage.
(socketpair): Bind socketpairs only to loopback for security.
(inet_pton4): New static function.
(inet_pton6): Ditto.
(cygwin_inet_pton): New AF_INET6 aware inet_pton implementation.
(inet_ntop4): New static function.
(inet_ntop6): Ditto.
(cygwin_inet_ntop): New AF_INET6 aware inet_ntop implementation.
(ga_aistruct): New static function.
(ga_clone): Ditto.
(ga_echeck): Ditto.
(ga_nsearch): Ditto.
(ga_port): Ditto.
(ga_serv): Ditto.
(ga_unix): Ditto.
(gn_ipv46): Ditto.
(ipv4_freeaddrinfo): Ditto.
(ipv4_getaddrinfo): Ditto.
(ipv4_getnameinfo): Ditto.
(gai_errmap_t): New structure holding error code - error string mapping.
(cygwin_gai_strerror): New function implementing gai_strerror.
(w32_to_gai_err): New static function.
(get_ipv6_funcs): Ditto.
(load_ipv6_funcs): Ditto.
(cygwin_freeaddrinfo): New function implementing freeaddrinfo.
(cygwin_getaddrinfo): New function implementing getaddrinfo.
(cygwin_getnameinfo): New function implementing getnameinfo.
* include/netdb.h: Include stdint.h and cygwin/socket.h.  Define
data types and macros used by getaddrinfo and friends.  Declare
freeaddrinfo, gai_strerror, getaddrinfo and getnameinfo.
* include/cygwin/in.h: Add IPv6 related IPPROTOs. Remove definition
of struct sockaddr_in6.  Include cygwin/in6.h instead.
* include/cygwin/in6.h: New header file defining IPv6 releated
data types and macros.
* include/cygwin/socket.h: Enable AF_INET6 and PF_INET6.  Add
IPv6 related socket options.
* include/cygwin/version.h: Bump API minor number.

2006-07-06  Corinna Vinschen  <corinna@vinschen.de>

* autoload.cc (DsGetDcNameA): Define.
(NetGetAnyDCName): Define.
* security.cc: Include dsgetdc.h.
(DsGetDcNameA): Declare.
(DS_FORCE_REDISCOVERY): Define.
(get_logon_server): Add bool parameter to control rediscovery of DC.
Use DsGetDcNameA function if supported, NetGetDCName/NetGetAnyDCName
otherwise.
(get_server_groups): Rediscover DC if get_user_groups fails and
try again.
(get_reg_security): Use correct error code macro when testing
RegGetKeySecurity return value.
* security.h (get_logon_server): Remove default vaue from wserver
parameter.  Add rediscovery parameter.
* uinfo.cc (cygheap_user::env_logsrv): Accomodate rediscovery parameter
in call to get_logon_server.

18 years ago * configure.in: Reenable building the subauth subdir.
Corinna Vinschen [Tue, 25 Jul 2006 19:18:04 +0000 (19:18 +0000)]
* configure.in: Reenable building the subauth subdir.
* configure: Regenerate.

18 years ago * Makefile.in (LIBS): Link against msvcrt.dll, too.
Corinna Vinschen [Tue, 25 Jul 2006 19:16:54 +0000 (19:16 +0000)]
* Makefile.in (LIBS): Link against msvcrt.dll, too.

18 years agoupdate copyright
Christopher Faylor [Tue, 25 Jul 2006 17:18:05 +0000 (17:18 +0000)]
update copyright

18 years agoSync from GCC
Paolo Bonzini [Tue, 25 Jul 2006 08:39:57 +0000 (08:39 +0000)]
Sync from GCC

2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>

        PR bootstrap/18058
        * configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1
        if the bootstrap compiler is a GCC version that supports it.
        * configure: Regenerate.

config:
2006-07-21  David Daney  <ddaney@avtrex.com>

        PR libgcj/28426
        * gxx-include-dir.m4: Use target_alias in path for cross build.

18 years ago2006-07-25 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 25 Jul 2006 08:32:44 +0000 (08:32 +0000)]
2006-07-25  Paolo Bonzini  <bonzini@gnu.org>

PR build/26188
        * stdint.m4: Test for uintptr_t even on systems with uint64_t or uint32_t.

Sync from GCC
2006-07-21  Steve Ellcey  <sje@cup.hp.com>

        PR target/26792
        * unwind_ipinfo.m4: New.

18 years ago * include/aclui.h: Replace __OBJC__ guard with _OBJC_NO_COM.
Danny Smith [Tue, 25 Jul 2006 00:22:19 +0000 (00:22 +0000)]
* include/aclui.h: Replace __OBJC__ guard with _OBJC_NO_COM.
* include/basetyps.h:  Likewise.
  (_COM_interface): New define.
(interface): Define to _COM_interface, conditional on !__OBJC__.
Replace 'interface' with '_COM_interface', throughout.
   * include/comcat.h: Replace 'interface' with '_COM_interface', throughout.
* include/commdlg.h: Replace __OBJC__ guard with _OBJC_NO_COM.
* include/docobj.h: Replace 'interface' with '_COM_interface', throughout.
* include/mshtml.h: Likewise.
* include/oaidl.h: Likewise.
* include/objfwd.h: Likewise.
* include/objidl.h: Likewise.
* include/ocidl.h: Likwise.
* include/olectl.h: Likewise.
* include/oleidl.h: Likewise.
* include/shlobj.h: Likewise.
* include/shlwapi.h: Replace __OBJC__ guard with _OBJC_NO_COM.
* include/vfw.h: Likewise.
* include/windows.h. Likewise. Add comment.
* include/directx/d3d9.h: Replace 'interface' with '_COM_interface',
throughout.

* lib/test.c: Replace __OBJC__ guard with _OBJC_NO_COM.
Add test for conflict with '@interface'

18 years ago* include/cygwin/version.h: Bump DLL minor version number to 22.
Christopher Faylor [Mon, 24 Jul 2006 01:28:29 +0000 (01:28 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 22.

18 years ago* Makefile.in: Update copyrigh. Remove unused stuff.
Christopher Faylor [Sun, 23 Jul 2006 23:28:49 +0000 (23:28 +0000)]
* Makefile.in: Update copyrigh.  Remove unused stuff.

18 years ago* Makefile.in: Update copyright. Fix 'check' target so that it will once-again
Christopher Faylor [Sun, 23 Jul 2006 23:28:06 +0000 (23:28 +0000)]
* Makefile.in: Update copyright.  Fix 'check' target so that it will once-again
create a working testsuite directory.  Add a comment this time to explain the
unusual behavior.
(Previous ChangeLog checkin did not include accompanying Makefile.in)

18 years ago * configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
Daniel Jacobowitz [Sun, 23 Jul 2006 03:47:43 +0000 (03:47 +0000)]
* configure.in: Allow mingw32 and cygwin targets to build cross-gdb.
* configure: Regenerated.
gdb/
* config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
* config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
* config/i386/tm-cygwin.h: Delete file.

18 years ago2006-07-22 ipsoner <ipsoner@users.sourceforge.net>
Chris Sutcliffe [Sat, 22 Jul 2006 13:31:18 +0000 (13:31 +0000)]
2006-07-22  ipsoner  <ipsoner@users.sourceforge.net>

    * include/wincrypt.h (szOID_RSA, szOID_PKCS, szOID_RSA_HASH,
    szOID_RSA_ENCRYPT, szOID_PKCS_1, szOID_PKCS_2, szOID_PKCS_3,
    szOID_PKCS_4, szOID_PKCS_5, szOID_PKCS_6, szOID_PKCS_7,
    szOID_PKCS_8, szOID_PKCS_9, szOID_PKCS_10, szOID_PKCS_12,
    szOID_RSA_MD2, szOID_RSA_MD4, szOID_RSA_MD5, szOID_RSA_RSA,
    szOID_RSA_MD2RSA, szOID_RSA_MD4RSA, szOID_RSA_MD5RSA,
    szOID_RSA_SHA1RSA, szOID_RSA_SETOAEP_RSA, szOID_RSA_DH,
    szOID_RSA_data, szOID_RSA_signedData, szOID_RSA_envelopedData,
    szOID_RSA_signEnvData, szOID_RSA_digestedData, szOID_RSA_hashedData,
    szOID_RSA_encryptedData, szOID_RSA_emailAddr, szOID_RSA_unstructName,
    szOID_RSA_contentType, szOID_RSA_messageDigest, szOID_RSA_signingTime,
    szOID_RSA_counterSign, szOID_RSA_challengePwd, szOID_RSA_unstructAddr,
    szOID_RSA_extCertAttrs, szOID_RSA_SMIMECapabilities,
    szOID_RSA_preferSignedData, szOID_RSA_RC2CBC, szOID_RSA_RC4,
    szOID_RSA_DES_EDE3_CBC, szOID_RSA_RC5_CBCPad, szOID_ANSI_x942,
    szOID_ANSI_x942_DH, szOID_X957, szOID_X957_DSA, szOID_DATA STRUCTURE,
    szOID_DS, szOID_DSALG, szOID_DSALG_CRPT, szOID_DSALG_HASH,
    szOID_DSALG_SIGN, szOID_DSALG_RSA, szOID_OIW, szOID_OIWSEC,
    szOID_OIWSEC_md4RSA, szOID_OIWSEC_md5RSA, szOID_OIWSEC_md4RSA2,
    szOID_OIWSEC_desECB, szOID_OIWSEC_desCBC, szOID_OIWSEC_desOFB,
    szOID_OIWSEC_desCFB, szOID_OIWSEC_desMAC, szOID_OIWSEC_rsaSign,
    szOID_OIWSEC_dsa, szOID_OIWSEC_shaDSA, szOID_OIWSEC_mdc2RSA,
    szOID_OIWSEC_shaRSA, szOID_OIWSEC_dhCommMod, szOID_OIWSEC_desEDE,
    szOID_OIWSEC_sha, szOID_OIWSEC_mdc2, szOID_OIWSEC_dsaComm,
    szOID_OIWSEC_dsaCommSHA, szOID_OIWSEC_rsaXchg, szOID_OIWSEC_keyHashSeal,
    szOID_OIWSEC_md2RSASign, szOID_OIWSEC_md5RSASign, szOID_OIWSEC_sha1,
    szOID_OIWSEC_dsaSHA1, szOID_OIWSEC_dsaCommSHA1, szOID_OIWSEC_sha1RSASign,
    szOID_OIWDIR, szOID_OIWDIR_CRPT, szOID_OIWDIR_HASH, szOID_OIWDIR_SIGN,
    szOID_OIWDIR_md2, szOID_OIWDIR_md2RSA, szOID_INFOSEC,
    szOID_INFOSEC_sdnsSignature, szOID_INFOSEC_mosaicSignature,
    szOID_INFOSEC_sdnsConfidentiality, szOID_INFOSEC_mosaicConfidentiality,
    szOID_INFOSEC_sdnsIntegrity, szOID_INFOSEC_mosaicIntegrity,
    szOID_INFOSEC_sdnsTokenProtection, szOID_INFOSEC_mosaicTokenProtection,
    szOID_INFOSEC_sdnsKeyManagement, szOID_INFOSEC_mosaicKeyManagement,
    szOID_INFOSEC_sdnsKMandSig, szOID_INFOSEC_mosaicKMandSig,
    szOID_INFOSEC_SuiteASignature, szOID_INFOSEC_SuiteAConfidentiality,
    szOID_INFOSEC_SuiteAIntegrity, szOID_INFOSEC_SuiteATokenProtection,
    szOID_INFOSEC_SuiteAKeyManagement, szOID_INFOSEC_SuiteAKMandSig,
    szOID_INFOSEC_mosaicUpdatedSig, szOID_INFOSEC_mosaicKMandUpdSig,
    szOID_INFOSEC_mosaicUpdatedInteg, szOID_PKIX_NO_SIGNATURE,
    szOID_COMMON_NAME, szOID_COUNTRY_NAME, szOID_DEVICE_SERIAL_NUMBER,
    szOID_DOMAIN_COMPONENT, szOID_RSA_emailAddr, szOID_GIVEN_NAME,
    szOID_INITIALS, szOID_LOCALITY_NAME, szOID_ORGANIZATION_NAME,
    szOID_ORGANIZATIONAL_UNIT_NAME, szOID_STATE_OR_PROVINCE_NAME,
    szOID_STREET_ADDRESS, szOID_SUR_NAME, szOID_TITLE, szOID_RSA_unstructAddr,
    szOID_RSA_unstructName, szOID_BASIC_CONSTRAINTS2,
    CERT_BASIC_CONSTRAINTS2_INFO, CRYPT_ENCODE_PARA,CertDuplicateStore,
    CertEnumCertificatesInStore, CertDuplicateCertificateContext,
    CertGetNameStringA, CertGetNameStringW, CertGetNameString, PFXIsPFXBlob,
    CertFindExtension, CryptDecodeObject, CertAddCertificateContextToStore,
    CertCompareCertificate, PFXVerifyPassword, PFXImportCertStore,
    CertDeleteCertificateFromStore): Define.
    * lib/crypt32.def (CertDuplicateStore, CertEnumCertificatesInStore,
    CertDuplicateCertificateContext, CertGetNameStringA, CertGetNameStringW,
    CertGetNameString, PFXIsPFXBlob, CertFindExtension, CryptDecodeObject,
    CertAddCertificateContextToStore, CertCompareCertificate,
    PFXVerifyPassword, PFXImportCertStore, CertDeleteCertificateFromStore):
    Define.

18 years ago2006-07-20 Elias Naur <elias_naur@users.sourceforge.net>
Chris Sutcliffe [Sat, 22 Jul 2006 12:06:11 +0000 (12:06 +0000)]
2006-07-20  Elias Naur  <elias_naur@users.sourceforge.net>

        * include/devguid.h: Add new file with missing GUID_DEVCLASS_*
        declarations. They were extracted from the registry with a script.
        * lib/devguid.c: Add new file with the implementation of the
        missing GUIDs.
        * lib/Makefile.in: Add devguid.c to UUID_SOURCES and UUID_OBJS.

18 years ago2006-07-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 22 Jul 2006 11:47:23 +0000 (11:47 +0000)]
2006-07-22  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

    * lib/uuid.c: Remove.

18 years ago2006-07-19 Elias Naur <elias_naur@users.sourceforge.net>
Danny Smith [Wed, 19 Jul 2006 21:45:25 +0000 (21:45 +0000)]
2006-07-19  Elias Naur  <elias_naur@users.sourceforge.net>

* include/winuser.h (WM_INPUT): Add missing Raw Input
notification define.
(RID_DEVICE_INFO_MOUSE, RID_DEVICE_INFO_KEYBOARD,
RID_DEVICE_INFO_HID, RID_DEVICE_INFO): Define Raw Input structs.

18 years ago [mingw-Bugs-1525021]
Danny Smith [Wed, 19 Jul 2006 21:24:42 +0000 (21:24 +0000)]
[mingw-Bugs-1525021]
* iptypes.h (IP_ADAPTER_ANYCAST_ADDRESS): Fix NONAMELESSUNION warnings.
(IP_ADAPTER_MULTICAST_ADDRESS): Likewise.
(IP_ADAPTER_UNICAST_ADDRESS): Likewise.
(IP_ADAPTER_DNS_SERVER_ADDRESS): Likewise.
(IP_ADAPTER_ADAPTER_PREFIX): Likewise.
(IP_ADAPTER_ADDRESSES): Likewise.

18 years ago2006-07-19 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 19 Jul 2006 17:06:06 +0000 (17:06 +0000)]
2006-07-19  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir
for stages after the first.
* Makefile.in: Regenerate.

config:
2006-07-19  Paolo Bonzini  <bonzini@gnu.org>

* acx.m4: Support --with-build-libsubdir and AC_SUBST
build_libsubdir.

18 years ago * pinfo.cc (commune_process): Don't add extra \0 to cmdline.
Corinna Vinschen [Wed, 19 Jul 2006 16:00:28 +0000 (16:00 +0000)]
* pinfo.cc (commune_process): Don't add extra \0 to cmdline.
(_pinfo::cmdline): Ditto process internal.

18 years ago * mmap.cc (msync): Disable rounding up len. Fix bug in access check
Corinna Vinschen [Wed, 19 Jul 2006 08:58:09 +0000 (08:58 +0000)]
* mmap.cc (msync): Disable rounding up len.  Fix bug in access check
loop.

18 years ago * path.cc (symlink_worker): Return EEXIST if newpath exists.
Corinna Vinschen [Wed, 19 Jul 2006 08:20:26 +0000 (08:20 +0000)]
* path.cc (symlink_worker): Return EEXIST if newpath exists.

18 years ago * pathnames.sgml: Change text for the order in which executables
Corinna Vinschen [Tue, 18 Jul 2006 19:41:02 +0000 (19:41 +0000)]
* pathnames.sgml: Change text for the order in which executables
are evaluated.

18 years ago* tty.cc (tty_list::terminate): Don't enter the busy loop if we don't own the
Christopher Faylor [Tue, 18 Jul 2006 15:09:11 +0000 (15:09 +0000)]
* tty.cc (tty_list::terminate): Don't enter the busy loop if we don't own the
master.

18 years ago * sec_acl.cc (acltotext32): Add missing handling of default ACL entry
Corinna Vinschen [Tue, 18 Jul 2006 14:11:38 +0000 (14:11 +0000)]
* sec_acl.cc (acltotext32): Add missing handling of default ACL entry
types.

18 years ago * fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Fix typo in lint
Corinna Vinschen [Tue, 18 Jul 2006 12:56:37 +0000 (12:56 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Fix typo in lint
directive.

18 years ago* Makefile.in: Simplify a little.
Christopher Faylor [Tue, 18 Jul 2006 03:24:07 +0000 (03:24 +0000)]
* Makefile.in: Simplify a little.

18 years agoGCC 4.1 fixes.
Christopher Faylor [Mon, 17 Jul 2006 19:30:30 +0000 (19:30 +0000)]
GCC 4.1 fixes.
* cygheap.h (cygheap_user): Remove unneeded class names from function
declaration.
* fhandler.h (fhandler_base): Ditto.
(fhandler_dev_floppy): Ditto.
(fhandler_console): Ditto.
* wininfo.h (wininfo): Ditto.
* exceptions.cc (sigpacket::process): Avoid compiler errors about gotos and
initialization.
* fhandler_fifo.cc (fhandler_fifo::open): Ditto.
* fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::ioctl): Ditto.
* mmap.cc (mmap64): Ditto.
* pipe.cc (fhandler_pipe::open): Ditto.
* spawn.cc (spawn_guts): Ditto.
* sec_helper.cc: Fix some comments.
(get_null_sd): Move file-scope static to only function where it is used.

18 years ago * Makefile.def: Add dependencies for configure-opcodes
Jakub Jelinek [Mon, 17 Jul 2006 17:04:21 +0000 (17:04 +0000)]
* Makefile.def: Add dependencies for configure-opcodes
on configure-intl and all-opcodes on all-intl.
* Makefile.in: Regenerated.

18 years ago* fork.cc (fork): Lock the process before forking to prevent things like new
Christopher Faylor [Fri, 14 Jul 2006 22:15:12 +0000 (22:15 +0000)]
* fork.cc (fork): Lock the process before forking to prevent things like new
fds from being opened, etc.
* sync.h (lock_process::dont_bother): New function.

18 years ago* include/cygwin/types.h: Update copyright.
Christopher Faylor [Fri, 14 Jul 2006 21:45:00 +0000 (21:45 +0000)]
* include/cygwin/types.h: Update copyright.

18 years ago* cygwin.sc: Make sure there's something in the cygheap.
Christopher Faylor [Fri, 14 Jul 2006 19:33:55 +0000 (19:33 +0000)]
* cygwin.sc: Make sure there's something in the cygheap.
* dllfixdbg: Accommodate newer binutils which put the gnu_debuglink at the end
rather than at the beginning.

18 years ago2006-07-14 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 14 Jul 2006 16:15:27 +0000 (16:15 +0000)]
2006-07-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (i386_optab): Remove InvMem from maskmovq, movhlps,
movlhps, movmskps, pextrw, pmovmskb, movmskpd, maskmovdqu,
movdq2q and movq2dq.

18 years ago* sigproc.cc (waitq_head): Don't initialize to zero.
Christopher Faylor [Fri, 14 Jul 2006 00:50:55 +0000 (00:50 +0000)]
* sigproc.cc (waitq_head): Don't initialize to zero.
* sigproc.h: Update copyright, fix whitespace.

18 years agoAdd amdfam10 instructions
Michael Meissner [Thu, 13 Jul 2006 22:25:48 +0000 (22:25 +0000)]
Add amdfam10 instructions

18 years ago* fhandler.cc (fhandler_base::raw_read): Only return EISDIR when we're really
Christopher Faylor [Thu, 13 Jul 2006 20:56:24 +0000 (20:56 +0000)]
* fhandler.cc (fhandler_base::raw_read): Only return EISDIR when we're really
trying to read a directory.
* sigproc.cc: Use "Static" where appropriate.

18 years ago * fhandler_socket.cc: Update copyright.
Corinna Vinschen [Thu, 13 Jul 2006 12:59:53 +0000 (12:59 +0000)]
* fhandler_socket.cc: Update copyright.
* include/pthread.h: Ditto.

18 years ago * mmap.cc (mmap64): Drop MAP_NORESERVE flag for non-anonymous,
Corinna Vinschen [Thu, 13 Jul 2006 10:29:21 +0000 (10:29 +0000)]
* mmap.cc (mmap64): Drop MAP_NORESERVE flag for non-anonymous,
non-private mappings.
(mmap_record::unmap_pages): Only check noreserve flag which now implies
anonymous and private.
(mprotect): Ditto.
(fixup_mmaps_after_fork): Ditto.

18 years ago * exceptions.cc (_cygtls::handle_exceptions): Call new
Corinna Vinschen [Thu, 13 Jul 2006 08:33:34 +0000 (08:33 +0000)]
* exceptions.cc (_cygtls::handle_exceptions): Call new
mmap_is_attached_or_noreserve_page function in case of access violation
and allow application to retry access on noreserve pages.
* mmap.cc (mmap_is_attached_or_noreserve_page): Changed from
mmap_is_attached_page.  Handle also noreserve pages now.  Change
comment accordingly.
* winsup.h (mmap_is_attached_or_noreserve_page): Declare instead of
mmap_is_attached_page.

18 years ago * mmap.cc (mmap_record::alloc_page_map): Don't call VirtualProtect
Corinna Vinschen [Wed, 12 Jul 2006 20:15:00 +0000 (20:15 +0000)]
* mmap.cc (mmap_record::alloc_page_map): Don't call VirtualProtect
on maps created with MAP_NORESERVE.

18 years ago * include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT and
Corinna Vinschen [Wed, 12 Jul 2006 09:55:47 +0000 (09:55 +0000)]
* include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT and
PTHREAD_PRIO_PROTECT only if _POSIX_THREAD_PRIO_INHERIT is defined.

18 years agoinclude/
Jakub Jelinek [Mon, 10 Jul 2006 21:40:24 +0000 (21:40 +0000)]
include/
* bfdlink.h (struct bfd_link_info): Add emit_hash and
emit_gnu_hash bitfields.
include/elf/
* common.h (SHT_GNU_HASH, DT_GNU_HASH): Define.
ld/
* scripttempl/elf.sc: Add .gnu.hash section.
* emultempl/elf32.em (OPTION_HASH_STYLE): Define.
(gld${EMULATION_NAME}_add_options): Register --hash-style option.
(gld${EMULATION_NAME}_handle_option): Handle it.
(gld${EMULATION_NAME}_list_options): Document it.
* ldmain.c (main): Initialize emit_hash and emit_gnu_hash.
* ld.texinfo: Document --hash-style option.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH.
(bfd_section_from_shdr, elf_fake_sections, assign_section_numbers):
Handle SHT_GNU_HASH.
(special_sections_g): Include .gnu.hash section.
(bfd_elf_gnu_hash): New function.
* elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes.
(struct elf_backend_data): Add elf_hash_symbol method.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash
only if info->emit_hash, create .gnu.hash section if
info->emit_gnu_hash.
(struct collect_gnu_hash_codes): New type.
(elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms,
_bfd_elf_hash_symbol): New functions.
(compute_bucket_count): Don't compute HASHCODES array, instead add
that and NSYMS as arguments.  Use bed->s->sizeof_hash_entry
instead of bed->s->arch_size / 8.  Fix .hash size estimation.
When not optimizing, use the number of hashed symbols rather than
dynsymcount.
(bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash,
and ADD DT_GNU_HASH if info->emit_gnu_hash.
(bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash,
adjust compute_bucket_count caller.  Create and populate .gnu.hash
section if info->emit_gnu_hash.
(elf_link_output_extsym): Only populate .hash section if
finfo->hash_sec != NULL.
(bfd_elf_final_link): Adjust assertion.  Handle DT_GNU_HASH.
* elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined.
(elfNN_bed): Add elf_backend_hash_symbol.
* elf64-x86-64.c (elf64_x86_64_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
* elf32-i386.c (elf_i386_hash_symbol): New function.
(elf_backend_hash_symbol): Define.
binutils/
* readelf.c (get_dynamic_type): Handle DT_GNU_HASH.
(get_section_type_name): Handle SHT_GNU_HASH.
(dynamic_info_DT_GNU_HASH): New variable.
(process_dynamic_section): Handle DT_GNU_HASH.
(process_symbol_table): Print also DT_GNU_HASH histogram.
ld/testsuite/
* ld-powerpc/tlsso32.r: Adjust.
* ld-powerpc/tlsso32.d: Adjust.
* ld-powerpc/tlsso32.g: Adjust.
* ld-powerpc/tlsso.r: Adjust.
* ld-powerpc/tlsso.g: Adjust.
* ld-powerpc/tlstocso.g: Adjust.

18 years ago * libc/inet_addr.c: Define __INSIDE_CYGWIN_NET__.
Corinna Vinschen [Mon, 10 Jul 2006 08:15:54 +0000 (08:15 +0000)]
* libc/inet_addr.c: Define __INSIDE_CYGWIN_NET__.
* libc/inet_network.c: Ditto.

18 years ago * fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTART
Corinna Vinschen [Fri, 7 Jul 2006 15:44:19 +0000 (15:44 +0000)]
* fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTART
handling for now.

18 years ago * Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.
Corinna Vinschen [Fri, 7 Jul 2006 09:14:15 +0000 (09:14 +0000)]
* Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.
* autoload.cc (inet_addr): Drop definition.
(inet_ntoa): Ditto.
* net.cc: Forward declare cygwin_inet_aton and cygwin_inet_ntop.
(cygwin_inet_ntoa): Call cygwin_inet_ntop instead of Winsock inet_ntoa.
(cygwin_inet_addr): Remove here.
(cygwin_inet_aton): Ditto.
(cygwin_inet_network): Ditto.
* libc/inet_addr.c: New file implementing cygwin_inet_aton and
cygwin_inet_addr.
* libc/inet_network.c: New file implementing cygwin_inet_network.

18 years ago* hookapi.cc: Add comment header
Christopher Faylor [Thu, 6 Jul 2006 17:16:37 +0000 (17:16 +0000)]
* hookapi.cc: Add comment header
(putmem): Make static.
(get_export): Ditto.
(rvadelta): Ditto.  Don't assume that a section which ends where the import_rva
begins is the import list.
* child_info.h: Update copyright.
* fork.cc: Ditto.

18 years ago* include/math.h (__INFF,__INFL): Remove '#'.
Danny Smith [Thu, 6 Jul 2006 07:36:58 +0000 (07:36 +0000)]
* include/math.h (__INFF,__INFL): Remove '#'.

18 years ago2006-07-05 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 5 Jul 2006 16:18:30 +0000 (16:18 +0000)]
2006-07-05  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/mprec.h [_DOUBLE_IS_32BITS]: Turn off C99 hex
        floating-point format support.  Also redefine
        dword0 and dword1 macros.
        * libc/stdlib/strtod.c: Add checks for _DOUBLE_IS_32BITS
        to prevent setting dword1 which is an rvalue only.

18 years ago* sortdin: Ignore all leading underscores when deriving a sort key.
Christopher Faylor [Wed, 5 Jul 2006 16:06:50 +0000 (16:06 +0000)]
* sortdin: Ignore all leading underscores when deriving a sort key.
* cygwin.din: Resort.

18 years ago* sortdin: New program.
Christopher Faylor [Wed, 5 Jul 2006 15:59:39 +0000 (15:59 +0000)]
* sortdin: New program.
* cygwin.din: Sort.

18 years ago * fhandler.h (fhandler_socket::wait): Reset default timeout to 10ms.
Corinna Vinschen [Wed, 5 Jul 2006 15:39:08 +0000 (15:39 +0000)]
* fhandler.h (fhandler_socket::wait): Reset default timeout to 10ms.

18 years ago2006-07-05 Shaun Jackman <sjackman@gmail.com>
Shaun Jackman [Wed, 5 Jul 2006 15:24:30 +0000 (15:24 +0000)]
2006-07-05  Shaun Jackman  <sjackman@gmail.com>

* arm/linux-crt0.S: Remove file.
* arm/linux-crt0.c: New file. Supports PIC code.

18 years ago * path.cc (path_conv::check): Ignore has_ea setting, it's always unset
Corinna Vinschen [Wed, 5 Jul 2006 08:35:51 +0000 (08:35 +0000)]
* path.cc (path_conv::check): Ignore has_ea setting, it's always unset
at this point anyway.
(get_symlink_ea): Remove.
(set_symlink_ea): Remove.
(symlink_worker): Drop writing symlink into NTFS extended attributes.
(symlink_info::check): Drop reading symlinks from NTFS extended
attributes.

18 years ago* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - set
Christopher Faylor [Wed, 5 Jul 2006 00:14:42 +0000 (00:14 +0000)]
* libc/rexec.cc (cygwin_rexec): Obvious (?) fix to correct a gcc warning - set
port to zero first thing in the function.

18 years ago2006-07-04 Shaun Jackman <sjackman@gmail.com>
Shaun Jackman [Tue, 4 Jul 2006 23:58:02 +0000 (23:58 +0000)]
2006-07-04  Shaun Jackman  <sjackman@gmail.com>

* arm/linux-syscalls0.S (ftruncate, getegid, geteuid, getgid,
getgroups, getpgid, getpgrp, getuid, lchown, pause, pipe,
setpgid, setgid, setsid, setuid, sigprocmask, sync, uname): New
system call.

18 years ago* signal.cc (signal): Set sa_mask to sig.
Christopher Faylor [Tue, 4 Jul 2006 23:57:43 +0000 (23:57 +0000)]
* signal.cc (signal): Set sa_mask to sig.

18 years agoChangeLog:
Alexandre Oliva [Tue, 4 Jul 2006 20:31:03 +0000 (20:31 +0000)]
ChangeLog:
* ltconfig: chmod 644 before ranlib during install.
libiberty/ChangeLog:
* Makefile.in: chmod 644 before ranlib during install.

18 years ago * Makefile.in (DLL_OFILES): Add rexec.o.
Corinna Vinschen [Tue, 4 Jul 2006 20:24:27 +0000 (20:24 +0000)]
* Makefile.in (DLL_OFILES): Add rexec.o.
* autoload.cc (inet_network): Drop definition.
(rexec): Ditto.
* net.cc (rexec): Drop extern declaration.
(inet_network): Ditto.
(cygwin_inet_network): Implement using inet_addr.
(cygwin_rexec): Remove.
* libc/rexec.cc: New file.

18 years ago * fhandler_socket.cc (fhandler_socket::listen): Allow listening on
Corinna Vinschen [Tue, 4 Jul 2006 20:10:43 +0000 (20:10 +0000)]
* fhandler_socket.cc (fhandler_socket::listen): Allow listening on
unbound INET socket.

18 years ago * fhandler.h (fhandler_socket::wait): Set default timeout to INFINITE.
Corinna Vinschen [Tue, 4 Jul 2006 09:26:49 +0000 (09:26 +0000)]
* fhandler.h (fhandler_socket::wait): Set default timeout to INFINITE.

18 years ago * mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.
Danny Smith [Mon, 3 Jul 2006 20:51:58 +0000 (20:51 +0000)]
* mingwex/Makefile.in: Add -I$(srcdir)/.. to INCLUDES.

18 years ago * autoload.cc (NtQueryEaFile): Define.
Corinna Vinschen [Mon, 3 Jul 2006 18:30:08 +0000 (18:30 +0000)]
* autoload.cc (NtQueryEaFile): Define.
(NtSetEaFile): Define.
* fhandler.cc (fhandler_base::open): Use appropriate open flags
in query case when allow_ntea is set.
* ntdll.h (struct _FILE_GET_EA_INFORMATION): Define.
(struct _FILE_FULL_EA_INFORMATION): Define.
(NtQueryEaFile): Declare.
(NtSetEaFile): Declare.
* ntea.cc (read_ea): Rename from NTReadEA and rewrite using
NtQueryEaFile.
(write_ea): Rename from NTWriteEA and rewrite using NtSetEaFile.
* path.cc (get_symlink_ea): Make static.  Add handle parameter to
accomodate new read_ea call.
(set_symlink_ea): Make static.  Add handle parameter to accomodate new
write_ea call.
(symlink_worker): Call set_symlink_ea while file is still open.
(symlink_info::check): Call get_symlink_ea after file has been opened.
* security.cc (get_file_attribute): Accomodate new read_ea call.
(set_file_attribute): Accomodate new write_ea call.
* security.h (read_ea): Change declaration accordingly.
(write_ea): Ditto.

18 years ago * Makefile.in: Build setmetamode.exe.
Corinna Vinschen [Mon, 3 Jul 2006 16:00:58 +0000 (16:00 +0000)]
* Makefile.in: Build setmetamode.exe.
* setmetamode.c: New file.

18 years ago * fhandler.h (class dev_console): Add `metabit' indicating the
Corinna Vinschen [Mon, 3 Jul 2006 15:29:10 +0000 (15:29 +0000)]
* fhandler.h (class dev_console): Add `metabit' indicating the
current meta key mode.
* fhandler_console.cc (fhandler_console::read): Set the top bit of
the character if metabit is true.
* fhandler_console.cc (fhandler_console::ioctl): Implement
KDGKBMETA and KDSKBMETA commands.
* fhandler_tty.cc (process_ioctl): Support KDSKBMETA.
(fhandler_tty_slave::ioctl): Send KDGKBMETA and KDSKBMETA to the
master.
* include/cygwin/kd.h: New file for the meta key mode.
* include/sys/kd.h: New file.

18 years ago * include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller
Corinna Vinschen [Mon, 3 Jul 2006 12:30:04 +0000 (12:30 +0000)]
* include/stdint.h (UINT8_C, UINT16_C): Unsigned types smaller
than int promote to signed int.

18 years ago * net.cc (cygwin_sendto): Define appropriate parameters using
Corinna Vinschen [Mon, 3 Jul 2006 11:31:56 +0000 (11:31 +0000)]
* net.cc (cygwin_sendto): Define appropriate parameters using
socklen_t type according to SUSv3.
(cygwin_recvfrom): Ditto.
(cygwin_setsockopt): Ditto.
(cygwin_getsockopt): Ditto.
(cygwin_connect): Ditto.
(cygwin_accept): Ditto.
(cygwin_bind): Ditto.
(cygwin_getsockname): Ditto.
(cygwin_getpeername): Ditto.
(cygwin_recv): Ditto.
(cygwin_send): Ditto.
* include/cygwin/socket.h (socklen_t): Typedef and define.
* include/sys/socket.h: Declare socket functions using socklen_t type.

18 years ago2006-07-03 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 3 Jul 2006 11:22:03 +0000 (11:22 +0000)]
2006-07-03  Paolo Bonzini  <bonzini@gnu.org>

* configure.in: Fix thinkos in previous check-in.
* configure: Regenerate.

18 years ago Add a real Changelog entry.
Danny Smith [Mon, 3 Jul 2006 10:49:42 +0000 (10:49 +0000)]
 Add a real Changelog entry.

18 years ago Support SSE float environment in fenv.h functions.
Danny Smith [Mon, 3 Jul 2006 10:32:58 +0000 (10:32 +0000)]
  Support SSE float environment in fenv.h functions.

* cpu_features.c: New file.
* cpu_features.h: New file.
* crt1.c: Include "cpu_features.h".
(__mingw_CRTStartup): Call cpu_features_init().
* Makefile.in (MING_OBJS): Add cpu_features.c.
(SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
* include/fenv,h ( fenv_t;): Append  __mxcsr field.
(__MXCSR_EXCEPT_FLAG_SHIFT): New define.
(__MXCSR_EXCEPT_MASK_SHIFT): New define.
(__MXCSR_ROUND_FLAG_SHIFT): New define.
* mingwex/feclearexcept.c: Include "cpu_features.h".
Handle SSE environment.
* mingwex/fegetenv.c: Likewise.
* mingwex/feholdexcept.c: Likewise.
* mingwex/fesetenv.c: Likewise.
* mingwex/fesetexceptflag.c: Likewise.
* mingwex/fesetround.c: Likewise.
* mingwex/fetestexcept.c: Likewise.
* mingwex/feupdateenv.c: Likewise.
* mingwex/fegetround.c: Add comment.

18 years ago2006-07-03 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 3 Jul 2006 09:26:24 +0000 (09:26 +0000)]
2006-07-03  Paolo Bonzini  <bonzini@gnu.org>

* configure.in: Fix thinko in previous check-in.
* configure: Regenerate.

18 years ago2006-07-03 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 3 Jul 2006 07:58:12 +0000 (07:58 +0000)]
2006-07-03  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc:

2007-07-03  Paolo Bonzini  <bonzini@gnu.org>

PR other/27063
* configure.in: Test subdir_requires and give an appropriate
error message.
* configure: Regenerate.

2006-06-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

PR target/27540
* configure.in: Only enable libgomp on IRIX 6.
* configure: Regenerate.

18 years ago* include/cygwin/version.h: Bump DLL minor version number to 21.
Christopher Faylor [Sun, 2 Jul 2006 16:22:59 +0000 (16:22 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 21.

18 years ago* m32c/crt0.S (done_inilist): Fix dwarf2 address sizes.
DJ Delorie [Fri, 30 Jun 2006 21:55:23 +0000 (21:55 +0000)]
* m32c/crt0.S (done_inilist): Fix dwarf2 address sizes.

18 years ago * net.cc (cygwin_sendto): Allow zero-sized packets.
Corinna Vinschen [Fri, 30 Jun 2006 11:04:13 +0000 (11:04 +0000)]
* net.cc (cygwin_sendto): Allow zero-sized packets.
(cygwin_sendmsg): Ditto.

18 years ago Revert patches from 2005-10-22 and 2006-06-14 to use event driven
Corinna Vinschen [Mon, 26 Jun 2006 12:12:11 +0000 (12:12 +0000)]
Revert patches from 2005-10-22 and 2006-06-14 to use event driven
accept and connect back to using select:
* fhandler.h (class fhandler_socket): Remove accept_mtx.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Drop
initializing accept_mtx.
(fhandler_socket::accept): Drop event handling.
(fhandler_socket.cc (fhandler_socket::connect): Ditto.
(fhandler_socket::dup): Drop accept_mtx handling.
(fhandler_socket::listen): Ditto.
(fhandler_socket::prepare): Ditto.
(fhandler_socket::release): Ditto.
(fhandler_socket::close): Ditto.
* net.cc (cygwin_accept): Revert to calling cygwin_select to
implement interuptible accept.
(cygwin_connect): Ditto for connect.

18 years ago2006-06-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Mon, 26 Jun 2006 01:41:48 +0000 (01:41 +0000)]
2006-06-25  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * Include/_mingw.h: Increment version to 3.10.
        * Makefile.in: Ditto.

18 years ago * mingwex/math/tgamma.c (SQTPI): Add braces.
Danny Smith [Mon, 26 Jun 2006 00:56:40 +0000 (00:56 +0000)]
* mingwex/math/tgamma.c (SQTPI): Add braces.

18 years ago * mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
Danny Smith [Mon, 26 Jun 2006 00:53:34 +0000 (00:53 +0000)]
* mingwex/wcrtomb.c (wcsrtombs): Fix src end-pointer thinko.
* mingwex/math/lgamma.c: (LOGPI) Avoid type punning.
(LS2PI): Likewise.
        * mingwex/math/sf_erf.c (erff): Initialize z.
        (erfcf): Likewise.
* mingwex/math/tgamma.c (SQTPI): Avoid type punning.

18 years agoChangelog formatting
Danny Smith [Sun, 25 Jun 2006 21:19:46 +0000 (21:19 +0000)]
Changelog formatting

18 years ago2006-06-23 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Fri, 23 Jun 2006 16:27:34 +0000 (16:27 +0000)]
2006-06-23  Shaun Jackman  <sjackman@gmail.com>

        * arm/elf-linux.specs: New file.

18 years ago* fhandler_fifo.cc (fhandler_fifo::open): Release process lock and grab a
Christopher Faylor [Fri, 23 Jun 2006 00:19:39 +0000 (00:19 +0000)]
* fhandler_fifo.cc (fhandler_fifo::open): Release process lock and grab a
system-wide mutex to prevent a deadlock and a race.
* sync.h (lock_process): Make fhandler_fifo a friend.
* smallprint.c (__small_vsprintf): Cosmetic change.

18 years ago * include/sys/time.h (struct timezone): Define.
Danny Smith [Thu, 22 Jun 2006 21:57:44 +0000 (21:57 +0000)]
* include/sys/time.h (struct timezone): Define.
* include/time.h (_timezone): Correct comment.

18 years ago2006-06-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 22 Jun 2006 17:59:52 +0000 (17:59 +0000)]
2006-06-22  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/Makefile.am: Add new gdtoa routines.
        * libc/stdlib/Makefile.in: Regenerated.
        * libc/stdlib/gd_qnan.h: New file.
        * libc/stdlib/gdtoa-gethex.c: Ditto.
        * libc/stdlib/gdtoa-hexnan.c: Ditto.
        * libc/stdlib/gdtoa.h: Ditto.
        * libc/stdlib/mprec.c: Add new helper routines needed by
        the new gdtoa code.
        * libc/stdlib/mprec.h: Integrate some defines and prototypes
        used by gdtoa routines here.
        * libc/stdlib/strtod.c: Rebased on David M. Gay's gdtoa-strtod.c
        which adds C99 support such as nan, inf, and hexadecimal input
        format.

18 years ago2006-06-20 David Ayers <d.ayers@inode.at>
David Ayers [Tue, 20 Jun 2006 08:45:35 +0000 (08:45 +0000)]
2006-06-20  David Ayers  <d.ayers@inode.at>

PR bootstrap/28072
* configure.in: Add target-boehm-gc to noconfigdirs depending on
whether target-libjava is being configured instead of whether the
java front end is enabled.
* configure: Regenerate.

18 years ago * configure.in (AC_CONFIG_AUX_DIR): Remove.
Danny Smith [Sun, 18 Jun 2006 23:06:56 +0000 (23:06 +0000)]
* configure.in (AC_CONFIG_AUX_DIR): Remove.
* configure: Regenerate.

18 years ago2006-06-18 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
Chris Sutcliffe [Sun, 18 Jun 2006 13:35:01 +0000 (13:35 +0000)]
2006-06-18  Chris Sutcliffe  <ir0n3h4d@users.sourceforge.net>

        * configure: add srcdir as a possible location for install-sh.

18 years ago * mingwex/dirent.c (_tGetFileAttributes): New helper function.
Danny Smith [Sun, 18 Jun 2006 08:43:34 +0000 (08:43 +0000)]
* mingwex/dirent.c (_tGetFileAttributes): New helper function.
(_topendir): Use it.

18 years ago * include/sys/time.h: Add header guard. Add extern "C" bracketing
Danny Smith [Sun, 18 Jun 2006 08:16:55 +0000 (08:16 +0000)]
* include/sys/time.h: Add header guard.  Add extern "C" bracketing
for __cplusplus.
(gettimeofday): Add prototype.
* mingwex/gettimeofday.c: New file.
* mingwex/makefile.in: Add gettimeofday source and object.

18 years ago * cygwin.din: Export __srget_r, __swbuf_r.
Corinna Vinschen [Thu, 15 Jun 2006 17:22:56 +0000 (17:22 +0000)]
* cygwin.din: Export __srget_r, __swbuf_r.
* include/cygwin/version.h: Bump API minor number to 156.

18 years ago2006-06-15 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston [Thu, 15 Jun 2006 16:08:09 +0000 (16:08 +0000)]
2006-06-15  Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/stdio.h (__sgetc_r): Fix typo.
        * libc/stdio/fread.c (_fread_r): Convert crlf calls to crlf_r.
        * libc/stdio/rget.c (__srbuf): Reinstantiate.
        * libc/stdio/wbuf.c (__swbuf): Ditto.

18 years ago * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2}
Mark Shinwell [Thu, 15 Jun 2006 11:03:01 +0000 (11:03 +0000)]
* include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2}
to R_ARM_LDC_SB_G{0,1,2} respectively.

bfd/
* bfd-in2.h: Regenerate.
* elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0,
R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2,
R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0,
R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0,
R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC,
R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1,
R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1,
R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1,
R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1,
R_ARM_LDC_SB_G2): New relocation types.
(R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and
adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1
and friends.
(elf32_arm_howto_table_3): Delete; contents merged into
elf32_arm_howto_table_2.
(elf32_arm_howto_from_type): Adjust correspondingly.
(elf32_arm_reloc_map): Extend with the above relocations.
(calculate_group_reloc_mask): New function.
(identify_add_or_sub): New function.
(elf32_arm_final_link_relocate): Support for the above
relocations.
* reloc.c: Add enumeration entries for BFD_RELOC_ARM_...
codes to correspond to the above relocations.

gas/
* config/tc-arm.c (enum parse_operand_result): New.
(struct group_reloc_table_entry): New.
(enum group_reloc_type): New.
(group_reloc_table): New array.
(find_group_reloc_table_entry): New function.
(parse_shifter_operand_group_reloc): New function.
(parse_address_main): New function, incorporating code
from the old parse_address function.  To be used via...
(parse_address): wrapper for parse_address_main; and
(parse_address_group_reloc): new function, likewise.
(enum operand_parse_code): New codes OP_SHG, OP_ADDRGLDR,
OP_ADDRGLDRS, OP_ADDRGLDC.
(parse_operands): Support for these new operand codes.
New macro po_misc_or_fail_no_backtrack.
(encode_arm_cp_address): Preserve group relocations.
(insns): Modify to use the above operand codes where group
relocations are permitted.
(md_apply_fix): Handle the group relocations
ALU_PC_G0_NC through LDC_SB_G2.
(tc_gen_reloc): Likewise.
(arm_force_relocation): Leave group relocations for the linker.
(arm_fix_adjustable): Likewise.

gas/testsuite/
* gas/arm/group-reloc-alu.d: New test.
* gas/arm/group-reloc-alu-encoding-bad.d: New test.
* gas/arm/group-reloc-alu-encoding-bad.l: New test.
* gas/arm/group-reloc-alu-encoding-bad.s: New test.
* gas/arm/group-reloc-alu-parsing-bad.d: New test.
* gas/arm/group-reloc-alu-parsing-bad.l: New test.
* gas/arm/group-reloc-alu-parsing-bad.s: New test.
* gas/arm/group-reloc-alu.s: New test.
* gas/arm/group-reloc-ldc.d: New test.
* gas/arm/group-reloc-ldc-encoding-bad.d: New test.
* gas/arm/group-reloc-ldc-encoding-bad.l: New test.
* gas/arm/group-reloc-ldc-encoding-bad.s: New test.
* gas/arm/group-reloc-ldc-parsing-bad.d: New test.
* gas/arm/group-reloc-ldc-parsing-bad.l: New test.
* gas/arm/group-reloc-ldc-parsing-bad.s: New test.
* gas/arm/group-reloc-ldc.s: New test.
* gas/arm/group-reloc-ldr.d: New test.
* gas/arm/group-reloc-ldr-encoding-bad.d: New test.
* gas/arm/group-reloc-ldr-encoding-bad.l: New test.
* gas/arm/group-reloc-ldr-encoding-bad.s: New test.
* gas/arm/group-reloc-ldr-parsing-bad.d: New test.
* gas/arm/group-reloc-ldr-parsing-bad.l: New test.
* gas/arm/group-reloc-ldr-parsing-bad.s: New test.
* gas/arm/group-reloc-ldr.s: New test.
* gas/arm/group-reloc-ldrs.d: New test.
* gas/arm/group-reloc-ldrs-encoding-bad.d: New test.
* gas/arm/group-reloc-ldrs-encoding-bad.l: New test.
* gas/arm/group-reloc-ldrs-encoding-bad.s: New test.
* gas/arm/group-reloc-ldrs-parsing-bad.d: New test.
* gas/arm/group-reloc-ldrs-parsing-bad.l: New test.
* gas/arm/group-reloc-ldrs-parsing-bad.s: New test.
* gas/arm/group-reloc-ldrs.s: New test.

ld/testsuite/
* ld-arm/group-relocs-alu-bad.d: New test.
* ld-arm/group-relocs-alu-bad.s: New test.
* ld-arm/group-relocs.d: New test.
* ld-arm/group-relocs-ldc-bad.d: New test.
* ld-arm/group-relocs-ldc-bad.s: New test.
* ld-arm/group-relocs-ldr-bad.d: New test.
* ld-arm/group-relocs-ldr-bad.s: New test.
* ld-arm/group-relocs-ldrs-bad.d: New test.
* ld-arm/group-relocs-ldrs-bad.s: New test.
* ld-arm/group-relocs.s: New test.
* ld-arm/arm-elf.exp: Wire in new tests.

18 years agoremove conflict indicators
Paolo Bonzini [Thu, 15 Jun 2006 06:25:49 +0000 (06:25 +0000)]
remove conflict indicators

18 years ago2006-06-15 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 15 Jun 2006 06:25:23 +0000 (06:25 +0000)]
2006-06-15  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Export CFLAGS and LDFLAGS
too.
* Makefile.in: Regenerate.

18 years ago2006-06-14 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 14 Jun 2006 20:49:11 +0000 (20:49 +0000)]
2006-06-14  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdio.h: Add new reentrant I/O prototypes for
        read/write functions.  Change getc/putc macros to have reentrant underlying
        macros/functions.  This includes __sgetc_raw_r, __sgetc_r, and __sputc_r.
        * libc/stdio/fgetc.c: Fix and/or add reentrant version to call
        new reentrant I/O functions/macros for reading/writing.
        * libc/stdio/fgets.c: Ditto.
        * libc/stdio/fputc.c: Ditto.
        * libc/stdio/fputs.c: Ditto.
        * libc/stdio/fread.c: Ditto.
        * libc/stdio/fseek.c: Ditto.
        * libc/stdio64/fseeko64.c: Ditto.
        * libc/stdio/fwrite.c: Ditto.
        * libc/stdio/getc.c: Ditto.
        * libc/stdio/getc_u.c: Ditto.
        * libc/stdio/getchar.c: Ditto.
        * libc/stdio/getchar_u.c: Ditto.
        * libc/stdio/putc.c: Ditto.
        * libc/stdio/putc_u.c: Ditto.
        * libc/stdio/putchar.c: Ditto.
        * libc/stdio/puts.c: Ditto.
        * libc/stdio/vfprintf.c: Ditto.
        * libc/stdio/vfscanf.c: Ditto.
        * libc/stdio/fvwrite.c: Change __sfvwrite into reentrant __sfvwrite_r.
        Change all previous callers of __sfvwrite.  Set errno to EBADF and
        set error flag on if attempt is made to write to file that does not
        allow writing.
        * libc/stdio/fvwrite.h: Fix new reentrant prototypes.
        * libc/stdio/local.h: Ditto.
        * libc/stdio/refill.c: Turn __srefill into reentrant __srefill_r.
        Set errno to EBADF and the error flag on if attempt is made to
        read unreadable file.  Change all previous callers of __srefill.
        * libc/stdio/rget.c
        * libc/stdio/wbuf.c: Turn __swbuf into reentrant __swbuf_r.  Change
        all previous callers of __swbuf.
        * libc/sys/linux/machine/i386/huge_val.h: Ifdef out file contents since
        huge value macros are already defined correctly for i386 by <math.h>.

18 years ago * fhandler.h (class fhandler_socket): Add private mutex handle
Corinna Vinschen [Wed, 14 Jun 2006 20:19:10 +0000 (20:19 +0000)]
* fhandler.h (class fhandler_socket): Add private mutex handle
accept_mtx.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize
accept_mtx to NULL.
(fhandler_socket::dup): Duplicate accept_mtx, if available.
(fhandler_socket::listen): Create accept_mtx before trying to listen.
(fhandler_socket::prepare): Wait for accept_mtx if available to
serialize accepts on the same socket.
(fhandler_socket::release): Release accept_mtx.
(fhandler_socket::close): Close accept_mtx on successful closesocket.

This page took 0.084818 seconds and 5 git commands to generate.