]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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 agoRename index variable from i to idx.
Corinna Vinschen [Thu, 2 Apr 2015 11:48:55 +0000 (13:48 +0200)]
Rename index variable from i to idx.

* sec_acl.cc (CYG_ACE_ISBITS_TO_WIN): Fix typo.
(get_posix_access): Rename index variable from i to idx.  Define only
once at top level.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
9 years agoDrop unused parameter from add_access_*_ace
Corinna Vinschen [Thu, 2 Apr 2015 11:46:04 +0000 (13:46 +0200)]
Drop unused parameter from add_access_*_ace

* security.cc (add_access_allowed_ace): Drop unused parameter "offset".
Accommodate throughout.
(add_access_denied_ace): Ditto.
* sec_acl.cc: Accommodate above change throughout.
* security.h (add_access_allowed_ace): Adjust prototype to above change.
(add_access_denied_ace): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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. newlib-snapshot-20150323
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 agoHandle S_ISGID bit and multiple ACEs for owner
Corinna Vinschen [Thu, 19 Mar 2015 17:27:03 +0000 (18:27 +0100)]
Handle S_ISGID bit and multiple ACEs for owner

* sec_acl.cc (get_posix_access): Handle multiple ACEs for the
owner and primary group of the file.  Handle the default primary
group ACE as DEF_GROUP_OBJ entry if the directory has the S_ISGID bit
set.  Add comments.  Minor code rearrangements.

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 agoPreliminary read side implementation of new permission handling.
Corinna Vinschen [Wed, 18 Mar 2015 16:49:12 +0000 (17:49 +0100)]
Preliminary read side implementation of new permission handling.

