]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
9 years agolibgloss: arm: fix copy & paste in syscall.h
Mike Frysinger [Tue, 21 Apr 2015 05:34:24 +0000 (01:34 -0400)]
libgloss: arm: fix copy & paste in syscall.h

This header was clearly copied from the common syscall.h and customized,
but the header comment is no longer accurate -- this isn't the general
file anymore.

9 years agoRemove Cygwin's libgen.h
Corinna Vinschen [Tue, 21 Apr 2015 12:51:30 +0000 (14:51 +0200)]
Remove Cygwin's libgen.h

* include/libgen.h: Remove in favor of newlib version.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAsia/Calcutta -> Asia/Kolkata (not on unicode.org)
Corinna Vinschen [Tue, 21 Apr 2015 12:29:01 +0000 (14:29 +0200)]
Asia/Calcutta -> Asia/Kolkata (not on unicode.org)

        * tzmap-from-unicode.org: Convert Calcutta to Kolkata.
        * tzmap.h: Regenerate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix inconsistencies in docs regarding fstab and executable file detection
David Macek [Sat, 18 Apr 2015 21:25:15 +0000 (23:25 +0200)]
Fix inconsistencies in docs regarding fstab and executable file detection

The inline list of mount options seemed redundant, so the paragraph now points
to the list below it.

List of executable extensions updated according to fhandler_disk_file.cc. List
of executable magic numbers updated according to path.h (has_exec_chars).

* pathnames.xml: Fix inconsistencies in docs regarding fstab and
executable file detection

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix broken SID in passwd/group entry for unkown account
Corinna Vinschen [Fri, 17 Apr 2015 09:57:57 +0000 (11:57 +0200)]
Fix broken SID in passwd/group entry for unkown account

        * uinfo.cc (pwdgrp::fetch_account_from_windows): Always revert SID
        subauth count after checking for known domain.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix broken PSID problem on cygheap in account handling
Corinna Vinschen [Fri, 17 Apr 2015 09:56:15 +0000 (11:56 +0200)]
Fix broken PSID problem on cygheap in account handling

        * pwdgrp.h: Add comment to explain below change.
        (struct pg_pwd): Convert sid member to BYTE array.
        (struct pg_grp): Ditto.
        * grp.cc (pwdgrp::parse_group): Accommodate above change.
        * passwd.cc (pwdgrp::parse_passwd): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDon't rely on size argument in shmget call
Corinna Vinschen [Sun, 12 Apr 2015 12:05:12 +0000 (14:05 +0200)]
Don't rely on size argument in shmget call

* shm.cc (shmget): Fetch segment size from server rather than using
size argument to accommodate existing segments.  Add comment to explain
why.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoBump Cygwin version to 2.0.0.
Corinna Vinschen [Fri, 10 Apr 2015 18:41:00 +0000 (20:41 +0200)]
Bump Cygwin version to 2.0.0.

* include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2000.
(CYGWIN_VERSION_DLL_MINOR): Set to 0.

* new-features.xml (ov-new2.0): Rename from ov-new1.7.36 and change
version number to 2.0.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoSet mcontext.cr2 to the faulting address
Jon TURNEY [Sat, 4 Apr 2015 15:12:27 +0000 (16:12 +0100)]
Set mcontext.cr2 to the faulting address

* exceptions.cc (call_signal_handler): Set mcontext.cr2 to the
faulting address.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoOnly construct ucontext for SA_SIGINFO signal handlers
Jon TURNEY [Thu, 2 Apr 2015 17:15:07 +0000 (18:15 +0100)]
Only construct ucontext for SA_SIGINFO signal handlers

* exceptions.cc (call_signal_handler): Only bother to construct
the ucontext for signal handlers with SA_SIGINFO set.  Set
mcontext.oldmask.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoInitialize context before RtlContextCapture
Jon TURNEY [Sat, 4 Apr 2015 15:19:31 +0000 (16:19 +0100)]
Initialize context before RtlContextCapture

* exceptions.cc (call_signal_handler): Zero initialize context and set
context flags, as RlCaptureContext doesn't.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoCall open_null to open fake handle
Corinna Vinschen [Thu, 9 Apr 2015 19:49:36 +0000 (21:49 +0200)]
Call open_null to open fake handle

* fhandler_dsp.cc (fhandler_dev_dsp::open): Call open_null.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFor the RX port, avoid using string instructions when __RX_DISALLOW_STRING_INSNS__...
Nick Clifton [Thu, 9 Apr 2015 08:20:00 +0000 (09:20 +0100)]
For the RX port, avoid using string instructions when __RX_DISALLOW_STRING_INSNS__ is defined.

* rx/crt0.S (_start): If string instructions are not allowed,
avoid using SMOVF.

