]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
19 years ago * fhandler_socket.cc (get_inet_addr): Add type parameter to return
Corinna Vinschen [Wed, 6 Apr 2005 18:50:13 +0000 (18:50 +0000)]
* fhandler_socket.cc (get_inet_addr): Add type parameter to return
unix socket type.  Read socket type from unix socket file.
(fhandler_socket::bind): Write socket type to unix socket file.
(fhandler_socket::connect): Return with errno EPROTOTYPE if
socket type of socket doesn't match socket type of unix socket
trying to connect to.

19 years ago * security.h (cygsidlist::addfromgr): Avoid duplicate entries.
Corinna Vinschen [Wed, 6 Apr 2005 12:35:52 +0000 (12:35 +0000)]
* security.h (cygsidlist::addfromgr): Avoid duplicate entries.
* grp.cc (initgrousp): Add syscall_printf.
(setgroups): Add syscall_printf and make sure sids are added only once.

19 years ago * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
Corinna Vinschen [Wed, 6 Apr 2005 11:11:07 +0000 (11:11 +0000)]
* bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
* bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
(mtx_init): Initialize lock counter to 0.
(_mtx_lock): Increment and log mutex lock counter.
(mtx_owned): Add winpid argument. Return true only if mutex is
actually owned by process winpid.
(_mtx_assert): Add winpid argument accordingly.
(_mtx_unlock): Log owner and lock count.
(MSLEEP_MUTEX): Remove.
(MSLEEP_SEM): Ditto.
(MSLEEP_EVENT): Ditto.
(msleep_event_name): Ditto.
(msleep_cs): New global critical section.
(msleep_cnt): New global variable indicating msleep record usage.
(msleep_max_cnt): New global variable indicating msleep record size.
(msleep_arr): New global pointer to msleep records.
(msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
(_msleep): Rewrite using new msleep_cs/msleep_arr based thread
synchronization. Don't be shy with debug output.
(wakeup): Rewrite using new msleep_cs/msleep_arr based thread
synchronization.
* bsd_mutex.h (struct mtx): Add lock counter for better debugging.
(mtx_owned): Declare with winpid argument.
(_mtx_assert): Ditto.
(mtx_assert): Define with winpid argument.
* cygserver.cc (version): Remove.
(SERVER_VERSION): New define, decoupling server version information
from source code control system.
(print_version): Simplify printing server version.
* process.cc (process::process): Fix wrong bracketing (and handle leak).
(process::~process): Only try to close _signal_arrived if valid.
* sysv_sem.cc: Include sys/smallprint.h.
(semundo_clear): Define with additional struct thread pointer argument.
Accomodate throughout.
(SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
throughout.
(struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
throughout.
(seminit): Improve debugging by adding the semid to the mutex name.
(semget): Correctly print key value as 64 bit hex value in debug
output.
(semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
by exiting process.  Keep semaphore global lock throughout whole
function to avoid races.
* sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
Giant is locked.

19 years ago2005-04-06 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 6 Apr 2005 06:23:22 +0000 (06:23 +0000)]
2005-04-06  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
(TARGET_CONFIGARGS): Include --with-target-subdir.
(configure, all): New macros.  Use them throughout.

19 years ago* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
Christopher Faylor [Wed, 6 Apr 2005 05:48:55 +0000 (05:48 +0000)]
* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
rather than assuming that tls buffer is valid.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto.

19 years ago2005-04-05 Dave Korn <dave.korn@artimi.com>
Jeff Johnston [Tue, 5 Apr 2005 18:38:09 +0000 (18:38 +0000)]
2005-04-05  Dave Korn  <dave.korn@artimi.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.

19 years ago* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
Christopher Faylor [Tue, 5 Apr 2005 17:13:35 +0000 (17:13 +0000)]
* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
in a "non-standard" way.

19 years ago2005-04-05 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 5 Apr 2005 08:16:33 +0000 (08:16 +0000)]
2005-04-05  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl: Sync with gcc.
* Makefile.in: Regenerate.

19 years ago* sync.h (muto::initforce): Delete flawed implementation.
Christopher Faylor [Tue, 5 Apr 2005 06:04:57 +0000 (06:04 +0000)]
* sync.h (muto::initforce): Delete flawed implementation.
* pwdgrp.h (pwdgrp::pglock): Make static.
* grp.cc (pwdgrp::pwdgrp): Eliminate use of initforce.

19 years ago* sync.h (muto::initforce): Force initialization even when name != NULL.
Christopher Faylor [Tue, 5 Apr 2005 04:48:02 +0000 (04:48 +0000)]
* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is
!NO_COPY.

19 years ago* sync.h (muto::operator int): New operator.
Christopher Faylor [Tue, 5 Apr 2005 04:31:00 +0000 (04:31 +0000)]
* sync.h (muto::operator int): New operator.
(locker): Remove unused class.
(new_muto): Delete.
(new_muto1): Ditto.
(new_muto_name): Ditto.
* cygheap.cc (cygheap_setup_for_child): Reflect use of static storage for muto
rather than pointer.
(_csbrk): Ditto.
(_cmalloc): Ditto.
(_cmalloc): Ditto.
(_cfree): Ditto.
* cygheap.h (cwdstuff::cwd_lock): Ditto.
(cwdstuff::get_drive): Ditto.
* cygmalloc.h (__malloc_lock): Ditto.
(__malloc_unlock): Ditto.
* cygtls.cc (sentry::lock): Ditto.
(sentry::sentry): Ditto.
(~sentry): Ditto.
(_cygtls::init): Ditto.
* dcrt0.cc: Ditto.
(cygwin_atexit): Ditto.
(cygwin_exit): Ditto.
* debug.cc (lock_debug::locker): Ditto.
(lock_debug::lock_debug): Ditto.
(lock_debug::unlock): Ditto.
(debug_init): Ditto.
* dtable.cc (dtable::init_lock): Ditto.
* dtable.h (dtable::lock_cs): Ditto.
(dtable::lock): Ditto.
(dtable::unlock): Ditto.
* exceptions.cc (mask_sync): Ditto.
(sighold): Ditto.
(set_process_mask_delta): Ditto.
(set_signal_mask): Ditto.
(events_init): Ditto.
* grp.cc (pwdgrp::pwdgrp): Ditto.
* malloc_wrapper.cc (mallock): Ditto.
(malloc_init): Ditto.
* path.cc (cwdstuff::cwd_lock): Ditto.
(cwdstuff::get_hash): Ditto.
(cwdstuff::get_hash): Ditto.
(cwdstuff::init): Ditto.
(cwdstuff::set): Ditto.
(cwdstuff::get): Ditto.
* pwdgrp.h (pwdgrp::pglock): Ditto.
(pwdgrp::refresh): Ditto.
* sigproc.cc (sync_proc_subproc): Ditto.
(get_proc_lock): Ditto.
(proc_subproc): Ditto.
(_cygtls::remove_wq): Ditto.
(proc_terminate): Ditto.
(sigproc_init): Ditto.
* timer.cc (lock_timer_tracker::protect): Ditto.
(lock_timer_tracker::lock_timer_tracker): Ditto.
(lock_timer_tracker::~lock_timer_tracker): Ditto.
* wininfo.cc (wininfo::_lock;): Ditto.
(wininfo::winthread): Ditto.
(operator HWND): Ditto.
(wininfo::lock): Ditto.
(wininfo::release): Ditto.
* wininfo.h (wininfo::_lock;): Ditto.

19 years ago* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
Christopher Faylor [Mon, 4 Apr 2005 16:07:36 +0000 (16:07 +0000)]
* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
component.

19 years agoFix typo.
Andreas Schwab [Mon, 4 Apr 2005 16:06:26 +0000 (16:06 +0000)]
Fix typo.

19 years ago * dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.
Corinna Vinschen [Mon, 4 Apr 2005 10:26:35 +0000 (10:26 +0000)]
* dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.

* fhandler.h (enum change_state): Add.
(fhandler_base::status): Add a bit to has_changed flag.
(fhandler_base::has_changed): Implement with type change_state.
* fhandler.cc (fhandler_base::raw_write): Accomodate type change
of has_changed.
* fhandler_disk_file.cc )fhandler_disk_file::touch_ctime): Also
touch modification time if has_changed == data_changed.
(fhandler_disk_file::fchmod): Also open on 9x, otherwise we can't
touch ctime.  Accomodate type change of has_changed.
(fhandler_disk_file::fchown): Accomodate type change of has_changed.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::ftruncate): Ditto.
(fhandler_disk_file::link): Ditto.
(fhandler_base::open_fs): Ditto.

