]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago * passwd.cc (setpassent): Align to BSD definition.
Corinna Vinschen [Fri, 17 Jan 2014 14:53:04 +0000 (14:53 +0000)]
* passwd.cc (setpassent): Align to BSD definition.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 17 Jan 2014 11:11:25 +0000 (11:11 +0000)]
*** empty log message ***

10 years ago * syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safe
Corinna Vinschen [Fri, 17 Jan 2014 11:07:37 +0000 (11:07 +0000)]
* syscalls.cc (popen): Introduce Glibc 'e' flag to allow thread-safe
opening of the pipe with O_CLOEXEC flag.  Simplify FD_CLOEXEC handling.

10 years ago * include/sys/file.h (LOCK_SH): Drop definition in favor of new
Corinna Vinschen [Fri, 17 Jan 2014 11:01:46 +0000 (11:01 +0000)]
* include/sys/file.h (LOCK_SH): Drop definition in favor of new
definitions in newlib.
(LOCK_EX): Ditto.
(LOCK_NB): Ditto.
(LOCK_UN): Ditto.
(flock): Ditto.
(F_OK): Drop.  Already correctly defined in unistd.h.
(X_OK): Ditto.
(W_OK): Ditto.
(R_OK): Ditto.

10 years ago * libc/include/sys/_default_fcntl.h (LOCK_SH): Define.
Corinna Vinschen [Fri, 17 Jan 2014 10:57:54 +0000 (10:57 +0000)]
* libc/include/sys/_default_fcntl.h (LOCK_SH): Define.
(LOCK_EX): Likewise.
(LOCK_NB): Likewise.
(LOCK_UN): Likewise.
(flock): Declare.

10 years ago * include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.
Corinna Vinschen [Fri, 17 Jan 2014 10:56:25 +0000 (10:56 +0000)]
* include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.

10 years ago Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
Corinna Vinschen [Fri, 17 Jan 2014 10:55:32 +0000 (10:55 +0000)]
Introduce _STDIO_BSD_SEMANTICS flag to switch fclose/exit file flushing
semantics from POSIX to BSD.
* libc/stdio/fclose.c (_fclose_r): Conditionalize file flushing on
_STDIO_BSD_SEMANTICS.  Call __sflush_r rather than _fflush_r.  Add
comment.
* libc/stdio/fflush.c (__sflushw_r): New function, only available
if _STDIO_BSD_SEMANTICS is defined.
* libc/stdio/findfp.c (_cleanup_r): Call _fwalk_reent rather than
_fwalk.  Conditionalize cleanup function call on _STDIO_BSD_SEMANTICS.
Add comments.  Add FIXME.
* libc/stdio/local.h (__sflushw_r): Declare if _STDIO_BSD_SEMANTICS is
defined.

10 years ago* dtable.h (dtable::lock): Make static.
Christopher Faylor [Thu, 16 Jan 2014 18:40:13 +0000 (18:40 +0000)]
* dtable.h (dtable::lock): Make static.

10 years ago2014-01-10 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 10 Jan 2014 23:04:01 +0000 (23:04 +0000)]
2014-01-10  Jeff Johnston  <jjohnstn@redhat.com>

        * arm/configure.in: Revert previous fix and change host_makefile_frag
        to calculate the absolute location of srcdir/../config/default.mh.
        * arm/configure: Regenerated.

10 years ago.
Christopher Faylor [Wed, 8 Jan 2014 16:55:23 +0000 (16:55 +0000)]
.

10 years ago* exceptions.h (cygwin_exception::open_stackdumpfile): Move old function into
Christopher Faylor [Wed, 8 Jan 2014 16:51:20 +0000 (16:51 +0000)]
* exceptions.h (cygwin_exception::open_stackdumpfile): Move old function into
class.
(cygwin_exception::h): New member.
(cygwin_exception::cygwin_exception): Initialize h to NULL.
* exceptions.cc (cygwin_exception::open_stackdumpfile): Move into
cygwin_exception class.  Use 'h' class member.
(cygwin_exception::dumpstack): Close stack dump file handle if opened.

10 years ago2014-01-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 7 Jan 2014 22:41:38 +0000 (22:41 +0000)]
2014-01-07  Jeff Johnston  <jjohnstn@redhat.com>

        * arm/configure.in: Fix host_makefile_frag to use ac_abs_srcdir.
        * arm/configure: Regenerated.

10 years ago * faq-programming.xml: Update packages needed to build Cygwin.
Corinna Vinschen [Tue, 7 Jan 2014 14:54:58 +0000 (14:54 +0000)]
* faq-programming.xml: Update packages needed to build Cygwin.

10 years ago2014-01-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Mon, 6 Jan 2014 20:59:38 +0000 (20:59 +0000)]
2014-01-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * libc/include/sys/_default_fcntl.h (AT_FDCWD): Define according
        to POSIX.
        (AT_EACCESS): Likewise.
        (AT_SYMLINK_NOFOLLOW): Likewise.
        (AT_SYMLINK_FOLLOW): Likewise.
        (AT_REMOVEDIR): Likewise.
        (openat): Declare according to POSIX.
        * libc/include/stdio.h (renameat): Likewise.
        * libc/include/sys/stat.h (fchmodat): Likewise.
        (fstatat): Likewise.
        (mkdirat): Likewise.
        (mkfifoat): Likewise.
        (mknodat): Likewise.
        (utimensat): Likewise.
        (futimens): Likewise.
        * libc/include/sys/unistd.h (faccessat): Likewise.
        (fchownat): Likewise.
        (linkat): Likewise.
        (readlinkat): Likewise.
        (symlinkat): Likewise.
        (unlinkat): Likewise.

