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
path: root/winsup
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-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-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-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-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-23Drop cygwin/_types.h.Corinna Vinschen
* include/cygwin/_types.h: Drop unused file. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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-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 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-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-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-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-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-11cygwin: fix __x86_64__ conditional in stdint.hYaakov Selkowitz
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2015-03-10whitespace fixCorinna Vinschen
2015-03-10Change CVS->GIT in docsCorinna Vinschen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-03-09mv .cvsignore to .gitignoreCorinna Vinschen
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
2015-03-05 * tty.h (tty::set_master_ctl_closed): Rename from set_master_closed.Corinna Vinschen
(tty::is_master_closed): Drop method. * fhandler_tty.cc (fhandler_pty_slave::open): Remove code prematurely bailing out if master control thread is not running. (fhandler_pty_slave::read): Don't generate SIGHUP if master control thread is not running. (fhandler_pty_master::close): Rearrange code to avoid stopping master control thread twice in multi-threaded scenarios.
2015-03-05 * fhandler.h (fhandler_base::get_echo_handle): New virtual method.Corinna Vinschen
(class fhandler_pty_master): Add echo_r and echo_w handles constituting read and write side of new echo pipe. * select.cc (peek_pipe): On pty masters, check additionally if input from the echo pipe is available. * fhandler_tty.cc (fhandler_pty_master::doecho): Drop output_mutex locking. Write output to echo pipe. (fhandler_pty_master::process_slave_output): Check if input is available in echo pipe and prefer to read from it, if so. (fhandler_pty_slave::write): Drop output_mutex locking. (fhandler_pty_master::fhandler_pty_master): Initialize echo pipe handles to NULL. (fhandler_pty_master::close): Close and NULL echo pipe handles. (fhandler_pty_master::setup): Create echo pipe, close in case of error.
2015-03-04 * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 36.Corinna Vinschen
2015-03-04 * posix.xml (std-bsd): Add issetugid.Corinna Vinschen
2015-03-03 * new-features.xml (ov-new1.7.35): Add SIGSYS change.Corinna Vinschen
2015-03-03 * msg.cc: Throughout, drop raising SIGSYS if cygserver is not running.Corinna Vinschen
* sem.cc: Ditto. * shm.cc: Ditto.
2015-03-03 * new-features.xml (ov-new1.7.35): Add new section.Corinna Vinschen
2015-03-03 * common.din (issetugid): Export.Corinna Vinschen
* glob.cc (issetugid): Drop macro. * sec_auth.cc (issetugid): New exported function. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2015-03-02 * security.cc (get_attribute_from_acl): Don't spill Everyone permissionsCorinna Vinschen
into group permissions if owner SID == group SID. (alloc_sd): Add parenthesis for clarity.
2015-02-28 * utils.xml (getfacl): Adjust options to option nmame change.Corinna Vinschen
2015-02-28*** empty log message ***Corinna Vinschen
2015-02-28 * getfacl.c (usage): Change --all to --access, --dir to --default.Corinna Vinschen
Align text to output of Linux tool. (longopts): Add --access and --default options.
2015-02-28 * uinfo.cc (pwdgrp::add_line): Return NULL if parsing a line failed.Corinna Vinschen
(pwdgrp::add_account_post_fetch): Check return value from add_line and return NULL if add_line returns NULL.