]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 09:04:23 +0000 (09:04 +0000)]
*** empty log message ***

10 years ago * new-features.xml (ov-new1.7.33): s/Linux/glibc.
Corinna Vinschen [Wed, 22 Oct 2014 09:03:50 +0000 (09:03 +0000)]
* new-features.xml (ov-new1.7.33): s/Linux/glibc.

10 years ago * new-features.xml (ov-new1.7.33): Update to current state.
Corinna Vinschen [Wed, 22 Oct 2014 08:33:37 +0000 (08:33 +0000)]
* new-features.xml (ov-new1.7.33): Update to current state.

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 08:32:07 +0000 (08:32 +0000)]
*** empty log message ***

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 08:12:45 +0000 (08:12 +0000)]
*** empty log message ***

10 years ago * sec_auth.cc (get_user_groups): Remove experimental exception handler
Corinna Vinschen [Tue, 21 Oct 2014 19:17:09 +0000 (19:17 +0000)]
* sec_auth.cc (get_user_groups): Remove experimental exception handler
added 2014-09-05.
(get_user_local_groups): Ditto.

10 years ago * cygcheck.cc (CYGLSA64_DLL): Remove unused macro.
Corinna Vinschen [Tue, 21 Oct 2014 10:59:40 +0000 (10:59 +0000)]
* cygcheck.cc (CYGLSA64_DLL): Remove unused macro.
(dump_sysinfo): If COMSPEC isn't set in the MSVCRT environment, set it.
Explain why.

10 years agoFix typo
Corinna Vinschen [Mon, 20 Oct 2014 16:38:19 +0000 (16:38 +0000)]
Fix typo

10 years ago * fhandler_serial.cc: Revert debug code accidentally checked in on
Corinna Vinschen [Mon, 20 Oct 2014 14:30:35 +0000 (14:30 +0000)]
* fhandler_serial.cc: Revert debug code accidentally checked in on
2014-08-18.

10 years ago*** empty log message ***
Corinna Vinschen [Mon, 20 Oct 2014 13:19:58 +0000 (13:19 +0000)]
*** empty log message ***

10 years ago * path.cc (symlink_info::check): Set error from status code if opening
Corinna Vinschen [Mon, 20 Oct 2014 10:29:30 +0000 (10:29 +0000)]
* path.cc (symlink_info::check): Set error from status code if opening
the parent directory failed, but keep special case for root dirs.

10 years ago * libc/time/gmtime_r.c (gmtime_r): Remove dead code.
Corinna Vinschen [Mon, 20 Oct 2014 07:30:17 +0000 (07:30 +0000)]
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.

10 years ago * cygheap.cc (cygheap_fixup_in_child): Call set_dll_dir.
Corinna Vinschen [Fri, 17 Oct 2014 14:36:59 +0000 (14:36 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Call set_dll_dir.
(init_cygheap::init_installation_root): Just memmove contents of
installation_root instead of calling GetModuleFileNameW again.
Copy installation_root to installation_dir before stripping of
"bin" dir.  Don't call SetDllDirectory here.  Explain what we do.
(setup_cygheap): New function taking over initial cygheap setup
from memory_init.  Additionally call set_dll_dir.
* cygheap.h (struct init_cygheap): Add installation_dir member.
(init_cygheap::set_dll_dir): Define.
(setup_cygheap): Declare.
* dcrt0.cc: Throughout drop parameter from memory_init call.
(dll_crt0_0): Call setup_cygheap prior to memory_init.
* dlfcn.cc (dlopen): Change comment to point to the right function.
* shared.cc (memory_init): Drop parameter.  Drop cygheap setup.
* shared_info.h (memory_init): Change declaration accordingly.

10 years agofix typo
Corinna Vinschen [Fri, 17 Oct 2014 13:47:48 +0000 (13:47 +0000)]
fix typo

10 years ago * cygtls.h (__try): Define __l_endtry as block-local label in 32 bit
Corinna Vinschen [Fri, 17 Oct 2014 08:34:51 +0000 (08:34 +0000)]
* cygtls.h (__try): Define __l_endtry as block-local label in 32 bit
case as well.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 17 Oct 2014 08:33:37 +0000 (08:33 +0000)]
*** empty log message ***

10 years ago * Makefile.in (DLL_OFILES): Add quotactl.o.
Corinna Vinschen [Fri, 17 Oct 2014 08:19:27 +0000 (08:19 +0000)]
* Makefile.in (DLL_OFILES): Add quotactl.o.
* common.din (quotactl): Export.
* ntdll.h: Define FILE_FS_CONTROL_INFORMATION::FileSystemControlFlags
flag values.
(struct _FILE_FS_CONTROL_INFORMATION): Define.
(struct _FILE_GET_QUOTA_INFORMATION): Define.
(typedef struct _FILE_QUOTA_INFORMATION): Define.
(NtQueryObject): Use PVOID rather than VOID*.
(NtQueryVolumeInformationFile): Ditto.
(NtQueryQuotaInformationFile): Declare.
(NtSetQuotaInformationFile): Declare.
(NtSetVolumeInformationFile): Declare.
* quotactl.cc: New file implementing quotactl().
* include/sys/mount.h (BLOCK_SIZE): Define.
(BLOCK_SIZE_BITS): Define.
* include/sys/quota.h: New header.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

10 years ago * Makefile.in (DLL_OFILES): Rearrange with one file per line.
Corinna Vinschen [Thu, 16 Oct 2014 15:40:09 +0000 (15:40 +0000)]
* Makefile.in (DLL_OFILES): Rearrange with one file per line.

10 years ago * fhandler_proc.cc (format_proc_partitions): Extend output to print
Corinna Vinschen [Thu, 16 Oct 2014 15:35:10 +0000 (15:35 +0000)]
* fhandler_proc.cc (format_proc_partitions): Extend output to print
the windows mount points the device is mounted on.

10 years ago * libc/unix/getcwd.c (getcwd): Close directory also in case of an error.
Corinna Vinschen [Thu, 16 Oct 2014 15:00:59 +0000 (15:00 +0000)]
* libc/unix/getcwd.c (getcwd): Close directory also in case of an error.

10 years agomerge from gcc
DJ Delorie [Wed, 15 Oct 2014 21:12:58 +0000 (21:12 +0000)]
merge from gcc

10 years ago * fhandler_socket.cc (fhandler_socket::connect): Don't change state
Corinna Vinschen [Tue, 14 Oct 2014 19:43:09 +0000 (19:43 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Don't change state
on WSAEALREADY error.  Change comment accordingly.

10 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.

10 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.

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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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
"// ..." -> "/* ... */".

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

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

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

10 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.

10 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.

10 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().

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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

10 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.

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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".

10 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.

10 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.

10 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.

10 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.

10 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!)

10 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.

10 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.

10 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).

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

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