10 years ago2014-01-06 Mike Frysinger <vapier@gentoo.org>
Jeff Johnston [Mon, 6 Jan 2014 19:50:33 +0000 (19:50 +0000)]
2014-01-06  Mike Frysinger  <vapier@gentoo.org>

        * libc/search/hash.c (hash_delete): Change __uint32_t to u_int.
        (hash_get): Likewise.
        (hash_put): Likewise.
        (hash_seq): Likewise.
        (hash_sync): Likewise.

Also fix former ChangeLog entry to be 2014.

10 years ago2013-01-06 Mike Frysinger <vapier@gentoo.org>
Jeff Johnston [Mon, 6 Jan 2014 19:30:50 +0000 (19:30 +0000)]
2013-01-06  Mike Frysinger  <vapier@gentoo.org>

        * libc/ctype/jp2uc.c: Include string.h.

10 years agoRecreate
Christopher Faylor [Sun, 5 Jan 2014 00:09:39 +0000 (00:09 +0000)]
Recreate

10 years ago* fhandler.h: Update copyright.
Christopher Faylor [Sat, 4 Jan 2014 23:58:32 +0000 (23:58 +0000)]
* fhandler.h: Update copyright.
(cltype): New enum.
(dev_console::console_attrs): Define struct name.
(dev_console::console_attrs::set_cl_x): New function.
(dev_console::console_attrs::set_cl_y): New function.
(fhandler_console::clear_screen): Redefine input params.
* fhandler_console.cc: Update copyright.  Throughout, reflect change in
arguments to fhandler_console::clear_screeen.
(fhandler_console::mouse_aware): Simplify logic slightly.
(fhandler_console::scroll_screen): Remove hopefully obsolete win95 code.
(dev_console::console_attrs::set_cl_x): New function.
(dev_console::console_attrs::set_cl_y): New function.
(fhandler_console::clear_screen): Redefine input params.  Calculate position
based on enum value.
(region_split): Change arguments.  Simplify.
(ReadConsoleOutputWrapper): Remove coord argument since we now always use 0, 0.
Send extra arguments to region_split.

10 years ago.
Christopher Faylor [Tue, 31 Dec 2013 22:27:12 +0000 (22:27 +0000)]
.

10 years ago* fhandler_console.cc (region_split): New function.
Christopher Faylor [Tue, 31 Dec 2013 22:19:07 +0000 (22:19 +0000)]
* fhandler_console.cc (region_split): New function.
(delta): Ditto.
(ReadConsoleOutputWrapper): Ditto.
(fhandler_console::char_command): Use ReadConsoleOutputWrapper to avoid OOM
condition from ReadConsoleOutputW.  Add more debugging.

10 years ago2013-12-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 23 Dec 2013 20:45:10 +0000 (20:45 +0000)]
2013-12-23  Jeff Johnston  <jjohnstn@redhat.com>

        * NEWS: Update with 2.1.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 2.1.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Regenerated.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_2.1

10 years ago2013-12-22 JF Bastien <jfb@chromium.org>
Jeff Johnston [Mon, 23 Dec 2013 19:21:07 +0000 (19:21 +0000)]
2013-12-22  JF Bastien  <jfb@chromium.org>

        * libc/include/limits.h: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX
        for C++11 too.
        * libc/include/stdlib.h: Define struct lldiv_t, _Exit, atoll, llabs
        and lldiv for C99 and C++11.  Move wcstold to wchar.h.
        * libc/include/wchar.h: Define WCHAR_MIN and WCHAR_MAX according to
        __WCHAR_UNSIGNED__ if it is provided, and correct the limit when
        unsigned (to 32 all-1 bits, not 31).  Define FILE as in stdio.h.
        Move wcstold from stdlib.h here.

10 years agomerge from gcc
DJ Delorie [Mon, 23 Dec 2013 18:30:21 +0000 (18:30 +0000)]
merge from gcc

10 years ago* strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitialized
Christopher Faylor [Sun, 22 Dec 2013 07:07:48 +0000 (07:07 +0000)]
* strace.cc (strace::vsprntf): Fix potential (if unlikely) use of uninitialized
variable.

10 years ago * configure.host (newlib_cflags): Use -Os, -ffunction-sections and
Nick Clifton [Fri, 20 Dec 2013 10:27:49 +0000 (10:27 +0000)]
* configure.host (newlib_cflags): Use -Os, -ffunction-sections and
-fdata-sections for RL78.

10 years ago * libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point in
Corinna Vinschen [Thu, 19 Dec 2013 18:50:00 +0000 (18:50 +0000)]
* libc/stdio/vfwscanf.c (__SVFWSCANF_R): Fix fetching decimal_point in
!_MB_CAPABLE as well as in !__HAVE_LOCALE_INFO_EXTENDED__ case.

10 years agoFix ChangeLog entry
Corinna Vinschen [Thu, 19 Dec 2013 09:50:19 +0000 (09:50 +0000)]
Fix ChangeLog entry

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 18 Dec 2013 20:50:04 +0000 (20:50 +0000)]
*** empty log message ***

