The branch 'topic/posix_acl_funcs' was updated to point to: 69b253e... Bump Cygwin version to 2.5.0
It previously pointed to: 5aa743b... Bump Cygwin version to 2.5.0 Diff: !!! WARNING: THE FOLLOWING COMMITS ARE NO LONGER ACCESSIBLE (LOST): ------------------------------------------------------------------- 5aa743b... Bump Cygwin version to 2.5.0 04b07ae... acl_create_entry: Don't invalidate existing entry_d and per 876ce93... __acltotext: Always append NUL aaf0a01... Implement POSIX.1e ACL functions 95bff55... cygwin/acl.h: Don't clutter namespace commit 5aa743b58616fb7f954235ea5ce8367110ea7f3b Author: Corinna Vinschen <[email protected]> Date: Sun Jan 24 11:48:58 2016 +0100 Bump Cygwin version to 2.5.0 Signed-off-by: Corinna Vinschen <[email protected]> commit 04b07ae6df0383dab14ccaa2ec83d75633f1a95b Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 23:00:51 2016 +0100 acl_create_entry: Don't invalidate existing entry_d and permset_d. * sec_posixacl .cc (__acl_dup): Remove. (acl_dup): Fold __acl_dup functionality into this function. (acl_create_entry): Don't create new acl_t. Just realloc acl->entry to make room for new aclent_t. Signed-off-by: Corinna Vinschen <[email protected]> commit 876ce93e1b95ef600ce1627d29f391b3b90dd8c2 Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 21:05:56 2016 +0100 __acltotext: Always append NUL * sec_acl.cc (__acltotext): Append NUL unconditionally. Signed-off-by: Corinna Vinschen <[email protected]> commit aaf0a01cb7f1ce0412fa6738a2c1c9325e11d2ae Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 18:41:36 2016 +0100 Implement POSIX.1e ACL functions * Makefile.in (DLL_OFILES): Add sec_posixacl.o. (SUBLIBS): Add libacl.a (libacl.a): New rule to create libacl.a. * common.din: Export POSIX ACL functions as well as most libacl.a extensions. * fhandler.h (fhander_base::acl_get): New prototype. (fhander_base::acl_set): Ditto. (fhandler_disk_file::acl_get): Ditto. (fhandler_disk_file::acl_set): Ditto. * include/acl/libacl.h: New file. * include/cygwin/version.h: Bump API minor version. * include/sys/acl.h: Drop including cygwin/acl.h. Accommodate throughout Cygwin. Add POSIX ACL definitions. * sec_acl.cc: Include sec_posixacl.h. Replace ILLEGAL_UID and ILLEGAL_GID with ACL_UNDEFINED_ID where sensible. (__aclcheck): New internal acl check function to be used for Solaris and POSIX ACLs. (aclcheck32): Call __aclcheck. (__aclcalcmask): New function to compute ACL_MASK value. (__aclsort): New internal acl sort function to be used for Solaris and POSIX ACLs. (aclsort32): Call __aclsort. (permtostr): Work directly on provided buffer. (__acltotext): New internal acltotext function to be used for Solaris and POSIX ACLs. (acltotext32): Call __acltotext. (__aclfromtext): New internal aclfromtext function to be used for Solaris and POSIX ACLs. (aclfromtext32): Call __aclfromtext. * sec_posixacl.cc: New file implemeting POSIX ACL functions. * sec_posixacl.h: New internal header. Signed-off-by: Corinna Vinschen <[email protected]> commit 95bff5586f824163566180a51020d6164e2150a5 Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 18:24:03 2016 +0100 cygwin/acl.h: Don't clutter namespace include/cygwin/acl.h: Change comments to /**/ style. Reformat declarations. Use underscores in argument names. Signed-off-by: Corinna Vinschen <[email protected]> Summary of changes (added commits): ----------------------------------- 69b253e... Bump Cygwin version to 2.5.0 ce97188... acl_create_entry: Don't invalidate existing entry_d and per 32bdf98... __acltotext: Always append NUL f94d912... Implement POSIX.1e ACL functions cabfc9a... cygwin/acl.h: Don't clutter namespace c4dcfc1... printf(3): Handle multibyte decimal point in field size com c5fee55... stdio.h: Use __POSIX_VISIBLE etc. guards for POSIX 1003.1:2 352cdbb... Newlib build is broken if configured with nano-malloc and n 7c9651e... * newlib/libc/stdio/nano-vfscanf.c: Fix '%X' specifier proc fa08ba8... * newlib/libc/stdio/nano-vfscanf.c: Fix '%F', '%G' and '%E' c2a2745... Change if_nameindex() to use unsigned int i variable. ba4433e... include/grp.h: Remove prototypes of non-standard functions 4792146... Fix memcpy bug that reads past end of buffer. a710c89... grp.h: use __BSD_VISIBLE and __XSI_VISIBLE guards commit 69b253e24709c28fa78351c93a4d0c17252af1b2 Author: Corinna Vinschen <[email protected]> Date: Sun Jan 24 11:48:58 2016 +0100 Bump Cygwin version to 2.5.0 Signed-off-by: Corinna Vinschen <[email protected]> commit ce971886f6a87c37722cc7e0221072b01213a085 Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 23:00:51 2016 +0100 acl_create_entry: Don't invalidate existing entry_d and permset_d. * sec_posixacl .cc (__acl_dup): Remove. (acl_dup): Fold __acl_dup functionality into this function. (acl_create_entry): Don't create new acl_t. Just realloc acl->entry to make room for new aclent_t. Signed-off-by: Corinna Vinschen <[email protected]> commit 32bdf98350887a90f9ee416f788589945c56678a Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 21:05:56 2016 +0100 __acltotext: Always append NUL * sec_acl.cc (__acltotext): Append NUL unconditionally. Signed-off-by: Corinna Vinschen <[email protected]> commit f94d912d57ab0991e5abc582c264ad50caa6f590 Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 18:41:36 2016 +0100 Implement POSIX.1e ACL functions * Makefile.in (DLL_OFILES): Add sec_posixacl.o. (SUBLIBS): Add libacl.a (libacl.a): New rule to create libacl.a. * common.din: Export POSIX ACL functions as well as most libacl.a extensions. * fhandler.h (fhander_base::acl_get): New prototype. (fhander_base::acl_set): Ditto. (fhandler_disk_file::acl_get): Ditto. (fhandler_disk_file::acl_set): Ditto. * include/acl/libacl.h: New file. * include/cygwin/version.h: Bump API minor version. * include/sys/acl.h: Drop including cygwin/acl.h. Accommodate throughout Cygwin. Add POSIX ACL definitions. * sec_acl.cc: Include sec_posixacl.h. Replace ILLEGAL_UID and ILLEGAL_GID with ACL_UNDEFINED_ID where sensible. (__aclcheck): New internal acl check function to be used for Solaris and POSIX ACLs. (aclcheck32): Call __aclcheck. (__aclcalcmask): New function to compute ACL_MASK value. (__aclsort): New internal acl sort function to be used for Solaris and POSIX ACLs. (aclsort32): Call __aclsort. (permtostr): Work directly on provided buffer. (__acltotext): New internal acltotext function to be used for Solaris and POSIX ACLs. (acltotext32): Call __acltotext. (__aclfromtext): New internal aclfromtext function to be used for Solaris and POSIX ACLs. (aclfromtext32): Call __aclfromtext. * sec_posixacl.cc: New file implemeting POSIX ACL functions. * sec_posixacl.h: New internal header. Signed-off-by: Corinna Vinschen <[email protected]> commit cabfc9a69e183e77a6af7bb50151933eaa46e760 Author: Corinna Vinschen <[email protected]> Date: Wed Jan 6 18:24:03 2016 +0100 cygwin/acl.h: Don't clutter namespace include/cygwin/acl.h: Change comments to /**/ style. Reformat declarations. Use underscores in argument names. Signed-off-by: Corinna Vinschen <[email protected]> commit c4dcfc1bda72883aa20eba627af840d1a4256c7b Author: Corinna Vinschen <[email protected]> Date: Mon Feb 8 13:33:17 2016 +0100 printf(3): Handle multibyte decimal point in field size computation This patch fixes the problem reported in https://cygwin.com/ml/cygwin/2016-02/msg00014.html The 2009 changes to handle multibyte decimal point and thousands separator missed to take the length of a multibyte decimal point into account when computing the field size. Signed-off-by: Corinna Vinschen <[email protected]> commit c5fee55606ef77b1ec665e2903848cc9c504297c Author: Jon Turney <[email protected]> Date: Thu Feb 4 17:07:44 2016 +0000 stdio.h: Use __POSIX_VISIBLE etc. guards for POSIX 1003.1:2001 functions Current mesa expects stdio.h to prototype fileno() when compiling with gcc -std=c99 -D_XOPEN_SOURCE Fix the 'POSIX 1003.1:2001' block in stdio.h to prototype functions if not __STRICT_ANSI__, or _BSD_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined appropriately As far as I can tell, despite being in this block, setbuffer() and setlinebuf() are BSDisms which aren't in POSIX 1003.1:2001 Signed-off-by: Jon Turney <[email protected]> commit 352cdbb0125fafdf61977bfa299a7214ac885838 Author: ÐгоÑÑ ÐеневÑев <[email protected]> Date: Fri Jan 29 18:19:57 2016 +0300 Newlib build is broken if configured with nano-malloc and non-reentrant system calls Non-reentrant system calls version implies both MISSING_SYSCALL_NAMES and REENTRANT_SYSCALL_PROVIDED macros to be defined. Being coupled with --enable-newlib-nano-malloc knob it breaks the build: bash-4.3$ ../newlib-2.3.0.20160104/configure CC_FOR_TARGET=gcc AR_FOR_TARGET=ar RANLIB_FOR_TARGET=ranlib CFLAGS_FOR_TARGET="-m32 -DMISSING_SYSCALL_NAMES -DREENTRANT_SYSCALLS_PROVIDED" --target=i386-elf --enable-newlib-nano-malloc && make <...omitted output...> ../../../../../../newlib-2.3.0.20160104/newlib/libc/stdlib/nano-mallocr.c: In function â_mallinfo_râ: ../../../../../../newlib-2.3.0.20160104/newlib/libc/stdlib/nano-mallocr.c:489:35: error: macro "_sbrk_r" requires 2 arguments, but only 1 given sbrk_now = _sbrk_r(RCALL 0); ^ ../../../../../../newlib-2.3.0.20160104/newlib/libc/stdlib/nano-mallocr.c:489:20: error: â_sbrk_râ undeclared (first use in this function) sbrk_now = _sbrk_r(RCALL 0); ^ ../../../../../../newlib-2.3.0.20160104/newlib/libc/stdlib/nano-mallocr.c:489:20: note: each undeclared identifier is reported only once for each function it appears in Makefile:1512: recipe for target 'lib_a-nano-mallinfor.o' failed make[8]: *** [lib_a-nano-mallinfor.o] Error 1 In case of non-reentrant system calls _sbrk_r became a macro with TWO args (defined in reent.h): #define _sbrk_r(__reent, __incr) sbrk(__incr) But in our case only one argument is present. (RCALL 0) is considered as a single argument despite RCALL itself is a macro:) So intermediate one-arg macro will be enough to expand args before final _sbrk_r expansion: #define _SBRK_R(X) _sbrk_r(X) Here is a patch: commit 7c9651e3ccea4f8bbc5fe50d0ed266f8976a3328 Author: Igor Venevtsev <[email protected]> Date: Mon Feb 1 17:31:43 2016 +0300 * newlib/libc/stdio/nano-vfscanf.c: Fix '%X' specifier procesing commit fa08ba8b23ce78b177b0883bd5d8a9b22ded4ed7 Author: Igor Venevtsev <[email protected]> Date: Tue Feb 2 13:50:09 2016 +0300 * newlib/libc/stdio/nano-vfscanf.c: Fix '%F', '%G' and '%E' specifiers processing commit c2a27453c6e6e506e75795954b8dda12a225f9cd Author: Jeff Johnston <[email protected]> Date: Thu Feb 4 13:30:14 2016 -0500 Change if_nameindex() to use unsigned int i variable. - i variable used in loop that shifts to right so use unsigned int instead commit ba4433e47fd8859e8f65775497ab17aba12fcb33 Author: Corinna Vinschen <[email protected]> Date: Fri Jan 29 13:39:57 2016 +0100 include/grp.h: Remove prototypes of non-standard functions * libc/include/grp.h (group_from_gid): Remove prototype. (setgrfile): Ditto. (setgroupent): Ditto. Signed-off-by: Corinna Vinschen <[email protected]> commit 4792146a0f20d23be523b5b57be6f037c0c9c00d Author: Steve Ellcey <[email protected]> Date: Thu Jan 28 14:08:35 2016 -0800 Fix memcpy bug that reads past end of buffer. * libc/machine/mips/memcpy.S (memcpy): Fix read past end of input. commit a710c89dcb160eef714a272cc7610ed697c17369 Author: Yaakov Selkowitz <[email protected]> Date: Thu Jan 28 15:39:02 2016 -0600 grp.h: use __BSD_VISIBLE and __XSI_VISIBLE guards This fixes the build of krb5 and other packages on Cygwin. * libc/include/grp.h: Use __BSD_VISIBLE and __XSI_VISIBLE guards. Signed-off-by: Yaakov Selkowitz <[email protected]>