* libc/machine/rx/memchr.S: Add non-string insn using version.
* libc/machine/rx/memcpy.S: Likewise.
* libc/machine/rx/memmove.S: Likewise.
* libc/machine/rx/mempcpy.S: Likewise.
* libc/machine/rx/strcat.S: Likewise.
* libc/machine/rx/strcmp.S: Likewise.
* libc/machine/rx/strcpy.S: Likewise.
* libc/machine/rx/strlen.S: Likewise.
* libc/machine/rx/strncat.S: Likewise.
* libc/machine/rx/strncmp.S: Likewise.
* libc/machine/rx/strncpy.S: Likewise.

9 years agoAdd .note and DWARF3 sections to RX linker scripts.
Nick Clifton [Wed, 8 Apr 2015 09:04:12 +0000 (10:04 +0100)]
Add .note and DWARF3 sections to RX linker scripts.

* rx/rx.ld: Add .note and DWARF3 sections.
* rx/rx-sim.ld: Likewise.

9 years agoIntroduce sidfromuid and sidfromgid
Corinna Vinschen [Wed, 8 Apr 2015 09:00:08 +0000 (11:00 +0200)]
Introduce sidfromuid and sidfromgid

* pwdgrp.h (sidfromuid): New inline function.
(sidfromgid): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Use sidfromuid.
* quotactl.cc (quotactl): Use sidfromuid and sidfromgid.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoRemove __acl16 from official header
Corinna Vinschen [Wed, 8 Apr 2015 08:01:59 +0000 (10:01 +0200)]
Remove __acl16 from official header

* include/cyggwin/acl.h (struct __acl16): Move from here...
* sec_acl.cc: ...to here.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAlways include the .csstart section in RL78 executables.
Nick Clifton [Tue, 7 Apr 2015 13:51:44 +0000 (14:51 +0100)]
Always include the .csstart section in RL78 executables.

* rl78/rl78.ld (.csstart): Add a KEEP directive.
* rl78/rl78-sim.ld (.csstart): Add a KEEP directive.

9 years agoRemove unused 32/64 bit tty code
Corinna Vinschen [Tue, 7 Apr 2015 10:16:07 +0000 (12:16 +0200)]
Remove unused 32/64 bit tty code

* tty.h (class tty): Remove unused 32/64 bit interoperability
considerations.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoRaise # of ptys to 128.
Corinna Vinschen [Tue, 7 Apr 2015 10:11:52 +0000 (12:11 +0200)]
Raise # of ptys to 128.

* tty.h (NTTYS): Raise to 128.
* devices.in: Change pty, ptym, and cons expressions accordingly.
* devices.cc: Regenerate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoCompile exceptions.cc with -fno-omit-frame-pointer on x86
Jon TURNEY [Sat, 4 Apr 2015 22:31:03 +0000 (23:31 +0100)]
Compile exceptions.cc with -fno-omit-frame-pointer on x86

Selectively using -fomit-frame-pointer when -O is used doesn't make sense
anymore, apparently since gcc 4.6, -O implies -fomit-frame-pointer.

exceptions.cc must be compiled with -fno-omit-frame-pointer on x86, as it uses
RtlCaptureContext, which requires a frame pointer.

* Makefile.in : Remove setting -fomit-frame-pointer for compiling
various files, it is already the default.  Set
-fno-omit-frame-pointer for exceptions.cc on x86.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoCygwin hangs up if several keys are typed during outputting a lot of texts.
Takashi Yano [Fri, 3 Apr 2015 04:07:35 +0000 (13:07 +0900)]
Cygwin hangs up if several keys are typed during outputting a lot of texts.

* fhandler_tty.cc (fhandler_pty_slave::read): Change calculation of
"readlen" not to use "bytes_in_pipe" value directly.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd FAQ entry on how Cygwin counters install and update MITM attacks
David A. Wheeler [Thu, 2 Apr 2015 18:04:55 +0000 (14:04 -0400)]
Add FAQ entry on how Cygwin counters install and update MITM attacks

* faq-setup.xml: Document how Cygwin secures installation and
update against man-in-the-middle (MITM) attacks.  Note that
setup embeds a public key to check the signature of setup.ini,
and that setup.ini includes SHA-512 cryptographic hashes.

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
9 years agoTry to make sure struct _mcontext is 16-byte aligned
Jon TURNEY [Thu, 2 Apr 2015 17:05:32 +0000 (18:05 +0100)]
Try to make sure struct _mcontext is 16-byte aligned

On x86_64, RtlCaptureContext() uses fxsave to save FPU/MMX/SSE state.

fxsave requires that the destination address is 16-byte aligned, or it will
fault.

CONTEXT is already annotated __attribute__ ((aligned (16))), do the same with
struct _mcontext.

Rearrange ucontext_t so that it's struct _mcontext element is also correctly
aligned.