10 years ago * vfscanf.c (BUF): Change definition to take multibyte decimal point
Corinna Vinschen [Wed, 18 Dec 2013 19:23:33 +0000 (19:23 +0000)]
* vfscanf.c (BUF): Change definition to take multibyte decimal point
into account.
(__SVFSCANF_R): Handle radix char language-dependent
per POSIX.
(__SVFWSCANF_R): Ditto.

10 years ago.
Christopher Faylor [Wed, 18 Dec 2013 17:49:51 +0000 (17:49 +0000)]
.

10 years ago* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.
Christopher Faylor [Wed, 18 Dec 2013 17:44:20 +0000 (17:44 +0000)]
* dcrt0.cc (dll_crt0_1): Remove NtSetTimerResolution.
* pinfo.cc (pinfo::init): Increase wait interval when waiting for procinfo to
stabilize.

10 years ago* autoload.cc (timeBeginPeriod): Delete.
Christopher Faylor [Wed, 18 Dec 2013 04:39:36 +0000 (04:39 +0000)]
* autoload.cc (timeBeginPeriod): Delete.
* dcrt0.cc (dll_crt0_1): Use NtSetTimerResolution rather than timeBeginPeriod.

10 years ago* autoload.cc (timeBeginPeriod): Autoload.
Christopher Faylor [Wed, 18 Dec 2013 04:28:46 +0000 (04:28 +0000)]
* autoload.cc (timeBeginPeriod): Autoload.
* dcrt0.cc (dll_crt0_1): Use timeBeginPeriod to set default resolution to 1 ms.
* pinfo.cc (pinfo::thisproc): Set ppid for redirected _pinfo blocks too.
(pinfo::init): Avoid using VirtualQuery.  Just rely on the assumption that
procinfo will be populated.
* pinfo.h (_pinfo::ppid): Move into redirected block.

10 years ago* external.cc (fillout_pinfo): Remove nonsensical loop.
Christopher Faylor [Wed, 18 Dec 2013 03:58:11 +0000 (03:58 +0000)]
* external.cc (fillout_pinfo): Remove nonsensical loop.
* fork.cc (frok::parent): When initializing pinfo for child new PID_NEW flag +
actual defined constant rather than raw number.  Don't set start_time here.
* pinfo.cc (pinfo::thisproc): Use PID_NEW when initializing pinfo.  Avoid
checking h for NULL multiple times.  Don't set start_time here.
(pinfo_init): Aways set ppid last.  Tweak strace output.
(pinfo::init): Handle new PID_NEW flag.  Wait for shared memory to contain
useful information.  Set start_time if PID_NEW.
(_onreturn:h): Define as HANDLE rather than HANDLE *.
(_onreturn::~onreturn): Accommodate h definition change.
(_onreturn::no_close_handle): Rename from no_close_p_handle.  Take a pinfo arg
and set hProcess to h before zeroing.
(winpids::add): Don't open a handle to our own process.  Change logic
associated with when a handle gets closed.  Accommodate no_close_handle
changes.
(winpids::enum_processes): Simplify process enumeration loop.
(winpids::set): Eliminate ill-considered malloc locking.
* sigproc.cc (proc_subproc): Always set ppid last.

10 years ago* sigproc.cc (sig_send): Set PIPE_NOWAIT for pipes which are not us.
Christopher Faylor [Wed, 18 Dec 2013 03:01:39 +0000 (03:01 +0000)]
* sigproc.cc (sig_send): Set PIPE_NOWAIT for pipes which are not us.

10 years ago* fhandler.h (fhandler_pty_master::~fhandler_pty_master): Delete.
Christopher Faylor [Tue, 17 Dec 2013 19:05:26 +0000 (19:05 +0000)]
* fhandler.h (fhandler_pty_master::~fhandler_pty_master): Delete.
* fhandler_tty.cc (fhandler_pty_master::~fhandler_pty_master): Ditto.

10 years ago * syscalls.cc (NT_TRANSACTIONAL_ERROR): Define.
Corinna Vinschen [Wed, 11 Dec 2013 12:12:12 +0000 (12:12 +0000)]
* syscalls.cc (NT_TRANSACTIONAL_ERROR): Define.
(stop_transaction): Take "trans" HANDLE by reference and set it to
NULL after closing it.
(unlink_nt): If NtOpenFile fails due to a transactional error, stop
transaction and retry NtOpenFile.  Simplify check for having to call
stop_transaction.
(rename): If NtOpenFile fails due to a transactional error, stop
transaction and retry NtOpenFile in both affected cases.  Simplify check
for having to call stop_transaction and add comment from unlink_nt.

10 years ago * mount.cc (fs_info::update): Fix formatting.
Corinna Vinschen [Wed, 11 Dec 2013 10:24:52 +0000 (10:24 +0000)]
* mount.cc (fs_info::update): Fix formatting.

10 years ago * fhandler.h (fhandler_dev_clipboard): Add private member
Corinna Vinschen [Tue, 10 Dec 2013 21:05:23 +0000 (21:05 +0000)]
* fhandler.h (fhandler_dev_clipboard): Add private member
cygnativeformat.  Declare private method set_clipboard.
* fhandler_clipboard.cc (cygnativeformat): Convert static variable to
fhandler_dev_clipboard member.
(fhandler_dev_clipboard::set_clipboard): Convert from static function
to fhandler_dev_clipboard method.