19 years ago * include/winnt.h (SE_UNDOCK_NAME TEXT): Define.
Corinna Vinschen [Sun, 3 Apr 2005 17:47:37 +0000 (17:47 +0000)]
* include/winnt.h (SE_UNDOCK_NAME TEXT): Define.
(SE_MANAGE_VOLUME_NAME TEXT): Ditto.
(SE_IMPERSONATE_NAME TEXT): Ditto.
(SE_ENABLE_DELEGATION_NAME TEXT): Ditto.
(SE_SYNC_AGENT_NAME TEXT): Ditto.

19 years ago * cygheap.cc (cygheap_init): Accomodate set_process_privilege change.
Corinna Vinschen [Sun, 3 Apr 2005 13:06:43 +0000 (13:06 +0000)]
* cygheap.cc (cygheap_init): Accomodate set_process_privilege change.
* cygheap.h (cygheap_user::curr_primary_token): New member.
(cygheap_user::primary_token): New method.
(cygheap_user::deimpersonate): Always revert to processes'
impersonation token.
(cygheap_user::reimpersonate): Set processes' or setuid token as
necessary.
(cygheap_user::has_impersonation_tokens): Look for curr_primary_token
value.
(cygheap_user::close_impersonation_tokens): Close curr_primary_token
here if necessary.  Don't reset token values to NO_IMPERSONATION since
that's done in uinfo_init anyway.
(init_cygheap::luid): New LUID array keeping privilege LUIDs.
* cygtls.cc (_cygtls::init_thread): Call cygheap->user.reimpersonate.
* dcrt0.cc (hProcToken): New global variable to keep process token.
(hProcImpToken): Ditto for process impersonation token.
(dll_crt0_0): Open process token here once.  Duplicate to create
hProcImpToken.
(dll_crt0_1): Call set_cygwin_privileges.
* environ.cc (allow_ntea): Drop duplicate declaration.
(allow_smbntsec): Ditto.
(set_traverse): Only set allow_traverse here.
(environ_init): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Drop call to
enable_restore_privilege.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
* fork.cc (fork_child): Move call to cygheap->user.reimpersonate after
syn with parent. Call set_cygwin_privileges.
* grp.cc (internal_getgroups): Use hProcImpToken instead of opening
process token.
* path.cc (fs_info::update): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges.
* registry.cc (load_registry_hive): Drop setting restore privilege
since it's already set if available.
* sec_helper.cc: Include cygtls.h.
(cygpriv): Privilege string array.
(privilege_luid): New function, evaluate LUID from cygpriv_idx.
(privilege_luid_by_name): New function, evaluate LUID from privilege
string.
(privilege_name): New function, evaluate privilege string from
cygpriv_idx.
(set_privilege): New static function called by set_process_privilege
and set_thread_privilege.  Call privilege_luid to get privilege LUID.
Fix bug in return value evaluation. Improve debug output.
(set_cygwin_privileges): New function.
(set_process_privilege): Remove.
(enable_restore_privilege): Remove.
* security.cc (allow_traverse): New global variable.
(sys_privs): Change type to cygpriv_idx and store privilege indices
instead of strings.
(SYSTEM_PRIVILEGES_COUNT): Renamed from SYSTEM_PERMISSION_COUNT.
(get_system_priv_list): Don't use numerical constant in malloc call.
Use privilege_luid to get privilege LUIDs.
(get_priv_list): Call privilege_luid_by_name to get LUIDs. Improve
inner privilege LUID comparison loop.
(create_token): Enable create token privilege using
push/pop_self_privileges. Use hProcToken instead of opening process
token. Use default DACL when duplicating token.
(subauth): Enable tcb privilege using push/pop_self_privileges.
Use sec_none instead of homw made security attributes when duplicating
token.
(check_file_access): Don't duplicate access token, use active
impersonation token as is.
* security.h (enum cygpriv_idx): New enumeration type enumerating
possible privileges.
(privilege_luid): Declare new function.
(privilege_luid_by_name): Ditto.
(privilege_name): Ditto.
(allow_traverse): Declare.
(set_privilege): Declare function.
(set_process_privilege): Define as macro.
(enable_restore_privilege): Remove declaration.
(_push_thread_privilege): Define macro.
(push_thread_privilege): Ditto.
(pop_thread_privilege): Ditto.
(pop_self_privilege): Ditto.
* spawn.cc (spawn_guts): Use cygheap->user.primary_token instead of
cygheap->user.token.
* syscalls.cc (statvfs): Bypass traverse checking when retrieving
volume information using push/pop_thread_privileges. Rearrange code
to simplify push/pop bracketing.
(seteuid32): Use hProcToken instead of opening process token. Call
cygheap->user.deimpersonate instead of RevertToSelf.  Create
impersonation token from primary internal or external token.  Set
cygheap->user.curr_primary_token and cygheap->user.current_token
privileges once here.  Drop "failed" and "failed_ptok" labels.
Drop setting DefaultDacl of process token.
(setegid32): Use hProcToken and hProcImpToken instead of opening
process token. Always reimpersonate afterwards.
* uinfo.cc (cygheap_user::init): Use hProcToken instead of opening
process token.
(internal_getlogin): Ditto. Set hProcImpToken, too.
(uinfo_init): Initialize cygheap->user.curr_primary_token.
* winsup.h (hProcToken): Declare.
(hProcImpToken): Declare.

