summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* * setfacl.c (usage): Drop outdated note that default ACEs are notCorinna Vinschen2014-08-312-3/+8
| | | | taken into account.
* * ntsec.xml: Disable description of db_prefix and db_separator settings.Corinna Vinschen2014-08-312-10/+15
|
* * uinfo.cc (cygheap_pwdgrp::init): Fix comment. Rearrange code forCorinna Vinschen2014-08-312-19/+33
| | | | | | | | | 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.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Disallow creating anCorinna Vinschen2014-08-312-3/+8
| | | | entry for "NULL SID".
* * sec_acl.cc (setacl): Add comment. Handle NULL ACE for SUID, SGID,Corinna Vinschen2014-08-312-26/+133
| | | | | | 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.
* * utils.xml (getfacl): Document additional suid/sgid/vtx flag printing.Corinna Vinschen2014-08-312-3/+9
|
* * getfacl.c (usage): Add flags description.Corinna Vinschen2014-08-312-2/+13
| | | | (main): Print suid/sgid/vtx flags if available.
* * fhandler.cc (fhandler_base::facl): Drop CLASS_OBJ entry.Corinna Vinschen2014-08-286-27/+78
| | | | | | | | | | | | * 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.
* * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Try theCorinna Vinschen2014-08-282-0/+26
| | | | | FileFsSizeInformation information class on filesystems choking on FileFsFullSizeInformation (I see you Netapp!)
* * libc/include/math.h (frexpl): Remove parameter name.DJ Delorie2014-08-272-1/+5
|
* * fhandler.h (fhandler_pty_slave::fch_open_handles): Add bool parameterCorinna Vinschen2014-08-275-11/+26
| | | | | | | | | | | | | | | | | | | 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.
* * kernel32.cc (CreateFileMappingW): Fix default standard rights forCorinna Vinschen2014-08-272-2/+9
| | | | | file mappings from READ_CONTROL to STANDARD_RIGHTS_REQUIRED to allow changing the DACL (fixes "access denied" error in pinfo::set_acl).
* * ntea.cc (read_ea): Change left-over return to __leave. FixCorinna Vinschen2014-08-273-15/+26
| | | | | | | | | 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.
* * path.h (path_conv::init_reopen_attr): Change from void to returningCorinna Vinschen2014-08-266-21/+36
| | | | | | | | | | | | | 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.
* * cygtls.cc (san::leave/x86_64): Implement.Corinna Vinschen2014-08-253-17/+41
| | | | | | | | | | | | | * 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.
* * cygtls.cc (_cygtls::remove): Revert previous patch.Corinna Vinschen2014-08-259-178/+206
| | | | | | | | | | | | | | | | | * 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.
* * Throughout, use __try/__except/__endtry blocks, rather than myfaultCorinna Vinschen2014-08-2241-5678/+6137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * miscfuncs.cc (__import_address): Cover the first dereference to impCorinna Vinschen2014-08-212-2/+7
| | | | under the fault handler.
* * net.cc (if_freenameindex): Don't catch a SEGV from free to failCorinna Vinschen2014-08-212-3/+5
| | | | loudly on double free.
* * dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.Corinna Vinschen2014-08-212-4/+5
|
* * tls_pbuf.h (tmp_pathbuf::tmp_pathbuf): Convert to inline method.Corinna Vinschen2014-08-203-13/+18
| | | | | | (tmp_pathbuf::~tmp_pathbuf): Ditto. * tls_pbuf.cc (tmp_pathbuf::tmp_pathbuf): Remove here. (tmp_pathbuf::~tmp_pathbuf): Ditto.
* * dir.cc (dirfd): Per POSIX, return EINVAL on invalid directory stream.Corinna Vinschen2014-08-193-3/+13
| | | | | | (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.
* * libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.Richard Earnshaw2014-08-192-0/+10
|
* * fhandler.h (enum conn_state): Add "connect_credxchg" state.Corinna Vinschen2014-08-193-9/+31
| | | | | | | | | | (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.
* * autoload.cc: Replace WNet[...]A with WNet[...]W imports.Corinna Vinschen2014-08-194-50/+78
| | | | | | | * 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.
* * fhandler.h (fhandler_serial::is_tty): Reinstantiate.Corinna Vinschen2014-08-192-0/+6
|