* include/cygwin/signal.h (struct __mcontext): 16-byte align.
* include/sys/ucontext.h (ucontext_t): Ditto.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoAdd parens around MIN/MAX values in stdint.h.
Corinna Vinschen [Wed, 1 Apr 2015 18:40:43 +0000 (20:40 +0200)]
Add parens around MIN/MAX values in stdint.h.

* libc/include/stdint.h: Throughout add parens around MIN/MAX values.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop local stdint.h and inttypes.h in favor of newlib files
Corinna Vinschen [Wed, 1 Apr 2015 18:37:58 +0000 (20:37 +0200)]
Drop local stdint.h and inttypes.h in favor of newlib files

* include/cygwin/types.h: Include sys/_stdint.h rather than stdint.h.
* include/stdint.h: Drop in favor of newlib version.
* include/inttypes.h: Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd <sys/_stdint.h> for FreeBSD compatibility
Sebastian Huber [Wed, 1 Apr 2015 18:34:08 +0000 (20:34 +0200)]
Add <sys/_stdint.h> for FreeBSD compatibility

        * libc/include/sys/_stdint.h: New file.
        * libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>.
        (uint8_t): Likewise.
        (int16_t): Likewise.
        (uint16_t): Likewise.
        (int32_t): Likewise.
        (uint32_t): Likewise.
        (int64_t): Likewise.
        (uint64_t): Likewise.
        (intptr_t): Likewise.
        (uintptr_t): Likewise.
        * libc/include/sys/types.h: Include <sys/_stdint.h>.
        * libc/sys/rtems/machine/_types.h: Remove <stdint.h> include.
        * libc/sys/time.h>: Replace __uint32_t with uint32_t and
        __uint64_t with uint64_t.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoProvide ucontext to signal handlers
Jon TURNEY [Mon, 30 Mar 2015 19:31:13 +0000 (20:31 +0100)]
Provide ucontext to signal handlers

Add ucontext.h header, defining ucontext_t and mcontext_t types.

Provide sigaction sighandlers with a ucontext_t parameter, containing stack and
context information.

* include/sys/ucontext.h : New header.
* include/ucontext.h : Ditto.
* exceptions.cc (call_signal_handler): Provide ucontext_t
parameter to signal handler function.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoMake stack_t typedef generally available
Jon TURNEY [Tue, 31 Mar 2015 23:12:07 +0000 (00:12 +0100)]
Make stack_t typedef generally available

* libc/include/sys/signal.h (stack_t): Make typedef generally
available.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoAdd cygwin_internal() operation to retrieve the EXCEPTION_RECORD from a siginfo_t *
Jon TURNEY [Mon, 30 Mar 2015 19:56:03 +0000 (20:56 +0100)]
Add cygwin_internal() operation to retrieve the EXCEPTION_RECORD from a siginfo_t *

* external.cc (cygwin_internal): Add operation to retrieve a copy
of the EXCEPTION_RECORD from a siginfo_t *.
* include/sys/cygwin.h (cygwin_getinfo_types): Ditto.
* exception.h (cygwin_exception): Add exception_record accessor.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoRename struct ucontext to struct __mcontext
Jon TURNEY [Mon, 30 Mar 2015 17:05:51 +0000 (18:05 +0100)]
Rename struct ucontext to struct __mcontext

* include/cygwin/signal.h : Rename struct ucontext to struct
__mcontext.  Fix layout differences from the Win32 API CONTEXT
type.  Remove unused member _internal.  Rename member which
corresponds to ContextFlags.  Add cr2 member.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoFix UTF-16 surrogate handling in wctomb and friends.
Corinna Vinschen [Wed, 1 Apr 2015 13:31:18 +0000 (15:31 +0200)]
Fix UTF-16 surrogate handling in wctomb and friends.

* libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a
lone high surrogate.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAvoid potential crash at startup or in getgroups(2).
Corinna Vinschen [Wed, 1 Apr 2015 11:15:18 +0000 (13:15 +0200)]
Avoid potential crash at startup or in getgroups(2).

* grp.cc (internal_getgroups): Handle negative domain index to avoid
crashes.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix documentation of cygwin_internal()'s return type.
Jon TURNEY [Tue, 31 Mar 2015 17:32:41 +0000 (18:32 +0100)]
Fix documentation of cygwin_internal()'s return type.

* misc-funcs.xml (cygwin_internal): Correct return type.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoFix buffer size error handling in gethostname.
Renato Silva [Tue, 31 Mar 2015 19:18:46 +0000 (21:18 +0200)]
Fix buffer size error handling in gethostname.

* net.cc (cygwin_gethostname): Fix buffer size error handling.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd release msg
Corinna Vinschen [Tue, 31 Mar 2015 11:13:06 +0000 (13:13 +0200)]
Add release msg

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDocument GNU basename.
Corinna Vinschen [Tue, 31 Mar 2015 11:12:24 +0000 (13:12 +0200)]
Document GNU basename.

