]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
9 years ago * cygheap.cc (init_cygheap::init_installation_root): Install Cygwin's
Corinna Vinschen [Tue, 14 Oct 2014 19:14:33 +0000 (19:14 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Install Cygwin's
installation dir as DLL search path, instead of ".".
* cygheap.h (class cwdstuff): Add parameter names in function
declarations for readability.
(cwdstuff::get): Ad inline implementation fetching the CWD as wide char
string.
* dlfcn.cc (dlopen): Add searching for dependent DLLs in DLL
installation dir or CWD, if all else failed.
Add comment to explain scenarios this is accommodating.

9 years ago * fhandler_socket.cc (fhandler_socket::connect): Init connect_state to
Corinna Vinschen [Tue, 14 Oct 2014 19:08:27 +0000 (19:08 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Init connect_state to
connect_pending only on unconnected socket.  Set connect_state to
connected on WSAEISCONN error.  Set connect_state to connect_failed
on any other error except WSAEWOULDBLOCK if connect is still pending.
Add lots of comment to explain why all of the above.

9 years agomerge from gcc
DJ Delorie [Tue, 14 Oct 2014 18:02:03 +0000 (18:02 +0000)]
merge from gcc

9 years ago * net.cc (cygwin_setsockopt): Drop redundant test for AF_LOCAL and
Corinna Vinschen [Mon, 13 Oct 2014 08:18:18 +0000 (08:18 +0000)]
* net.cc (cygwin_setsockopt): Drop redundant test for AF_LOCAL and
SOCK_STREAM in SO_PEERCRED case, as in the original patch.

9 years ago * dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
Corinna Vinschen [Sun, 12 Oct 2014 19:14:07 +0000 (19:14 +0000)]
* dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
in get_full_path_of_dll.

9 years ago * dlfcn.cc (set_dl_error): Drop useless __stdcall.
Corinna Vinschen [Sun, 12 Oct 2014 19:03:52 +0000 (19:03 +0000)]
* dlfcn.cc (set_dl_error): Drop useless __stdcall.
(check_path_access): Ditto.  Drop FE_CWD from call to find_exec.
(gfpod_helper): Call path_conv::check for all paths containing a dir
separator to more closely follow the Linux search algorithm.
(get_full_path_of_dll): Drop useless __stdcall.
(dlopen): Simplify RTLD_NOLOAD case by calling GetModuleHandleEx
instead of GetModuleHandle/LoadLibrary.

9 years ago Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
Corinna Vinschen [Sat, 11 Oct 2014 18:28:04 +0000 (18:28 +0000)]
Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
initial handshake on AF_LOCAL sockets.
* fhandler.h (class fhandler_socket): Add no_getpeereid status flag.
(fhandler_socket::af_local_set_no_getpeereid): New prototype.
* fhandler_socket.cc (fhandler_socket::af_local_connect): Skip handshake
if no_getpeereid is set.  Add debug output.
(fhandler_socket::af_local_accept): Likewise.
(fhandler_socket::af_local_set_no_getpeereid): New function.
(fhandler_socket::af_local_copy): Copy no_getpeereid.
(fhandler_socket::getpeereid): Fail if no_getpeereid is set.
* net.cc (cygwin_setsockopt): Add SO_PEERCRED for AF_LOCAL/SOCK_STREAM
sockets.  Add comment to explain why we need it.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * fhandler_socket.cc (fhandler_socket::af_local_connect): Drop outdated
Corinna Vinschen [Sat, 11 Oct 2014 16:37:29 +0000 (16:37 +0000)]
* fhandler_socket.cc (fhandler_socket::af_local_connect): Drop outdated
comment.
(fhandler_socket::evaluate_events): Only set connect_state and call
af_local_connect if connect_state is connect_pending.  Explain why.
Drop redundant test for socket family and type.
(fhandler_socket::connect): Extend comment.

9 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Handle
Corinna Vinschen [Sat, 11 Oct 2014 12:14:29 +0000 (12:14 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Handle
connect_state and af_local_connect connect call here, once, independent
of FD_CONNECT being requested.  Add comment to explain why.
(fhandler_socket::connect): Drop connect_state handling and calling
af_local_connect.  Move remaining AF_LOCAL stuff prior  to calling
::connect and explain why.  Simplify error case.
* poll.cc (poll): Handle connect state independently of POLLOUT being
requested for the descriptor to allow setting POLLIN if connect failed.
Add comment.
* select.cc (set_bits): Drop connect_state and AF_LOCAL handling here.

9 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Slightly
Corinna Vinschen [Sat, 11 Oct 2014 10:50:36 +0000 (10:50 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Slightly
rearrange code.  Rephrase a comment.

9 years ago * dlfcn.cc (dlopen): Disable old 32 bit code on 64 bit.
Corinna Vinschen [Fri, 10 Oct 2014 15:29:18 +0000 (15:29 +0000)]
* dlfcn.cc (dlopen): Disable old 32 bit code on 64 bit.
* dcrt0.cc (check_sanity_and_sync): Ditto.
* dll_init.cc (dll_dllcrt0_1): Fix typo in comment.

9 years ago * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.
Corinna Vinschen [Fri, 10 Oct 2014 14:43:19 +0000 (14:43 +0000)]
* libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.
* libc/include/math.h: _LONG_LONG_TYPE replaced by "long long".
Guards for C99 and C++11 functions fixed.
* libc/include/stdlib.h: Guards for C99 and C++11 functions fixed.

9 years ago * fhandler_procsys.cc (fhandler_procsys::readdir): Just test
Corinna Vinschen [Thu, 9 Oct 2014 17:45:27 +0000 (17:45 +0000)]
* fhandler_procsys.cc (fhandler_procsys::readdir): Just test
ObjectTypeName for object types rather than calling lstat to avoid
performance hit.
* globals.cc (ro_u_natdir): Define.
(ro_u_natsyml): Define.
(ro_u_natdev): Define.

9 years ago2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Thu, 9 Oct 2014 15:57:50 +0000 (15:57 +0000)]
2014-10-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * libc/include/stdint.h: Include <sys/_intsup.h>.
        (__STDINT_EXP): Delete.
        (__have_long32): Likewise.
        (__have_long64): Likewise.
        (__have_longlong64): Likewise.
        * libc/include/sys/_intsup.h: New file.
        (__STDINT_EXP): Move from libc/include/stdint.h.
        (__have_long32): Likewise.
        (__have_long64): Likewise.
        (__have_longlong64): Likewise.
        * libc/include/inttypes.h: Include <sys/_intsup.h>.
        (__INTTYPES_EXP): Delete and use __STDINT_EXP() instead.

9 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type
Corinna Vinschen [Thu, 9 Oct 2014 13:32:59 +0000 (13:32 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type
for virtual directories.

9 years ago * fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.
Corinna Vinschen [Thu, 9 Oct 2014 13:24:37 +0000 (13:24 +0000)]
* fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
* fhandler_procnet.cc (fhandler_procnet::readdir): Ditto.
* fhandler_procsys.cc (fhandler_procsys::readdir): Ditto.
* fhandler_procsysvipc.cc (fhandler_procsysvipc::readdir): Ditto.
*  fhandler_virtual.h (virt_ftype_to_dtype): Define new inline function
to generate dirent d_type from virtual_ftype_t.

9 years ago * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
Corinna Vinschen [Thu, 9 Oct 2014 12:24:56 +0000 (12:24 +0000)]
* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
comparison
* libc/string/memchr.c (memchr): Ditto.
* libc/string/memrchr.c (memrchr): Ditto.
* libc/string/memset.c: (memset): Ditto.
* libc/string/rawmemchr.c (rawmemchr): Ditto.
* libc/string/local.h (__locale_cjk_lang): Fix "function declaration
isn't a prototype" warning.
* libc/string/strcasestr.c (strcasestr): Ditto.
* libc/string/u_strerr.c (_user_strerror): Fix "unused parameter"
warnings.
* libc/string/rawmemchr.c (rawmemchr): Fix comment type
"// ..." -> "/* ... */".

9 years agoAdd accidentally missing ChangeLog for latest change.
Corinna Vinschen [Thu, 9 Oct 2014 08:31:34 +0000 (08:31 +0000)]
Add accidentally missing ChangeLog for latest change.

9 years ago2014-10-08 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 8 Oct 2014 22:29:52 +0000 (22:29 +0000)]
2014-10-08  Steve Ellcey  <sellcey@mips.com>

* newlib/libc/machine/mips/strcmp.c: Remove.
* newlib/libc/machine/mips/strcmp.S: New.
* newlib/libc/machine/mips/Makefile.am (lib_a_SOURCES):
Replace strcmp.c with strcmp.S
* newlib/libc/machine/mips/Makefile.in: Regenerate.

9 years ago * libc/include/string.h (ffsl): Declare as GNU function.
Corinna Vinschen [Wed, 8 Oct 2014 21:04:59 +0000 (21:04 +0000)]
* libc/include/string.h (ffsl): Declare as GNU function.
(ffsll): Ditto.

9 years ago * common.din (ffsl): Export.
Corinna Vinschen [Wed, 8 Oct 2014 21:03:40 +0000 (21:03 +0000)]
* common.din (ffsl): Export.
(ffsll): Export.
* syscalls.cc (ffs): Implement using GCC intrinsic.
(ffsl): Ditto.
(ffsll): Ditto.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.
Corinna Vinschen [Wed, 8 Oct 2014 16:34:31 +0000 (16:34 +0000)]
* syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.

9 years ago * fhandler_process.cc (format_process_statm): Fix output of dirty
Corinna Vinschen [Wed, 8 Oct 2014 15:25:52 +0000 (15:25 +0000)]
* fhandler_process.cc (format_process_statm): Fix output of dirty
pages.  Add linefeed.

9 years agoFix typo
Corinna Vinschen [Wed, 8 Oct 2014 14:41:44 +0000 (14:41 +0000)]
Fix typo

9 years agomerge from gcc
DJ Delorie [Sun, 28 Sep 2014 17:46:07 +0000 (17:46 +0000)]
merge from gcc

9 years ago * configure.in: Remove config_libnosys=false
Nick Clifton [Mon, 22 Sep 2014 15:26:46 +0000 (15:26 +0000)]
* configure.in: Remove config_libnosys=false
* configure: Regenerated.
* msp430/nosyscalls.S: Rename to ciosyscalls.S
* msp430/Makefile.in: Change LIBNOSYS to LIB_CIO.

9 years ago2014-09-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 17 Sep 2014 22:20:16 +0000 (22:20 +0000)]
2014-09-17  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/features.h: Add __NEWLIB__ and
        __NEWLIB_MINOR__ macros.

9 years ago2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston [Tue, 16 Sep 2014 19:59:01 +0000 (19:59 +0000)]
2014-09-17  Joel Sherrill <joel.sherrill@oarcorp.com>
            Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de>

        * libc/include/string.h: Correct guard for strnlen().

9 years ago2014-09-15 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 15 Sep 2014 16:05:37 +0000 (16:05 +0000)]
2014-09-15  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/time/month_lengths.c: Fix to define __month_lengths.

9 years ago2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 12 Sep 2014 21:41:46 +0000 (21:41 +0000)]
2014-09-12  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/time/tzcalc_limits.c: Fix __months_lengths reference.

9 years ago2014-09-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 12 Sep 2014 16:38:10 +0000 (16:38 +0000)]
2014-09-12  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/time/month_lengths.c: Actually add file this time.
        * libc/time/tzcalc_limits.c: Ditto.

9 years ago2014-09-11 Freddie Chopin <freddie_chopin@op.pl>
Jeff Johnston [Thu, 11 Sep 2014 21:55:01 +0000 (21:55 +0000)]
2014-09-11  Freddie Chopin  <freddie_chopin@op.pl>

        * libc/time/month_lengths.c: New file with __month_lengths array
        (previously mon_lengths array in mktm_r.c)
        * libc/time/tzcalc_limits.c: New file with __tzcalc_limits() from
        mktm_r.c
        * libc/time/lcltime_r.c (localtime_r): Simplify by changing call to
        _mktm_r() with call to gmtime_r() and code moved from _mktm_r() which
        was used to do time zone adjustments
        * libc/time/gmtime_r.c (gmtime_r): Simplify by moving all relevant
        code from _mktm_r(), breaking all dependencies on time zone related
        functions
        * libc/time/mktm_r.c: Delete file
        * libc/time/local.h: Update accordingly - remove declaration of
        _mktm_r(), add declaration of __month_lengths[]
        * libc/time/Makefile.am: Modify accordingly.
        * libc/time/Makefile.in: Regenerate.

9 years ago2014-09-08 Freddie Chopin <freddie_chopin@op.pl>
Jeff Johnston [Mon, 8 Sep 2014 18:57:52 +0000 (18:57 +0000)]
2014-09-08  Freddie Chopin  <freddie_chopin@op.pl>

        * libc/machine/arm/Makefile.am: Fix typo.
        * libc/machine/arm/Makefile.in: Regenerated.

9 years ago * pathnames.xml (cygdrive): Add /proc/cygdrive description.
Corinna Vinschen [Fri, 5 Sep 2014 19:40:39 +0000 (19:40 +0000)]
* pathnames.xml (cygdrive): Add /proc/cygdrive description.

9 years ago * fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.
Corinna Vinschen [Fri, 5 Sep 2014 19:11:01 +0000 (19:11 +0000)]
* fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.
(format_proc_cygdrive): New function to implement /proc/cygdrive.

9 years ago2014-09-05 Hale Wang <hale.wang@arm.com>
Jeff Johnston [Fri, 5 Sep 2014 17:26:42 +0000 (17:26 +0000)]
2014-09-05  Hale Wang  <hale.wang@arm.com>

        * libc/machine/arm/memchr.S: Clean up the wrapper.
        * libc/machine/arm/memcpy.S: Likewise.
        * libc/machine/arm/memchr-stub.c: Delete this redundant file.
        * libc/machine/arm/memcpy-stub.c: Likewise.
        * libc/machine/arm/strcmp.S: Add speed-preferred wrapper.
        * libc/machine/arm/strlen.S: Likewise.
        * libc/machine/arm/Makefile.am: Add dependencies.
        * libc/machine/arm/Makefile.in: Regenerated.
        * libc/machine/arm/configure.in: Add dependencies.
        * libc/machine/arm/configure: Regenerated.

9 years ago * exception.h (class exception): Remove unnecessary #ifdef.
Corinna Vinschen [Fri, 5 Sep 2014 11:47:33 +0000 (11:47 +0000)]
* exception.h (class exception): Remove unnecessary #ifdef.
* uinfo.cc (client_request_pwdgrp::client_request_pwdgrp): Fix length
counter to include trailing NUL.

* sec_auth.cc (get_user_groups): Add experimental exception handler.
(get_user_local_groups): Ditto.

9 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATION
Corinna Vinschen [Fri, 5 Sep 2014 09:46:26 +0000 (09:46 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATION
PACKAGE AUTHORITY SIDs.
* winlean.h (DNLEN): Raise to 31.  Explain why.

9 years ago * libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configuration
Corinna Vinschen [Fri, 5 Sep 2014 09:42:15 +0000 (09:42 +0000)]
* libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configuration
option "--enable-lite-exit" is in effect.  Refactor the code.

9 years ago * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
Corinna Vinschen [Fri, 5 Sep 2014 09:31:32 +0000 (09:31 +0000)]
* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.

9 years agoAdd missing libc/machine/arm/aeabi_memcpy.c file
Corinna Vinschen [Fri, 5 Sep 2014 08:42:45 +0000 (08:42 +0000)]
Add missing libc/machine/arm/aeabi_memcpy.c file

9 years ago * libc/time/mktm_r.c (_mktm_r): Optimize speed.
Corinna Vinschen [Thu, 4 Sep 2014 09:47:14 +0000 (09:47 +0000)]
* libc/time/mktm_r.c (_mktm_r): Optimize speed.

9 years agoAdd missing libc/machine/arm/aeabi_memcpy-armv7a.S file
Corinna Vinschen [Thu, 4 Sep 2014 08:27:35 +0000 (08:27 +0000)]
Add missing libc/machine/arm/aeabi_memcpy-armv7a.S file

9 years ago * libc/time/clock.c (clock): Fix warnings about signed-unsigned
Corinna Vinschen [Thu, 4 Sep 2014 08:27:03 +0000 (08:27 +0000)]
* libc/time/clock.c (clock): Fix warnings about signed-unsigned
comparisons.
* libc/time/strftime.c (strftime): Likewise.
* libc/time/strptime.c (match_string): Fix warning about discarding
'restrict' qualifier from pointer target type.

9 years ago * libc/machine/arm/aeabi_memcpy.c: New file.
Corinna Vinschen [Thu, 4 Sep 2014 08:23:23 +0000 (08:23 +0000)]
* libc/machine/arm/aeabi_memcpy.c: New file.
* libc/machine/arm/aeabi_memcpy-armv7a.S: New file.
* libc/machine/arm/Makefile.am: Add dependencies.
* libc/machine/arm/Makefile.in: Regenerated.

9 years ago * sec_acl.cc (aclcheck32): Check for required default entries as well.
Corinna Vinschen [Wed, 3 Sep 2014 12:46:19 +0000 (12:46 +0000)]
* sec_acl.cc (aclcheck32): Check for required default entries as well.
Enable check for missing CLASS_OBJ entries, now that setfacl creates
them.

9 years ago * setfacl.c (addmissing): New function to add missing acl entries to
Corinna Vinschen [Wed, 3 Sep 2014 12:44:05 +0000 (12:44 +0000)]
* setfacl.c (addmissing): New function to add missing acl entries to
a modified acl per the rules set by aclcheck.
(setfacl): Call addmissing unless action is Delete.

9 years ago * utils.xml (setfacl): Align documentation to help text in setfacl.
Corinna Vinschen [Wed, 3 Sep 2014 09:34:10 +0000 (09:34 +0000)]
* utils.xml (setfacl): Align documentation to help text in setfacl.

9 years ago * setfacl.c (getaclentry): Fix previous fix again. Allow lone 'm' as
Corinna Vinschen [Wed, 3 Sep 2014 09:32:53 +0000 (09:32 +0000)]
* setfacl.c (getaclentry): Fix previous fix again.  Allow lone 'm' as
well as any lone default entry if action is Delete.  Fix comments.
(usage): Align usage text.

9 years ago * setfacl.c (getaclentry): Fix return value in case of a lone 'm' if
Corinna Vinschen [Wed, 3 Sep 2014 08:57:20 +0000 (08:57 +0000)]
* setfacl.c (getaclentry): Fix return value in case of a lone 'm' if
action is Delete.  Drop requirement for a trailing colon if action is
Delete.

9 years ago * sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.
Corinna Vinschen [Tue, 2 Sep 2014 20:07:21 +0000 (20:07 +0000)]
* sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.

9 years ago * ntsec.xml (ntsec-common): Drop outdated comment about underdeveloped
Corinna Vinschen [Sun, 31 Aug 2014 20:06:14 +0000 (20:06 +0000)]
* ntsec.xml (ntsec-common): Drop outdated comment about underdeveloped
Solaris ACL API support.

9 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts
Corinna Vinschen [Sun, 31 Aug 2014 19:33:19 +0000 (19:33 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accounts
as groups.  Add comment.

9 years ago * utils.xml (setfacl): Drop outdated note that default ACEs are not
Corinna Vinschen [Sun, 31 Aug 2014 19:20:10 +0000 (19:20 +0000)]
* utils.xml (setfacl): Drop outdated note that default ACEs are not
taken into account.

9 years ago * setfacl.c (usage): Drop outdated note that default ACEs are not
Corinna Vinschen [Sun, 31 Aug 2014 19:20:04 +0000 (19:20 +0000)]
* setfacl.c (usage): Drop outdated note that default ACEs are not
taken into account.

9 years ago * ntsec.xml: Disable description of db_prefix and db_separator settings.
Corinna Vinschen [Sun, 31 Aug 2014 18:19:03 +0000 (18:19 +0000)]
* ntsec.xml: Disable description of db_prefix and db_separator settings.

9 years ago * uinfo.cc (cygheap_pwdgrp::init): Fix comment. Rearrange code for
Corinna Vinschen [Sun, 31 Aug 2014 18:18:49 +0000 (18:18 +0000)]
* uinfo.cc (cygheap_pwdgrp::init): Fix comment.  Rearrange code for
style.
(cygheap_pwdgrp::nss_init_line): Disable db_prefix and db_separator
settings.  Add comment.
(pwdgrp::fetch_account_from_windows): Drop outdated comment.  Fix code
fetching primary group gid of group setting in SAM description field.
Change comment accordingly.

9 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating an
Corinna Vinschen [Sun, 31 Aug 2014 14:16:04 +0000 (14:16 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating an
entry for "NULL SID".

9 years ago * sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,
Corinna Vinschen [Sun, 31 Aug 2014 14:13:01 +0000 (14:13 +0000)]
* sec_acl.cc (setacl): Add comment.  Handle NULL ACE for SUID, SGID,
and VTX bits.  Create owner, group, other and NULL entries in the same
way and in the same order as alloc_sd.
(getacl): Skip NULL ACE.

9 years ago * utils.xml (getfacl): Document additional suid/sgid/vtx flag printing.
Corinna Vinschen [Sun, 31 Aug 2014 13:47:32 +0000 (13:47 +0000)]
* utils.xml (getfacl): Document additional suid/sgid/vtx flag printing.

9 years ago * getfacl.c (usage): Add flags description.
Corinna Vinschen [Sun, 31 Aug 2014 13:46:34 +0000 (13:46 +0000)]
* getfacl.c (usage): Add flags description.
(main): Print suid/sgid/vtx flags if available.

9 years ago * fhandler.cc (fhandler_base::facl): Drop CLASS_OBJ entry.
Corinna Vinschen [Thu, 28 Aug 2014 12:38:52 +0000 (12:38 +0000)]
* fhandler.cc (fhandler_base::facl): Drop CLASS_OBJ entry.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto in noacl case.
* sec_acl.cc (getacl): Compute useful fake CLASS_OBJ and DEF_CLASS_OBJ
permission bits based on how these values are generated on Linux.
Add commants to explain what the code is doing.
* security.cc (get_attribute_from_acl): Compute group permission based
on the actual primary group permissions and all secondary user and group
ACCESS_ALLOWED_ACEs to emulate Linux' behaviour more closely.
(check_access): Fix typos im comment.
* include/cygwin/acl.h (MIN_ACL_ENTRIES): Redefine as 3.

9 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Try the
Corinna Vinschen [Thu, 28 Aug 2014 12:29:42 +0000 (12:29 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Try the
FileFsSizeInformation information class on filesystems choking on
FileFsFullSizeInformation (I see you Netapp!)

9 years ago* libc/include/math.h (frexpl): Remove parameter name.
DJ Delorie [Wed, 27 Aug 2014 19:27:03 +0000 (19:27 +0000)]
* libc/include/math.h (frexpl): Remove parameter name.

9 years ago * fhandler.h (fhandler_pty_slave::fch_open_handles): Add bool parameter
Corinna Vinschen [Wed, 27 Aug 2014 11:42:17 +0000 (11:42 +0000)]
* fhandler.h (fhandler_pty_slave::fch_open_handles): Add bool parameter
to declaration.
* fhandler_tty.cc (fhandler_pty_slave::fch_open_handles): Add bool
parameter "chown".  Only request WRITE_OWNER access when opening pty
synchronization objects if "chown" is set.
(fhandler_pty_slave::fchmod): Call fch_open_handles with new bool
parameter set to false.
(fhandler_pty_slave::fchown): Call fch_open_handles with new bool
parameter set to true.
* kernel32.cc (CreateFileMappingW): Fix default standard rights for
file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow
changing the DACL (fixes "access denied" error in pinfo::set_acl).

* fhandler_disk_file.cc (fhandler_base::fstat_helper): Change debug
output to print mode bits in octal.
* security.cc (alloc_sd): Ditto.
(set_file_attribute): Ditto.

9 years ago * kernel32.cc (CreateFileMappingW): Fix default standard rights for
Corinna Vinschen [Wed, 27 Aug 2014 10:44:50 +0000 (10:44 +0000)]
* kernel32.cc (CreateFileMappingW): Fix default standard rights for
file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow
changing the DACL (fixes "access denied" error in pinfo::set_acl).

9 years ago * ntea.cc (read_ea): Change left-over return to __leave. Fix
Corinna Vinschen [Wed, 27 Aug 2014 09:39:44 +0000 (09:39 +0000)]
* ntea.cc (read_ea): Change left-over return to __leave.  Fix
condition to close handle.  Call NtClose rather than CloseHandle.
(write_ea): Fix condition to close handle.  Call NtClose rather than
CloseHandle.
* security.cc (get_file_sd): Call pc.init_reopen_attr if a valid
incoming handle was given, pc.get_object_attr otherwise.
(set_file_sd): Ditto.

9 years ago * path.h (path_conv::init_reopen_attr): Change from void to returning
Corinna Vinschen [Tue, 26 Aug 2014 20:47:46 +0000 (20:47 +0000)]
* path.h (path_conv::init_reopen_attr): Change from void to returning
POBJECT_ATTRIBUTES.  Take OBJECT_ATTRIBUTES reference as argument, not
pointer.
* fhandler_disk_file.cc: Throughout accommodate above change.
* syscalls.cc: Ditto.
* ntea.cc (read_ea): Don't set hdl to NULL if it's already NULL.  Set
attr with pc.init_reopen_attr before trying to reopen file.
(write_ea): Ditto.
* security.cc (get_file_sd): Use pc.init_reopen_attr rather than
pc.get_object_attr when trying to reopen file.
(set_file_sd): Ditto.

9 years ago * cygtls.cc (san::leave/x86_64): Implement.
Corinna Vinschen [Mon, 25 Aug 2014 19:47:44 +0000 (19:47 +0000)]
* cygtls.cc (san::leave/x86_64): Implement.
* cygtls.h (class tls_pathbuf): Move counter variables into a union.
Add 64 bit element _counters covering both counter variables to
optimize save and restore operations.
(class san/x86_64): Only store single 64 bit value.
(san::san/x86_64): Implement.
(san::leave/x86_64): Only declare here, as returns_twice function.
Explain why.
(class san/i686): Change type of _c_cnt and _w_cnt to uint32_t.
(__try/x86_64): Move definition of __sebastian after the first memory
barrier.  Drop __sebastian.setup call.

9 years ago * cygtls.cc (_cygtls::remove): Revert previous patch.
Corinna Vinschen [Mon, 25 Aug 2014 14:53:49 +0000 (14:53 +0000)]
* cygtls.cc (_cygtls::remove): Revert previous patch.
*  cygtls.h (struct _local_storage): Move pathbufs back here.
(class san/x86_64): Revert class.  Save and restore pathbufs counters
only.
(class san/i686): Revert saving and restoring pathbufs counters.
(__try/x86_64): Add a san variable and call it's setup method.
(__except/x86_64): Call san::leave to restore pathbufs counters.
* gendef (_sigbe): Revert previous change.
* thread.cc (verifyable_object_state): Remove gcc 4.7 workaround in
forward declaration as well.
* tls_pbuf.cc (tls_pbuf): Revert previous change.
* tls_pbuf.h (class tmp_pathbuf): Accommodate reverting pathbufs to
locals structure.
* tlsoffsets.h: Regenerate.
* tlsoffsets64.h: Regenerate.

9 years ago * Throughout, use __try/__except/__endtry blocks, rather than myfault
Corinna Vinschen [Fri, 22 Aug 2014 09:21:33 +0000 (09:21 +0000)]
* Throughout, use __try/__except/__endtry blocks, rather than myfault
handler.
* cygtls.cc (_cygtls::remove): Accommodate the fact that pathbufs
has been moved from _local_storage to _cygtls.
* cygtls.h (class tls_pathbuf): Add comment to hint to gendef usage
of counters.  Change type of counters to uint32_t for clarity.
Remove _cygtls as friend class.
(struct _local_storage): Move pathbufs from here...
(struct _cygtls): ...to here, allowing to access it from _sigbe.
(class san): Only define on 32 bit.  Remove errno, _c_cnt and _w_cnt
members.
(san::setup): Drop parameter.  Don't initialize removed members.
(san::leave): Don't set removed members.
(class myfault): Only define on 32 bit.
(myfault::faulted): Only keep implementation not taking any parameter.
Drop argument in call to sebastian.setup.
(__try/__leave/__except/__endtry): Implement to support real SEH.  For
now stick to SJLJ on 32 bit.
* dcrt0.cc (dll_crt0_0): Drop 64 bit call to
exception::install_myfault_handler.
* exception.h (exception_handler): Define with EXCEPTION_DISPOSITION
as return type.
(PDISPATCHER_CONTEXT): Define as void * on 32 bit.  Define as pointer
to _DISPATCHER_CONTEXT on 64 bit.
(class exception): Define separately for 32 and 64 bit.
(exception::myfault): Add handler for myfault SEH handling on 64 bit.
(exception::exception): Fix mangled method name to account for change
in type of last parameter.
(exception::install_myfault_handler): Remove.
* exceptions.cc (exception::myfault_handle): Remove.
(exception::myfault): New SEH handler for 64 bit.
* gendef (_sigbe): Set tls_pathbuf counters to 0 explicitely when
returning to the caller.
* ntdll.h: Move a comment to a better place.
(struct _SCOPE_TABLE): Define on 64 bit.
* thread.cc (verifyable_object_isvalid): Remove gcc 4.7 workaround.
* tls_pbuf.cc (tls_pbuf): Fix to accommodate new place of pathbufs.
(tls_pathbuf::destroy): Change type of loop variables to uint32_t.
* tls_pbuf.h (class tmp_pathbuf): Change type of buffer counters to
uint32_t.  Accommodate new place of pathbufs.
* tlsoffsets.h: Regenerate.
* tlsoffsets64.h: Regenerate.

9 years ago * miscfuncs.cc (__import_address): Cover the first dereference to imp
Corinna Vinschen [Thu, 21 Aug 2014 09:04:09 +0000 (09:04 +0000)]
* miscfuncs.cc (__import_address): Cover the first dereference to imp
under the fault handler.

9 years ago * net.cc (if_freenameindex): Don't catch a SEGV from free to fail
Corinna Vinschen [Thu, 21 Aug 2014 08:59:28 +0000 (08:59 +0000)]
* net.cc (if_freenameindex): Don't catch a SEGV from free to fail
loudly on double free.

9 years ago * dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.
Corinna Vinschen [Thu, 21 Aug 2014 08:46:35 +0000 (08:46 +0000)]
* dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.

9 years ago * tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.
Corinna Vinschen [Wed, 20 Aug 2014 19:44:09 +0000 (19:44 +0000)]
* tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.
(tmp_pathbuf::~tmp_pathbuf): Ditto.
* tls_pbuf.cc (tmp_pathbuf::tmp_pathbuf): Remove here.
(tmp_pathbuf::~tmp_pathbuf): Ditto.

9 years ago * dir.cc (dirfd): Per POSIX, return EINVAL on invalid directory stream.
Corinna Vinschen [Tue, 19 Aug 2014 19:25:54 +0000 (19:25 +0000)]
* dir.cc (dirfd): Per POSIX, return EINVAL on invalid directory stream.
(telldir): Per POSIX, return -1 and set errno to EBADF, rather than
just returning 0, on invalid directory stream.
* signal.cc (sigwaitinfo): Return -1, not EFAULT, when SEGV was catched.

9 years ago * libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.
Richard Earnshaw [Tue, 19 Aug 2014 10:44:44 +0000 (10:44 +0000)]
* libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.

9 years ago * fhandler.h (enum conn_state): Add "connect_credxchg" state.
Corinna Vinschen [Tue, 19 Aug 2014 09:47:12 +0000 (09:47 +0000)]
* fhandler.h (enum conn_state): Add "connect_credxchg" state.
(class fhandler_socket): Grant another bit to connect_state flag.
* fhandler_socket.cc (fhandler_socket::af_local_connect): Rearrange
variable definition.  Set connect_state to connect_credxchg.
(fhandler_socket::af_local_accept): Ditto.
(fhandler_socket::recv_internal): Accept connect_credxchg on connection
oriented AF_LOCAL sockets as well to allow the credential exchange.
Extend comment to explain.

9 years ago * autoload.cc: Replace WNet[...]A with WNet[...]W imports.
Corinna Vinschen [Tue, 19 Aug 2014 08:41:40 +0000 (08:41 +0000)]
* autoload.cc: Replace WNet[...]A with WNet[...]W imports.
* dcrt0.cc (initial_env): Drop strlwr calls.  Call strcasestr instead.
* fhandler_netdrive.cc: Throughout, convert to calling WNet UNICODE
functions.  Use tmp_pathbuf rather than alloca.  Replace call to
strlwr with call to RtlDowncaseUnicodeString.

9 years ago * fhandler.h (fhandler_serial::is_tty): Reinstantiate.
Corinna Vinschen [Tue, 19 Aug 2014 08:31:10 +0000 (08:31 +0000)]
* fhandler.h (fhandler_serial::is_tty): Reinstantiate.

9 years ago * miscfuncs.cc (strlwr): Rename from cygwin_strlwr. Drop __stdcall
Corinna Vinschen [Mon, 18 Aug 2014 18:24:06 +0000 (18:24 +0000)]
* miscfuncs.cc (strlwr): Rename from cygwin_strlwr.  Drop __stdcall
decoration.
(strupr): Rename from cygwin_strupr.  Drop __stdcall decoration.
* string.h (strlwr): Remove override macro.  Simply declare.
(strupr): Ditto.

9 years ago * libc/include/sys/signal.h: Declare sigaltstack for RTEMS only.
Corinna Vinschen [Mon, 18 Aug 2014 18:18:10 +0000 (18:18 +0000)]
* libc/include/sys/signal.h: Declare sigaltstack for RTEMS only.

9 years ago2014-08-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 18 Aug 2014 16:43:42 +0000 (16:43 +0000)]
2014-08-18  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/config.h[__m68k__]: Set _READ_WRITE_RETURN_TYPE
        to _ssize_t to match underlying code in libgloss.

9 years ago2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Mon, 18 Aug 2014 14:18:10 +0000 (14:18 +0000)]
2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>

* libc/include/string.h: Improve language and OS standard guards.

9 years ago2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Mon, 18 Aug 2014 14:03:35 +0000 (14:03 +0000)]
2014-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>

    * libc/include/sys/signal.h: Add sigaltstack() support.

9 years ago*** empty log message ***
Corinna Vinschen [Mon, 18 Aug 2014 11:37:27 +0000 (11:37 +0000)]
*** empty log message ***

9 years ago * dtable.cc (dtable::init_std_file_from_handle): Mention that console
Corinna Vinschen [Mon, 18 Aug 2014 11:09:56 +0000 (11:09 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Mention that console
handles are kernel objects since Windows 8.
* fhandler.h (enum conn_state): Add "listener" state.
(class fhandler_socket): Drop listener status flag.
(fhandler_socket::lseek): Return -1 and errno ESPIPE.
(fhandler_serial::lseek): Ditto.
* fhandler_socket.cc (fhandler_socket::listen): Set connect_state to
listener.  Add comment.
(fhandler_socket::accept4): Explicitely check if the socket is listening
and fail with EINVAL, if not.  Explain why we have to do that.
(fhandler_socket::recv_internal): Explicitely check if the socket is
connected if it's a stream socket.  Explain why we have to do that.
(fhandler_socket::getpeereid): Drop now redundant test.

9 years ago * configure.ac: Convert to new AC_INIT style.
Corinna Vinschen [Fri, 15 Aug 2014 21:24:35 +0000 (21:24 +0000)]
* configure.ac: Convert to new AC_INIT style.
* configure: Regenerate.

9 years ago * winsup.h (_GNU_SOURCE): Define. Explain why.
Corinna Vinschen [Fri, 15 Aug 2014 21:21:59 +0000 (21:21 +0000)]
* winsup.h (_GNU_SOURCE): Define.  Explain why.
* configure.ac: Convert to new AC_INIT style.
* configure: Regenerate.

9 years ago * cygerrno.h (seterrno): Define as (always) inline function.
Corinna Vinschen [Fri, 15 Aug 2014 13:50:53 +0000 (13:50 +0000)]
* cygerrno.h (seterrno): Define as (always) inline function.
* errno.cc (seterrno): Remove.

9 years agoAdd missing file from last patch
Corinna Vinschen [Fri, 15 Aug 2014 10:52:38 +0000 (10:52 +0000)]
Add missing file from last patch

9 years ago * cygwin-api.xml: Include misc-funcs.xml.
Corinna Vinschen [Thu, 14 Aug 2014 20:47:14 +0000 (20:47 +0000)]
* cygwin-api.xml: Include misc-funcs.xml.
* misc-funcs.xml: New file.

9 years ago * dll_init.sgml: Remove.
Corinna Vinschen [Thu, 14 Aug 2014 20:46:28 +0000 (20:46 +0000)]
* dll_init.sgml: Remove.
* dtable.sgml: Move into ../doc/misc-funcs.xml.
* external.sgml: Ditto.
* stackdump.sgml: Ditto.

9 years ago * cygwin-api.xml: Move chapter tags from path.xml back here.
Corinna Vinschen [Thu, 14 Aug 2014 20:15:49 +0000 (20:15 +0000)]
* cygwin-api.xml: Move chapter tags from path.xml back here.
Include logon-funcs.xml.
* logon-funcs.xml: Moved from ../cygwin here and converted to XML.
* path.xml: Drop chapter tags.  Create subsections.

9 years ago * security.sgml: Move to ../doc dir and rename to logon-funcs.xml.
Corinna Vinschen [Thu, 14 Aug 2014 20:12:50 +0000 (20:12 +0000)]
* security.sgml: Move to ../doc dir and rename to logon-funcs.xml.

9 years ago * Makefile.in: Throughout use parenthesis instead of braces where
Corinna Vinschen [Thu, 14 Aug 2014 19:44:29 +0000 (19:44 +0000)]
* Makefile.in: Throughout use parenthesis instead of braces where
appropriate.
(DBXDIRS): Remove.
(XSLTPROC): Define for symmetry.  Use throughout.
(clean): Drop removing cygwin-api.xml and doctool.*.
(cygwin-api.xml): Drop rule.
(doctool): Drop rule.
(Makefile.dep): Add dependency to cygwin-api.xml.
* cygwin-api.in.xml: Rename to cygwin-api.xml.  Convert includes to
XML XInclude style.
* doctool.c: Remove.
* doctool.txt: Remove.
* faq-programming.xml: Drop reference to local utils.xml file.
* path.xml: Moved from ../cygwin and converted to XML.
* posix.xml: Ditto.
* using.xml: Drop relative path from utils.xml include.
* utils.xml: Moved from ../utils.

9 years ago * utils.xml: Move to ../doc.
Corinna Vinschen [Thu, 14 Aug 2014 19:33:57 +0000 (19:33 +0000)]
* utils.xml: Move to ../doc.

9 years ago * path.sgml: Move to ../doc dir and rename to path.xml.
Corinna Vinschen [Thu, 14 Aug 2014 19:31:33 +0000 (19:31 +0000)]
* path.sgml: Move to ../doc dir and rename to path.xml.
* posix.sgml: Move to ../doc dir and rename to posix.xml.

9 years ago * dlmalloc.c: Remove unused file.
Corinna Vinschen [Thu, 14 Aug 2014 17:36:24 +0000 (17:36 +0000)]
* dlmalloc.c: Remove unused file.
* dlmalloc.h: Ditto.
* malloc.cc: Update to Doug Lea's malloc version 2.8.6.

9 years ago * arm/elf-nano.specs: New file.
Corinna Vinschen [Thu, 14 Aug 2014 15:00:33 +0000 (15:00 +0000)]
* arm/elf-nano.specs: New file.
* arm/elf-rdimon.specs: Support nano.specs.
* arm/Makefile.in: Support nano.specs.
* libnosys/nosys.specs: Support nano.specs.

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