10 years ago2013-12-10 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 10 Dec 2013 18:57:30 +0000 (18:57 +0000)]
2013-12-10  Jeff Johnston  <jjohnstn@redhat.com>

        * acconfig.h: Add _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL.
        * newlib.hin: Ditto.
        * configure: Regenerate.
        * configure.in: Add setting of _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL.
        * libc/string/local.h: Add check for _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
        and set __inhibit_loop_to_libcall macro appropriately.
        * libc/string/memmove.c: Use __inhibit_loop_to_libcall macro in
        function declaration.
        * libc/string/memset.c: Ditto.

10 years ago * libc/sys/rtems/include/limits.h: Update page size to match
Corinna Vinschen [Tue, 10 Dec 2013 09:20:37 +0000 (09:20 +0000)]
* libc/sys/rtems/include/limits.h: Update page size to match
libc/sys/rtems/machine/param.h.

10 years agosignal hang
Christopher Faylor [Mon, 9 Dec 2013 20:47:13 +0000 (20:47 +0000)]
signal hang

10 years ago* globals.cc (hntdll): Define/declare.
Christopher Faylor [Mon, 9 Dec 2013 20:32:24 +0000 (20:32 +0000)]
* globals.cc (hntdll): Define/declare.
* exceptions.cc (inside_kernel): Don't call GetModuleFileName if we know we're
in ntdll.
* sigproc.cc (wait_sig): Initialize hntdll.

