]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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.

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 ***

9 years ago * mkgroup.c (MAX_SID_LEN): Remove. Instead, use SECURITY_MAX_SID_SIZE
Corinna Vinschen [Wed, 25 Feb 2015 20:18:29 +0000 (20:18 +0000)]
* mkgroup.c (MAX_SID_LEN): Remove.  Instead, use SECURITY_MAX_SID_SIZE
throughout.
(enum_unix_groups): Introduce numeric_psid and rearrange code to avoid
potential heap corruption.
* mkpasswd.c: Ditto.

9 years ago * fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart to
Corinna Vinschen [Wed, 25 Feb 2015 17:50:13 +0000 (17:50 +0000)]
* fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart to
cygwait call.
* thread.cc (pthread_mutex::lock): Ditto.
(semaphore::_timedwait): Fix formatting.
(semaphore::_wait): Ditto.
* thread.h (fast_mutex::lock): Ditto.

...and fix ChangeLog accordingly.

9 years agoApplied the "chgrp `id -g`" improvements suggested by Corinna for the FAQ
Warren Young [Wed, 25 Feb 2015 17:41:23 +0000 (17:41 +0000)]
Applied the "chgrp `id -g`" improvements suggested by Corinna for the FAQ
item about SSH keys not working in 1.7.34+.

9 years ago * security.cc (alloc_sd): Don't apply temporary workaround for chmod
Corinna Vinschen [Wed, 25 Feb 2015 17:18:13 +0000 (17:18 +0000)]
* security.cc (alloc_sd): Don't apply temporary workaround for chmod
to DEF_USER_OBJ, DEF_GROUP_OBJ, and DEF_OTHER_OBJ ACEs.

