summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same asCorinna Vinschen2014-10-122-1/+6
| | | | in get_full_path_of_dll.
* * dlfcn.cc (set_dl_error): Drop useless __stdcall.Corinna Vinschen2014-10-122-14/+23
| | | | | | | | | (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.
* Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disableCorinna Vinschen2014-10-115-4/+74
| | | | | | | | | | | | | | | 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.
* * fhandler_socket.cc (fhandler_socket::af_local_connect): Drop outdatedCorinna Vinschen2014-10-112-12/+31
| | | | | | | | 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.
* * fhandler_socket.cc (fhandler_socket::evaluate_events): HandleCorinna Vinschen2014-10-114-57/+71
| | | | | | | | | | | | 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.
* * fhandler_socket.cc (fhandler_socket::evaluate_events): SlightlyCorinna Vinschen2014-10-112-3/+8
| | | | rearrange code. Rephrase a comment.
* * dlfcn.cc (dlopen): Disable old 32 bit code on 64 bit.Corinna Vinschen2014-10-104-1/+13
| | | | | * dcrt0.cc (check_sanity_and_sync): Ditto. * dll_init.cc (dll_dllcrt0_1): Fix typo in comment.
* * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.Corinna Vinschen2014-10-104-27/+51
| | | | | | * 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.
* * fhandler_procsys.cc (fhandler_procsys::readdir): Just testCorinna Vinschen2014-10-093-30/+42
| | | | | | | | 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.
* 2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2014-10-094-34/+55
| | | | | | | | | | | | | | | * 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.
* * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_typeCorinna Vinschen2014-10-092-1/+7
| | | | for virtual directories.
* * fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.Corinna Vinschen2014-10-097-8/+61
| | | | | | | | | * 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.
* * libc/string/memccpy.c (memccpy): Fix warning about signed-unsignedCorinna Vinschen2014-10-099-9/+31
| | | | | | | | | | | | | | | 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 "// ..." -> "/* ... */".
* Add accidentally missing ChangeLog for latest change.Corinna Vinschen2014-10-091-0/+9
|
* 2014-10-08 Steve Ellcey <sellcey@mips.com>Steve Ellcey2014-10-085-79/+277
| | | | | | | | * 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.
* * libc/include/string.h (ffsl): Declare as GNU function.Corinna Vinschen2014-10-082-0/+10
| | | | (ffsll): Ditto.
* * common.din (ffsl): Export.Corinna Vinschen2014-10-083-17/+17
| | | | | | | | (ffsll): Export. * syscalls.cc (ffs): Implement using GCC intrinsic. (ffsl): Ditto. (ffsll): Ditto. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.Corinna Vinschen2014-10-082-3/+6
|
* * fhandler_process.cc (format_process_statm): Fix output of dirtyCorinna Vinschen2014-10-082-2/+7
| | | | pages. Add linefeed.
* Fix typoCorinna Vinschen2014-10-081-1/+1
|
* merge from gccDJ Delorie2014-09-284-3/+34
|
* * configure.in: Remove config_libnosys=falseNick Clifton2014-09-226-9/+14
| | | | | | * configure: Regenerated. * msp430/nosyscalls.S: Rename to ciosyscalls.S * msp430/Makefile.in: Change LIBNOSYS to LIB_CIO.
* 2014-09-17 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-172-0/+11
| | | | | * libc/include/sys/features.h: Add __NEWLIB__ and __NEWLIB_MINOR__ macros.
* 2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2014-09-162-1/+7
| | | | | | Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de> * libc/include/string.h: Correct guard for strnlen().
* 2014-09-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-152-5/+9
| | | | * libc/time/month_lengths.c: Fix to define __month_lengths.
* 2014-09-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-122-1/+5
| | | | * libc/time/tzcalc_limits.c: Fix __months_lengths reference.
* 2014-09-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-09-123-0/+96
| | | | | * libc/time/month_lengths.c: Actually add file this time. * libc/time/tzcalc_limits.c: Ditto.
* 2014-09-11 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2014-09-117-294/+246
| | | | | | | | | | | | | | | | | | * 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.
* 2014-09-08 Freddie Chopin <freddie_chopin@op.pl>Jeff Johnston2014-09-083-7/+12
| | | | | * libc/machine/arm/Makefile.am: Fix typo. * libc/machine/arm/Makefile.in: Regenerated.
* * pathnames.xml (cygdrive): Add /proc/cygdrive description.Corinna Vinschen2014-09-052-0/+23
|
* * fhandler_proc.cc (proc_tab): Add entry for cygdrive symlink.Corinna Vinschen2014-09-053-0/+21
| | | | (format_proc_cygdrive): New function to implement /proc/cygdrive.
* 2014-09-05 Hale Wang <hale.wang@arm.com>Jeff Johnston2014-09-0511-123/+564
| | | | | | | | | | | | | * 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.
* * exception.h (class exception): Remove unnecessary #ifdef.Corinna Vinschen2014-09-054-11/+28
| | | | | | | | * 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.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Handle APPLICATIONCorinna Vinschen2014-09-053-7/+26
| | | | | PACKAGE AUTHORITY SIDs. * winlean.h (DNLEN): Raise to 31. Explain why.
* * libc/stdio/findfp.c (_cleanup_r): Call _fflush_r when configurationCorinna Vinschen2014-09-052-4/+14
| | | | option "--enable-lite-exit" is in effect. Refactor the code.
* * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.Corinna Vinschen2014-09-052-5/+6
|
* Add missing libc/machine/arm/aeabi_memcpy.c fileCorinna Vinschen2014-09-051-0/+64
|
* * libc/time/mktm_r.c (_mktm_r): Optimize speed.Corinna Vinschen2014-09-042-16/+38
|
* Add missing libc/machine/arm/aeabi_memcpy-armv7a.S fileCorinna Vinschen2014-09-041-0/+286
|
* * libc/time/clock.c (clock): Fix warnings about signed-unsignedCorinna Vinschen2014-09-044-5/+13
| | | | | | | comparisons. * libc/time/strftime.c (strftime): Likewise. * libc/time/strptime.c (match_string): Fix warning about discarding 'restrict' qualifier from pointer target type.
* * libc/machine/arm/aeabi_memcpy.c: New file.Corinna Vinschen2014-09-043-3/+25
| | | | | | * libc/machine/arm/aeabi_memcpy-armv7a.S: New file. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * sec_acl.cc (aclcheck32): Check for required default entries as well.Corinna Vinschen2014-09-032-8/+14
| | | | | Enable check for missing CLASS_OBJ entries, now that setfacl creates them.
* * setfacl.c (addmissing): New function to add missing acl entries toCorinna Vinschen2014-09-032-0/+71
| | | | | a modified acl per the rules set by aclcheck. (setfacl): Call addmissing unless action is Delete.
* * utils.xml (setfacl): Align documentation to help text in setfacl.Corinna Vinschen2014-09-032-6/+11
|
* * setfacl.c (getaclentry): Fix previous fix again. Allow lone 'm' asCorinna Vinschen2014-09-032-10/+23
| | | | | well as any lone default entry if action is Delete. Fix comments. (usage): Align usage text.
* * setfacl.c (getaclentry): Fix return value in case of a lone 'm' ifCorinna Vinschen2014-09-032-4/+8
| | | | | action is Delete. Drop requirement for a trailing colon if action is Delete.
* * sec_acl.cc (aclsort32): Set errno to EINVAL if aclcheck32 failed.Corinna Vinschen2014-09-022-1/+8
|
* * ntsec.xml (ntsec-common): Drop outdated comment about underdevelopedCorinna Vinschen2014-08-312-5/+8
| | | | Solaris ACL API support.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow user accountsCorinna Vinschen2014-08-312-0/+12
| | | | as groups. Add comment.
* * utils.xml (setfacl): Drop outdated note that default ACEs are notCorinna Vinschen2014-08-312-4/+5
| | | | taken into account.