10 years ago * include/cygwin/stdlib.h (initstate, random, setstate, srandom):
Corinna Vinschen [Mon, 9 Dec 2013 10:12:42 +0000 (10:12 +0000)]
* include/cygwin/stdlib.h (initstate, random, setstate, srandom):
Harden _XOPEN_SOURCE guard against applications defining _XOPEN_SOURCE
with empty value.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 28.
Corinna Vinschen [Sun, 8 Dec 2013 13:42:16 +0000 (13:42 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 28.

10 years ago*** empty log message ***
Corinna Vinschen [Sun, 8 Dec 2013 13:38:27 +0000 (13:38 +0000)]
*** empty log message ***

10 years ago * new-features.xml (ov-new1.7.26): Add new section.
Corinna Vinschen [Sat, 7 Dec 2013 10:12:55 +0000 (10:12 +0000)]
* new-features.xml (ov-new1.7.26): Add new section.

10 years ago * path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long path
Corinna Vinschen [Sat, 7 Dec 2013 10:12:25 +0000 (10:12 +0000)]
* path.cc (symlink_native): Workaround Windows 8.1 bug: Drop long path
prefix from symlink target path.  Add comment to explain why.

10 years ago* syscalls.cc (dup): Use cygheap_fdnew properly.
Christopher Faylor [Fri, 6 Dec 2013 15:38:21 +0000 (15:38 +0000)]
* syscalls.cc (dup): Use cygheap_fdnew properly.

10 years ago* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will have
Christopher Faylor [Thu, 5 Dec 2013 19:43:34 +0000 (19:43 +0000)]
* cygheap.h (cygheap_fdnew): Avoid setting errno directly since it will have
been set by a previous function.
* dtable.h (dtable::extend): Accept second size_t argument.
* dtable.cc (dtable::extend): Accept second "min" argument which allows
checking for OPEN_MAX_MAX boundary conditions.
(dtable_init): Accommodate second argument to dtable::extend.
(dtable::find_unused_handle): Ditto.
* syscalls.cc (setdtablesize): Ditto.
(dup): Return any error passed by cygheap_fdnew() directly.
(getdtablesize): Just return dtable size directly.

10 years ago2013-12-04 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 4 Dec 2013 21:18:02 +0000 (21:18 +0000)]
2013-12-04  Steve Ellcey <sellcey@mips.com>

* mips/cfe_api.h: Include stdint.h.

10 years ago* dtable.cc (dtable::find_unused_handle): When extending, always make sure that
Christopher Faylor [Wed, 4 Dec 2013 17:55:17 +0000 (17:55 +0000)]
* dtable.cc (dtable::find_unused_handle): When extending, always make sure that
there is a NOFILE_INCR chunk following the free fd.

10 years agomerge from gcc
DJ Delorie [Wed, 4 Dec 2013 16:09:03 +0000 (16:09 +0000)]
merge from gcc

10 years ago* configure.ac: Back out stupid change.
Christopher Faylor [Tue, 3 Dec 2013 20:51:05 +0000 (20:51 +0000)]
* configure.ac: Back out stupid change.
* configure: Regenerate.

10 years ago* select.cc (select): Add workaround for, as yet undebugged, pathological case.
Christopher Faylor [Tue, 3 Dec 2013 20:28:55 +0000 (20:28 +0000)]
* select.cc (select): Add workaround for, as yet undebugged, pathological case.

10 years ago* configure.ac: Don't require 64-bit compiler for 32-bit builds.
Christopher Faylor [Tue, 3 Dec 2013 18:37:40 +0000 (18:37 +0000)]
* configure.ac: Don't require 64-bit compiler for 32-bit builds.
* configure: Regenerate.

10 years ago * libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.
Corinna Vinschen [Tue, 3 Dec 2013 16:07:33 +0000 (16:07 +0000)]
* libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.

10 years ago * libc/include/machine/_default_types.h: Move extern "C" after
Corinna Vinschen [Tue, 3 Dec 2013 16:04:41 +0000 (16:04 +0000)]
* libc/include/machine/_default_types.h: Move extern "C" after
header includes.  Include <sys/features.h> for
__GNUC_PREREQ__().
(__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if
available.
(__intptr_t): Define.
(__uintptr_t): Likewise.
* libc/include/stdint.h: Include <machine/_default_types.h>
instead of <_ansi.h>.
(u?int.*_t): Define via __u?int.*_t provided by
<machine/_default_types.h>.
(u?int_fast.*_t): Define via GCC provided
__U?INT_FAST.*_TYPE__ if available.
(U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__
if available.
(U?INT.*_C): Define via GCC provided __U?INT.*_C if available.
* libc/include/sys/cdefs.h: Use <machine/_default_types.h>
instead of <stdint.h>.
* libc/sys/rtems/sys/cpuset.h: Likewise.
* libc/sys/rtems/machine/_types.h: Include <stdint.h> for
FreeBSD compatibility.

10 years ago* dtable.cc (dtable::find_unused_handle): Break out of the right loop.
Christopher Faylor [Sun, 1 Dec 2013 19:17:56 +0000 (19:17 +0000)]
* dtable.cc (dtable::find_unused_handle): Break out of the right loop.

10 years ago* dtable.cc (dtable::find_unused_handle): Fix off-by-one error. Always exit
Christopher Faylor [Sun, 1 Dec 2013 17:52:48 +0000 (17:52 +0000)]
* dtable.cc (dtable::find_unused_handle): Fix off-by-one error.  Always exit
through the bottom.
(cygwin_attach_handle_to_fd): Make sure that fd tab is locked for the duration
of this function.
* dtable.h (dtable::lock): Make public.
(dtable::unlock): Ditto.
(dtable): Remove friends.

10 years agoFix ChangeLog entry
Corinna Vinschen [Sun, 1 Dec 2013 10:47:29 +0000 (10:47 +0000)]
Fix ChangeLog entry

10 years ago * dtable.cc (dtable::extend): Change local variable new_size to size_t
Corinna Vinschen [Sun, 1 Dec 2013 10:27:16 +0000 (10:27 +0000)]
* dtable.cc (dtable::extend): Change local variable new_size to size_t
as well.

* thread.cc: Fix comment.

10 years ago.
Christopher Faylor [Sun, 1 Dec 2013 02:58:03 +0000 (02:58 +0000)]
.

10 years ago* dtable.h (dtable::first_fd_for_open): Change declaration to size_t.
Christopher Faylor [Sun, 1 Dec 2013 02:52:54 +0000 (02:52 +0000)]
* dtable.h (dtable::first_fd_for_open): Change declaration to size_t.
(dtable::extend): Change parameter to size_t.
(dtable::find_unused_handle): Ditto.
* dtable.cc: Remove now-unused header.
(dtable::extend): Remove pointless test.  Change parameter to size_t.
(dtable::find_unused_handle): Rework to avoid MAX calculation in extend() call.
Change parameter to size_t.

10 years ago* dtable.cc (build_fh_pc): When creating an archetype, use native name rather
Christopher Faylor [Sun, 1 Dec 2013 02:09:22 +0000 (02:09 +0000)]
* dtable.cc (build_fh_pc): When creating an archetype, use native name rather
than unix name if name doesn't exist.

10 years ago2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill [Fri, 29 Nov 2013 23:35:34 +0000 (23:35 +0000)]
2013-11-29  Sebastian Huber <sebastian.huber@embedded-brains.de>

* libc/include/pthread.h (pthread_cleanup_push): Delete prototype
and add macro of the same name.
(pthread_cleanup_pop): Likewise.
(_pthread_cleanup_context): Define.
(_pthread_cleanup_push): Likewise.
(_pthread_cleanup_pop): Likewise.
(pthread_cleanup_push_defer_np): Define if _GNU_SOURCE is defined.
(pthread_cleanup_pop_restore_np): Likewise.
(_pthread_cleanup_push_defer): Likewise.
(_pthread_cleanup_pop_restore): Likewise.

10 years ago2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>
Joel Sherrill [Fri, 29 Nov 2013 23:14:57 +0000 (23:14 +0000)]
2013-11-29  Jennifer Averett <jennifer.averett@oarcorp.com>

* libc/include/pthread.h (pthread_attr_setaffinity_np):
Add pthread SMP affinity attributes to methods to RTEMS for
compatibility with GNU/Linux.
(pthread_attr_getaffinity_np): Likewise.
(pthread_setaffinity_np): Likewise.
(pthread_getaffinity_np): Likewise.
(pthread_getattr_np): Add for GNU/Linux compatibility.
* libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS.
* libc/include/sys/cdefs.h (_GNU_SOURCE): Defining _GNU_SOURCE
turns on all _XXX_VISBLE feature flags.

10 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.
Christopher Faylor [Fri, 29 Nov 2013 13:31:54 +0000 (13:31 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 27.

10 years ago * include/cygwin/stdlib.h(initstate, random, setstate, srandom) :
Jon TURNEY [Fri, 29 Nov 2013 13:05:43 +0000 (13:05 +0000)]
* include/cygwin/stdlib.h(initstate, random, setstate, srandom) :
Prototype if not __STRICT_ANSI__ or _XOPEN_SOURCE is defined appropriately.

10 years ago * new-features.xml (ov-new1.7.26): Fix section ID and title. Add
Corinna Vinschen [Fri, 29 Nov 2013 10:14:13 +0000 (10:14 +0000)]
* new-features.xml (ov-new1.7.26): Fix section ID and title.  Add
posix_spawn item.

10 years ago * include/glob.h: Fix invalid use of 'restrict' error.
Corinna Vinschen [Thu, 28 Nov 2013 10:00:01 +0000 (10:00 +0000)]
* include/glob.h: Fix invalid use of 'restrict' error.

10 years ago2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill [Wed, 27 Nov 2013 14:53:59 +0000 (14:53 +0000)]
2013-11-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>

* libc/sys/rtems/cpusetalloc.c: New file.
* libc/sys/rtems/cpusetfree.c: Likewise.
* libc/sys/rtems/Makefile.am (lib_a_SOURCES): Add new files.
* libc/sys/rtems/Makefile.in: Regenerate.
* libc/sys/rtems/sys/cpuset.h: Delete #if 0 block.  Include
<stddef.h> for size_t.
(_NCPUBITS): Avoid NBBY and assume 8 bits per char.
(__cpuset_mask): Use int instead of size_t parameter for Linux
compatibility.
(__cpuset_index): Likewise.
(__cpuset_alloc): Declare.
(__cpuset_free): Likewise.
(CPU_ALLOC_SIZE): Likewise.
(CPU_ALLOC): Define.
(CPU_FREE): Likewise.
(CPU_ZERO_S): Likewise.
(CPU_FILL_S): Likewise.
(CPU_SET_S): Likewise.
(CPU_CLR_S): Likewise.
(CPU_ISSET_S): Likewise.
(CPU_COUNT_S): Likewise.
(CPU_AND_S): Likewise.
(CPU_OR_S): Likewise.
(CPU_XOR_S): Likewise.
(CPU_NAND_S): Likewise.
(CPU_EQUAL_S): Likewise.
(CPU_ZERO): Use CPU_ZERO_S().
(CPU_FILL): Use CPU_FILL_S().
(CPU_SET): Use CPU_SET_S().
(CPU_CLR): Use CPU_CLR_S().
(CPU_ISSET): Use CPU_ISSET_S().
(CPU_COUNT): Use CPU_COUNT_S().
(CPU_AND): Use CPU_AND_S().
(CPU_OR): Use CPU_OR_S().
(CPU_XOR): Use CPU_XOR_S().
(CPU_NAND): Use CPU_NAND_S().
(CPU_EQUAL): Use CPU_EQUAL_S().
(CPU_CMP): Delete superfluous const qualifier.
(CPU_EMPTY): Likewise.

10 years ago * syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.
Corinna Vinschen [Wed, 27 Nov 2013 14:48:27 +0000 (14:48 +0000)]
* syscalls.cc (try_to_bin): Enhance debug output in case reopen fails.

10 years ago * syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.
Corinna Vinschen [Wed, 27 Nov 2013 14:30:36 +0000 (14:30 +0000)]
* syscalls.cc (try_to_bin): Drop fh_dup, reuse tmp_fh instead.

10 years ago * syscalls.cc (try_to_bin): Take additional parameter to get file open
Corinna Vinschen [Wed, 27 Nov 2013 14:27:34 +0000 (14:27 +0000)]
* syscalls.cc (try_to_bin): Take additional parameter to get file open
flags.  If the file to move to the bin has been opened casesensitive,
reopen it caseinsensitive.  Explain why.  Revert the default name of
the Vista-and-later recycler to mixed case for readability.
(unlink_nt): Call try_to_bin with file open flags as evaluated.

10 years ago * libc/machine/mips/setjmp.S: Fix definition of macro FPR_LAYOUT
Corinna Vinschen [Wed, 27 Nov 2013 12:45:56 +0000 (12:45 +0000)]
* libc/machine/mips/setjmp.S: Fix definition of macro FPR_LAYOUT
for ABI == N32.

10 years ago2013-11-26 Matheus Almeida <Matheus.Almeida@imgtec.com>
Jeff Johnston [Tue, 26 Nov 2013 19:58:19 +0000 (19:58 +0000)]
2013-11-26  Matheus Almeida  <Matheus.Almeida@imgtec.com>

        * libc/include/machine/setjmp.h: Add support for __mips_fpr being
        64 and treat it the same as if __mips64 is set.
        * libc/machine/mips/setjmp.S: Ditto, plus add checks for _MIPS_SIM
        being _ABIN32 and _ABI64.

10 years ago * nlsfuncs.cc (wcscoll): Add "__restrict" to definition.
Corinna Vinschen [Tue, 26 Nov 2013 17:27:25 +0000 (17:27 +0000)]
* nlsfuncs.cc (wcscoll): Add "__restrict" to definition.
(wcsxfrm): Ditto.

10 years agoCorrect for missing entries for wchar.h changes and white space changes
Joel Sherrill [Tue, 26 Nov 2013 17:27:08 +0000 (17:27 +0000)]
Correct for missing entries for wchar.h changes and white space changes

10 years ago2013-11-26 Julio Gutierrez <jgutleyva@gmail.com>
Joel Sherrill [Tue, 26 Nov 2013 17:21:01 +0000 (17:21 +0000)]
2013-11-26  Julio Gutierrez <jgutleyva@gmail.com>

*libc/include/wchar.h: Add restrict keyword.
*libc/stdio/fgetws.c (fgetws): ditto.
*libc/stdio/fputws.c (fputws): ditto.
*libc/stdio/fwprintf.c (fwprintf): ditto.
*libc/stdio/fwscanf.c (fwscanf): ditto.
*libc/stdio/swprintf.c (swprintf): ditto.
*libc/stdio/swscanf.c (swscanf): ditto.
*libc/stdio/vfwprintf.c (vfwprintf): ditto.
*libc/stdio/vfwscanf.c (vfwscanf): ditto.
*libc/stdio/vswprintf.c (vswprintf): ditto.
*libc/stdio/vswscanf.c (vswscanf): ditto.
*libc/stdio/vwprintf.c (vwprintf): ditto.
*libc/stdio/vwscanf.c (vwscanf): ditto.
*libc/stdio/wprintf.c (wprintf): ditto.
*libc/stdio/wscanf.c (wscanf): ditto.
*libc/stdlib/mbrlen.c (mbrlen): ditto.
*libc/stdlib/mbrtowc.c (mbrtowc): ditto.
*libc/stdlib/mbsnrtowcs.c (mbsnrtowcs): ditto.
*libc/stdlib/mbsrtowcs.c (mbsrtowcs): ditto.
*libc/stdlib/wcrtomb.c (wcrtomb): ditto.
*libc/stdlib/wcsnrtombs.c (wcsnrtombs): ditto.
*libc/stdlib/wcsrtombs.c (wcsrtombs): ditto.
*libc/stdlib/wcstod.c (wcstod): ditto.
*libc/stdlib/wcstol.c (wcstol): ditto.
*libc/stdlib/wcstold.c (wcstold): ditto.
*libc/stdlib/wcstoll.c (wcstoll): ditto.
*libc/stdlib/wcstoul.c (wcstoul): ditto.
*libc/stdlib/wcstoull.c (cstoull): ditto.
*libc/string/wcpcpy.c (wcpcpy): ditto.
*libc/string/wcpncpy.c (wcpncpy): ditto.
*libc/string/wcscat.c (wcscat): ditto.
*libc/string/wcscpy.c (wcscpy): ditto.
*libc/string/wcsncat.c (wcsncat): ditto.
*libc/string/wcsncpy.c (wcsncpy): ditto.
*libc/string/wcsstr.c (wcsstr): ditto.
*libc/string/wcstok.c (wcstok): ditto.
*libc/string/wcsxfrm.c (wcsxfrm): ditto.
*libc/string/wmemcpy.c (wmemcpy): ditto.

10 years ago * common.din: Export posix_spawn[...] functions.
Corinna Vinschen [Tue, 26 Nov 2013 17:11:09 +0000 (17:11 +0000)]
* common.din: Export posix_spawn[...] functions.
* exec.cc (execve): Add EXPORT_ALIAS _execve.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml (std-susv4):  Add posix_spawn[...] here.
(std-notimpl): Drop here.

10 years ago * nlsfuncs.cc (strcoll): Add "__restrict" to definition.
Corinna Vinschen [Tue, 26 Nov 2013 17:08:56 +0000 (17:08 +0000)]
* nlsfuncs.cc (strcoll): Add "__restrict" to definition.
(strxfrm): Ditto.

10 years ago2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 26 Nov 2013 14:38:58 +0000 (14:38 +0000)]
2013-11-25  Joel Sherrill <joel.sherrill@oarcorp.com>

        * libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to
        "restrict <" to fix formatting.

10 years ago * libc/posix/posix_spawn.c: Drop using namespace.h.
Corinna Vinschen [Tue, 26 Nov 2013 13:51:19 +0000 (13:51 +0000)]
* libc/posix/posix_spawn.c: Drop using namespace.h.

10 years ago * libc/posix/posix_spawn.c: Eliminate OS function calls not present
Corinna Vinschen [Tue, 26 Nov 2013 13:48:00 +0000 (13:48 +0000)]
* libc/posix/posix_spawn.c: Eliminate OS function calls not present
in newlib or Cygwin.
(process_spawnattr): Use sigprocmask rather than _sigprocmask.  Use
sigaction rather than _sigaction.
(process_file_actions_entry): Use dup2 rather than _dup2.
(do_posix_spawn): Use execvpe rather than _execvpe.  Use waitpid
rather than _waitpid.

10 years ago2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Mon, 25 Nov 2013 17:55:33 +0000 (17:55 +0000)]
2013-11-25  Joel Sherrill <joel.sherrill@oarcorp.com>

* libc/iconv/lib/iconv.c, libc/time/strftime.c: Change "restrict<" to
"restrict <" to fix formatting.

10 years ago * libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo
Corinna Vinschen [Mon, 25 Nov 2013 17:23:30 +0000 (17:23 +0000)]
* libc/include/spawn.h (posix_spawn_file_actions_destroy): Fix typo
in function name.
* libc/posix/posix_spawn.c (posix_spawn_file_actions_destroy): Ditto.

10 years ago2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
Joel Sherrill [Mon, 25 Nov 2013 13:46:23 +0000 (13:46 +0000)]
2013-11-25  Sahil Patnayakuni <sahil.patnayakuni@gmail.com>

* libc/include/time.h (time): Add restrict keyword.
* libc/include/wchar.h (wcsftime): Add restrict keyword.
* libc/time/asctime_r.c (asctime_r): Same.
* libc/time/gmtime_r.c (gmtime_r): Same.
* libc/time/lcltime_r.c (lcltime_r): Same.
* libc/time/strftime.c (strftime): Same.
* libc/time/strptime.c (strptime): Same.
* libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same.
* libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.

10 years ago Throughout, keep function definitions and declarations in sync with
Corinna Vinschen [Mon, 25 Nov 2013 11:38:08 +0000 (11:38 +0000)]
Throughout, keep function definitions and declarations in sync with
newlib in terms of C99 "restrict" keyword.

10 years ago * dtable.cc: Include sys/param.h for MAX definition.
Corinna Vinschen [Sun, 24 Nov 2013 13:01:25 +0000 (13:01 +0000)]
* dtable.cc: Include sys/param.h for MAX definition.

10 years ago Throughout, drop unnecessary explicit includes of windows header files
Corinna Vinschen [Sun, 24 Nov 2013 12:13:36 +0000 (12:13 +0000)]
Throughout, drop unnecessary explicit includes of windows header files
included by default.
* winlean.h: Add long comment to explain why we have to define certain
symbols.
(_NORMALIZE_): Define.
(_WINNLS_): Drop definition and subsequent undef.
(_WINNETWK_): Ditto.
(_WINSVC_): Ditto.

2013-11-23  Eric Blake  <eblake@redhat.com>

10 years ago*** empty log message ***
Corinna Vinschen [Sun, 24 Nov 2013 12:09:18 +0000 (12:09 +0000)]
*** empty log message ***

10 years ago2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>
Joel Sherrill [Sat, 23 Nov 2013 22:39:34 +0000 (22:39 +0000)]
2013-11-23 Bryan Dunsmore <dunsmoreb@gmail.com>

* libc/include/wordexp.h (wordexp): Add restrict keyword.
* libc/posix/wordexp.c (wordexp): Ditto.

10 years agodup2: fix off-by-one crash
Eric Blake [Sat, 23 Nov 2013 13:51:53 +0000 (13:51 +0000)]
dup2: fix off-by-one crash

* dtable.cc (dup3): Fix off-by-one.
(find_unused_handle): Reduce time spent expanding during dup.
* syscalls.cc (setdtablesize): Report error on invalid value.

10 years ago * new-features.xml (ov-new1.7.26): Add new section.
Corinna Vinschen [Sat, 23 Nov 2013 11:39:51 +0000 (11:39 +0000)]
* new-features.xml (ov-new1.7.26): Add new section.

10 years ago2013-11-22 Bryan Dunsmore <dunsmoreb@gmail.com>
Joel Sherrill [Sat, 23 Nov 2013 01:25:47 +0000 (01:25 +0000)]
2013-11-22  Bryan Dunsmore <dunsmoreb@gmail.com>

* libc/include/sys/time.h (gettimeofday): Add restrict keyword.
(setitimer): Likewise.
* libc/sys/rdos/gettod.c (gettimeofday): Likewise.
* libc/sys/rtems/crt0.c (gettimeofday): Likewise.

10 years ago2013-11-22 Chirayu Desai <chirayudesai1@gmail.com>
Joel Sherrill [Fri, 22 Nov 2013 22:39:51 +0000 (22:39 +0000)]
2013-11-22  Chirayu Desai  <chirayudesai1@gmail.com>

* libc/include/sys/unistd.h (readlink): Add restrict keyword.
(readlinkat): Ditto.
(swab): Ditto.
* libc/sys/rdos/readlink.c (readlink): Ditto.
* libc/string/swab.c (swab): Ditto.

10 years ago2013-11-21 Daniel Ramirez <javamonn@gmail.com>
Joel Sherrill [Fri, 22 Nov 2013 01:17:42 +0000 (01:17 +0000)]
2013-11-21  Daniel Ramirez <javamonn@gmail.com>

* libc/sys/linux/statvfs.c (statvfs): Added restrict keyword.

10 years ago2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Thu, 21 Nov 2013 19:27:17 +0000 (19:27 +0000)]
2013-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>

* libc/sys/rdos/chown.c, libc/sys/rdos/close.c, libc/sys/rdos/execve.c,
libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c, libc/sys/rdos/getpid.c,
libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c, libc/sys/rdos/kill.c,
libc/sys/rdos/link.c, libc/sys/rdos/lseek.c, libc/sys/rdos/open.c,
libc/sys/rdos/rdos.h, libc/sys/rdos/read.c, libc/sys/rdos/readlink.c,
libc/sys/rdos/sbrk.c, libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c,
libc/sys/rdos/times.c, libc/sys/rdos/unlink.c, libc/sys/rdos/wait.c,
libc/sys/rdos/write.c: Convert from DOS to UNIX CRLF.

10 years ago2013-11-21 Julio Gutierrez <jgutleyva@gmail.com>
Joel Sherrill [Thu, 21 Nov 2013 17:04:57 +0000 (17:04 +0000)]
2013-11-21  Julio Gutierrez <jgutleyva@gmail.com>

* libc/include/glob.h (glob): Add restrict keyword.
* libc/posix/glob.c (glob): Ditto.

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