9 years ago * fhandler_tty.cc (fhandler_pty_slave::read): Having no input is not an
Corinna Vinschen [Wed, 25 Feb 2015 16:46:57 +0000 (16:46 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::read): Having no input is not an
error condition for tcflush.

9 years ago* libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has an
Jon TURNEY [Wed, 25 Feb 2015 15:58:41 +0000 (15:58 +0000)]
* libc/include/sys/cdefs.h (_GNU_SOURCE): Move check so it has an
effect when _XOPEN_SOURCE is also defined.

9 years ago * ntsec.xml (ntsec-mapping): Match the description of the default
Corinna Vinschen [Wed, 25 Feb 2015 12:48:34 +0000 (12:48 +0000)]
* ntsec.xml (ntsec-mapping): Match the description of the default
values for db_home, db_shell, and db_gecos to the latest changes.

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

9 years ago * security.cc (alloc_sd): Fix comment style. Remove code unused for
Corinna Vinschen [Wed, 25 Feb 2015 11:40:34 +0000 (11:40 +0000)]
* security.cc (alloc_sd): Fix comment style.  Remove code unused for
years.

9 years ago * security.cc (alloc_sd): Add temporary workaround which disallows
Corinna Vinschen [Wed, 25 Feb 2015 11:38:48 +0000 (11:38 +0000)]
* security.cc (alloc_sd): Add temporary workaround which disallows
any secondary user to have more permissions than the primary group
in calls to chmod.  Add comment to explain why.

9 years ago * uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Add missing
Corinna Vinschen [Wed, 25 Feb 2015 08:44:54 +0000 (08:44 +0000)]
* uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Add missing
break in switch statement.

9 years agoAdded chgrp None ~/.ssh/* hack to FAQ item 4.40
Warren Young [Wed, 25 Feb 2015 01:09:38 +0000 (01:09 +0000)]
Added chgrp None ~/.ssh/* hack to FAQ item 4.40

9 years ago * ldap.h: Remove index macros.
Corinna Vinschen [Tue, 24 Feb 2015 20:52:57 +0000 (20:52 +0000)]
* ldap.h: Remove index macros.
(class cyg_ldap): Remove members srch_msg and srch_entry.
(cyg_ldap::get_string_attribute): Remove private method taking index
argument.
(cyg_ldap::get_num_attribute): Ditto.  Add method taking attribute name.
(cyg_ldap::get_primary_gid): Adjust to aforementioned change.
(cyg_ldap::get_unix_uid): Ditto.
(cyg_ldap::get_unix_gid): Ditto.
* ldap.cc: Throughout, use msg and entry in place of srch_msg and
srch_entry.
(std_user_attr): Add sAMAccountName and objectSid.
(group_attr): Ditto.
(cyg_ldap::close): Drop handling of srch_msg and srch_entry.
(cyg_ldap::get_string_attribute): Move earlier in file.
(cyg_ldap::get_num_attribute): Ditto.
(cyg_ldap::enumerate_ad_accounts): Add comments for clarity.
Use group_attr or user_attr rather than sid_attr to fetch all desired
attributes for an account right away.
(cyg_ldap::next_account): Store found SID in last_fetched_sid to
skip calls to fetch_ad_account from fetch_account_from_windows.
(cyg_ldap::get_string_attribute): Remove method taking index argument.
(cyg_ldap::get_num_attribute): Ditto.
* pwdgrp.h (class pg_ent): Fix formatting.  Add member dom.
* passwd.cc (pg_ent::enumerate_ad): Store current flat domain name
in dom.  Construct fetch_acc_t argument from LDAP attributes and
call fetch_account_from_windows with that.
* userinfo.h (enum fetch_user_arg_type_t): Rename FULL_grp_arg to
FULL_acc_arg.  Change throughout.
(struct fetch_acc_t): Rename from fetch_full_grp_t.  Change throughout.
(struct fetch_user_arg_t): Rename full_grp to full_acc.  Change
throughout.

9 years ago * fhandler.h (class fhandler_base): Add was_nonblocking status flag.
Corinna Vinschen [Tue, 24 Feb 2015 11:05:02 +0000 (11:05 +0000)]
* fhandler.h (class fhandler_base): Add was_nonblocking status flag.
* fhandler.cc (fhandler_base::set_flags): Set was_nonblocking if the
O_NONBLOCK flag has been specified.
(fhandler_base_overlapped::close): Check for was_nonblocking instead
of for is_nonblocking.  Explain why.
(fhandler_base::set_nonblocking): Set was_nonblocking if noblocking
mode gets enabled.

9 years ago * include/sys/socket.h (sockatmark): Add prototype.
Corinna Vinschen [Tue, 24 Feb 2015 09:00:37 +0000 (09:00 +0000)]
* include/sys/socket.h (sockatmark): Add prototype.

9 years ago * userinfo.h (struct fetch_full_grp_t): Define only when building
Corinna Vinschen [Mon, 23 Feb 2015 21:01:55 +0000 (21:01 +0000)]
* userinfo.h (struct fetch_full_grp_t): Define only when building
Cygwin itself.
(struct fetch_user_arg_t): Ditto.

9 years ago * pwdgrp.cc: Handle default fetch_user_arg_type_t in switches
Corinna Vinschen [Mon, 23 Feb 2015 21:00:31 +0000 (21:00 +0000)]
* pwdgrp.cc: Handle default fetch_user_arg_type_t in switches
throughout to silence compiler.

9 years ago * autoload.cc (LsaLookupSids): Import.
Corinna Vinschen [Mon, 23 Feb 2015 20:51:12 +0000 (20:51 +0000)]
* autoload.cc (LsaLookupSids): Import.
* cygserver_pwdgrp.h: Include userinfo.h.  Drop workaround defining
fetch_user_arg_type_t locally.
* grp.cc (internal_getgrsid_cachedonly): New function.
(internal_getgrfull): Ditto.
(internal_getgroups): Rearrange function.  Center around fetching all
cached group info first, calling LsaLookupSids on all so far non-cached
groups second.  Pass all available info to new internal_getgrfull call.
* pwdgrp.h: Include userinfo.h.  Move definitions of
fetch_user_arg_type_t and fetch_user_arg_t there.
(pwdgrp::add_group_from_windows): Declare with getting full group info.
Called from internal_getgrfull.
* uinfo.cc (pwdgrp::add_group_from_windows): Define.
(pwdgrp::fetch_account_from_line): Add default case.
(pwdgrp::fetch_account_from_file): Ditto.
(pwdgrp::fetch_account_from_windows): Handle FULL_grp_arg.
(client_request_pwdgrp::client_request_pwdgrp): Add default case.
* userinfo.h: New header.
(enum fetch_user_arg_type_t): Add FULL_grp_arg.
(struct fetch_full_grp_t): New datatype.

9 years ago * grp.cc (internal_getgroups): Check for group attributes and
Corinna Vinschen [Mon, 23 Feb 2015 15:46:10 +0000 (15:46 +0000)]
* grp.cc (internal_getgroups): Check for group attributes and
Everyone sid before calling internal_getgrsid.

9 years ago * cygwait.h (enum cw_wait_mask): Add cw_sig_restart. Add comments
Corinna Vinschen [Mon, 23 Feb 2015 13:56:01 +0000 (13:56 +0000)]
* cygwait.h (enum cw_wait_mask): Add cw_sig_restart.  Add comments
to explain the meaning of the possible values.
* cygwait.cc (is_cw_sig_restart): Define.
(is_cw_sig_handle): Check for cw_sig_restart as well.
(cygwait): Restart always if cw_sig_restart is set.
* thread.cc (pthread::join): Call cygwait with cw_sig_restart flag
to avoid having to handle signals at all.

9 years ago * cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify
Corinna Vinschen [Mon, 23 Feb 2015 13:32:16 +0000 (13:32 +0000)]
* cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify
when WAIT_SIGNALED is returned to the caller.

9 years ago * winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.
Corinna Vinschen [Mon, 23 Feb 2015 12:40:01 +0000 (12:40 +0000)]
* winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.

9 years ago * grp.cc (internal_getgroups): Take additional timeout_ns parameter.
Corinna Vinschen [Fri, 20 Feb 2015 15:13:46 +0000 (15:13 +0000)]
* grp.cc (internal_getgroups): Take additional timeout_ns parameter.
Restrict fetching group account entries from user token groups by
timeout_ns 100ns-intervals.  Add preceding comment to explain why.
* pwdgrp.h (internal_getgroups): Align prototype.
* times.cc (GetTickCount_ns): New function.
* uinfo.cc (internal_getlogin): Call internal_getgroups wih 300ms
timeout.
* winsup.h (GetTickCount_ns): Declare.

9 years ago2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 20 Feb 2015 12:15:38 +0000 (12:15 +0000)]
2015-02-19  Jon TURNEY  <jon.turney@dronecode.org.uk>

* Makefile.in (sigfe.o): Use CFLAGS.

9 years ago2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
Jon TURNEY [Fri, 20 Feb 2015 12:13:59 +0000 (12:13 +0000)]
2015-02-19  Jon TURNEY  <jon.turney@dronecode.org.uk>

* include/cygwin/stdlib.h (initstate, random, setstate, srandom):
Check if __XSI_VISIBLE is set by sys/cdefs.h, rather than testing
for _XOPEN_SOURCE directly, to work correctly when _GNU_SOURCE is
set.

9 years ago * sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.
Corinna Vinschen [Thu, 19 Feb 2015 14:15:44 +0000 (14:15 +0000)]
* sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.

9 years ago * ldap.cc (struct cyg_ldap_search): Add scope member.
Corinna Vinschen [Wed, 18 Feb 2015 10:25:14 +0000 (10:25 +0000)]
* ldap.cc (struct cyg_ldap_search): Add scope member.
(cyg_ldap::search_s): Add parameter scope.  Use as LDAP search scope
instead of fixed LDAP_SCOPE_SUBTREE scope.
(ldap_search_thr): Call cyg_ldap::search_s with scope from argument.
(cyg_ldap::search): Add parameter scope and fill in to cyg_ldap_search.
(cyg_ldap::fetch_ad_account): Call search with LDAP_SCOPE_SUBTREE scope.
(cyg_ldap::fetch_posix_offset_for_domain): Call search with
LDAP_SCOPE_ONELEVEL scope.
(cyg_ldap::fetch_unix_sid_from_ad): Call search with LDAP_SCOPE_SUBTREE
scope.
(cyg_ldap::fetch_unix_name_from_rfc2307): Ditto.
* ldap.h (cyg_ldap::search): Align prototype to above change.
(cyg_ldap::search_s): Ditto.

9 years ago * ldap.cc: Macro-ize filter expressions. Use throughout to compute
Corinna Vinschen [Wed, 18 Feb 2015 10:04:14 +0000 (10:04 +0000)]
* ldap.cc: Macro-ize filter expressions.  Use throughout to compute
required filter buffer size if filter is a local buffer.

9 years ago* dump_setup.cc (check_package_files): Accommodate postinstall
Ken Brown [Tue, 17 Feb 2015 23:36:23 +0000 (23:36 +0000)]
* dump_setup.cc (check_package_files): Accommodate postinstall
files in any directory whose name contains "/postinstall/", not
just /etc/postinstall.

9 years agoApplied Andrey's and my improvments to FAQ item 4.2, discussed on the main ML.
Warren Young [Tue, 17 Feb 2015 22:38:54 +0000 (22:38 +0000)]
Applied Andrey's and my improvments to FAQ item 4.2, discussed on the main ML.

9 years ago * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Drop stray
Corinna Vinschen [Tue, 17 Feb 2015 21:17:49 +0000 (21:17 +0000)]
* ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Drop stray
system_printf.

9 years ago * ldap.h (class cyg_ldap): Rename rootdse to def_context. Change
Corinna Vinschen [Tue, 17 Feb 2015 21:08:01 +0000 (21:08 +0000)]
* ldap.h (class cyg_ldap): Rename rootdse to def_context.  Change
throughout.
* ldap.cc (cyg_ldap::open): Fix debug output.
(cyg_ldap::fetch_ad_account): Rename rdse to base.  Restrict LDAP
query to users and groups only.
(cyg_ldap::enumerate_ad_accounts): Rearrange filter expression for
user accounts.
(SYSTEM_CONTAINER): New macro.
(cyg_ldap::fetch_posix_offset_for_domain): Set base in LDAP search
to the "System" container in the default naming context to restrict
the search scope.
(cyg_ldap::fetch_unix_sid_from_ad): Add objectCategory=Person to
search filter for users.

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