* new-features.xml (ov-new1.7.36): Add new section.  Document GNU
basename.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDon't allow fully qualified Windows account names.
Corinna Vinschen [Tue, 31 Mar 2015 09:54:34 +0000 (11:54 +0200)]
Don't allow fully qualified Windows account names.

* uinfo.cc (pwdgrp::fetch_account_from_windows): Don't allow fully
qualified Windows account names (domain\user or user@domain).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAvoid excessive locking and calling tzset in time functions.
Corinna Vinschen [Tue, 31 Mar 2015 09:22:50 +0000 (11:22 +0200)]
Avoid excessive locking and calling tzset in time functions.

* libc/time/lcltime_r.c (localtime_r): Call _tzset_unlocked inside
TZ lock.
* libc/time/mktime.c (mktime):  Ditto.
* libc/time/strftime.c (strftime, wcsftime): Ditto.  Guard against
calling _tzset_unlocked more than once (baring recursion).

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd _tzset_unlocked and _tzset_unlocked_r
Corinna Vinschen [Tue, 31 Mar 2015 09:14:22 +0000 (11:14 +0200)]
Add _tzset_unlocked and _tzset_unlocked_r

newlib:

* libc/time/local.h (_tzset_unlocked_r): Add prototype.
(_tzset_unlocked): Ditto.
* libc/time/tzset.c (_tzset_unlocked): New function, call
_tzset_unlocked_r.
(tzset): Lock and call _tzset_unlocked_r.
* libc/time/tzset_r (_tzset_unlocked_r): Remove locking and rename
from _tzset_r.
(_tzset_r): Lock and call _tzset_unlocked_r.

cygwin:

* localtime.cc (tzset_unlocked): Export as _tzset_unlocked.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoMove tzset calls to time functions.
Craig Howland [Tue, 31 Mar 2015 08:26:49 +0000 (10:26 +0200)]
Move tzset calls to time functions.

* libc/stdlib/setenv_r.c (_setenv_r): Remove tzset() call for TZ
definition.
* libc/time/lcltime_r.c (localtime_r): Add tzset() call
* libc/time/mktime.c (mktime):  Ditto.
* libc/time/strftime.c (strftime, wcsftime): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agostrftime: use tzname if TM_ZONE is NULL
Yaakov Selkowitz [Wed, 25 Mar 2015 21:26:07 +0000 (16:26 -0500)]
strftime: use tzname if TM_ZONE is NULL

This avoids a strlen(NULL) crash a few lines later.

* libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL.
Use _tzname as fallback if TM_ZONE is NULL.

9 years agocygwin: add GNU basename(3)
Yaakov Selkowitz [Thu, 26 Mar 2015 05:20:15 +0000 (00:20 -0500)]
cygwin: add GNU basename(3)

winsup/cygwin/
* common.din (__gnu_basename): Export.
* path.cc (__gnu_basename): New function.

winsup/doc/
* posix.xml (std-gnu): Add basename.
(std-notes): Add note about two forms of basename.

9 years agostring: add GNU basename(3)
Yaakov Selkowitz [Wed, 25 Mar 2015 23:19:38 +0000 (18:19 -0500)]
string: add GNU basename(3)

* libc/include/libgen.h (_BASENAME_DEFINED): Define.
* libc/include/string.h (basename): Declare.
* libc/string/Makefile.am (ELIX_4_SOURCES): Add gnu_basename.c.
* libc/string/Makefile.in: Regenerate.
* libc/string/gnu_basename.c: New file.

9 years agoTry best to handle user from domain not in trusted domain list.
Corinna Vinschen [Mon, 30 Mar 2015 16:05:06 +0000 (18:05 +0200)]
Try best to handle user from domain not in trusted domain list.

* cygheap.h (cygheap_domain_info::add_domain): Add prototype.
* uinfo.cc (cygheap_domain_info::add_domain): New method.
(pwdgrp::fetch_account_from_windows): Try to add domain explicitely
if it was not in the original list of trusted domains and go ahead
rather than bailing out.  Add comment to explain why.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoPrepare to rename/reuse struct ucontext.
Corinna Vinschen [Mon, 30 Mar 2015 14:53:52 +0000 (16:53 +0200)]
Prepare to rename/reuse struct ucontext.

* cygtls.h (struct _cygtls): Convert thread_context to type CONTEXT.
* exceptions.cc (_cygtls::signal_debugger): Use sizeof (CONTEXT) for
size of CONTEXT copied for GDB's digestion.
* include/cygwin/signal.h: Add a preliminary comment.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd CMIN and CTIME definitions
Corinna Vinschen [Wed, 25 Mar 2015 16:21:38 +0000 (17:21 +0100)]
Add CMIN and CTIME definitions

* include/sys/termios.h: Add CMIN and CTIME.
* fhandler_termios.cc (fhandler_termios::tcinit): Use CMIN and CTIME.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoBump tty.cc copyright date
Corinna Vinschen [Wed, 25 Mar 2015 16:16:52 +0000 (17:16 +0100)]
Bump tty.cc copyright date

