Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-23Rename struct ucontext to struct __mcontextJon TURNEY
* include/cygwin/signal.h : Rename struct ucontext to struct __mcontext. Fix layout differences from the Win32 API CONTEXT type. Remove unused member _internal. Rename member which corresponds to ContextFlags. Add cr2 member. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-04-23Fix UTF-16 surrogate handling in wctomb and friends.Corinna Vinschen
* libc/stdlib/wctomb_r.c (__utf8_wctomb): Fix check for handling a lone high surrogate. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Avoid potential crash at startup or in getgroups(2).Corinna Vinschen
* grp.cc (internal_getgroups): Handle negative domain index to avoid crashes. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Fix documentation of cygwin_internal()'s return type.Jon TURNEY
* misc-funcs.xml (cygwin_internal): Correct return type. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-04-23Fix buffer size error handling in gethostname.Renato Silva
* net.cc (cygwin_gethostname): Fix buffer size error handling. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Add release msgCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Document GNU basename.Corinna Vinschen
* new-features.xml (ov-new1.7.36): Add new section. Document GNU basename. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Don't allow fully qualified Windows account names.Corinna Vinschen
* uinfo.cc (pwdgrp::fetch_account_from_windows): Don't allow fully qualified Windows account names (domain\user or user@domain). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Avoid excessive locking and calling tzset in time functions.Corinna Vinschen
* libc/time/lcltime_r.c (localtime_r): Call _tzset_unlocked inside TZ lock. * libc/time/mktime.c (mktime): Ditto. * libc/time/strftime.c (strftime, wcsftime): Ditto. Guard against calling _tzset_unlocked more than once (baring recursion). Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Add _tzset_unlocked and _tzset_unlocked_rCorinna Vinschen
newlib: * libc/time/local.h (_tzset_unlocked_r): Add prototype. (_tzset_unlocked): Ditto. * libc/time/tzset.c (_tzset_unlocked): New function, call _tzset_unlocked_r. (tzset): Lock and call _tzset_unlocked_r. * libc/time/tzset_r (_tzset_unlocked_r): Remove locking and rename from _tzset_r. (_tzset_r): Lock and call _tzset_unlocked_r. cygwin: * localtime.cc (tzset_unlocked): Export as _tzset_unlocked. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Move tzset calls to time functions.Craig Howland
* libc/stdlib/setenv_r.c (_setenv_r): Remove tzset() call for TZ definition. * libc/time/lcltime_r.c (localtime_r): Add tzset() call * libc/time/mktime.c (mktime): Ditto. * libc/time/strftime.c (strftime, wcsftime): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23strftime: use tzname if TM_ZONE is NULLYaakov Selkowitz
This avoids a strlen(NULL) crash a few lines later. * libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL. Use _tzname as fallback if TM_ZONE is NULL.
2015-04-23cygwin: add GNU basename(3)Yaakov Selkowitz
winsup/cygwin/ * common.din (__gnu_basename): Export. * path.cc (__gnu_basename): New function. winsup/doc/ * posix.xml (std-gnu): Add basename. (std-notes): Add note about two forms of basename.
2015-04-23string: add GNU basename(3)Yaakov Selkowitz
* libc/include/libgen.h (_BASENAME_DEFINED): Define. * libc/include/string.h (basename): Declare. * libc/string/Makefile.am (ELIX_4_SOURCES): Add gnu_basename.c. * libc/string/Makefile.in: Regenerate. * libc/string/gnu_basename.c: New file.
2015-04-23Try best to handle user from domain not in trusted domain list.Corinna Vinschen
* cygheap.h (cygheap_domain_info::add_domain): Add prototype. * uinfo.cc (cygheap_domain_info::add_domain): New method. (pwdgrp::fetch_account_from_windows): Try to add domain explicitely if it was not in the original list of trusted domains and go ahead rather than bailing out. Add comment to explain why. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Prepare to rename/reuse struct ucontext.Corinna Vinschen
* cygtls.h (struct _cygtls): Convert thread_context to type CONTEXT. * exceptions.cc (_cygtls::signal_debugger): Use sizeof (CONTEXT) for size of CONTEXT copied for GDB's digestion. * include/cygwin/signal.h: Add a preliminary comment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Add CMIN and CTIME definitionsCorinna Vinschen
* include/sys/termios.h: Add CMIN and CTIME. * fhandler_termios.cc (fhandler_termios::tcinit): Use CMIN and CTIME. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Bump tty.cc copyright dateCorinna Vinschen
2015-04-23TIOCPKT mode of PTY is broken if ONLCR bit is cleared.Takashi Yano
* tty.h (class tty_min): Remove variable "write_error" to which any errors are not currently set at anywhere. (class tty): Add variable "column" for handling ONOCR. * tty.cc (tty::init): Add initialization code for variable "column". * fhandler.h (class fhandler_pty_master): Remove variable "need_nl" which is not necessary any more. "need_nl" was needed by OPOST process in fhandler_pty_master::process_slave_output(). (class fhandler_pty_common): Add function process_opost_output() for handling post processing for OPOST in write process. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Count TIOCPKT control byte into length to be read in TIOCPKT mode. Move post processing for OPOST to write process. Remove code related to variable "write_error". Return with EIO error if slave is already closed. (fhandler_pty_master::fhandler_pty_master): Remove initialization code for variable "need_nl". (fhandler_pty_common::process_opost_output): Add this function for handling of OPOST in write process. Add code to avoid blocking in non-blocking mode when output is suspended by ^S. (fhandler_pty_slave::write): Call fhandler_pty_common:: process_opost_output() instead of WriteFile(). Remove code related to variable "write_error". (fhandler_pty_master::doecho): Call fhandler_pty_common:: process_opost_output() instead of WriteFile(). * select.cc (peek_pipe): Remove code related to variable "need_nl". Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23Import <sys/tree.h> from FreeBSDSebastian Huber
* libc/include/sys/tree.h: New file.
2015-04-23Ignore __STDC_{FORMAT,LIMIT,CONSTANT}_MACROSCorinna Vinschen
Per glibc BZ #15366: * inttypes.h: Drop __STDC_FORMAT_MACROS consideration. * stdint.h: Drop __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS consideration. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23* newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.Joel Sherrill
2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com> * newlib.hin: Remove _UINTPTR_EQ_ULONG and _UINTPTR_EQ_ULONGLONG.
2015-04-23Change from configure time to compile time probe for intptr_t definition.Joel Sherrill
2015-03-23 Joel Sherrill <joel.sherrill@oarcorp.com * configure.in: Delete logic to determine _UINTPTR_EQ_ULONGLONG and _UINTPTR_EQ_ULONG at configuration time. *libc/include/sys/config.h: Add logic to determine _UINTPTR_EQ_ULONGLONG and _UINTPTR_EQ_ULONG at compilation time. * libc/include/inttypes.h: Add include of <sys/config.h>. * configure: Regenerated.
2015-04-23Drop cygwin/_types.h.Corinna Vinschen
* include/cygwin/_types.h: Drop unused file. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-04-23 Add ChangeLog entry for last patch to libc/include/sys/time.h.Steve Ellcey
2015-04-23 Replace uint32_t/uint64_t type usage with __uint32_t/__uint64_t.Steve Ellcey
* libc/include/sys/time.h: Replace uint32_t and uint64_t with __uint32_t and __uint64_t.
2015-03-18Implmenet faster getfrompw/getfromgrCorinna Vinschen
* grp.cc (pwdgrp::parse_group): Call cygsid::getfromgr_passwd. * passwd.cc (pwdgrp::parse_passwd): Call cygsid::getfrompw_gecos. * pwdgrp.h (cygsid::getfrompw): Implement as inline method here, accessing pg_pwd's sid member directly. (cygsid::getfromgr): Implement as inline method here, accessing pg_grp's sid member directly. * sec_auth.cc (extract_nt_dom_user): Call cygsid::getfrompw_gecos. Explain why. * sec_helper.cc (cygsid::getfrompw): Drop implementation. (cygsid::getfromgr): Ditto. * security.h (cygsid::getfrompw_gecos): Implement former getfrompw inline here. (cygsid::getfromgr_passwd): Implement former getfromgr inline here. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-18Drop unneeded passwd argument from security functionsCorinna Vinschen
* sec_auth.cc (get_server_groups): Drop unused passwd argument. Adjust calls throughout. (get_initgroups_sidlist): Ditto. (get_setgroups_sidlist): Ditto. (create_token): Ditto. (lsaauth): Ditto. * security.h (create_token): Adjust prototype to above change. (lsaauth): Ditto. (get_server_groups): Ditto. * grp.cc (get_groups): Adjust call to get_server_groups. * syscalls.cc (seteuid32): Adjust calls to lsaauth and create_token. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-17Drop unused timeoput paramter to internal_getloginCorinna Vinschen
* grp.cc (internal_getgroups): Drop unused timeout parameter. * pwdgrp.h (internal_getgroups): Ditto in prototype. * uinfo.cc (internal_getlogin): Ditto in usage. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-17Add *.swp (Vim swap files) to .gitignoreCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-17Avoid name change if script is called via symlink from execvp et al.Corinna Vinschen
* spawn.cc (find_exec): Fix a name change in case of a symlink which can be opened as is. Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
2015-03-16Fix newlib texinfo source so 'info libc' and 'info libm' workJon TURNEY
If the newlib .info files are installed using install-info, 'info libc' and 'info libm' don't work. This seems to be due to the formatting of the directory entry line not being quite right, so fix that. Also use @direntry texinfo command, rather than writing .info directory entry literally. Also use @dircategory texinfo command to place into 'Newlib' category, rather than ending up in 'Miscellaneous' newlib/ChangeLog: 2015-03-13 Jon TURNEY <jon.turney@dronecode.org.uk> * libc/libc.texinfo: Fix directory entry. * libm/libm.texinfo: Ditto. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-03-16Fix winsup/doc to install into prefixJon TURNEY
By default, docdir and htmldir are defined in terms of prefix, so make sure to define it, so their values are prefix-relative. Without this, 'make install' installs the documentation into /share/doc/ unless configured otherwise. * Makefile.in (prefix): Define. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-03-13Teach stackinfo::walk() how to virtually unwind the tls sigstackJon TURNEY
This improves how stackinfo::dumpstack() dumps _sigbe and sigdelayed frames * exceptions.cc (stack_info): Add sigstackptr member. (walk): Unwind sigstackptr inside _sigbe and sigdelayed. * gendef (_sigdelayed_end): Add symbol to mark end of sigdelayed. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2015-03-13Remove now useless include/cygwin/sys_time.hCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-13Drop including cygwin/sys_time.h on Cygwin.Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-13Merge parts of <sys/time.h> from FreeBSDSebastian Huber
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-13net.cc: Remove extra braces.Alexey Pavlov
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Fix typo in include/cygwin/version.hAlexey Pavlov
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Drop defining _BSDTYPES_DEFINED before including winsup.h.Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Import libc/sys/rtems/include/semaphore.h from FreeBSD.Sebastian Huber
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Let pty slave detect closure of last master handleTakashi Yano
* fhandler_tty.cc (fhandler_pty_master::close): Add code to make slave detect closure of master. Fix typo in error message. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Fix more typos in ntsec.xmlCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-12Fix typos in ntsec.xmlCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11Add "tags" to .gitignoreCorinna Vinschen
2015-03-11Include sys/_timespec.h in cygwin/types.h to adjust to newlibCorinna Vinschen
* include/cygwin/types.h: Include <sys/_timespec.h> Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11Add and use latest <sys/timespec.h> from FreeBSDSebastian Huber
* libc/include/sys/_timespec.h: Import from FreeBSD. * libc/include/sys/timespec.h: Likewise. * libc/include/time.h: Include <sys/timespec.h>. * libc/include/sys/types.h (timespec): Delete. (itimerspec): Likewise. * libc/include/machine/time.h: Include <sys/_timespec.h>. * libc/include/sys/sched.h: Likewise. * libc/include/sys/signal.h: Likewise. * libc/include/sys/stat.h: Likewise. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11* autoload.cc (CreateEnvironmentBlock): Make loading non-fatal.Corinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-11Fix condition in DLL loading loopCorinna Vinschen
2015-03-11Fix a build problem running the newlib testsuite on targets that only have ↵Nick Clifton
32-bit doubles. * testsuite/newlib.stdio/swprintf.c (main): Change size of value used to initialise 'val' variable so that it will compile on targets with 32-bit doubles.