Corinna Vinschen
57d93bebb2
Accommodate trailing NUL in PrlSF filesystem name.
...
* globals.cc (ro_u_prlfs): Add trailing NUL. Explain why.
* mount.cc (fs_info::update): Add a comment to explain PrlSF.
* path.h (path_conv::fs_is_prlfs): Add for symmetry.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-04 14:47:25 +01:00
Corinna Vinschen
58922d3125
Add missing release message for 68b4238f4a
2015-11-04 10:09:12 +01:00
Corinna Vinschen
0ed1523470
Fix potential endless loop in pending_signals::clear
...
* sigproc.cc (pending_signals::clear): Fix previous fix resulting in
yet another endless loop.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-03 18:25:23 +01:00
Marcus Shawcroft
0a4019eed2
[ARM] Select appropriate memcpy implementation for ARMv8-a.
...
The newlib configury logic that detects architecture version and
chooses an appropriate memcpy implementation does not consider
ARMv8-a.
This patch adds configury logic to detect ARMv8-a along with the
associated changes in Makefile.am and memcpy.
2015-11-03 11:04:55 +00:00
Jeff Johnston
0631279394
Move duplicated documentation rules to Makefile.shared
...
- Also, harmonize libm to use CHEWOUT_FILES like libc, rather than chobj.
Update documentation appropriately.
* HOWTO: Update.
* Makefile.shared: Move documentation rules to here...
* libc/argz/Makefile.am: ... from here ...
* libc/ctype/Makefile.am: ... and here.
* libc/errno/Makefile.am: Ditto.
* libc/iconv/Makefile.am: Ditto.
* libc/iconv/ccs/Makefile.am : Ditto.
* libc/iconv/ces/Makefile.am: Ditto.
* libc/iconv/lib/Makefile.am: Ditto.
* libc/locale/Makefile.am: Ditto.
* libc/misc/Makefile.am: Ditto.
* libc/posix/Makefile.am: Ditto.
* libc/reent/Makefile.am: Ditto.
* libc/search/Makefile.am: Ditto.
* libc/stdio/Makefile.am: Ditto.
* libc/stdio64/Makefile.am: Ditto.
* libc/stdlib/Makefile.am : Ditto.
* libc/string/Makefile.am: Ditto.
* libc/syscalls/Makefile.am: Ditto.
* libc/time/Makefile.am : Ditto.
* libc/unix/Makefile.am: Ditto.
* libc/xdr/Makefile.am: Ditto.
* libm/common/Makefile.am: Ditto.
* libm/complex/Makefile.am: Ditto.
* libm/math/Makefile.am: Ditto.
* libm/mathfp/Makefile.am: Ditto.
2015-11-02 18:02:39 -05:00
Jeff Johnston
53617ce4e6
Consistently use an em-dash in math functions.
...
- also move previous ChangeLog entry to newlib instead of top-level
* libc/time/wcsftime.c: Consistently use an em-dash in FUNCTION
summary.
* libm/common/isgreater.c: Ditto.
* libm/common/s_fdim.c: Ditto.
* libm/common/s_fma.c: Ditto.
* libm/common/s_fmax.c: Ditto.
* libm/common/s_fmin.c: Ditto.
* libm/common/s_infinity.c: Ditto.
* libm/common/s_isnan.c: Ditto.
* libm/common/s_log2.c: Ditto.
* libm/common/s_logb.c: Ditto.
* libm/common/s_lrint.c: Ditto.
* libm/common/s_lround.c: Ditto.
* libm/common/s_nearbyint.c: Ditto.
* libm/common/s_remquo.c: Ditto.
* libm/common/s_rint.c: Ditto.
* libm/common/s_round.c: Ditto.
* libm/common/s_scalbn.c: Ditto.
* libm/common/s_signbit.c: Ditto.
* libm/common/s_trunc.c: Ditto.
* libm/math/w_exp2.c: Ditto.
* libm/math/w_gamma.c: Ditto.
2015-11-02 16:43:22 -05:00
Jeff Johnston
72e18faf62
Add missing semicolons to prototypes.
...
* libc/stdio/fseek.c: Add missing semicolons to prototypes in
SYNOPSIS.
* libc/stdio/fwide.c: Ditto.
* libc/stdio64/fseeko64.c: Ditto.
* libc/string/strtok.c: Ditto.
* libc/string/wcstok.c: Ditto.
* libm/math/w_cosh.c: Ditto.
* libm/math/w_fmod.c: Ditto.
* libm/mathfp/s_cosh.c: Ditto.
* libm/mathfp/s_fmod.c: Ditto.
2015-11-02 16:34:49 -05:00
Steve Ellcey
5045532322
Improve performance of MIPS memcpy.
...
* libc/machine/mips/memcpy.S (memcpy): Add word copies for small
aligned data.
2015-11-02 13:30:19 -08:00
Corinna Vinschen
7321662bb0
Define MAX_IPOPTLEN
...
* include/netinet/ip.h (MAX_IPOPTLEN): Define.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-02 15:42:30 +01:00
Corinna Vinschen
90b9303f0b
Fix incorrect implementation to clear per-thread pending signals
...
* sigproc.cc (class pending_signals): Drop sigproc_init friendship.
(pending_signals::clear): Fix implementation to avoid subsequent
endless loop in wait_sig. Improve comment.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-02 13:54:30 +01:00
Corinna Vinschen
df6206aa56
Add support for Parallels Desktop FS (prlfs)
...
* mount.h (enum fs_info_type): Add prlfs (Parallels Desktop FS).
(class fs_info): Add has_broken_fnoi flag. Implement prlfs FS flag.
* mount.cc (fs_info::update): Handle PrlFS. Fill new has_broken_fnoi
flag with life.
(fs_names): Add prlfs.
* globals.cc (ro_u_prlfs): Define.
* path.h (path_conv::has_broken_fnoi): New method.
* path.cc (symlink_info::check): Call file_get_fnoi utilizing new
has_broken_fnoi filesystem flag.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Ditto.
* new-features.xml (ov-new2.3): Document Parallels Desktop FS support.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-11-02 12:08:25 +01:00
Corinna Vinschen
7ac60f6ceb
Add missing ChangeLog entry for ce8159d5
2015-11-02 10:24:14 +01:00
Sebastian Huber
ce8159d5ce
Include <sched.h> in <pthread.h>
...
This is mandated by POSIX.
2015-10-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
libc/include/pthread.h: Include <sched.h> instead of
<sys/sched.h>.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-30 20:28:00 +01:00
Corinna Vinschen
677eea00a6
Workaround bug in LocaleNameToLCID on Windows 10
...
* nlsfuncs.cc (__get_lcid_from_locale): Handle LocaleNameToLCID
returning LOCALE_CUSTOM_UNSPECIFIED instead of failing in case of
an unsupported locale on Windows 10.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-30 20:13:26 +01:00
Corinna Vinschen
4a407e9037
Avoid double unlock of TLS mutex
...
* exceptions.cc (sigpacket::process): Avoid potentially double unlocking
the TLS mutex.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-30 17:21:30 +01:00
Corinna Vinschen
8f97c045b8
Fix sigwait and pthread_kill return values in case of error
...
* signal.cc (sigwait): Fix return value to reflect errno in case of
error according to POSIX. Never return EINTR.
* thread.cc (pthread_kill): Return errno if sig_send failed.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-30 16:05:43 +01:00
Qian Hong
ff3c4a7d2f
Check for correct funtion entry address in munge_threadfunc
...
* init.cc (munge_threadfunc): Check that we're actually replacing
the correct original function address on the stack.
* ntdll.h (enum _THREADINFOCLASS): Add ThreadQuerySetWin32StartAddress.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-29 09:17:57 +01:00
Jon Turney
e30d78d685
Remove spurious execute permissions from some Cygwin source and text files
...
2015-08-21 Jon Turney <jon.turney@dronecode.org.uk>
* cygwin-cxx.h: Remove execute permissions.
* fenv.cc: Ditto.
* how-startup-shutdown-works.txt: Ditto.
* include/arpa/nameser.h: Ditto.
* include/arpa/nameser_compat.h: Ditto.
* include/fenv.h: Ditto.
* include/resolv.h: Ditto.
* libstdcxx_wrapper.cc: Ditto.
2015-10-27 Jon Turney <jon.turney@dronecode.org.uk>
* winsup.api/signal-into-win32-api.c: Remove execute permissions.
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2015-10-27 16:10:37 +00:00
Brian Inglis
6090952296
strftime: Add support for %s (seconds since epoch)
...
* libc/time/strftime.c (__strftime): add support for %s (seconds from
Unix epoch). Fix whitespaces.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-27 09:41:40 +01:00
Corinna Vinschen
cf51db8baa
Clear pending signals targeting exiting thread
...
* cygtls.cc (_cygtls::remove): Call remove_pending_sigs.
* cygtls.h (_cygtls::remove_pending_sigs): Declare.
* sigproc.cc (pending_signals::clear): Define new method taking a
_cygtls pointer argument. Drop pending signals for that thread.
(_cygtls::remove_pending_sigs): Call pending_signals::clear for this
thread.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-23 14:30:40 +02:00
Yaakov Selkowitz
505812d042
winsup/utils: add CPU cache variables to getconf(1)
...
* getconf.c (conf_table): Add LEVEL*_CACHE_* variables.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2015-10-22 12:51:20 -05:00
Corinna Vinschen
6b457615e6
Export aligned_alloc, at_quick_exit, quick_exit.
...
* common.din (aligned_alloc): Export.
(at_quick_exit): Export.
(quick_exit): Export.
* posix.xml (std-iso): New section.
(std-deprec): Rearrange title text.
* new-features.xml (ov-new2.3): Document aligned_alloc, at_quick_exit,
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-22 16:21:17 +02:00
Corinna Vinschen
e01381afde
Avoid SEGV when handling SIDs with 0 subauthorities
...
* sec_helper.cc (cygsid::get_sid): Don't reject SIDs with missing
subauthorities.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-22 15:38:42 +02:00
Corinna Vinschen
6599fad55d
Add release message for previous Cygwin patch
2015-10-22 15:35:46 +02:00
Corinna Vinschen
ef75017378
Fix length returned from sys_cp_wcstombs in case nwc > # of wchars
...
* strfuncs.cc (sys_cp_wcstombs): Always return number of multibytes
without trailing NUL as the documentation implies. Throughout Cygwin,
fix usage to align to this pattern.
* fhandler_process.cc (format_process_winexename): Drop trailing NUL
and LF from output.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-22 14:22:07 +02:00
Corinna Vinschen
c0345822e5
Fix memory leak in pthread_getattr_np
...
* thread.cc (pthread_getattr_np): Fix memory leak, remove usage of
malloc for small local buffer.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-21 12:46:32 +02:00
Corinna Vinschen
713161b28b
Fix EIO error accessing certain (OS X SMB?) drives
...
* path.cc (symlink_info::check_reparse_point): Don't generate an EIO
error if NtFsControlFile returns STATUS_NOT_A_REPARSE_POINT.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-21 12:01:11 +02:00
Ken Brown
215dbf05fe
* winsup/doc/faq-using.xml (faq.using.same-with-permissions): New entry.
2015-10-21 10:22:26 +02:00
DJ Delorie
9e8f756124
* rl78/crt0.S (_start): Fixed code that clears .bss
2015-10-20 21:37:06 -04:00
Corinna Vinschen
67364cbfd9
Fix compiler errors/warnings when compiling with -O3
...
* fhandler_socket.cc (fhandler_socket::wait_for_events): Fix compiler
warning in -O3 case.
(fhandler_socket::connect): Ditto.
* regex/regcomp.c (singleton): Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-10-20 12:33:13 +02:00
Nick Clifton
c3b6da1781
Extend _intsup.h to support 16-bit and 20-bit pointers.
...
* libc/include/sys/_intsup.h: Add support for 16-bit and 20-bit
pointers.
2015-10-19 14:48:30 +01:00
Sebastian Huber
f86afe5a3a
C11 aligned_alloc() implementation
...
aligned_alloc() is implemented in terms of posix_memalign() which is
only declared in <stdlib.h> but not defined in Newlib in general. At
least Linux and RTEMS implement this function.
newlib/ChangeLog
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add
alloc_aligned.c.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/aligned_alloc.c: New.
2015-10-19 14:10:33 +02:00
Sebastian Huber
da60762bfe
C11 aligned_alloc() support for <stdlib.h>
...
newlib/ChangeLog
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/include/stdlib.h (alloc_aligned): Declare.
2015-10-19 14:10:09 +02:00
Sebastian Huber
d67f71ab85
C11 quick_exit() support for <stdlib.h>
...
Import some <stdlib.h> function declarations from latest FreeBSD and
implement them. I am not sure if we should call the global reent
cleanup in quick_exit() similar to exit().
newlib/ChangeLog
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/include/stdlib.h (at_quick_exit): Declare.
(quick_exit): Likewise.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add
quick_exit.c.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/quick_exit.c: New.
2015-10-19 14:09:17 +02:00
Jeff Johnston
c98d01ee0c
Import <threads.h> from latest FreeBSD.
...
- Move types and defines to
<machine/_threads.h> so that it can be customized per target.
* libc/include/threads.h: New.
* libc/sys/rtems/include/machine/_threads.h: Likewise.
2015-10-13 17:52:34 -04:00
Jeff Johnston
ecee0b0607
Synchronize with FreeBSD.
...
* libc/include/sys/cdefs.h: Synchronize with latest FreeBSD
version.
2015-10-13 17:50:30 -04:00
Jeff Johnston
443467d752
Add FreeBSD style changes to sys/cdefs.h
...
* libc/include/sys/cdefs.h: Add style changes of latest FreeBSD
version.
2015-10-13 17:46:47 -04:00
Nick Clifton
e6430c9e8c
Define setjmp buffer length for IA64.
2015-10-08 15:46:34 +01:00
Nick Clifton
3b8933900f
Add support for persistent data to the MSP430 linker scripts.
...
* msp430/msp430-sim.ld: Add .persistent section.
Tidy up section layout.
Start RAM above hardware multiply registers.
* msp430/msp430xl-sim.ld: Likewise.
2015-10-06 17:33:16 +01:00
Jeff Johnston
f296bb3569
Minimize newlib code size for ft32
...
* configure.host (ft32): minimise newlib code size
2015-09-22 18:12:23 -04:00
Mike Frysinger
e862cda97e
config.{guess,sub}: sync with upstream
2015-09-22 09:25:18 -04:00
Corinna Vinschen
36da3f961c
Cygwin 2.3.0: Add missing release message
...
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-09-08 22:53:54 +02:00
Corinna Vinschen
44e0f5a703
flock.cc: Fix stack allocation from callee used in caller
...
* flock.cc (lockf_t::create_lock_obj_attr): Add buffer parameter.
Call _everyone_sd with buffer argument from caller rather than
everyone_sd with locally allocated stack buffer.
(lockf_t::create_lock_obj): Call create_lock_obj_attr only once
outside the loop and with additional buffer argument.
(lockf_t::open_lock_obj): Call create_lock_obj_attr with additional
buffer argument.
2015-09-08 16:39:54 +02:00
Corinna Vinschen
6d85fc4143
faq-using.xml: Replace makewhatis with mandb
...
* faq-using.xml (faq.using.man): Replace makewhatis with mandb.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-09-08 16:39:53 +02:00
Jeff Johnston
48f78185f5
Add FTDI license for newlib and libgloss.
2015-09-04 14:43:38 -04:00
Jeff Johnston
948b5f0043
Add support for ft32 to newlib.
2015-09-04 14:37:37 -04:00
Jeff Johnston
dc09f27aaa
Add support for FT32 platform.
2015-09-04 13:13:30 -04:00
Hans-Peter Nilsson
82d7069a5e
libc/machine/cris/sys/signal.h (kill): Declare.
2015-09-03 01:59:43 +02:00
Corinna Vinschen
5a3d536ce1
cygcheck.cc: Fix missing commas in products array
...
* cygcheck.cc (dump_sysinfo): Fix missing commas in products array.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-08-30 21:46:58 +02:00
Corinna Vinschen
e3de6b0a4d
cygcheck.cc: Fix debugger problem
...
* cygcheck.cc (load_cygwin): Only unload cygwin DLL if not running
under a debugger. Explain why.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-08-30 21:39:19 +02:00