]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago * syscalls.cc (unlink_nt): Fix a bug which overwrites the NT status
Corinna Vinschen [Mon, 24 Oct 2011 14:02:32 +0000 (14:02 +0000)]
* syscalls.cc (unlink_nt): Fix a bug which overwrites the NT status
value in case setting the delete disposition returns with
STATUS_DIRECTORY_NOT_EMPTY.

13 years ago * shared.cc (open_shared): Fix memory reservation of essential shared
Corinna Vinschen [Mon, 24 Oct 2011 09:19:58 +0000 (09:19 +0000)]
* shared.cc (open_shared): Fix memory reservation of essential shared
memory regions.  Drop delta computations since delta is always 0 in
non-relocated case.  Add a comment.

13 years ago* fhandler_tty.cc (fhandler_pty_slave::read): Use consistent way for testing
Christopher Faylor [Sun, 23 Oct 2011 19:01:47 +0000 (19:01 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::read): Use consistent way for testing
ReadFile return.
* pipe.cc (fhandler_pipe::create_selectable): Open the write side of the pipe
in message-mode to force writing as "chunks".  Explain why.

13 years ago* path.cc (path_conv::get_nt_native_path): Avoid dereferencing path when it is
Christopher Faylor [Sun, 23 Oct 2011 17:19:17 +0000 (17:19 +0000)]
* path.cc (path_conv::get_nt_native_path): Avoid dereferencing path when it is
NULL.

13 years ago* dtable.cc (dtable::delete_archetype): Improve debugging output.
Christopher Faylor [Sat, 22 Oct 2011 16:26:30 +0000 (16:26 +0000)]
* dtable.cc (dtable::delete_archetype): Improve debugging output.
(dtable::init_std_file_from_handle): Close console handle early, before
initialization.  Build up openflags for passing to open_setup, just to be safe.
(last_tty_dev): New variable.
(fh_last_tty_dev): New macro.
(fh_alloc): Try again to keep track of previously opened tty, this time by just
saving the device and using that to potentially open an archetype.  Avoid
setting the "/dev/tty" name if the creation of the fhandler failed.
(build_fh_pc): Remove unused second argument.  Reorganize how and where the
name is set.  Set last_tty_dev as appropriate.  Avoid a NULL dereference in a
debug printf.
* dtable.h (build_fh_pc): Reflect removal of second parameter.
* fhandler.cc (fhandler_base::reset): Use new '<<' operator to copy pc since it
preserves any potentially previously set name.
(fhandler_base::set_name): Ditto.
* fhandler.h (fhandler_*::clone): Throughout use ccalloc to allocate new
fhandler, primarily to make sure that pc field is properly zeroed.
(fhandler_termios::last): Eliminate.
(fhandler_termios): Remove setting of last.
(fhandler_base::~fhandler_termios): Ditto.
* fhandler_console.cc (fhandler_console::open): Don't make decisions about
opening close-on-exec handles here since it makes no sense for archetypes.
(fhandler_console::init): Assume that input handle has already been opened.
* fhandler_termios.cc (fhandler_termios::last): Delete.
* path.h (path_conv::eq_worker): New function.  Move bulk of operator = here.
(operator <<): New function.
(operator =): Use eq_worker to perform old functionality.

13 years ago* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
DJ Delorie [Sat, 22 Oct 2011 01:35:29 +0000 (01:35 +0000)]
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++

13 years ago * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid
Corinna Vinschen [Fri, 21 Oct 2011 17:43:00 +0000 (17:43 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid
success only on Samba shares.
* mount.cc (fs_info::update): Drop has_buggy_basic_info flag for
NcFsd.
* syscalls.cc (unlink_nt): Fix typo in comment.

13 years agoCheck in missing ChangeLog entry.
Christopher Faylor [Fri, 21 Oct 2011 12:24:58 +0000 (12:24 +0000)]
Check in missing ChangeLog entry.

13 years ago * globals.cc (ro_u_ncfsd): New R/O unicode string.
Corinna Vinschen [Fri, 21 Oct 2011 08:29:19 +0000 (08:29 +0000)]
* globals.cc (ro_u_ncfsd): New R/O unicode string.
* mount.cc (fs_info::update): Check for "NcFsd" FS.  Set flags and
change comments accordingly.
(fs_names): Add entry for NcFsd FS.
* mount.h (enum fs_info_type): Add ncfsd.
(class fs_info): Add ncfsd flag and accessor methods.
* path.h (class path_conv): Add fs_is_ncfsd method.
* syscalls.cc (unlink_nt): Experimentally try delete-on-close on NcFsd
in STATUS_CANNOT_DELETE case.

13 years ago* fhandler.h (fhandler*::copyto): Free path_conv strings first.
Christopher Faylor [Thu, 20 Oct 2011 21:35:59 +0000 (21:35 +0000)]
* fhandler.h (fhandler*::copyto): Free path_conv strings first.
* path.h (cfree_and_null): Rename and expand from cfree_maybe.
(path_conv &operator =): Call free_strings rather than freeing strings
directly.

13 years agoThroughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
Christopher Faylor [Thu, 20 Oct 2011 14:02:54 +0000 (14:02 +0000)]
Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
* devices.cc: Regenerate.
* dtable.cc: (fh_alloc): Preserve /dev/tty name when that's what we opened.
(build_fh_pc): Preserve any existing name.
* fhandler.cc (fhandler_base::open_with_arch): Ditto.
* fhandler_tty.cc (fhandler_pty_master::fhandler_pty_master): Force the name to
/dev/ptmx while preserving other pty master device information.
* path.h (cfree_maybe): New macro.
(path_conv::operator =): Free any allocated strings in target.
(path_conv::free_strings): Delete unused function.
* sigproc.cc (proc_terminate): Remove previous accommodation for execed
processes since it didn't have the desired effect.  Change comment to a FIXME.
* spawn.cc (chExeced): Mark NO_COPY.
(exe_suffixes): Ditto.

13 years ago * syscalls.cc (try_to_bin): Improve debug output.
Corinna Vinschen [Thu, 20 Oct 2011 10:59:01 +0000 (10:59 +0000)]
* syscalls.cc (try_to_bin): Improve debug output.
(check_dir_not_empty): Take additional path_conv argument.  Improve
debug output.  Change syscall_printf to debug_printf.
(unlink_nt): Improve debug output.  Change syscall_printf to
debug_printf.
(unlink): Change syscall_printf to debug_printf.

* cygthread.h: Fix copyright dates.

13 years ago PR ld/13254
Alan Modra [Wed, 19 Oct 2011 04:13:27 +0000 (04:13 +0000)]
PR ld/13254
include/
* bfdlink.h (struct bfd_link_info): Add error_textrel.
bfd/
* elflink.c (bfd_elf_final_link): Emit error_textrel error.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z text, -z notext, -z textoff options for all targets having
shared lib support.

13 years ago * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
Nick Clifton [Tue, 18 Oct 2011 11:35:17 +0000 (11:35 +0000)]
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,
memchr.S.
* libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included
in .S files.
* libc/machine/arm/memchr-stub.c: New file - just selects what to
compile.
* libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version.

* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S.
* libc/machine/arm/strlen-armv7.S: New file.
* libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't
for v7 or 6t2.

* libc/machine/arm/Makefile.in: Regenerate.

13 years ago * path.cc: Extend two comments. Mention the name RtlpCurDirRef
Corinna Vinschen [Tue, 18 Oct 2011 08:47:08 +0000 (08:47 +0000)]
* path.cc: Extend two comments.  Mention the name RtlpCurDirRef
for reference.

13 years ago* dcrt0.cc (dll_crt0_1): Copy argv before passing to main().
Christopher Faylor [Mon, 17 Oct 2011 18:25:04 +0000 (18:25 +0000)]
* dcrt0.cc (dll_crt0_1): Copy argv before passing to main().

13 years ago* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.
Christopher Faylor [Mon, 17 Oct 2011 15:35:26 +0000 (15:35 +0000)]
* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.

13 years ago* cygerrno.h (__set_errno): Modify debugging output to make searching strace
Christopher Faylor [Sat, 15 Oct 2011 22:37:30 +0000 (22:37 +0000)]
* cygerrno.h (__set_errno): Modify debugging output to make searching strace
logs easier.  Throughout, change /dev/tty* to /dev/pty*.  Throughout, add flags
argument to fhandler_*::dup methods.
* devices.in: Rename (temporarily?) /dev/ttyN to /dev/ptyN.  Add /dev/ptymN
devices for pty masters.
* devices.cc: Regenerate.
* devices.h (MAX_CONSOLES): Set to max number supported by devices.in.
(fh_devices::FH_PTMX): Rename from FH_PTYM.
(device::operator int): Return by reference.
* dtable.cc (fh_alloc): Take pc as an argument rather than just the device.
This makes debugging easier since more information is available.  Actually
implement handling for already-allocated pty master devices.  Make different
decisions when generating fhandler for not-opened devices.  Add kludge to deal
with opening /dev/tty.
(cnew_no_ctor): New macro.
(build_fh_pc): Make debugging output more verbose.  Use new clone() fhandler
interface to duplicate archetypes.  Reset last term opened.
(dtable::dup_worker): Use Use new clone() fhandler interface to duplicate
archetypes.  Pass flags to child dup handler.
(dtable::dup3): Set O_NOCTTY flag if newfd is not stdin/stdout/stderr.
* fhandler.cc (fhandler_base::reset): Rename from operator =() and reduce
functionality and sense of copy direction.
(fhandler_base::open_with_arch): Use published interface to query io_handle().
Use new copyto() fhandler method to copy from/to found archetype.
* fhandler.h: Throughout, delete size(), add copyout, clone, and fhandler_*
(void *) methods.
(fhandler_base::reset): Rename from operator =().
(fhandler_termios::is_dev_tty): Delete.
(fhandler_termios): change "protected" region to "private".
(fhandler_termios::is_dev_tty): Delete.
(fhandler_termios): Rearrange protected/public.
(fhandler_termios::fhandler_termios): Remember last fhandler_termios "opened".
(fhandler_termios::~fhandler_termios): Forget last fhandler_termios opened.
(ioctl): Rename from ioctl_termios.  Take a void * argument.  Reflect argument
change in pinfo::set_ctty.
(fhandler_console::dup): Declare new function.  Set ctty here if appropriate.
(fhandler_pty_master::from_master): Privatize.
(fhandler_pty_master::to_master): Ditto.
(fhandler_pty_master::dwProcessId): Ditto.
(fhandler_pty_master::fhandler_pty_master): Add an `int' argument.
(fhandler_pty_master::open_setup): Declare new function.
(fhandler_pty_master::~fhandler_pty_master): Declare new method.
(fhandler_nodevice): Remove commented out function declaration.
* fhandler_console.cc: Use get_ttyp() instead of tc() throughout.
(fhandler_console::dup): Define new function to set controlling ctty on dup, as
appropriate.
(fhandler_console::ioctl): Reflect ioctl_termios name change.
(fhandler_console::setup): Rename from get_tty_stuff.
(fhandler_console::open_setup): Reflect argument change in pinfo::set_ctty.
(fhandler_console::fhandler_console): Set _tc here.
* fhandler_termios.cc (handler_termios::ioctl): Rename.  Take a void * arg like
other ioctl functions.
* fhandler_tty.cc (fhandler_pty_slave::dup): Call myself->set_ctty to
potentially reset the controlling terminal.
(fhandler_pty_slave::ioctl): Reflect name/arg change for ioctl_termios.
(fhandler_pty_slave::fhandler_pty_slave): Take a "unit" argument.  Call setup()
here so that we will know the unit number of this fhandler as soon as possible.
Set the unit as appropriate.
(handler_pty_master::open): Move most stuff to constructor and open_setup.
(handler_pty_slave::open_setup): Reflect argument change in pinfo::set_ctty.
(handler_pty_master::open_setup): Define new function.
(fhandler_pty_master::cleanup): Clear handles as a flag that the destructor
does not have to do "close" operations.
(fhandler_pty_master::close): Ditto.
(fhandler_pty_master::~fhandler_pty_master): Define new method.
(fhandler_pty_master::ioctl): Reflect name/arg change for ioctl_termios.
(fhandler_pty_master::setup): Allocate tty here.  Rely on handles being
returned from allocated test rather than opening them here.  Avoid setting
_need_nl here since it is already zeroed in the constructor.  Set up device
information with DEV_TTYM_MAJOR.
* path.h (path_conv &operator =): Take a const argument.
(path_conv::dup): Ditto.
(pathconv_arg::PC_OPEN): New enum.
(pathconv_arg::PC_CTTY): Ditto.
(path_types::PATH_CTTY): Ditto.
(path_types::PATH_OPEN): Ditto.
(path_conv::isopen): New method.
(path_conv::isctty_capable): Ditto.
* path.cc (path_conv::check): Set PATH_OPEN and PATH_CTTY as appropriate.
* pipe.cc (fhandler_pipe::open): Use copyto to copy pipe handle.
* syscall.cc (open): Reinstate fd > 2 check to disallow resetting ctty on
non-std* handles.
* tty.cc (tty_list::allocate): Pass out handles for allocated tty.  use
`not_allocated' to find unallocated ttys.  Avoid keeping the lock since the
allocation of the tty should be sufficient to prevent multiple access.
(tty::not_allocated): Clarify comment.  Rename.  Return handles when an unused
tty is found.  Simply test for existing tty.
(tty::exists): Rewrite to use `not_allocated'.
* tty.h (NTTYS): Reset down to actual number supported by devices.in.
(tty::not_allocated): Declare new function.
(tty_list::allocate): Pass out read/write tty handles.  Zero them when not
found.
* fhandler_proc.cc: Reflect name change from FH_PTYM -> FH_PTMX.
* pinfo.h (pinfo::set_ctty): Reduce/reorder arguments passed in.
* pinfo.cc (pinfo::set_ctty): Ditto.  Just use tc() built into the passed-in
fhandler_termios pointer.  Return true if ctty is assigned.
* syscalls.cc (open): Call build_fh_pc with PC_OPEN flag.  Set PC_CTTY if
appropriate.
(stat_worker): Remove is_dev_tty () stuff.

13 years ago * fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert
Corinna Vinschen [Sat, 15 Oct 2011 19:13:57 +0000 (19:13 +0000)]
* fhandler_process.cc (dos_drive_mappings::fixup_if_match): Convert
native NT network paths into DOS UNC paths.

13 years ago * sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on
Corinna Vinschen [Sat, 15 Oct 2011 16:31:57 +0000 (16:31 +0000)]
* sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID on
systems supporting it.  Never add SERVICE SID but keep code in for
future reference.  Explain why.
(get_priv_list): Add cygpsid pointer parameter.  Point it to the
mandatory integrity SID which matches account and privileges.
(create_token): Fetch mandatory integrity SID from call to
get_priv_list.
(lsaauth): Call get_priv_list with additional NULL pointer.  Change
comment accordingly.
* sec_helper.cc (well_known_console_logon_sid): New static SID.
(cygpriv): Change to structure containing extra flag to store info
about required integrity level.
(privilege_luid): Accommodate changes to cygpriv.  Return integrity
level in new high_integrity parameter.
(privilege_name): Accommodate changes to cygpriv.
(set_privilege): Drop trailing \n from debug output.
(set_cygwin_privileges): Don't set SE_CREATE_GLOBAL_PRIVILEGE anymore
since it's just not needed, but keep code in for future reference.
Change comment accordingly.
* security.h (well_known_console_logon_sid): Declare.
(privilege_luid): Align declaration to above change.
* wincap.h (wincaps::has_console_logon_sid): New element.
* wincap.cc: Implement above element throughout.

13 years ago * cygcheck.cc (dump_sysinfo): Add Windows 8 recognition. Note as
Corinna Vinschen [Thu, 13 Oct 2011 17:50:48 +0000 (17:50 +0000)]
* cygcheck.cc (dump_sysinfo): Add Windows 8 recognition.  Note as
unsupported.  Update products array.

13 years ago * path.cc (find_fast_cwd_pointer): Allow 'push crit-sect-addr' instead
Corinna Vinschen [Thu, 13 Oct 2011 16:47:32 +0000 (16:47 +0000)]
* path.cc (find_fast_cwd_pointer): Allow 'push crit-sect-addr' instead
of 'mov edi, crit-sect-addr; push edi' and set rcall accordingly.

13 years ago * path.cc (copy_cwd_str): Move up in file to be accessible from
Corinna Vinschen [Thu, 13 Oct 2011 15:32:10 +0000 (15:32 +0000)]
* path.cc (copy_cwd_str): Move up in file to be accessible from
class fcwd_access_t.
(class fcwd_access_t): New class to consolidate and hide the details
of the various FAST_CWD implementations.  Add implementation for
Windows 8 Developer Preview.
(fast_cwd_version): Make static private member of fcwd_access_t.
(fast_cwd_ptr): Change base type to fcwd_access_t.
(find_fast_cwd_pointer): Return fcwd_access_t**.
(find_fast_cwd): Ditto.  Rip out all FAST_CWD implementations and use
fcwd_access_t methods instead.
(cwdstuff::override_win32_cwd): Ditto.

13 years ago * fhandler_console.cc (fhandler_console::cursor_set): Disable forcing
Corinna Vinschen [Wed, 12 Oct 2011 14:19:20 +0000 (14:19 +0000)]
* fhandler_console.cc (fhandler_console::cursor_set): Disable forcing
y to the current winBottom position.  Explain why.

13 years ago* cygwin.din: Remove some _tc* exports. Add tcgetsid().
Christopher Faylor [Tue, 11 Oct 2011 23:20:38 +0000 (23:20 +0000)]
* cygwin.din: Remove some _tc* exports.  Add tcgetsid().
* dtable.cc (fh_alloc): Revert ill-advised setting of major/minor.  Use new
is_dev_tty to remember that this device was opened as /dev/tty.
* fhandler.cc (fhandler_base::fstat): Remove leftover debugging statement.
(fhandler_base::tcgetsid): New function.
* fhandler.h ((fhandler_base::tcgetsid): Declare new function.
(fhandler_base::is_dev_tty): Ditto.
(fhandler_termios::opened_as_dev_tty): Declare new field.
(fhandler_termios::is_dev_tty): Declare new function.
(fhandler_termios::tcgetsid): Ditto.
(fhandler_pty_common::use_archetype): Move here from subclass.
(fhandler_pty_slave::use_archetype): Move up.
(fhandler_pty_master::use_archetype): Ditto.
* fhandler_console.cc (fhandler_console::ioctl): Rename second argument from
`buf' to `arg' for consistency.  Call ioctl_termios for common fhandler_termios
ioctl handling.
* fhandler_tty.cc (fhandler_pty_slave::ioctl): Call ioctl_termios for common
fhandler_termios ioctl handling.
(fhandler_pty_master::ioctl): Ditto.
* fhandler_termios.cc (fhandler_termios::tcgetsid): Implement new function.
(fhandler_termios::ioctl_termios): Ditto.  Implements TIOCSCTTY handling.
* syscalls.cc (stat_worker): Set /dev/tty device info when appropriate.
* termios.cc (tcgetpgrp): Avoid extraneous "isatty" check.
(tcgetsid): Implement new function.
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 253.
* include/sys/termios.h (TIOCSCTTY): Define.

13 years ago * utils.sgml (getconf): Expand documentation.
Yaakov Selkowitz [Tue, 11 Oct 2011 21:53:57 +0000 (21:53 +0000)]
* utils.sgml (getconf): Expand documentation.

13 years ago* dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0. Reset major/minor
Christopher Faylor [Tue, 11 Oct 2011 12:39:31 +0000 (12:39 +0000)]
* dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0.  Reset major/minor
from the specific tty to those for /dev/tty.

13 years ago * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
Corinna Vinschen [Tue, 11 Oct 2011 11:28:05 +0000 (11:28 +0000)]
* libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.
* libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when
timezone causes roll over.

13 years agooops - fix typo in previous delta.
Nick Clifton [Tue, 11 Oct 2011 09:29:56 +0000 (09:29 +0000)]
oops - fix typo in previous delta.

13 years agooops - omitted from previous delta.
Nick Clifton [Tue, 11 Oct 2011 07:38:33 +0000 (07:38 +0000)]
oops - omitted from previous delta.

13 years ago* syscalls.cc (open): Add temporary kludge to avoid assigning the controlling
Christopher Faylor [Mon, 10 Oct 2011 22:01:06 +0000 (22:01 +0000)]
* syscalls.cc (open): Add temporary kludge to avoid assigning the controlling
tty on open unless the open is for stdin/stdout/stderr.
* tty.cc (tty_list::connect): Set ENXIO when can't find a tty.

13 years ago * fhandler.h (fhandler_process::closedir): Declare.
Corinna Vinschen [Mon, 10 Oct 2011 18:59:56 +0000 (18:59 +0000)]
* fhandler.h (fhandler_process::closedir): Declare.
* fhandler_process.cc (fhandler_process::closedir): New function to
avoid a SEGV in fhandler_proc::closedir.

13 years ago * cygserver.sgml: Change -v to -V, same as in sources.
Corinna Vinschen [Mon, 10 Oct 2011 15:52:48 +0000 (15:52 +0000)]
* cygserver.sgml: Change -v to -V, same as in sources.

13 years ago * cygserver.cc (print_usage): Align output to utilities in utils
Corinna Vinschen [Mon, 10 Oct 2011 15:48:54 +0000 (15:48 +0000)]
* cygserver.cc (print_usage): Align output to utilities in utils
directory.
(print_version): Ditto.

13 years ago * ldd.cc (VERSION): Remove.
Corinna Vinschen [Mon, 10 Oct 2011 15:34:52 +0000 (15:34 +0000)]
* ldd.cc (VERSION): Remove.

13 years ago* ldd.cc: Update copyright.
Christopher Faylor [Mon, 10 Oct 2011 15:04:00 +0000 (15:04 +0000)]
* ldd.cc: Update copyright.

13 years ago * Align usage output, version output, as well as usage and version
Corinna Vinschen [Mon, 10 Oct 2011 14:57:48 +0000 (14:57 +0000)]
* Align usage output, version output, as well as usage and version
option handling to use the same style throughout all Cygwin utils.
Throughout use program_invocation_short_name to refer to current
process name in Cygwin executables.
* utils.sgml: Align documentation to above change.  Add missing
sections for getconf, ldd, and setmetamode.
* strace.cc (proc_child): Avoid compiler warning.

13 years agoinclude/elf/
Alan Modra [Mon, 10 Oct 2011 13:21:05 +0000 (13:21 +0000)]
include/elf/
* ppc64.h (R_PPC64_TOCSAVE): Add.
bfd/
* elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry.
(struct ppc_link_hash_table): Add tocsave_htab.
(struct tocsave_entry): New.
(tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions.
(ppc64_elf_link_hash_table_create): Create tocsave_htab..
(ppc64_elf_link_hash_table_free): ..and delete it.
(build_plt_stub): Always put STD_R2_40R1 first.
(ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc
on plt call.  If present add prologue nop location to tocsave_htab.
(ppc64_elf_relocate_section): Convert prologue nop to std.  Skip
first insn of plt call stub when R_PPC64_TOCSAVE present.

13 years ago * libc/sys/arm/crt0.S: Synchronise with libgloss version.
Nick Clifton [Mon, 10 Oct 2011 13:00:25 +0000 (13:00 +0000)]
* libc/sys/arm/crt0.S: Synchronise with libgloss version.
* libc/sys/arm/arm.h: Imported from libgloss.

13 years ago * locale.cc (usage): Restructure, rephrase, add new options. Drop
Corinna Vinschen [Mon, 10 Oct 2011 09:50:43 +0000 (09:50 +0000)]
* locale.cc (usage): Restructure, rephrase, add new options.  Drop
arguments, don't exit.
(print_version): New function.
(longopts): Add -f, -n, and -V options.  Reorder.
(opts): Add -f, -n, and -V options.
(main): Call GetSystemDefaultUILanguage for -s option.  Call
GetUserDefaultUILanguage for -u option.  Add -f and -n options and
call GetUserDefaultLCID and GetSystemDefaultLCID respectively.  Return
0 after calling usage in -h case.  Add -V option and call print_version.
Don't print full usage in default case, rather just a short help message
similar to GNU tools.
* utils.sgml (locale): Align to above changes.  Rephrase description.

13 years ago * cygcheck.cc (check_keys): Use UNICODE Win32 functions.
Corinna Vinschen [Mon, 10 Oct 2011 09:42:00 +0000 (09:42 +0000)]
* cygcheck.cc (check_keys): Use UNICODE Win32 functions.

13 years ago* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.
Christopher Faylor [Mon, 10 Oct 2011 04:05:29 +0000 (04:05 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.
(fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a tty.

13 years ago* fhandler.h (fhandler_console::tc_getpgid): New function.
Christopher Faylor [Fri, 7 Oct 2011 13:52:20 +0000 (13:52 +0000)]
* fhandler.h (fhandler_console::tc_getpgid): New function.
* spawn.cc (spawn_guts): Add logic to put pure-windows processes "in the
background" when they are started that way.

13 years ago * include/sys/cygwin.h (cygwin_getinfo_types): Define values
Corinna Vinschen [Fri, 7 Oct 2011 13:49:17 +0000 (13:49 +0000)]
* include/sys/cygwin.h (cygwin_getinfo_types): Define values
additionally as preprocessor symbols.

13 years ago * rx/crt0.S: Initialise the PID address register.
Nick Clifton [Fri, 7 Oct 2011 10:09:22 +0000 (10:09 +0000)]
* rx/crt0.S: Initialise the PID address register.
(__pid_base): Define weakly.

13 years agoFix copyright.
Corinna Vinschen [Fri, 7 Oct 2011 08:14:25 +0000 (08:14 +0000)]
Fix copyright.

13 years ago * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
Corinna Vinschen [Thu, 6 Oct 2011 19:47:45 +0000 (19:47 +0000)]
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRP
pseudo signal to process group instead of just calling
init_console_handler.
* sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP
signal.
* sigproc.h (__SIGSETPGRP): Define.

13 years ago2011-10-06 Christian Franke <franke@computer.org>
Christian Franke [Thu, 6 Oct 2011 16:02:37 +0000 (16:02 +0000)]
2011-10-06  Christian Franke  <franke@computer.org>

* include/cygwin/wait.h: Use new __wait_status_to_int()
macro to access status value in W*() status checks.
Fix status description.
* include/sys/wait.h: Allow `int' and `union wait' as
wait status parameter.  Change __wait_status_to_int()
macro and wait () prototypes accordingly.  Add inline
functions for C++.  Remove extra `;'.

13 years ago * readelf.c (get_machine_dlags): Add support for RX's PID mode.
Nick Clifton [Wed, 5 Oct 2011 14:13:29 +0000 (14:13 +0000)]
* readelf.c (get_machine_dlags): Add support for RX's PID mode.

* ld-scripts/phdrs.exp: Expect to fail for the RX.

* elf32-rx.c: Add support for PID mode.
(rx_elf_relocate_section): Add checks for unsafe PID relocations.
Include addend in R_RX_SYM relocations.

* config/rx-defs.h (rx_pid_register): New.
(rx_gp_register): New.
* config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg.
(displacement): Add PID support.
* config/tc-rx.c (rx_pid_mode): New.
(rx_num_int_regs): New.
(rx_pid_register): New.
(rx_gp_register): New.
(options): Add -mpid and -mint-register= options.
(md_longopts): Likewise.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
(rx_pid_symbol): New.
(rx_pidreg_symbol): New.
(rx_gpreg_symbol): New.
(md_begin): Support PID.
(rx_validate_fix_sub): Support PID.
(tc_gen_reloc): Support PID.
* doc/c-rx.texi: Document PID support.

* rx.h (E_FLAG_RX_PID): New.

13 years ago * external.cc (create_winenv): Rename from sync_winenv. Take
Corinna Vinschen [Wed, 5 Oct 2011 12:27:37 +0000 (12:27 +0000)]
* external.cc (create_winenv): Rename from sync_winenv.  Take
environment pointer as parameter and return pointer to corresponding
win32 environment block if != NULL.  Otherwise just sync as before.
(cygwin_internal): Add CW_CVT_ENV_TO_WINENV case.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_ENV_TO_WINENV.

13 years ago * net.cc (socketpair): Bind first socket to loopback only as well.
Corinna Vinschen [Wed, 5 Oct 2011 06:18:16 +0000 (06:18 +0000)]
* net.cc (socketpair): Bind first socket to loopback only as well.

13 years ago2011-10-04 Greta Yorsh <Greta.Yorsh@arm.com>
Jeff Johnston [Tue, 4 Oct 2011 18:43:14 +0000 (18:43 +0000)]
2011-10-04  Greta Yorsh  <Greta.Yorsh@arm.com>

        * testsuite/newlib.string/memcpy-1.c: New test.

13 years ago* libc/machine/arm/memcpy.S: Fix unaligned access copying.
Nick Clifton [Tue, 4 Oct 2011 16:02:25 +0000 (16:02 +0000)]
* libc/machine/arm/memcpy.S: Fix unaligned access copying.

13 years agoRationalise structure layout; add dirent.d_type field.
Keith Marshall [Sat, 1 Oct 2011 20:18:10 +0000 (20:18 +0000)]
Rationalise structure layout; add dirent.d_type field.

13 years ago * libc/machine/arm/memcpy.S: New file. Contains a hand coded
Nick Clifton [Thu, 29 Sep 2011 13:28:50 +0000 (13:28 +0000)]
* libc/machine/arm/memcpy.S: New file.  Contains a hand coded
memcpy function optimized for the cortex-a15.
* libc/machine/arm/memcpy-stub.c: New file.
* libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c,
memcpy.S.
* libc/machine/arm/Makefile.in: Regenerate.

13 years ago * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.
Nick Clifton [Thu, 29 Sep 2011 11:23:29 +0000 (11:23 +0000)]
* arm/crt0.s: Support 0 heap base response from HeapInfo syscall.

13 years ago * arm/arm.h (HAVE_CALL_INDIRECT): Define.
Nick Clifton [Thu, 29 Sep 2011 11:06:49 +0000 (11:06 +0000)]
* arm/arm.h (HAVE_CALL_INDIRECT): Define.
        * arm/crt0.S (indirect_call): New macro.  Encodes indirect
function calls.  Does not use blx for pre-armv5 targets.

13 years agomerge from gcc
DJ Delorie [Wed, 28 Sep 2011 20:01:37 +0000 (20:01 +0000)]
merge from gcc

13 years agomerge from gcc
DJ Delorie [Tue, 27 Sep 2011 00:01:35 +0000 (00:01 +0000)]
merge from gcc

13 years agomerge from gcc
DJ Delorie [Mon, 26 Sep 2011 23:04:59 +0000 (23:04 +0000)]
merge from gcc

13 years agoinclude/ChangeLog
Cary Coutant [Mon, 26 Sep 2011 23:00:17 +0000 (23:00 +0000)]
include/ChangeLog

gcc PR lto/47247
* plugin-api.h (enum ld_plugin_symbol_resolution): Add
LDPR_PREVAILING_DEF_IRONLY_EXP.
(enum ld_plugin_tag): Add LDPT_GET_SYMBOLS_V2.

gold/ChangeLog

gcc PR lto/47247
* plugin.cc (get_symbols_v2): New function.
(Plugin::load): Add LDPT_GET_SYMBOLS_V2.
(is_referenced_from_outside): New function.
(Pluginobj::get_symbol_resolution_info): Add version parameter, return
LDPR_PREVAILING_DEF_IRONLY_EXP when using new version.
(get_symbols): Pass version parameter.
(get_symbols_v2): New function.
* plugin.h (Pluginobj::get_symbol_resolution_info): Add version
parameter.
* testsuite/plugin_test.c (get_symbols_v2): New static variable.
(onload): Add LDPT_GET_SYMBOLS_V2.
(all_symbols_read_hook): Use get_symbols_v2; check for
LDPR_PREVAILING_DEF_IRONLY_EXP.
* testsuite/plugin_test_3.sh: Update expected results.

13 years agomerge from gcc
DJ Delorie [Fri, 23 Sep 2011 22:21:28 +0000 (22:21 +0000)]
merge from gcc

13 years agoAnnotate sparc objects with cpu hardware capabilities used.
David S. Miller [Wed, 21 Sep 2011 20:49:15 +0000 (20:49 +0000)]
Annotate sparc objects with cpu hardware capabilities used.

bfd/

* elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New.
* elfxx-sparc.h: Declare it.
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it.
* elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise.

binutils/

* readelf.c (display_sparc_hwcaps): New.
(display_sparc_gnu_attribute): New.
(process_sparc_specific): New.
(process_arch_specific): When EM_SPARC, EM_SPARC32PLUS,
or EM_SPARCV9 invoke process_sparc_specific.

gas/

* config/tc-sparc.c (hwcap_seen): New bitmask, defined when
not TE_SOLARIS.
(sparc_ip): When not TE_SOLARIS, accumulate hwcap bits from
sparc_opcode->flags of instruction into hwcap_seen.
(sparc_md_end): Create Tag_GNU_Sparc_HWCAPS attribute if
hwcap_seen is non-zero and not TE_SOLARIS.

gas/testsuite/

* gas/sparc/hpcvis3.s: Update for fixed fchksum16 mnemonic.
* gas/sparc/hpcvis3.d: Likewise.

include/elf/

* sparc.h (Tag_GNU_Sparc_HWCAPS): New object attribute.
(ELF_SPARC_HWCAP_*): New HWCAPS bitmask values.

include/opcode/

* sparc.h (struct sparc_opcode): Expand 'flags' to unsigned int.
(F_MUL32, F_DIV32, F_FSMULD, F_V8PLUS, F_POPC, F_VIS, F_VIS2,
F_ASI_BLK_INIT, F_FMAF, F_VIS3, F_HPC, F_RANDOM, F_TRANS,
F_FJFMAU, F_IMA, F_ASI_CACHE_SPARING): New flag bits.

opcodes/

* sparc-opc.c (sparc_opcodes): Annotate table with HWCAP flag
bits.  Fix "fchksm16" mnemonic.

13 years ago* tty.cc (grantpt): Check for valid fd.
Christopher Faylor [Wed, 21 Sep 2011 04:33:57 +0000 (04:33 +0000)]
* tty.cc (grantpt): Check for valid fd.
(unlockpt): Ditto.

13 years agoCheck if a symbol is hidden by linker script.
H.J. Lu [Fri, 16 Sep 2011 01:15:19 +0000 (01:15 +0000)]
Check if a symbol is hidden by linker script.

bfd/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer
to struct bfd_elf_version_tree.

* elflink.c (elf_info_failed): Remove verdefs.
(_bfd_elf_export_symbol): Updated.
_bfd_elf_link_assign_sym_version): Likewise.
(bfd_elf_size_dynamic_sections): Remove pointer to struct
bfd_elf_version_tree.  Updated.
(bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden
by linker script.

* linker.c (bfd_hide_sym_by_version): New.

* bfd-in2.h: Regenerated.

include/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* bfdlink.h (bfd_link_info): Add version_info.

ld/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* ldlang.c (lang_elf_version_info): Removed.
(lang_register_vers_node): Replace lang_elf_version_info with
link_info.version_info.
(lang_add_vers_depend): Likewise.
* pe-dll.c (process_def_file_and_drectve): Likewise.
* emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.

* ldlang.h (lang_elf_version_info): Removed.

* plugin.c  (is_visible_from_outside): Check if symbol is hidden
by version script.

* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove lang_elf_version_info.

ld/testsuite/

2011-09-15  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/12975
* ld-elf/pr12975.d: New.
* ld-elf/pr12975.s: Likewise.
* ld-elf/pr12975.t: Likewise.

13 years ago * strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS
Jon TURNEY [Thu, 15 Sep 2011 16:49:51 +0000 (16:49 +0000)]
* strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS
if Attaching to a process with the trace-children flag set.
(handle_output_debug_string): Apparently we don't need to explicitly
attach for debugging when a child process starts
* Makefile.in (strace.exe): Link with ntdll

13 years ago2011-09-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 8 Sep 2011 16:18:23 +0000 (16:18 +0000)]
2011-09-08  Jeff Johnston  <jjohnstn@redhat.com>

        * testsuite/lib/flags.exp: Add logic to add the
        srcdir include directory to compile flags.

13 years ago * net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
Corinna Vinschen [Fri, 2 Sep 2011 09:52:08 +0000 (09:52 +0000)]
* net.cc (cygwin_getsockopt): Drop erroneous double conversion of error
code returned by SOL_SOCKET/SO_ERROR.  Fix error handling.

13 years ago * lc_msg.h: Regenerate.
Corinna Vinschen [Thu, 1 Sep 2011 19:19:29 +0000 (19:19 +0000)]
* lc_msg.h: Regenerate.

13 years ago * dlfcn.cc (gfpod_helper): Helper function to search DLL using
Corinna Vinschen [Thu, 1 Sep 2011 08:17:07 +0000 (08:17 +0000)]
* dlfcn.cc (gfpod_helper): Helper function to search DLL using
a given DLL name.  Change default search path to allow /usr/bin.
(get_full_path_of_dll): Find DLLs even if the caller used a ".so"
suffix or a "lib" prefix for the DLL.

13 years ago * flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
Corinna Vinschen [Wed, 31 Aug 2011 16:35:19 +0000 (16:35 +0000)]
* flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
unlock_and_remove.

13 years ago * flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
Corinna Vinschen [Mon, 29 Aug 2011 13:50:25 +0000 (13:50 +0000)]
* flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
field.
(class lockf_t): Add lf_ver field.
(lockf_t::lockf_t): Initialize lf_ver to 0.
(class inode_t): Change i_wait to i_cnt.  Change comment to explain
change in usage.
(inode_t:use): Rename from wait.  Make private.
(inode_t::unuse): Rename from unwait.  Make private.
(inode_t::inuse): Rename from waiting.  Make private.
(inode_t::notused): New public method to set use count to 0.
(inode_t::unlock_and_remove): New method to unlock node and to delete
it if it's unused in current process.
(fhandler_base::del_my_locks): Drop global list lock.  Drop variable
no_locks_left.  Simpify unlocking and removing node by just calling
unlock_and_remove.
(fixup_lockf_after_exec): Call notused method for each node.
(inode_t::get): Call use method.  Lock node only if outside of list
lock.
(inode_t::get_all_locks_list): Accommodate additional lf_ver field
when creating lockf_t structure from object name.
(lockf_t::create_lock_obj_attr): Accommodate additional lf_ver field
when creating object name from lockf_t structure.  Handle
STATUS_OBJECT_NAME_COLLISION gracefully in F_POSIX case as well.
Change comment accordingly.  Increment lf_ver field rather than high
byte of lf_wid field.  Simplify comment.
(fhandler_disk_file::lock): Always call unlock_and_remove rather than
just UNLOCK on node.
(lf_setlock): Move ret definition where it's used.  Drop unneeded
tests for obj being not NULL.  Only check for deadlock condition if the
lock we're trying to establish is a POSIX lock.  Revamp object
collecting and wait code to cover all cases.  Don't return with EDEADLK
if blocking process can't be opened for synchronization in F_POSIX case,
rather just wait like in F_FLOCK case.  Change system_printf to
debug_printf in that case.  Only run WaitForMultipleObjects with high
priority.  Close obj and process handles prior to locking node.

13 years agoDon't expose implementation detail for opaque DIRENT structures.
Keith Marshall [Sat, 27 Aug 2011 20:16:47 +0000 (20:16 +0000)]
Don't expose implementation detail for opaque DIRENT structures.

13 years ago * fhandler.cc (fhandler_base::open): Fix typo in comment.
Corinna Vinschen [Sat, 27 Aug 2011 20:01:29 +0000 (20:01 +0000)]
* fhandler.cc (fhandler_base::open): Fix typo in comment.
(fhandler_base::close): Move call to del_my_locks from here...
* fhandler_disk_file.cc (fhandler_disk_file::open): ...to here.
* flock.cc (struct lockfattr_t): New type.
(lockf_t::close_lock_obj): New method, use throughout.
(lockf_t::create_lock_obj_attr): New method.
(lockf_t::create_lock_obj): Use create_lock_obj_attr method.  Handle
STATUS_OBJECT_NAME_COLLISION in F_FLOCK case gracefully.  Add lengthy
comments to explain why and how.
(lockf_t::open_lock_obj): Use create_lock_obj_attr method.
(lockf_t::del_lock_obj): Call NtSetEvent rather than SetEvent for
symmetry.
(fhandler_disk_file::lock): Define n only where it's used.  Call
need_fork_fixup only if call was successful.  Handle EINTR and
ECANCELED return values from lf_setlock.
(lf_setlock): Drop WAIT_UNLOCKED and WAIT_PROC_EXITED.  Don't wait
for event object handle count to become <= 1 in F_LOCK case.
Simplify WFMO return value handling.  Don't handle signal and cancel
events here; just return with appropriate error code instead.
(lf_getblock): Ignore locks for which the handle can't be opened.
Use IsEventSignalled.
* ntdll.h (STATUS_INVALID_INFO_CLASS): Undef if defined elsewhere to
make sure the definition is casted to NTSTATUS.
(STATUS_INVALID_HANDLE): Define and ditto.
(STATUS_OBJECT_NAME_COLLISION): Define.
(NtSetEvent): Declare.

13 years ago * libc/time/mktm_r.c (_mktm_r): Fix previous fix.
Corinna Vinschen [Fri, 26 Aug 2011 07:23:42 +0000 (07:23 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix previous fix.

13 years ago* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
Christopher Faylor [Thu, 25 Aug 2011 19:37:39 +0000 (19:37 +0000)]
* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
also in freerange thread case.

13 years ago * fhandler.cc (fhandler_base::open): Never open files with
Corinna Vinschen [Thu, 25 Aug 2011 13:35:43 +0000 (13:35 +0000)]
* fhandler.cc (fhandler_base::open): Never open files with
FILE_OVERWITE/FILE_OVERWRITE_IF.  Set file size to 0 explicitely if
regular, existing file has been opened for writing with O_TRUNC flag
set.  Explain why.

13 years ago * thread.cc (pthread::pthread): Drop setting parent_tls. Call
Corinna Vinschen [Wed, 24 Aug 2011 15:18:17 +0000 (15:18 +0000)]
* thread.cc (pthread::pthread): Drop setting parent_tls.  Call
sigprocmask to copy parent thread signal mask into new parent_sigmask
member.
(pthread::thread_init_wrapper): Copy _my_tls.sigmask from new
parent_sigmask member.
* thread.h (class pthread): Drop parent_tls.  Add parent_sigmask.

13 years ago* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
Christopher Faylor [Wed, 24 Aug 2011 14:23:38 +0000 (14:23 +0000)]
* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
contents if we've asked _main_tls to exit.

13 years ago * libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.
Corinna Vinschen [Wed, 24 Aug 2011 13:38:32 +0000 (13:38 +0000)]
* libc/time/mktm_r.c (_mktm_r): Fix computing tm_year.

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 23 Aug 2011 22:59:35 +0000 (22:59 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.20.

13 years ago2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Tue, 23 Aug 2011 22:27:35 +0000 (22:27 +0000)]
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * tlsmthread.c: Update to reflect changes in tlssup.c.
        * tlssup.c: code clean-up.

13 years ago * poll.cc (poll): Don't return prematurely if invalid fds have been
Corinna Vinschen [Tue, 23 Aug 2011 14:05:04 +0000 (14:05 +0000)]
* poll.cc (poll): Don't return prematurely if invalid fds have been
encountered.  Enforce timeout set to 0 in case of invalid fds.  Take
number of invalid fds into account when returning.

13 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
Corinna Vinschen [Tue, 23 Aug 2011 13:07:24 +0000 (13:07 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
nosignal flag.  Convert ECONNABORTED on connection-oriented socket
to EPIPE, too.

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 12:03:55 +0000 (12:03 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/stdlib/putenv_r.c: Use "strchr" instead of obsolete "index".
* libc/stdlib/setenv_r.c: Use "memcpy" instead of obsolete "bcopy".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 12:01:51 +0000 (12:01 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/misc/ffs.c, libc/string/bcmp.c, libc/string/bcopy.c,
libc/string/bzero.c, libc/string/index.c, libc/string/rindex.c,
libc/string/strcasecmp.c, libc/string/strncasecmp.c:
Let synopsis reference "#include <strings.h>".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 11:59:56 +0000 (11:59 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
"iswcntrl".

13 years ago2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Tue, 23 Aug 2011 05:51:04 +0000 (05:51 +0000)]
2011-08-23  Ralf Corsépius  <ralf.corsepius@rtems.org>

* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on
__SIZE_MAX__, __SIZEOF_SIZE_T__ and __CHAR_BIT__.

13 years ago * picflag.m4: New file.
Rainer Orth [Mon, 22 Aug 2011 17:51:24 +0000 (17:51 +0000)]
* picflag.m4: New file.

13 years ago2011-08-22 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Mon, 22 Aug 2011 16:49:37 +0000 (16:49 +0000)]
2011-08-22  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/string/index.c: Include <strings.h> for "index".
* libc/string/rindex.c: Include <strings.h> for "rindex".
* libc/string/strcasecmp.c: Include <strings.h> for "strcasecmp".
Don't include <string.h>.
* libc/string/strncasecmp.c: Include <strings.h> for "strncasecmp".
Don't include <string.h>.
* libc/string/bzero.c: Include <strings.h> for "bzero".
Don't include <string.h>
* libc/misc/ffs.c: Include <strings.h> for "ffs".
Don't include <_ansi.h>.

13 years ago* Makefile.in: Check for header file existence when building dumper.exe too.
Christopher Faylor [Sun, 21 Aug 2011 19:36:52 +0000 (19:36 +0000)]
* Makefile.in: Check for header file existence when building dumper.exe too.

13 years ago* dtable.cc (conv_start_chars): Remove unneeded section attribute.
Christopher Faylor [Sun, 21 Aug 2011 18:45:07 +0000 (18:45 +0000)]
* dtable.cc (conv_start_chars): Remove unneeded section attribute.

13 years ago* include/paths.h (_PATH_MAILDIR): Define.
Yaakov Selkowitz [Sun, 21 Aug 2011 03:22:30 +0000 (03:22 +0000)]
* include/paths.h (_PATH_MAILDIR): Define.
(_PATH_SHELLS): Define.

13 years ago * fhandler_process.cc (format_process_maps): Define page protection
Corinna Vinschen [Sat, 20 Aug 2011 18:55:45 +0000 (18:55 +0000)]
* fhandler_process.cc (format_process_maps): Define page protection
shortcuts RO, X, and WC.  Use in creating access flag string.  Don't
set type flag to 's' for copy-on-write pages, as on Linux.

13 years ago2011-08-19 Ralf Corsépius <ralf.corsepius@rtems.org>
Ralf Corsepius [Sat, 20 Aug 2011 05:34:22 +0000 (05:34 +0000)]
2011-08-19  Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/sys/rtems/crt0.c: Rework RTEMS_STUB macro.
Include <unistd.h>.
Remove C++-style comments.
Remove hppa, a29k.
Add clock_gettime, gettimeofday, sched_yield.

13 years ago2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 05:00:12 +0000 (05:00 +0000)]
2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.19.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 04:12:22 +0000 (04:12 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/float.h: Modify guard to accomodate CLang.

        Thanks to Ruben Van Boxem for the report.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 04:11:28 +0000 (04:11 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * tlssup.c: Remove mingwm10.dll fallback.

13 years ago2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 20 Aug 2011 01:38:16 +0000 (01:38 +0000)]
2011-08-19  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/sys/types.h (ssize_t): Defined as int as opposed to long.

        Thanks to bvassche for the report.

13 years ago* new-features.sgml (ov-new1.7.10): Document /proc/devices
Yaakov Selkowitz [Fri, 19 Aug 2011 20:06:28 +0000 (20:06 +0000)]
* new-features.sgml (ov-new1.7.10): Document /proc/devices
and /proc/misc.

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