9 years agoTIOCPKT mode of PTY is broken if ONLCR bit is cleared.
Takashi Yano [Wed, 25 Mar 2015 11:42:38 +0000 (20:42 +0900)]
TIOCPKT mode of PTY is broken if ONLCR bit is cleared.

* tty.h (class tty_min): Remove variable "write_error" to which any
errors are not currently set at anywhere.
(class tty): Add variable "column" for handling ONOCR.
* tty.cc (tty::init): Add initialization code for variable "column".
* fhandler.h (class fhandler_pty_master): Remove variable "need_nl"
which is not necessary any more. "need_nl" was needed by OPOST process
in fhandler_pty_master::process_slave_output().
(class fhandler_pty_common): Add function process_opost_output() for
handling post processing for OPOST in write process.
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Count
TIOCPKT control byte into length to be read in TIOCPKT mode. Move
post processing for OPOST to write process. Remove code related to
variable "write_error". Return with EIO error if slave is already
closed.
(fhandler_pty_master::fhandler_pty_master): Remove initialization
code for variable "need_nl".
(fhandler_pty_common::process_opost_output): Add this function for
handling of OPOST in write process. Add code to avoid blocking in
non-blocking mode when output is suspended by ^S.
(fhandler_pty_slave::write): Call fhandler_pty_common::
process_opost_output() instead of WriteFile(). Remove code related to
variable "write_error".
(fhandler_pty_master::doecho): Call fhandler_pty_common::
 process_opost_output() instead of WriteFile().
* select.cc (peek_pipe): Remove code related to variable "need_nl".

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoImport <sys/tree.h> from FreeBSD
Sebastian Huber [Mon, 23 Mar 2015 20:08:08 +0000 (21:08 +0100)]
Import <sys/tree.h> from FreeBSD

* libc/include/sys/tree.h: New file.

9 years agoIgnore __STDC_{FORMAT,LIMIT,CONSTANT}_MACROS
Corinna Vinschen [Tue, 24 Mar 2015 09:42:45 +0000 (10:42 +0100)]
Ignore __STDC_{FORMAT,LIMIT,CONSTANT}_MACROS

Per glibc BZ #15366:
* inttypes.h: Drop __STDC_FORMAT_MACROS consideration.
* stdint.h: Drop __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
consideration.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years ago* newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.
Joel Sherrill [Mon, 23 Mar 2015 14:41:22 +0000 (09:41 -0500)]
* newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.

2013-03-23  Joel Sherrill <joel.sherrill@oarcorp.com>

* newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.

9 years agoChange from configure time to compile time probe for intptr_t definition.
Joel Sherrill [Wed, 18 Mar 2015 20:44:41 +0000 (15:44 -0500)]
Change from configure time to compile time probe for intptr_t definition.

2015-03-23  Joel Sherrill <joel.sherrill@oarcorp.com

* configure.in: Delete logic to determine _UINTPTR_EQ_ULONGLONG
and _UINTPTR_EQ_ULONG at configuration time.
*libc/include/sys/config.h: Add logic to determine
_UINTPTR_EQ_ULONGLONG and _UINTPTR_EQ_ULONG at compilation time.
* libc/include/inttypes.h: Add include of <sys/config.h>.
* configure: Regenerated.

9 years agoDrop cygwin/_types.h.
Corinna Vinschen [Mon, 23 Mar 2015 10:52:05 +0000 (11:52 +0100)]
Drop cygwin/_types.h.

* include/cygwin/_types.h: Drop unused file.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years ago Add ChangeLog entry for last patch to libc/include/sys/time.h.
Steve Ellcey [Thu, 19 Mar 2015 17:19:35 +0000 (10:19 -0700)]
Add ChangeLog entry for last patch to libc/include/sys/time.h.

9 years ago Replace uint32_t/uint64_t type usage with __uint32_t/__uint64_t.
Steve Ellcey [Thu, 19 Mar 2015 17:05:07 +0000 (10:05 -0700)]
Replace uint32_t/uint64_t type usage with __uint32_t/__uint64_t.

* libc/include/sys/time.h: Replace uint32_t and uint64_t
with __uint32_t and __uint64_t.

9 years agoImplmenet faster getfrompw/getfromgr
Corinna Vinschen [Wed, 18 Mar 2015 16:15:27 +0000 (17:15 +0100)]
Implmenet faster getfrompw/getfromgr