* acl.h (MAX_ACL_ENTRIES): Raise to 2730.  Add comment to explain.
* sec_acl.cc:  Add leading comment to explain new ACL style.
Add definitions and macros to use for bits in new Cygwin ACL.
(DENY_RWX): New mask value for all temporary deny bits.
(getace): Add bool parameter to decide when leaving all bits intact,
rather than filtering them per the already set bits.
(get_posix_access): New function, taking over functionality to read
POSIX ACL from SECURITY_DESCRIPTOR.
(getacl): Just call get_posix_access.
* sec_helper.cc (well_known_cygwin_sid): Define.
* security.cc (get_attribute_from_acl): Remove.
(get_info_from_sd): Remove.
(get_reg_sd): Call get_posix_access instead of get_info_from_sd.
(get_file_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h (well_known_cygwin_sid): Declare.
(get_posix_access): Add prototype.

* Throughout, use simpler ACE macros from Windows' accctrl.h.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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.

9 years ago * utils.xml (getfacl): Adjust options to option nmame change.
Corinna Vinschen [Sat, 28 Feb 2015 13:15:53 +0000 (13:15 +0000)]
* utils.xml (getfacl): Adjust options to option nmame change.

9 years ago*** empty log message ***
Corinna Vinschen [Sat, 28 Feb 2015 13:14:30 +0000 (13:14 +0000)]
*** empty log message ***

9 years ago * getfacl.c (usage): Change --all to --access, --dir to --default.
Corinna Vinschen [Sat, 28 Feb 2015 13:13:19 +0000 (13:13 +0000)]
* getfacl.c (usage): Change --all to --access, --dir to --default.
Align text to output of Linux tool.
(longopts): Add --access and --default options.

9 years ago * uinfo.cc (pwdgrp::add_line): Return NULL if parsing a line failed.
Corinna Vinschen [Sat, 28 Feb 2015 12:12:34 +0000 (12:12 +0000)]
* uinfo.cc (pwdgrp::add_line): Return NULL if parsing a line failed.
(pwdgrp::add_account_post_fetch): Check return value from add_line and
return NULL if add_line returns NULL.

9 years ago*** empty log message ***
Corinna Vinschen [Fri, 27 Feb 2015 16:08:26 +0000 (16:08 +0000)]
*** empty log message ***

9 years ago * security.cc (alloc_sd): For directories, mark inherited ACEs
Corinna Vinschen [Fri, 27 Feb 2015 15:54:15 +0000 (15:54 +0000)]
* security.cc (alloc_sd): For directories, mark inherited ACEs
inheritable to better follow POSIX 1003.1e rules.

9 years ago * sec_acl.cc (getacl): Add mask even if all group and secondary account
Corinna Vinschen [Fri, 27 Feb 2015 14:51:00 +0000 (14:51 +0000)]
* sec_acl.cc (getacl): Add mask even if all group and secondary account
permissions are 0.

9 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Drop redundant test
Corinna Vinschen [Fri, 27 Feb 2015 14:03:29 +0000 (14:03 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop redundant test
for SidTypeUser.

9 years ago * sec_acl.cc (setacl): Fix bug which leads to ACE duplication in
Corinna Vinschen [Fri, 27 Feb 2015 12:59:09 +0000 (12:59 +0000)]
* sec_acl.cc (setacl): Fix bug which leads to ACE duplication in
case owner SID == group SID.
(getacl): Reverse order of SID test against group or owner sid to
prefer owner attributes over group attributes.  Disable setting group
permissions equivalent to owner permissions if owner == group.  Add
comment to explain why.  Fix indentation.
* security.cc (get_attribute_from_acl): Change type of local variables
containing permission to mode_t.  Apply deny mask to group if group SID
== owner SID to avoid Everyone permissions to spill over into group
permissions.  Disable setting group permissions equivalent to owner
permissions if owner == group.  Add comment to explain why.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Allow user SID as
group account if user is a "Microsoft Account".  Explain why.  Drop
workaround enforcing primary group "Users" for "Microsoft Accounts".

9 years ago2015-02-26 Steve Ellcey <sellcey@imgtec.com>
Steve Ellcey [Thu, 26 Feb 2015 23:36:56 +0000 (23:36 +0000)]
2015-02-26  Steve Ellcey  <sellcey@imgtec.com>

* libc/machine/mips/memcpy.S: Fix macro indentation and typos in
comments.

9 years ago * ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout value
Corinna Vinschen [Thu, 26 Feb 2015 17:27:59 +0000 (17:27 +0000)]
* ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout value
and with cw_sig_restart instead of cw_sig_eintr.  Drop useless
_my_tls.call_signal_handler call.  Return EIO if cygwait failed.

9 years ago * posix_ipc.cc (ipc_mutex_lock): Revert unneeded call to signal handler.
Corinna Vinschen [Thu, 26 Feb 2015 17:19:27 +0000 (17:19 +0000)]
* posix_ipc.cc (ipc_mutex_lock): Revert unneeded call to signal handler.

9 years ago * posix_ipc.cc (ipc_mutex_lock): Add bool parameter to influence if
Corinna Vinschen [Thu, 26 Feb 2015 17:00:11 +0000 (17:00 +0000)]
* posix_ipc.cc (ipc_mutex_lock): Add bool parameter to influence if
cygwait should be in EINTR or in restart mode.  Call signal handler
if in EINTR mode.
(mq_getattr): Call ipc_mutex_lock in restart mode.
(mq_setattr): Ditto.
(mq_notify): Ditto.
(_mq_send): Call ipc_mutex_lock in EINTR mode.
(_mq_receive): Ditto.

9 years ago * fhandler_termios.cc (fhandler_termios::line_edit): Fix condition
Corinna Vinschen [Thu, 26 Feb 2015 15:58:04 +0000 (15:58 +0000)]
* fhandler_termios.cc (fhandler_termios::line_edit): Fix condition
for writing remaining bytes in readahead buffer in non-canonical mode.

9 years ago * sec_acl.cc (setacl): Always grant default owner entry
Corinna Vinschen [Wed, 25 Feb 2015 21:30:45 +0000 (21:30 +0000)]
* sec_acl.cc (setacl): Always grant default owner entry
STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too.

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 25 Feb 2015 20:19:19 +0000 (20:19 +0000)]
*** empty log message ***

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