905a851912* 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.
Corinna Vinschen
2014-08-19 19:25:54 +0000
59c3d5a1a4* libc/machine/aarch64/memchr.S: Add check for zero-sized buffer.
Richard Earnshaw
2014-08-19 10:44:44 +0000
de1c312566* 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.
Corinna Vinschen
2014-08-19 09:47:12 +0000
67986ac4a4* 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.
Corinna Vinschen
2014-08-19 08:41:40 +0000
1091d4404e* 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.
Corinna Vinschen
2014-08-18 11:09:56 +0000
7e46c0af62* configure.ac: Convert to new AC_INIT style. * configure: Regenerate.
Corinna Vinschen
2014-08-15 21:24:35 +0000
9f2842e92c* 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.
Corinna Vinschen
2014-08-14 20:15:49 +0000
308ea1e73c* security.sgml: Move to ../doc dir and rename to logon-funcs.xml.
Corinna Vinschen
2014-08-14 20:12:50 +0000
6b31215816* 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.
Corinna Vinschen
2014-08-14 19:44:29 +0000
fbf2e44799* utils.xml: Move to ../doc.
Corinna Vinschen
2014-08-14 19:33:57 +0000
ec50fa3597* path.sgml: Move to ../doc dir and rename to path.xml. * posix.sgml: Move to ../doc dir and rename to posix.xml.
Corinna Vinschen
2014-08-14 19:31:33 +0000
0d45f7ee54* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 33. (CYGWIN_VERSION_API_MINOR): Bump to reflect intermediate 1.7.32 release.
Corinna Vinschen
2014-08-13 17:38:47 +0000
5b4e301b36* cpuid.h: Add missing copyright header. Fix formatting. Use uint32_t instead of unsigned throughout. Change functions to static inline and always inline. (cpuid): Add parameter to set ecx, allowing to request extended CPUID info. * fhandler_proc.cc (format_proc_cpuinfo): Use uint32_t instead of unsigned throughout. Add fake decimal places to MHz info. Handle more feature flags. * fhandler_random.cc (fhandler_dev_random::write): Allow up to 4K input to add entropy. * syscalls.cc: Drop including cpuid.h.
Corinna Vinschen
2014-08-11 12:03:18 +0000
f9c956a1ff* common.din (__cxa_finalize): Export. * dcrt0.cc (cygwin_atexit): Use d->handle with __cxa_atexit. * dll_init.cc (dll_list::detach): Use d->handle with __cxa_finalize. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Use 274 for __cxa_finalize as well.
Yaakov Selkowitz
2014-08-07 16:25:06 +0000
5528975705* passwd.c (usage): Rename DAYS to MINDAYS and MAXDAYS. * utils.xml (passwd): Ditto.
Corinna Vinschen
2014-08-06 19:24:57 +0000
89d35a4833* ntsec.xml (ntsec-mapping): Drop plus-prepended builtin accounts as default setting. Add short explanation in db_prefix: always mode. Fix a type. Drop a paragraph with redundant information.
Corinna Vinschen
2014-08-06 14:46:03 +0000
64665f459e* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop "plus_prepended" as naming style. Drop enum name_style_t, use a boolean "fully_qualified_name" value instead. Rework function to drop "plus_prepended" handling througout and default to "name only" style as replacement.
Corinna Vinschen
2014-08-04 15:50:42 +0000
c0a211cc3e* faq-what.xml (faq.what.who): Remove mention of retired setup maintainers. Add link to cygwin-pkg-maint.
Yaakov Selkowitz
2014-08-03 19:53:24 +0000
9067d19b9aheaders: properly decorate attributes
Eric Blake
2014-08-01 15:48:37 +0000
ada456dcfeheaders: properly decorate attributes
Eric Blake
2014-08-01 15:44:51 +0000
232f23e038* new-features.xml: (ov-new1.7.1): Add new section. Move old 1.7 sections into section level 3.
Corinna Vinschen
2014-07-30 11:28:58 +0000
f092b3ddf3* cygwin.xsl: Allow 3 section levels in TOC. * new-features.xml: (ov-new1.7.32): Add new section. * ntsec.xml: Rename top-level section to reflect extension of topics. Remove old /etc/passwd, /etc/group considerations. Add new sections explaining Windows to POSIX account mapping. Make setuid sections third level sections. * pathnames.xml: Note new method of account mapping for fstab.d/$USER. * faq-setup.xml: Rework references to /etc/passwd and /etc/group to reflect changes to account handling. * faq-using.xml: Ditto.
Corinna Vinschen
2014-07-30 11:07:34 +0000
db0378d50f* libc/string/strerror.c: Fix documentation so makedoc doesn't stumble over a sole EAGAIN.
Corinna Vinschen
2014-07-30 08:02:12 +0000
c72a0d361d* mkgroup.c (usage): Move info message that this /etc/group isn't really required anymore more to the top of the usage output. * mkpasswd.c (usage): Ditto for /etc/passwd. Drop old text from output.
Corinna Vinschen
2014-07-29 13:29:54 +0000
898e26c82f* cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset. * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Return UINT32_MAX in case of error. * security.h (PRIMARY_POSIX_OFFSET): Define. (NOACCESS_POSIX_OFFSET): Define. (UNUSABLE_POSIX_OFFSET): Define. * uinfo.cc (cygheap_domain_info::init): Drop initializing lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_file): Set PosixOffset to either UNUSABLE_POSIX_OFFSET or NOACCESS_POSIX_OFFSET in case we don't get a sensible offset from AD. Explain why. Drop setting ch lowest_tdo_posix_offset. (pwdgrp::fetch_account_from_windows): Replace constant 0x100000 with PRIMARY_POSIX_OFFSET throughout.
Corinna Vinschen
2014-07-29 08:53:13 +0000
ca6a65aa64Fix typo in previous commit
Anthony Green
2014-07-28 05:23:30 +0000
0a0f33e501Add moxiebox support.
Anthony Green
2014-07-27 14:37:10 +0000
c999d29a7b* fhandler_socket.cc (fhandler_socket::send_internal): Fix value of out_len when tweaking the last buffer so out_len is correct in a subsequent if expression.
Corinna Vinschen
2014-07-24 13:21:02 +0000
e4994e769e2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill
2014-07-22 19:30:00 +0000
3be2cd0405* thread.cc (pthread::init_mainthread): Initialize thread mutex to type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.
Corinna Vinschen
2014-07-21 16:32:09 +0000
7cc124b0e5bump to 32
Corinna Vinschen
2014-07-21 11:08:07 +0000
2f84de1ff5* thread.cc (pthread::create): Handle stackaddr as upper bound address. Add comment. (pthread_attr_setstack): Store upper bound address in stackaddr. Explain why. (pthread_attr_getstack): Handle stackaddr as upper bound address. Add comment. (pthread_attr_setstackaddr): Add comment. (pthread_attr_getstackaddr): Add comment. (pthread_attr_getstacksize): Return default stacksize if stacksize has not been set by the application, just as on Linux. Add comment. (pthread_getattr_np): Store upper bound address in stackaddr. Explain why. * include/pthread.h: Remove outdated comment. (pthread_attr_getstackaddr): Mark as deprecated, as on Linux. (pthread_attr_setstackaddr): Ditto.
Corinna Vinschen
2014-07-16 10:21:18 +0000
6f05b32767* sigproc.cc (sigproc_init): Set aside more buffer space for signal pipes. (sig_send): Retry WriteFiles which fail when there is no error but packbytes have not been sent.
Christopher Faylor
2014-07-15 22:11:23 +0000
0db2f28fd6* sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.
Christopher Faylor
2014-07-15 14:57:30 +0000
6aafa0bfc2* uinfo.cc (cygheap_domain_info::init): Correctly set lowest_tdo_posix_offset to UNIX_POSIX_OFFSET. (fetch_posix_offset): Redesign to fake a POSIX offset in all cases where we can't fetch a non-0 POSIX offset from our primary domain.
Corinna Vinschen
2014-07-14 13:33:20 +0000
4866e86cb1* thread.cc (pthread_mutex::pthread_mutex): Change default type to PTHREAD_MUTEX_NORMAL. (pthread_mutex::unlock): Return EPERM if the mutex has no owner and the mutex type is PTHREAD_MUTEX_ERRORCHECK, as on Linux. (pthread_mutexattr::pthread_mutexattr): Ditto. (pthread_mutex_unlock): Do not fail if mutex is a normal mutex initializer. * include/pthread.h (PTHREAD_MUTEX_INITIALIZER): Redefine as PTHREAD_NORMAL_MUTEX_INITIALIZER_NP.
Corinna Vinschen
2014-07-14 09:42:15 +0000
87375c75b3[aarch64] Add memchr.
Richard Earnshaw
2014-07-11 09:10:50 +0000
96ed53c10f* thread.cc (pthread::create): Use PTHREAD_DEFAULT_STACKSIZE stacksize if attr.stacksize is 0. (pthread_attr::pthread_attr): Initialize stacksize to 0 to align more closely to Linux. (pthread_attr_getstack): Fix incorrect stackaddr computation. Return stackaddr just like pthread_attr_getstackaddr. Remove slightly off comment. (pthread_attr_getstackaddr): Remove slightly off comment. (pthread_getattr_np): Return stackaddr and stacksize based on the full allocated stackarea.
Corinna Vinschen
2014-07-09 12:06:08 +0000
7bd00a0bef2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz> Richard Earnshaw <rearnsha@arm.com>
Richard Earnshaw
2014-07-07 13:58:35 +0000
2ccbe5129d* configure.in (--enable-newlib-nano-formatted-io): Set to "no" by default. * configure: Regenerated.
Corinna Vinschen
2014-07-07 13:15:55 +0000
f135cbdd45* fhandler_socket.cc (fhandler_socket::send_internal): Improve loop to write streams in chunks of wmem() bytes to raise performance when writing small buffers. Rename variables and add comments to help understanding the code in years to come.
Corinna Vinschen
2014-07-07 12:57:03 +0000
72506dd846* passwd.cc (pg_ent::enumerate_ad): Revert to simply skipping a domain if opening the connection to the domain fails.
Corinna Vinschen
2014-07-07 10:22:51 +0000
f0c23915ec* libc/minires.c (minires_dprintf): Change "Minires" to "Resolv" to differ from external minres lib. (res_nquerydomain): Fix off-by-one in domain concatenation. Add debug output.
Corinna Vinschen
2014-07-07 08:40:31 +0000
e35b92c202* autoload.cc (ldap_search_sW): Replace ldap_search_stW. (LdapMapErrorToWin32): Import. * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Accommodate change to cyg_ldap::open. * ldap.cc (CYG_LDAP_TIMEOUT): Remove. (CYG_LDAP_ENUM_TIMEOUT): Remove. (def_tv): Remove. (enum_tv): Remove. (cyg_ldap::map_ldaperr_to_errno): New method to map LDAP error codes to POSIX errno codes. Explicitly map LDAP_NO_RESULTS_RETURNED to ENMFILE. (cyg_ldap::wait): Ditto. (struct cyg_ldap_init): New struct. (cyg_ldap::connect_ssl): Return ULONG. Drop setting LDAP_OPT_TIMELIMIT. Add call to ldap_search_sW to fetch root DSE. (cyg_ldap::connect_non_ssl): Ditto. (ldap_init_thr): New static thread function. (cyg_ldap::connect): New method to call connect_ssl/connect_non_ssl in an interruptible cygthread. (struct cyg_ldap_search): New struct. (cyg_ldap::search_s): New method to perform generic synchronous search. (ldap_search_thr): New static thread function. (cyg_ldap::search): New method to call search_s in an interruptible cygthread. (struct cyg_ldap_next_page): New struct. (cyg_ldap::next_page_s): New method to perform generic synchronous paged search. (ldap_next_page_thr): New static thread function. (cyg_ldap::next_page): New method to call next_page_s in an interruptible cygthread. (cyg_ldap::open): Return POSIX errno. Call connect method. (cyg_ldap::fetch_ad_account): Call search method rather than ldap_search_stW. (cyg_ldap::enumerate_ad_accounts): Return POSIX errno. Use infinite timeout in call to ldap_search_init_pageW. (cyg_ldap::next_account): Return POSIX errno. Call next_page method rather than ldap_get_next_page_s. (cyg_ldap::fetch_posix_offset_for_domain): Call search method rather than ldap_search_stW. (cyg_ldap::fetch_unix_sid_from_ad): Ditto. (cyg_ldap::fetch_unix_name_from_rfc2307): Ditto. * ldap.h (class cyg_ldap): Accommodate aforementioned changes. * passwd.cc (pg_ent::enumerate_ad): Ditto. Break search if one of cyg_ldap::enumerate_ad_accounts or cldap.next_account returns with an error code other than ENMFILE. * sec_helper.cc (cygpsid::get_id): Accommodate change to cyg_ldap::open. * uinfo.cc (fetch_posix_offset): Ditto.
Corinna Vinschen
2014-06-25 09:10:50 +0000
4491d189ae* libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity Scan CID 60023). * libc/ctype/iswalpha.c (iswalpha): Add bounds check to avoid out-of-bounds read from utf8 tables (CID 59949). * libc/locale/ldpart.c (__part_load_locale): Add 1 byte to size of lbuf. Write NUL into the last byte to accommodate split_lines (CID 60047).
Corinna Vinschen
2014-06-23 20:21:54 +0000
8431e478d2* spawn.cc (find_exec): Initialize err (CID 60111). * strace.cc (strace::activate): Fix potential buffer overrun (CID 59938) * syscalls.cc (popen): Close parent pipe descriptor via fclosing fp on error to avoid resource leak (CID 59981). * thread.cc (pthread::exit): Avoid accessing cygtls member after deleting "this" (CID 60217).
Corinna Vinschen
2014-06-23 19:05:15 +0000
cf06a0b18c* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error case to make Coverity really happy (CID 59993).
Corinna Vinschen
2014-06-23 15:13:12 +0000
f739fd3ef0* select.cc (start_thread_socket): Delete si on early return in case of an error (CID 59967).
Corinna Vinschen
2014-06-23 14:56:45 +0000
565e3643dd* regex/regcomp.c (computematchjumps): Free local memory in case of error (CID 59975).
Corinna Vinschen
2014-06-23 14:33:55 +0000
f83cc3b7e9* mount.cc (fs_info::update): Define dir in the outermost scope to avoid accessing out-of-scope value (CID 60027). Always initialize attr to upath (CID 60113).
Corinna Vinschen
2014-06-23 14:05:16 +0000