* grp.cc (pwdgrp::parse_group): Call cygsid::getfromgr_passwd.
* passwd.cc (pwdgrp::parse_passwd): Call cygsid::getfrompw_gecos.
* pwdgrp.h (cygsid::getfrompw): Implement as inline method here,
accessing pg_pwd's sid member directly.
(cygsid::getfromgr): Implement as inline method here, accessing
pg_grp's sid member directly.
* sec_auth.cc (extract_nt_dom_user): Call cygsid::getfrompw_gecos.
Explain why.
* sec_helper.cc (cygsid::getfrompw): Drop implementation.
(cygsid::getfromgr): Ditto.
* security.h (cygsid::getfrompw_gecos): Implement former getfrompw
inline here.
(cygsid::getfromgr_passwd): Implement former getfromgr inline here.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop unneeded passwd argument from security functions
Corinna Vinschen [Wed, 18 Mar 2015 15:54:19 +0000 (16:54 +0100)]
Drop unneeded passwd argument from security functions

* sec_auth.cc (get_server_groups): Drop unused passwd argument.  Adjust
calls throughout.
(get_initgroups_sidlist): Ditto.
(get_setgroups_sidlist): Ditto.
(create_token): Ditto.
(lsaauth): Ditto.
* security.h (create_token): Adjust prototype to above change.
(lsaauth): Ditto.
(get_server_groups): Ditto.
* grp.cc (get_groups): Adjust call to get_server_groups.
* syscalls.cc (seteuid32): Adjust calls to lsaauth and create_token.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop unused timeoput paramter to internal_getlogin
Corinna Vinschen [Tue, 17 Mar 2015 14:42:59 +0000 (15:42 +0100)]
Drop unused timeoput paramter to internal_getlogin

* grp.cc (internal_getgroups): Drop unused timeout parameter.
* pwdgrp.h (internal_getgroups): Ditto in prototype.
* uinfo.cc (internal_getlogin): Ditto in usage.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd *.swp (Vim swap files) to .gitignore
Corinna Vinschen [Tue, 17 Mar 2015 11:03:30 +0000 (12:03 +0100)]
Add *.swp (Vim swap files) to .gitignore

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAvoid name change if script is called via symlink from execvp et al.
Corinna Vinschen [Tue, 17 Mar 2015 10:40:12 +0000 (11:40 +0100)]
Avoid name change if script is called via symlink from execvp et al.

* spawn.cc (find_exec): Fix a name change in case of a symlink which
can be opened as is.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
9 years agoFix newlib texinfo source so 'info libc' and 'info libm' work
Jon TURNEY [Thu, 12 Mar 2015 17:22:23 +0000 (17:22 +0000)]
Fix newlib texinfo source so 'info libc' and 'info libm' work

If the newlib .info files are installed using install-info, 'info libc' and
'info libm' don't work.

This seems to be due to the formatting of the directory entry line not being
quite right, so fix that.

Also use @direntry texinfo command, rather than writing .info directory entry
literally.

Also use @dircategory texinfo command to place into 'Newlib' category, rather
than ending up in 'Miscellaneous'

newlib/ChangeLog:

2015-03-13  Jon TURNEY  <jon.turney@dronecode.org.uk>

* libc/libc.texinfo: Fix directory entry.
* libm/libm.texinfo: Ditto.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoFix winsup/doc to install into prefix
Jon TURNEY [Wed, 11 Mar 2015 14:06:03 +0000 (14:06 +0000)]
Fix winsup/doc to install into prefix

By default, docdir and htmldir are defined in terms of prefix, so make sure to
define it, so their values are prefix-relative.

Without this, 'make install' installs the documentation into /share/doc/ unless
configured otherwise.

* Makefile.in (prefix): Define.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoTeach stackinfo::walk() how to virtually unwind the tls sigstack
Jon TURNEY [Mon, 9 Mar 2015 21:55:29 +0000 (21:55 +0000)]
Teach stackinfo::walk() how to virtually unwind the tls sigstack

This improves how stackinfo::dumpstack() dumps _sigbe and sigdelayed frames

* exceptions.cc (stack_info): Add sigstackptr member.
(walk): Unwind sigstackptr inside _sigbe and sigdelayed.
* gendef (_sigdelayed_end): Add symbol to mark end of sigdelayed.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
9 years agoRemove now useless include/cygwin/sys_time.h
Corinna Vinschen [Fri, 13 Mar 2015 12:22:19 +0000 (13:22 +0100)]
Remove now useless include/cygwin/sys_time.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop including cygwin/sys_time.h on Cygwin.
Corinna Vinschen [Fri, 13 Mar 2015 12:19:14 +0000 (13:19 +0100)]
Drop including cygwin/sys_time.h on Cygwin.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoMerge parts of <sys/time.h> from FreeBSD
Sebastian Huber [Fri, 13 Mar 2015 12:17:34 +0000 (13:17 +0100)]
Merge parts of <sys/time.h> from FreeBSD

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agonet.cc: Remove extra braces.
Alexey Pavlov [Fri, 13 Mar 2015 09:38:49 +0000 (10:38 +0100)]
net.cc: Remove extra braces.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix typo in include/cygwin/version.h
Alexey Pavlov [Thu, 12 Mar 2015 17:48:59 +0000 (18:48 +0100)]
Fix typo in include/cygwin/version.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop defining _BSDTYPES_DEFINED before including winsup.h.
Corinna Vinschen [Thu, 12 Mar 2015 16:11:19 +0000 (17:11 +0100)]
Drop defining _BSDTYPES_DEFINED before including winsup.h.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoImport libc/sys/rtems/include/semaphore.h from FreeBSD.
Sebastian Huber [Thu, 12 Mar 2015 15:03:42 +0000 (16:03 +0100)]
Import libc/sys/rtems/include/semaphore.h from FreeBSD.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoLet pty slave detect closure of last master handle
Takashi Yano [Thu, 12 Mar 2015 14:48:10 +0000 (15:48 +0100)]
Let pty slave detect closure of last master handle