19 years ago Unify usage of CYG_MAX_PATH throughout. Change buffers from
Corinna Vinschen [Sun, 3 Apr 2005 08:45:21 +0000 (08:45 +0000)]
Unify usage of CYG_MAX_PATH throughout.  Change buffers from
size CYG_MAX_PATH + 1 to CYG_MAX_PATH.  Change length tests
accordingly.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 15.
Christopher Faylor [Sat, 2 Apr 2005 21:22:52 +0000 (21:22 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 15.

19 years ago * fork.cc (fork_child): Add missing __stdcall.
Corinna Vinschen [Fri, 1 Apr 2005 16:52:48 +0000 (16:52 +0000)]
* fork.cc (fork_child): Add missing __stdcall.

19 years agoinclude/opcode/
Jan Beulich [Fri, 1 Apr 2005 16:03:39 +0000 (16:03 +0000)]
include/opcode/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* i386.h (i386_optab): Add rdtscp.

opcodes/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for
easier future additions.

19 years ago * bsd_mutex.cc (_msleep): Whitespace fix.
Corinna Vinschen [Fri, 1 Apr 2005 15:35:47 +0000 (15:35 +0000)]
* bsd_mutex.cc (_msleep): Whitespace fix.
* process.cc (process::process): Handle invalid signal_arrived values
more gracefully.

19 years ago* sigproc.cc (create_signal_arrive): New (temporary?) function to create
Christopher Faylor [Fri, 1 Apr 2005 15:27:52 +0000 (15:27 +0000)]
* sigproc.cc (create_signal_arrive): New (temporary?) function to create
signal_arrived event.
(sigproc_init): Use create_signal_arrived.
* fork.cc (fork_child): Create signal_arrived early.

19 years ago * fork.cc (fork_child): Fixup SYSV IPC shared memory before fixing
Corinna Vinschen [Fri, 1 Apr 2005 11:47:00 +0000 (11:47 +0000)]
* fork.cc (fork_child): Fixup SYSV IPC shared memory before fixing
up fdtab.

19 years ago * libc/stdlib/strtod.c (_strtod_r): Never change s00.
Corinna Vinschen [Fri, 1 Apr 2005 09:54:19 +0000 (09:54 +0000)]
* libc/stdlib/strtod.c (_strtod_r): Never change s00.

19 years ago * gentls_offsets: Add '-m32' flag to native compiler call to satisfy
Corinna Vinschen [Thu, 31 Mar 2005 15:53:57 +0000 (15:53 +0000)]
* gentls_offsets: Add '-m32' flag to native compiler call to satisfy
cross platform builds.

19 years agoforce checkin
Christopher Faylor [Thu, 31 Mar 2005 15:37:12 +0000 (15:37 +0000)]
force checkin

19 years ago * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.
Danny Smith [Thu, 31 Mar 2005 10:00:26 +0000 (10:00 +0000)]
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Define.

19 years ago * errno.cc (NO_SYSTEM_RESOURCES): Map to EAGAIN.
Corinna Vinschen [Wed, 30 Mar 2005 22:07:20 +0000 (22:07 +0000)]
* errno.cc (NO_SYSTEM_RESOURCES): Map to EAGAIN.
(NONPAGED_SYSTEM_RESOURCES): Ditto.
(PAGED_SYSTEM_RESOURCES): Ditto.
(WORKING_SET_QUOTA): Ditto.
(PAGEFILE_QUOTA): Ditto.
(COMMITMENT_LIMIT): Ditto.

19 years ago* environ.cc (spenvs): Re-force SYSTEMROOT to always be included in
Christopher Faylor [Wed, 30 Mar 2005 22:06:32 +0000 (22:06 +0000)]
* environ.cc (spenvs): Re-force SYSTEMROOT to always be included in
environment.
(build_env): Ditto.

19 years ago* environ.cc (spenv::retrieve): Revert most of previous change.
Christopher Faylor [Wed, 30 Mar 2005 21:35:31 +0000 (21:35 +0000)]
* environ.cc (spenv::retrieve): Revert most of previous change.
(build_env): Ditto.  Rework to track environment variables which need to always
be in the windows environment in a separate array.

19 years ago * path.cc (symlink_info::case_check): Ignore trailing characters
Corinna Vinschen [Wed, 30 Mar 2005 20:01:43 +0000 (20:01 +0000)]
* path.cc (symlink_info::case_check): Ignore trailing characters
in paths when comparing case.

19 years agofix typo
Christopher Faylor [Wed, 30 Mar 2005 19:43:36 +0000 (19:43 +0000)]
fix typo

19 years ago * config/mh-mingw32: Delete.
Joern Rennecke [Wed, 30 Mar 2005 18:36:33 +0000 (18:36 +0000)]
* config/mh-mingw32: Delete.
* configure.in: Don't use it.
* configure: Regenerate.

19 years ago* how-using.texinfo: Add more words to the "multiple DLL" section.
Christopher Faylor [Wed, 30 Mar 2005 17:02:00 +0000 (17:02 +0000)]
* how-using.texinfo: Add more words to the "multiple DLL" section.

19 years ago* environ.h (win_env::immediate): Declare new field.
Christopher Faylor [Wed, 30 Mar 2005 15:54:28 +0000 (15:54 +0000)]
* environ.h (win_env::immediate): Declare new field.
(win_env::operator = ): Declare new operator.
(win_env::reset): Declare new function.
(win_env::~win_env): Declare new destructor.
(getwinenv): Add optional third argument to declaration.
* environ.cc (conv_envvars): Accommodate immediate field.
(win_env::operator =): Define new operator.
(win_env::~win_env): Define new destructor.
(win_env::add_cache): Add value to environment immediately if "immediate" is
set.
(getwinenv): Accept optional third argument which will be used to store
"cached" values to avoid overwriting real cache.
(spenv::force): Declare new field.
(spenvs): Accommodate force field.  Add "PATH=" with force set to true.
(spenv::retrieve): Avoid duping anything if we're not building an envblock.
(build_env): Ditto.  Use size of potentially constructed new environment block
to determine if we need to create an environment block.  Pass getwinenv
temporary storage to avoid inappropriately overwriting the environment cache.

19 years ago2005-02-28 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 30 Mar 2005 08:39:18 +0000 (08:39 +0000)]
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def (bfd, opcodes, libstdc++-v3, libmudflap): Set lib_path.
* Makefile.tpl (SET_LIB_PATH, REALLY_SET_LIB_PATH): Remove.
(HOST_EXPORTS, STAGE_HOST_EXPORTS, TARGET_EXPORTS): Set $(RPATH_ENVVAR).
(HOST_LIB_PATH): Generate from Makefile.def.
(TARGET_LIB_PATH): Likewise.
(Old bootstrap targets): Include TARGET_LIB_PATH into RPATH_ENVVAR.
* Makefile.in: Regenerate.
* configure.in (set_lib_path, SET_LIB_PATH, SET_GCC_LIB_PATH): Remove.
(RPATH_ENVVAR): Include Darwin case.
* configure: Regenerate.

config:
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

* config/gcc-lib-path.m4: Remove.

19 years agomerge from gcc
DJ Delorie [Tue, 29 Mar 2005 19:32:15 +0000 (19:32 +0000)]
merge from gcc

19 years agogas/testsuite/
H.J. Lu [Tue, 29 Mar 2005 19:30:46 +0000 (19:30 +0000)]
gas/testsuite/

2005-03-29  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run segment and inval-seg for i386. Run
x86-64-segment and x86-64-inval-seg for x86-64.

* gas/i386/intel.d: Expect movw for moving between memory and
segment register.
* gas/i386/naked.d: Likewise.
* gas/i386/opcode.d: Likewise.
* gas/i386/x86-64-opcode.d: Likewise.

* gas/i386/opcode.s: Use movw for moving between memory and
segment register.
* gas/i386/x86-64-opcode.s: Likewise.

* : Likewise.

* gas/i386/inval-seg.l: New.
* gas/i386/inval-seg.s: New.
* gas/i386/segment.l: New.
* gas/i386/segment.s: New.
* gas/i386/x86-64-inval-seg.l: New.
* gas/i386/x86-64-inval-seg.s: New.
* gas/i386/x86-64-segment.l: New.
* gas/i386/x86-64-segment.s: New.

include/opcode/

2005-03-29  H.J. Lu  <hongjiu.lu@intel.com>

* i386.h (i386_optab): Don't allow the `l' suffix for moving
moving between memory and segment register. Allow movq for
moving between general-purpose register and segment register.

opcodes/

2005-03-29  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (SEG_Fixup): New.
(Sv): New.
(dis386): Use "Sv" for 0x8c and 0x8e.

19 years ago * include/limits.h (NAME_MAX): New define.
Corinna Vinschen [Tue, 29 Mar 2005 17:46:17 +0000 (17:46 +0000)]
* include/limits.h (NAME_MAX): New define.
(PATH_MAX): POSIX allows PATH_MAX to include trailing NUL.

19 years ago * path.cc (is_floppy): Make externally available.
Corinna Vinschen [Tue, 29 Mar 2005 17:42:50 +0000 (17:42 +0000)]
* path.cc (is_floppy): Make externally available.
* path.h (is_floppy): Declare.
* syscalls.cc (sync): Check for floppies on A: and B: in guid case.
Don't call setmntent in non-guid case but evaluate drive bit mask
locally.

19 years agobfd/
Daniel Jacobowitz [Tue, 29 Mar 2005 16:54:22 +0000 (16:54 +0000)]
bfd/
* bfd-in2.h, libbfd.h: Regenerated.
* reloc.c: Add ARM TLS relocations.
* elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
relocations.
(elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
(elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
(elf32_arm_tls_ie32_howto): New.
(elf32_arm_howto_from_type): Support TLS relocations.
(elf32_arm_reloc_map): Likewise.
(elf32_arm_reloc_type_lookup): Likewise.
(TCB_SIZE): Define.
(struct elf32_arm_obj_tdata): New.
(elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
(elf32_arm_mkobject): New function.
(struct elf32_arm_relocs_copied): Add pc_count.
(elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
(GOT_TLS_IE): Define.
(struct elf32_arm_link_hash_table): Add tls_ldm_got.
(elf32_arm_link_hash_newfunc): Initialize tls_type.
(elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
(elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
(dtpoff_base, tpoff): New functions.
(elf32_arm_final_link_relocate): Handle TLS relocations.
(IS_ARM_TLS_RELOC): Define.
(elf32_arm_relocate_section): Warn about TLS mismatches.
(elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
(elf32_arm_check_relocs): Detect invalid symbol indexes.  Handle
TLS relocations and pc_count.
(elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
(allocate_dynrelocs): Handle TLS.  Bind REL32 relocs to local
calls.
(elf32_arm_size_dynamic_sections): Handle TLS.
(elf32_arm_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject): Define.
gas/
* config/tc-arm.c (arm_parse_reloc): Add TLS relocations.
(md_apply_fix3): Mark TLS symbols.
(tc_gen_reloc): Handle TLS relocations.
(arm_fix_adjustable): Ignore TLS relocations.
(s_arm_elf_cons): Support expressions after decorated symbols.
gas/testuite/
* gas/arm/tls.s, gas/arm/tls.d: New files.
* gas/arm/arm.exp: Run TLS test.
include/elf/
* arm.h: Add TLS relocations.
ld/testsuite/
* ld-arm/tls-lib.s, ld-arm/tls-lib.d, ld-arm/tls-lib.r,
ld-arm/tls-app.s, ld-arm/tls-app.d, ld-arm/tls-app.r: New files.
* ld-arm/arm-lib.ld, ld-arm/arm-dyn.ld: Increase data segment
alignment.
* ld-arm/arm-elf.exp: Run TLS tests.

19 years ago * fhandler_process.cc: Re-add exename.
Corinna Vinschen [Tue, 29 Mar 2005 09:10:59 +0000 (09:10 +0000)]
* fhandler_process.cc: Re-add exename.

19 years agolibiberty:
Ian Lance Taylor [Tue, 29 Mar 2005 02:15:24 +0000 (02:15 +0000)]
libiberty:
* pex-common.c: New file.
* pex-one.c: New file.
* pexecute.c: New file.
* pex-common.h: Include <stdio.h>.
(struct pex_obj): Define.
(struct pex_funcs): Define.
(pex_init_common): Declare.
* pex-unix.c: Rewrite.
* pex-win32.c: Rewrite.
* pex-djgpp.c: Rewrite.
* pex-msdos.c: Rewrite.
* testsuite/text-pexecute.c: New file.
* pexecute.txh: Rewrite.
* configure.ac: Check for wait3 and wait4.  Set CHECK to
really-check rather than check-cplus-dem.
* functions.texi: Rebuild.
* Makefile.in: Rebuild dependencies.
(CFILES): Add pexecute.c, pex-common.c, pex-one.c.
(REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
* testsuite/Makefile.in (really-check): New target.
(check-pexecute, test-pexecute): New targets.
* configure: Rebuild.
include:
* libiberty.h: Include <stdio.h>.
(PEX_RECORD_TIMES, PEX_USE_PIPES, PEX_SAVE_TEMPS): Define.
(PEX_LAST, PEX_SEARCH, PEX_SUFFIX, PEX_STDERR_TO_STDOUT): Define.
(PEX_BINARY_INPUT, PEX_BINARY_OUTPUT): Define.
(pex_init, pex_run, pex_read_output): Declare.
(pex_get_status, pex_get_times, pex_free, pex_one): Declare.
(struct pex_time): Define.

19 years ago * libiberty.h (ffs): Declare, if necessary.
Mark Mitchell [Tue, 29 Mar 2005 01:12:11 +0000 (01:12 +0000)]
* libiberty.h (ffs): Declare, if necessary.

19 years ago* include/ctype.h: Accommodate building in newlib.
Christopher Faylor [Mon, 28 Mar 2005 21:58:23 +0000 (21:58 +0000)]
* include/ctype.h: Accommodate building in newlib.

19 years ago* timer.cc (getitimer): Check that ovalue is a valid pointer, not just NULL.
Christopher Faylor [Mon, 28 Mar 2005 21:51:55 +0000 (21:51 +0000)]
* timer.cc (getitimer): Check that ovalue is a valid pointer, not just NULL.

19 years ago* timer.cc (timer_tracker::settime): Set times to zero when just cancelling a
Christopher Faylor [Mon, 28 Mar 2005 19:55:59 +0000 (19:55 +0000)]
* timer.cc (timer_tracker::settime): Set times to zero when just cancelling a
timer.

19 years ago* cygthread.cc (cygthread::detach): Revert to just waiting for thred event
Christopher Faylor [Mon, 28 Mar 2005 19:31:23 +0000 (19:31 +0000)]
* cygthread.cc (cygthread::detach): Revert to just waiting for thred event
since waiting for anything else is racy.
* timer.cc (timer_tracker::hcancel): Rename from cancel.
(timer_tracker::cancel): New method.
(timer_tracker::th): Remove.
(timer_tracker::~timer_tracker): Call cancel method.
(timer_tracker::timer_tracker): Ditto.
(timer_tracker::timer_tracker): Always, clear cancel, even though it is
probably not strictly necessary for ttstart.
(timer_thread): Accommodate cancel -> hcancel rename.
(timer_tracker::settime): Ditto.
(timer_tracker::gettime): Ditto.
(timer_delete): Ditto.
* cygwin.din: Export _ctype_.
* include/ctype.h: Mark that _ctype_ is imported.

19 years ago* timer.cc (timer_tracker::timer_tracker): Eliminate simple constructor.
Christopher Faylor [Mon, 28 Mar 2005 18:06:49 +0000 (18:06 +0000)]
* timer.cc (timer_tracker::timer_tracker): Eliminate simple constructor.
(ttstart): Fully initialize.
* errno.cc: Fix typo introduced in previous change.

19 years agomerge from gcc
DJ Delorie [Mon, 28 Mar 2005 17:14:24 +0000 (17:14 +0000)]
merge from gcc

19 years ago* errno.cc (FILENAME_EXCED_RANGE): Map to ENAMETOOLONG.
Christopher Faylor [Mon, 28 Mar 2005 16:57:13 +0000 (16:57 +0000)]
* errno.cc (FILENAME_EXCED_RANGE): Map to ENAMETOOLONG.

19 years agomerge from gcc
DJ Delorie [Mon, 28 Mar 2005 05:07:01 +0000 (05:07 +0000)]
merge from gcc

19 years agomerge from gcc
DJ Delorie [Mon, 28 Mar 2005 02:08:50 +0000 (02:08 +0000)]
merge from gcc

19 years agoupdate copyright
Christopher Faylor [Mon, 28 Mar 2005 00:09:08 +0000 (00:09 +0000)]
update copyright

19 years ago* signal.cc (nanosleep): Revert tv_sec < 0 check as it is fixed properly in the
Christopher Faylor [Sun, 27 Mar 2005 23:38:28 +0000 (23:38 +0000)]
* signal.cc (nanosleep): Revert tv_sec < 0 check as it is fixed properly in the
below change to hires.h.

19 years ago* times.cc (hires_ms::usecs): Compare the difference.
Christopher Faylor [Sun, 27 Mar 2005 23:33:30 +0000 (23:33 +0000)]
* times.cc (hires_ms::usecs): Compare the difference.
* hires.h: Add parentheses to HIRES_DELAY_MAX.

19 years agomerge from gcc
DJ Delorie [Sun, 27 Mar 2005 05:28:29 +0000 (05:28 +0000)]
merge from gcc

19 years ago* timer.cc (nanosleep): Treat tv_sec < 0 as invalid.
Christopher Faylor [Sun, 27 Mar 2005 02:31:33 +0000 (02:31 +0000)]
* timer.cc (nanosleep): Treat tv_sec < 0 as invalid.
* include/search.h: Make declarations consistent with newlib.

19 years ago* wininfo.h (wininfo::timer_active): Delete.
Christopher Faylor [Sun, 27 Mar 2005 01:57:38 +0000 (01:57 +0000)]
* wininfo.h (wininfo::timer_active): Delete.
(wininfo::itv): Ditto.
(wininfo::start_time): Ditto.
(wininfo::window_started): Ditto.
(wininfo::getitimer): Ditto.
(wininfo::setitimer): Ditto.
(wininfo::wininfo): Ditto.
(wininfo::lock): New method.
(wininfo::release): Ditto.
* window.cc: Use new lock/acquire wininfo methods throughout.
(wininfo::wininfo): Delete
(wininfo::getitimer): Ditto.
(wininfo::setitimer): Ditto.
(getitimer): Ditto.
(setitimer): Ditto.
(ualarm): Ditto.
(alarm): Ditto.
(wininfo::lock): Define new function.
(wininfo::release): Ditto.
(wininfo::process): Delete WM_TIMER handling.
* timer.cc (struct timetracker): Delete it, flags.  Add it_interval,
interval_us, sleepto_us, running, init_muto(), syncthread, and gettime().
(ttstart): Make NO_COPY.
(lock_timer_tracker): New class.
(timer_tracker::timer_tracker): Distinguish ttstart case.
(timer_tracker::~timer_tracker): New destructor.  Clean out events, and reset
magic.
(timer_tracker::init_muto): New method.
(to_us): Round up as per POSIX.
(timer_thread): Reorganize to match timer_tracker::settime and
timer_tracker::gettime.  Call sig_send without wait.  Call auto_release.
(timer_tracker::settime): Reorganize logic to avoid race.  Call gettime to
recover old value.
(timer_tracker::gettime): New method.
(timer_create): Properly set errno on invalid timerid.  Use new
lock_timer_tracker method.
(timer_delete): Ditto.  Simplify code slightly.
(timer_gettime): New function.
(fixup_timers_after_fork): Reinit ttstart.
(getitimer): New implementation.
(setitimer): Ditto.
(ualarm): Ditto.
(alarm): Ditto.
* cygwin.din: Export timer_gettime.
* winsup.h: Remove has has_visible_window_station declaration.
* Makefile.in (DLL_OFILES): Add lsearch.o.
* cygthread.h (cygthread::notify_detached): New element.
(cygthread::cygthread): Take optional fourth argument signifying event to
signal on thread completion.
* cygthread.cc (cygthread::stub): Signal notify_detached event, if it exists.
(cygthread::cygthread): Initialize notify_detached from fourth argument.
(cygthread::detach): Wait for notify_detached field is present.
* lsearch.cc: New file.
* search.h: Ditto.
* include/cygwin/version.h: Bump API minor number to 126.
* cygwin.din: Export lsearch, lfind.

19 years agoMention generic-build-script in packaging FAQ
Joshua Daniel Franklin [Sat, 26 Mar 2005 04:01:52 +0000 (04:01 +0000)]
Mention generic-build-script in packaging FAQ

19 years ago2005-03-25 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 25 Mar 2005 09:02:30 +0000 (09:02 +0000)]
2005-03-25  Paolo Bonzini  <bonzini@gnu.org>

* configure.in (RPATH_ENVVAR): Set to DYLD_LIBRARY_PATH on Darwin.
* configure: Regenerate.

19 years agomerge from gcc
DJ Delorie [Fri, 25 Mar 2005 04:57:00 +0000 (04:57 +0000)]
merge from gcc

19 years ago * cygcheck.cc (init_paths): Use full path instead of "." for the
Corinna Vinschen [Thu, 24 Mar 2005 14:48:15 +0000 (14:48 +0000)]
* cygcheck.cc (init_paths): Use full path instead of "." for the
current directory.  Do not add "." if present in $PATH.
(dump_sysinfo): Skip placeholder first value of paths[].

19 years ago * fhandler.h (fhandler_socket::secret_event): Remove.
Corinna Vinschen [Thu, 24 Mar 2005 14:04:06 +0000 (14:04 +0000)]
* fhandler.h (fhandler_socket::secret_event): Remove.
(fhandler_socket::af_local_set_secret): New function combining former
set_connect_secret and get_connect_secret into one function.
(fhandler_socket::af_local_setblocking): Rename from eid_setblocking.
(fhandler_socket::af_local_unsetblocking): Rename from
eid_unsetblocking.
(fhandler_socket::af_local_set_cred): New method.
(fhandler_socket::af_local_copy): New method.
(fhandler_socket::af_local_recv_secret): New method.
(fhandler_socket::af_local_send_secret): New method.
(fhandler_socket::af_local_recv_cred): Rename from eid_recv.
(fhandler_socket::af_local_send_cred): Rename from eid_send.
(fhandler_socket::af_local_accept): New method.
(fhandler_socket::af_local_set_sockpair_cred): Rename from
set_socketpair_eids.
(fhandler_socket::eid_accept): Remove.
(fhandler_socket::eid_connect): Remove.
(fhandler_socket::set_connect_secret): Remove.
(fhandler_socket::get_connect_secret): Remove.
(fhandler_socket::create_secret_event): Remove.
(fhandler_socket::check_peer_secret_event): Remove.
(fhandler_socket::signal_secret_event): Remove.
(fhandler_socket::close_secret_event): Remove.
(fhandler_socket::sec_event_accept): Remove.
(fhandler_socket::sec_event_connect): Remove.
* fhandler_socket.cc (secret_event_name): Remove.
(fhandler_socket::af_local_set_sockpair_cred): Rename from
set_socketpair_eids.
(fhandler_socket::af_local_setblocking): Rename from eid_setblocking.
(fhandler_socket::af_local_unsetblocking): Rename from
eid_unsetblocking.
(fhandler_socket::af_local_recv_secret): New function to receive
AF_LOCAL connect secret over socket itself.
(fhandler_socket::af_local_send_secret): New function to send AF_LOCAL
connect secret over socket itself.
(fhandler_socket::af_local_recv_cred): Rename from eid_recv.
(fhandler_socket::af_local_send_cred): Rename from eid_send.
(fhandler_socket::eid_connect): Remove.
(fhandler_socket::af_local_connect): Take over connect side handling
of AF_LOCAL secret and credential handshake.
(fhandler_socket::eid_accept): Remove.
(fhandler_socket::af_local_accept): New method, take over accept side
handling of AF_LOCAL secret and credential handshake.
(fhandler_socket::af_local_set_cred): New method, set eid credentials
to start values.
(fhandler_socket::af_local_copy): New method, copy secret and
credentials to another socket.
(fhandler_socket::af_local_set_secret): New function combining former
set_connect_secret and get_connect_secret into one function.
(fhandler_socket::create_secret_event): Remove.
(fhandler_socket::signal_secret_event): Remove.
(fhandler_socket::close_secret_event): Remove.
(fhandler_socket::check_peer_secret_event): Remove.
(fhandler_socket::sec_event_connect): Remove.
(fhandler_socket::sec_event_accept): Remove.
(fhandler_socket::fixup_after_fork): Drop secret_event handling.
(fhandler_socket::bind): Call af_local_set_secret.
(fhandler_socket::connect): Call af_local_set_cred and af_local_connect.
(fhandler_socket::listen): Call af_local_set_cred.
(fhandler_socket::accept): Call af_local_copy and af_local_accept on
accepted socket.
(fhandler_socket::close): Don't call close_secret_event.
(fhandler_socket::set_close_on_exec): Don't set secret_event
inheritance.
* net.cc (cygwin_getsockopt): Add debug output.
(socketpair): Call af_local_set_sockpair_cred instead of
set_socketpair_eids.
* select.cc (set_bits): Drop AF_LOCAL special handling in case
of except bit set.

19 years ago * include/stdio.h (__mingw_fwrite): Change return value to
Danny Smith [Thu, 24 Mar 2005 05:58:52 +0000 (05:58 +0000)]
* include/stdio.h (__mingw_fwrite): Change return value to
size_t.
* mingwex/mingw-fseek.c (__mingw_fwrite): Likewise.

19 years ago* include/ctype.h: Always define macros when inside cygwin.
Christopher Faylor [Wed, 23 Mar 2005 21:04:00 +0000 (21:04 +0000)]
* include/ctype.h: Always define macros when inside cygwin.
(isblank): New macro.

19 years agoFix whitespace with crx entry.
Jeff Johnston [Wed, 23 Mar 2005 18:09:57 +0000 (18:09 +0000)]
Fix whitespace with crx entry.

19 years agocheckin previously missed file.
Christopher Faylor [Wed, 23 Mar 2005 17:47:29 +0000 (17:47 +0000)]
checkin previously missed file.

19 years agofix comment
Christopher Faylor [Wed, 23 Mar 2005 17:43:51 +0000 (17:43 +0000)]
fix comment

19 years ago * fhandler.h (fhandler_socket::eid_connect): Make private.
Corinna Vinschen [Wed, 23 Mar 2005 17:27:18 +0000 (17:27 +0000)]
* fhandler.h (fhandler_socket::eid_connect): Make private.
(fhandler_socket::set_connect_secret): Ditto.
(fhandler_socket::get_connect_secret): Ditto.
(fhandler_socket::create_secret_event): Ditto. Remove secret argument.
(fhandler_socket::check_peer_secret_event): Ditto.
(fhandler_socket::signal_secret_event): Make private.
(fhandler_socket::close_secret_event): Ditto.
(fhandler_socket::sec_event_accept): New private method.
(fhandler_socket::sec_event_connect): Ditto.
(fhandler_socket::af_local_connect): New public method.
* fhandler_socket.cc: Use 'struct sockaddr' and 'struct sockaddr_in'
rather than just 'sockaddr' and 'sockaddr_in' throughout.
(fhandler_socket::eid_connect): Drop AF_LOCAL/SOCK_STREAM test.
(fhandler_socket::create_secret_event): Remove secret argument.
Always use connect_secret instead.
(fhandler_socket::check_peer_secret_event): Ditto.
(fhandler_socket::sec_event_connect): New method, combining entire
secret event handshake on connect side.
(fhandler_socket::af_local_connect): New method, combining secret
event handshake and eid credential transaction on connect side, to
be called from select.
(fhandler_socket::sec_event_accept): New method, combining entire
secret event handshake on accept side.
(fhandler_socket::connect): Drop secret, use connect_secret instead.
Move entire secret event handshake to sec_event_connect.
(fhandler_socket::accept): Move entire secret event handshake to
sec_event_accept.
* select.cc (set_bits): Just call af_local_connect here.

19 years ago* include/cygwin/version.h: Change coment for most recent API version bump to
Christopher Faylor [Wed, 23 Mar 2005 17:16:16 +0000 (17:16 +0000)]
* include/cygwin/version.h: Change coment for most recent API version bump to
reflect new additions to the DLL and to remove change obsoleted by the previous
checkin.

19 years ago* include/ctype.h: New file.
Christopher Faylor [Wed, 23 Mar 2005 17:11:24 +0000 (17:11 +0000)]
* include/ctype.h: New file.
* ctype.cc: Ditto.
* Makefile.in: Add ctype.o to DLL_OFILES.
* cygwin.din: Remove _ctype_ptr (for now?).

19 years ago* configure.host: For cygwin, redefine CC with cygwin include directory first
Christopher Faylor [Wed, 23 Mar 2005 17:09:29 +0000 (17:09 +0000)]
* configure.host: For cygwin, redefine CC with cygwin include directory first
to mimic the behavior of the top-level configury.  Move include directory out
of newlib_cflags.

19 years agoUndo previous delta
Nick Clifton [Wed, 23 Mar 2005 14:49:45 +0000 (14:49 +0000)]
Undo previous delta

19 years ago(getopt): Allow full prototype when builind under FreeBSD.
Nick Clifton [Wed, 23 Mar 2005 14:46:13 +0000 (14:46 +0000)]
(getopt): Allow full prototype when builind under FreeBSD.

19 years ago* Makefile.common: Add -dD to options when creating preprocess files.
Christopher Faylor [Wed, 23 Mar 2005 03:22:27 +0000 (03:22 +0000)]
* Makefile.common: Add -dD to options when creating preprocess files.

19 years agomerge from gcc
DJ Delorie [Wed, 23 Mar 2005 00:01:17 +0000 (00:01 +0000)]
merge from gcc

19 years ago2005-03-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 22 Mar 2005 23:45:43 +0000 (23:45 +0000)]
2005-03-22  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: For arc, set -DREENTRANT_SYSCALLS_PROVIDED flag on.
        * libc/sys/arc/syscalls.c: Change functions to use __errno_r rather
        than errno.

19 years ago * dwarf.h: Merge with GCC's dwarf.h.
Ben Elliston [Tue, 22 Mar 2005 19:51:31 +0000 (19:51 +0000)]
* dwarf.h: Merge with GCC's dwarf.h.

19 years agoinclude ChangeLog
Bob Wilson [Tue, 22 Mar 2005 19:31:26 +0000 (19:31 +0000)]
include ChangeLog
* xtensa-isa.h: Update a comment and whitespace.
bfd ChangeLog
* xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
xtensa_sysreg_lookup_name, xtensa_interface_lookup,
xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
(xtensa_opcode_decode): Rearrange code.

19 years ago* Makefile.in (DLL_OFILES): Add hookapi.o. Eliminate some cruft.
Christopher Faylor [Tue, 22 Mar 2005 19:00:31 +0000 (19:00 +0000)]
* Makefile.in (DLL_OFILES): Add hookapi.o.  Eliminate some cruft.
* cygheap.h (cygheap_types): Add new enum: HEAP_1_HOOK.
(hook_chain): New struct.
(init_cygheap::hooks): Define new element.
* cygheap.cc (cygheap_fixup_in_child): Zero hook chain on exec.
* dcrt0.cc (dll_crt0_1): Call ld_preload just before calling main function.
* external.cc (cygwin_internal): Implement CW_HOOK.
* fork.cc (fork_child): Call fixup_hooks_after_fork.
* init.cc (cygwin_hmodule): Reinstate after a long absence.
* include/sys/cygwin.h: Define CW_HOOK.
* hookapi.cc: New file.
* select.cc (start_thread_socket): Add debugging output.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): gcc 4.x accommodation.
* fhandler_socket.cc (fhandler_socket::connect): Make sure that err is
initialized.

19 years ago* libc/include/machine/_types.h: Make trivial change to comment to avoid a
Christopher Faylor [Tue, 22 Mar 2005 18:12:29 +0000 (18:12 +0000)]
* libc/include/machine/_types.h: Make trivial change to comment to avoid a
spurious warning from gcc.

19 years ago * cygwin.din (__ctype_ptr): Export.
Corinna Vinschen [Tue, 22 Mar 2005 11:37:55 +0000 (11:37 +0000)]
* cygwin.din (__ctype_ptr): Export.
* include/cygwin/version.h: Bump API minor version.

19 years agotop:
Zack Weinberg [Tue, 22 Mar 2005 00:49:18 +0000 (00:49 +0000)]
top:
* Makefile.def: Remove libstdcxx_incdir, libsubdir, gxx_include_dir,
gcc_version, and gcc_version_trigger from set of flags to pass.
* Makefile.tpl: Remove definitions of above variables.
(config.status): Remove dependency on $(gcc_version_trigger).
* Makefile.in: Regenerate.
* configure.in: Do not reference config/gcc-version.m4 nor
config/gxx-include-dir.m4.  Do not invoke TL_AC_GCC_VERSION nor
TL_AC_GXX_INCLUDE_DIR.  Do not set gcc_version_trigger.
* configure: Regenerate.
config:
* gxx-include-dir.m4: In all substitutions, leave $(gcc_version)
to be expanded by the Makefile.

19 years ago2005-03-21 Nicholas Wourms <nwourms@netscape.net>
Jeff Johnston [Mon, 21 Mar 2005 22:34:35 +0000 (22:34 +0000)]
2005-03-21  Nicholas Wourms  <nwourms@netscape.net>

        * libc/stdio/vfprintf.c: Move newlib.h before _WANT_IO_POS_ARGS test,
        since _WANT_IO_POS_ARGS is now defined in there.  Remove duplicate
        reent.h include.

19 years ago * fhandler.h (class cygthread): Remove forward declaration.
Corinna Vinschen [Mon, 21 Mar 2005 19:10:45 +0000 (19:10 +0000)]
* fhandler.h (class cygthread): Remove forward declaration.

19 years ago * fhandler.h (class cygthread): Forward declare.
Corinna Vinschen [Mon, 21 Mar 2005 18:56:50 +0000 (18:56 +0000)]
* fhandler.h (class cygthread): Forward declare.
(fhandler_socket::sec_pipe): Remove.
(fhandler_socket::eid_pipe_name): Remove.
(fhandler_socket::eid_setblocking): New private method.
(fhandler_socket::eid_unsetblocking): Ditto
(fhandler_socket::eid_recv): Ditto
(fhandler_socket::eid_send): Ditto
(fhandler_socket::eid_accept): Ditto
(fhandler_socket::eid_connect): New public method.
* fhandler_socket.cc (ASYNC_MASK): Move to beginning of file.
(fhandler_socket::eid_pipe_name): Remove.
(fhandler_socket::set_socketpair_eids): Move down to fhandler_socket
methods.
(fhandler_socket::fhandler_socket): Drop initializing sec_pipe.
(fhandler_socket::~fhandler_socket): Drop closing sec_pipe.
(fhandler_socket::eid_setblocking): New method.
(fhandler_socket::eid_unsetblocking): New method.
(fhandler_socket::eid_recv): New method.
(fhandler_socket::eid_send): New method.
(fhandler_socket::eid_connect): New method.
(fhandler_socket::eid_accept): New method.
(fhandler_socket::dup): Drop sec_pipe handling.
(fhandler_socket::connect): Fix WinSock error handling. Prepare
eid credential transaction. Call eid_connect on successful connect.
(fhandler_socket::listen): Drop creating sec_pipe.
(fhandler_socket::accept): Slightly simplify code. Call eid_accept
on accepted socket.
(fhandler_socket::getpeereid): Reshuffle code for readability. Fix
test for invalid pid.
* select.cc (set_bits): Call eid_connect on successfully connected
socket.

19 years ago* how-programming.texinfo: Remove incorrect libm.a note.
Joshua Daniel Franklin [Sat, 19 Mar 2005 23:33:04 +0000 (23:33 +0000)]
* how-programming.texinfo: Remove incorrect libm.a note.

19 years ago* child_info.h (fork_info): Use different method to alias variable.
Christopher Faylor [Sat, 19 Mar 2005 21:45:15 +0000 (21:45 +0000)]
* child_info.h (fork_info): Use different method to alias variable.
(spawn_info): Ditto.
* cxx.cc (__cxa_guard_acquire): New function (needed for gcc 4.x).
(__cxa_guard_release): Ditto.
* devices.in: Make sure stuff is correctly bracketed (for gcc 4.x).
* devices.cc: Regenerate.
* fhandler.h (fhandler_disk_file::fchmod): Avoid left coercion (for gcc 4.x).
* smallprint.c (__rn): Declare as __fastcall since gcc 4.x complains about use
of regparm, for some reason.
* sync.h (sync::init_lock): Remove.
* sync.cc (sync::init_lock): Ditto.

19 years ago* net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.
Christopher Faylor [Fri, 18 Mar 2005 22:42:51 +0000 (22:42 +0000)]
* net.cc (cygwin_getprotobyname): Don't try to be fancy with return values.
(cygwin_getprotobynumber): Ditto.

19 years agoAdd support for generating PLT lookups for the ColdFire.
Nick Clifton [Fri, 18 Mar 2005 17:20:23 +0000 (17:20 +0000)]
Add support for generating PLT lookups for the ColdFire.

19 years ago2005-03-18 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Fri, 18 Mar 2005 17:18:59 +0000 (17:18 +0000)]
2005-03-18  Hans-Peter Nilsson  <hp@axis.com>
            Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/ctype.h: Remove invalid +1 offset from
        ctype macro references to __ctype_ptr.
        (_ctype_): Move declaration outside #ifndef __cplusplus.

19 years ago * elf32-arm.c (elf32_arm_modify_segment_map): New function.
Mark Mitchell [Fri, 18 Mar 2005 17:06:16 +0000 (17:06 +0000)]
* elf32-arm.c (elf32_arm_modify_segment_map): New function.
(elf32_arm_additional_program_headers): Likewise.
(elf_backend_modify_segment_map): Define.
(elf_backend_additional_program_headers): Likewise.
(elf32_arm_symbian_modify_segment_map): Use
elf32_arm_modify_segment_map.

* binutils/readelf.c (get_arm_segment_type): New function.
(get_segment_type): Use it.

* arm.h (PT_ARM_EXIDX): Define.

19 years ago * libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
Corinna Vinschen [Fri, 18 Mar 2005 09:46:30 +0000 (09:46 +0000)]
* libc/include/machine/setjmp.h (sigsetjmp): Use GCC extension to
evaluate first parameter only once.
(siglongjmp): Ditto.

19 years ago2005-03-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Mar 2005 20:11:23 +0000 (20:11 +0000)]
2005-03-17  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.in: Add new check to see if compiler supports
        aliasing of arrays and define _HAVE_ARRAY_ALIASING if true.
        * configure: Regenerated.
        * Makefile.in: Ditto.
        * newlib.hin: Add _HAVE_ARRAY_ALIASING.
        * libc/ctype/ctype_.c: Check for _HAVE_ARRAY_ALIASING before
        aliasing the _ctype_ array to _ctype_b.
        * libc/include/ctype.h: Change macros to use __ctype_ptr.  Mark
        _ctype_ as deprecated.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
Corinna Vinschen [Thu, 17 Mar 2005 12:53:47 +0000 (12:53 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
directories under 9x gracefully.

19 years ago * fhandler_socket.cc (fhandler_socket::connect): Always set sun_path
Corinna Vinschen [Thu, 17 Mar 2005 11:56:30 +0000 (11:56 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Always set sun_path
in case of a successful or pending connect.
(fhandler_socket::accept): Don't run secret event and eid credential
transactions if OS accept returned WSAEWOULDBLOCK.

19 years ago * configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
Hans-Peter Nilsson [Thu, 17 Mar 2005 02:31:57 +0000 (02:31 +0000)]
* configure.host (newlib_cflags) <cris-*-*, crisv32-*-*>: Add
-DCOMPACT_CTYPE.

19 years agocomplete a sentenc
Christopher Faylor [Wed, 16 Mar 2005 22:08:33 +0000 (22:08 +0000)]
complete a sentenc

19 years agobfd/
H.J. Lu [Wed, 16 Mar 2005 21:52:41 +0000 (21:52 +0000)]
bfd/

2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* elflink.c (elf_mark_used_section): New.
(bfd_elf_gc_sections): Call elf_gc_mark_section for
non-relocatable link if we don't do GC.

include/

2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* bfdlink.h (bfd_link_info): Add gc_sections.

ld/

2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
unused empty output sections for non-relocatable link.

* ld.h (args_type): Remove gc_sections.

* ldlang.c (lang_mark_used_section): New.
(lang_gc_sections): Use link_info.gc_sections instead of
command_line.gc_sections.
* ldmain.c (main): Likewise.
* lexsup.c (parse_args): Likewise.
* ldlang.c (lang_process): Call lang_mark_used_section.

* ldmain.c (main): Initialize link_info.gc_sections to FALSE.

ld/testsuite/

2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>

* ld-alpha/tlsbin.rd: Updated for empty section removal.
* ld-alpha/tlsbinr.rd: Likewise.
* ld-alpha/tlspic.rd: Likewise.
* ld-arm/mixed-lib.sym: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-powerpc/apuinfo.rd: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-sh/tlsbin-2.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.

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