* fhandler_tty.cc (fhandler_pty_master::close): Add code to make slave
detect closure of master. Fix typo in error message.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix more typos in ntsec.xml
Corinna Vinschen [Thu, 12 Mar 2015 10:14:57 +0000 (11:14 +0100)]
Fix more typos in ntsec.xml

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix typos in ntsec.xml
Corinna Vinschen [Thu, 12 Mar 2015 09:53:33 +0000 (10:53 +0100)]
Fix typos in ntsec.xml

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd "tags" to .gitignore
Corinna Vinschen [Wed, 11 Mar 2015 16:37:34 +0000 (17:37 +0100)]
Add "tags" to .gitignore

9 years agoInclude sys/_timespec.h in cygwin/types.h to adjust to newlib
Corinna Vinschen [Wed, 11 Mar 2015 14:47:19 +0000 (15:47 +0100)]
Include sys/_timespec.h in cygwin/types.h to adjust to newlib

* include/cygwin/types.h: Include <sys/_timespec.h>

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd and use latest <sys/timespec.h> from FreeBSD
Sebastian Huber [Wed, 11 Mar 2015 14:38:54 +0000 (15:38 +0100)]
Add and use latest <sys/timespec.h> from FreeBSD

        * libc/include/sys/_timespec.h: Import from FreeBSD.
        * libc/include/sys/timespec.h: Likewise.
        * libc/include/time.h: Include <sys/timespec.h>.
        * libc/include/sys/types.h (timespec): Delete.
        (itimerspec): Likewise.
        * libc/include/machine/time.h: Include <sys/_timespec.h>.
        * libc/include/sys/sched.h: Likewise.
        * libc/include/sys/signal.h: Likewise.
        * libc/include/sys/stat.h: Likewise.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years ago* autoload.cc (CreateEnvironmentBlock): Make loading non-fatal.
Corinna Vinschen [Wed, 11 Mar 2015 11:56:53 +0000 (12:56 +0100)]
* autoload.cc (CreateEnvironmentBlock): Make loading non-fatal.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoFix condition in DLL loading loop
Corinna Vinschen [Wed, 11 Mar 2015 11:22:45 +0000 (12:22 +0100)]
Fix condition in DLL loading loop

9 years agoFix a build problem running the newlib testsuite on targets that only have 32-bit...
Nick Clifton [Wed, 11 Mar 2015 11:14:38 +0000 (11:14 +0000)]
Fix a build problem running the newlib testsuite on targets that only have 32-bit doubles.

* testsuite/newlib.stdio/swprintf.c (main): Change size of value
used to initialise 'val' variable so that it will compile on
targets with 32-bit doubles.

9 years agocygwin: fix __x86_64__ conditional in stdint.h
Yaakov Selkowitz [Tue, 10 Mar 2015 15:44:47 +0000 (10:44 -0500)]
cygwin: fix __x86_64__ conditional in stdint.h

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
9 years agowhitespace fix
Corinna Vinschen [Tue, 10 Mar 2015 15:07:07 +0000 (16:07 +0100)]
whitespace fix

9 years agoChange CVS->GIT in docs
Corinna Vinschen [Tue, 10 Mar 2015 13:19:42 +0000 (14:19 +0100)]
Change CVS->GIT in docs

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoAdd .gitignore
Corinna Vinschen [Mon, 9 Mar 2015 20:55:10 +0000 (21:55 +0100)]
Add .gitignore

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
9 years agomv .cvsignore to .gitignore
Corinna Vinschen [Mon, 9 Mar 2015 20:40:26 +0000 (21:40 +0100)]
mv .cvsignore to .gitignore

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
9 years agoAdd .gitattributes
Corinna Vinschen [Mon, 9 Mar 2015 19:53:11 +0000 (20:53 +0100)]
Add .gitattributes

9 years ago * libc/include/stdio.h (FILE): Protect typedef from redefinition.
Corinna Vinschen [Thu, 5 Mar 2015 17:15:24 +0000 (17:15 +0000)]
* libc/include/stdio.h (FILE): Protect typedef from redefinition.
* libc/include/wchar.h: Ditto.

9 years ago * tty.h (tty::set_master_ctl_closed): Rename from set_master_closed.
Corinna Vinschen [Thu, 5 Mar 2015 13:58:03 +0000 (13:58 +0000)]
* tty.h (tty::set_master_ctl_closed): Rename from set_master_closed.
(tty::is_master_closed): Drop method.
* fhandler_tty.cc (fhandler_pty_slave::open): Remove code prematurely
bailing out if master control thread is not running.
(fhandler_pty_slave::read): Don't generate SIGHUP if master control
thread is not running.
(fhandler_pty_master::close): Rearrange code to avoid stopping master
control thread twice in multi-threaded scenarios.

9 years ago * fhandler.h (fhandler_base::get_echo_handle): New virtual method.
Corinna Vinschen [Thu, 5 Mar 2015 12:57:34 +0000 (12:57 +0000)]
* fhandler.h (fhandler_base::get_echo_handle): New virtual method.
(class fhandler_pty_master): Add echo_r and echo_w handles constituting
read and write side of new echo pipe.
* select.cc (peek_pipe): On pty masters, check additionally if input
from the echo pipe is available.
* fhandler_tty.cc (fhandler_pty_master::doecho): Drop output_mutex
locking.  Write output to echo pipe.
(fhandler_pty_master::process_slave_output): Check if input is available
in echo pipe and prefer to read from it, if so.
(fhandler_pty_slave::write): Drop output_mutex locking.
(fhandler_pty_master::fhandler_pty_master): Initialize echo pipe
handles to NULL.
(fhandler_pty_master::close): Close and NULL echo pipe handles.
(fhandler_pty_master::setup): Create echo pipe, close in case of error.

9 years ago * v850/sim.ld: Add a .note.renesas section.
Nick Clifton [Thu, 5 Mar 2015 11:26:59 +0000 (11:26 +0000)]
* v850/sim.ld: Add a .note.renesas section.

9 years agomerge from gcc
DJ Delorie [Wed, 4 Mar 2015 18:01:00 +0000 (18:01 +0000)]
merge from gcc

9 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 36.
Corinna Vinschen [Wed, 4 Mar 2015 11:46:02 +0000 (11:46 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 36.

9 years ago * posix.xml (std-bsd): Add issetugid.
Corinna Vinschen [Wed, 4 Mar 2015 11:44:07 +0000 (11:44 +0000)]
* posix.xml (std-bsd): Add issetugid.

9 years ago2015-02-25 Gedare Bloom <gedare@rtems.org>
Joel Sherrill [Tue, 3 Mar 2015 21:53:55 +0000 (21:53 +0000)]
2015-02-25  Gedare Bloom  <gedare@rtems.org>

* libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.

9 years ago * libc/machine/mips/memset.S: Add support for mips32r6/mips64r6.
Steve Ellcey [Tue, 3 Mar 2015 19:49:00 +0000 (19:49 +0000)]
* libc/machine/mips/memset.S: Add support for mips32r6/mips64r6.

9 years ago * libc/machine/mips/memcpy.S: Add support for mips32r6/mips64r6.
Steve Ellcey [Tue, 3 Mar 2015 17:46:27 +0000 (17:46 +0000)]
* libc/machine/mips/memcpy.S: Add support for mips32r6/mips64r6.

9 years ago * new-features.xml (ov-new1.7.35): Add SIGSYS change.
Corinna Vinschen [Tue, 3 Mar 2015 17:10:54 +0000 (17:10 +0000)]
* new-features.xml (ov-new1.7.35): Add SIGSYS change.

9 years ago * msg.cc: Throughout, drop raising SIGSYS if cygserver is not running.
Corinna Vinschen [Tue, 3 Mar 2015 17:09:30 +0000 (17:09 +0000)]
* msg.cc: Throughout, drop raising SIGSYS if cygserver is not running.
* sem.cc: Ditto.
* shm.cc: Ditto.

9 years ago * new-features.xml (ov-new1.7.35): Add new section.
Corinna Vinschen [Tue, 3 Mar 2015 13:02:21 +0000 (13:02 +0000)]
* new-features.xml (ov-new1.7.35): Add new section.

9 years ago * common.din (issetugid): Export.
Corinna Vinschen [Tue, 3 Mar 2015 12:58:34 +0000 (12:58 +0000)]
* common.din (issetugid): Export.
* glob.cc (issetugid): Drop macro.
* sec_auth.cc (issetugid): New exported function.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * security.cc (get_attribute_from_acl): Don't spill Everyone permissions
Corinna Vinschen [Mon, 2 Mar 2015 10:52:07 +0000 (10:52 +0000)]
* security.cc (get_attribute_from_acl): Don't spill Everyone permissions
into group permissions if owner SID == group SID.
(alloc_sd): Add parenthesis for clarity.

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