summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * pseudo-reloc.cc (__report_error): Raise size of module name buffer toCorinna Vinschen2014-05-192-2/+7
| | | | PATH_MAX. Fix length in call to GetModuleFileNameW (CID 59947).
* * net.cc (call_gaa): Fix setting pa_ret pointer in case of an errorCorinna Vinschen2014-05-192-6/+15
| | | | | | from GetAdaptersAddresses (CID 60218). (get_ifs): Add missing braces in AF_INET6 case which broke netmask computation. Break out of loop if prefix gets <= 0 (CID 59939).
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.Corinna Vinschen2014-05-194-34/+50
|
* * dtable.cc (handle_to_fn): Fix length parameter in call toCorinna Vinschen2014-05-192-2/+7
| | | | QueryDosDeviceW (CID 59936).
* * pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array inCorinna Vinschen2014-05-192-2/+7
| | | | call to GetModuleFileNameW (CID 59935).
* * smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.Corinna Vinschen2014-05-192-1/+6
|
* * exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).Corinna Vinschen2014-05-192-1/+5
|
* * bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructorCorinna Vinschen2014-05-192-0/+7
| | | | to make Coverity happy (CID 59838).
* * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to makeCorinna Vinschen2014-05-193-4/+18
| | | | | | Coverity happy (CID 59993). * transport_pipes.cc (transport_layer_pipes::listen): Make listen_pipe and connect_pipe statics to make Coverity happy (CID 60010/60011).
* * syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).Corinna Vinschen2014-05-192-1/+5
|
* * external.cc (cygwin_internal): Use local name buffer instead ofCorinna Vinschen2014-05-162-3/+7
| | | | allocated one in CW_CYGNAME_FROM_WINNAME.
* * libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.Corinna Vinschen2014-05-152-4/+8
|
* * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.Corinna Vinschen2014-05-152-1/+8
|
* * external.cc (cygwin_internal): Implement CW_CYGNAME_FROM_WINNAME.Corinna Vinschen2014-05-153-1/+65
| | | | | | Add lengthy comment to explain what we do and why. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CYGNAME_FROM_WINNAME.
* 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2014-05-145-0/+20
| | | | | | | | | | Sync from GCC mainline. * configure.ac (target_makefile_frag): Set for nios2-*-elf*. * configure: Regenerated. config/ * mt-nios2-elf: New file.
* merge from gccDJ Delorie2014-05-142-3/+31
|
* * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when doubleCorinna Vinschen2014-05-142-0/+7
| | | | options is not __RL78_64BIT_DOUBLES__.
* * sec_auth.cc (get_server_groups): Call get_logon_server only forCorinna Vinschen2014-05-143-7/+95
| | | | | | | non-builtin accounts. * uinfo.cc (pwdgrp::fetch_account_from_windows): Check incoming account name for validity in terms of the current name prefixing rules and refuse invalid names.
* * fhandler_socket.cc (fhandler_socket::ioctl): Handle the differentCorinna Vinschen2014-05-133-1/+30
| | | | | ideas of u_long between Winsock and Cygwin applications on x86_64. Add long comment.
* * minidumper.cc (filter_minidump_type): New function.Jon TURNEY2014-05-132-0/+73
| | | | | | | (minidump): Change default dump type from MiniDumpNormal to something with more useful information without getting too big. Use filter_minidump_type() to filter out unsupported dump types.
* * Makefile.in (minidumper.exe): Link directly with dbghelp.Jon TURNEY2014-05-133-37/+16
| | | | * minidumper.cc (minidump): Ditto.
* * libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.Corinna Vinschen2014-05-123-2/+26
| | | | | | (WCHAR_MAX): Ditto. * libc/include/wchar.h (WCHAR_MIN): Add comment. (WCHAR_MAX): Ditto.
* clarify checkin commentChristopher Faylor2014-05-101-2/+2
|
* * signal.cc (sigprocmask): Fix strace output to include "how".Christopher Faylor2014-05-093-6/+15
| | | | | * fhandler_console.cc (dev_console::save_restore): Only current dwEnd line rather than the one after that.
* * libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE orCorinna Vinschen2014-05-092-1/+8
| | | | __XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
* * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.Corinna Vinschen2014-05-092-2/+9
| | | | (renameat): Drop explicit __CYGWIN__ dependency.
* * uinfo.cc (cygheap_user::init): Fix formatting in debug output.Corinna Vinschen2014-05-084-3/+51
| | | | | | | | (struct cyg_USER_INFO_24): Define temporarily. Explain why. (pwdgrp::fetch_account_from_windows): Handle sane primary group setting for Microsoft Accounts. Explain why. * wincap.h (wincaps::has_microsoft_accounts): New element. * wincap.cc: Implement above element throughout.
* * grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducingCorinna Vinschen2014-05-082-1/+6
| | | | an endless loop.
* * passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing theCorinna Vinschen2014-05-073-2/+10
| | | | | buffer len. Add comment. * uinfo.cc (internal_getlogin): Fix typo in comment.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Tweak SID<->uidCorinna Vinschen2014-05-072-1/+9
| | | | conversion to cover S-1-5-113, S-1-5-114, and S-1-5-1000 groups.
* * grp.cc (pwdgrp::parse_group): Set grp.len. Drop generating anyCorinna Vinschen2014-05-074-36/+110
| | | | | | | | | | | | | | | | | | | | gr_mem entries. (getgrgid_r): Don't try to copy gr_mem entries. Always set gr_mem to an empty list. (getgrnam_r): Ditto. (app_gr): New static struct to store group data propagated to the calling application via getgrgid/getgrnam. (getgr_cp): Fill app_gr and return pointer to app_gr.g. (getgrgid32): Call getgr_cp. (getgrnam32): Ditto. * passwd.cc (pwdgrp::parse_passwd): Set res.len. (app_pw): New static struct to store passwd data propagated to the calling application via getpwuid/getpwnam. (getpw_cp): Fill app_pw and return pointer to app_pw.p. (getpwuid32): Cal getpw_cp. (getpwnam): Ditto. * pwdgrp.h (struct pg_pwd): Add len member. (struct pg_grp): Ditto.
* * security.h (MAX_SUBAUTH_CNT): Drop. Use SID_MAX_SUB_AUTHORITIESCorinna Vinschen2014-05-066-20/+24
| | | | | instead throughout. (MAX_SID_LEN): Drop. Use SECURITY_MAX_SID_SIZE instead throughout.
* * grp.cc (internal_getgroups): Drop unused cygsid variable.Corinna Vinschen2014-05-066-25/+52
| | | | | | | | | | | | | | | | | * sec_helper.cc (cygpsid::pstring): Use sid_sub_auth_count macro. (cygsid::get_sid): Use MAX_SUBAUTH_CNT rather than wrong constant 8. Don't call memcpy to copy subauthorities into SID, use assignment. (cygsid::getfromstr): Use MAX_SUBAUTH_CNT rather than wrong constant 8. * security.h (MAX_SUBAUTH_CNT): New definition. Set to 11 to cover Microsoft Accounts. (MAX_SID_LEN): Define in terms of SID member sizes and MAX_SUBAUTH_CNT. (DBGSID): Use MAX_SUBAUTH_CNT to define size of SubAuthority array. * uinfo.cc (pwdgrp::fetch_account_from_windows): Handle Micosoft Accounts. Handle them as well known group. Compare domain names case-insensitive. * winlean.h (PIPE_REJECT_REMOTE_CLIENTS): Drop temporary definition since Mingw64 catched up. (DNLEN): Redefine as 16. Explain why.
* * net.cc (cygwin_getsockopt): Rearrange code slightly and handleCorinna Vinschen2014-05-053-24/+29
| | | | TCP_NODELAY just like SO_KEEPALIVE and SO_DONTROUTE.
* * libc/include/stdio.h: Declare various C99 printf/scanf functions forCorinna Vinschen2014-05-052-1/+6
| | | | C++11, too.
* * spawn.cc (av::setup): Eat trailing whitespace on #! script.Christopher Faylor2014-05-032-0/+6
|
* * fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.Christopher Faylor2014-05-022-1/+5
|
* * msp430/Makefile.in (NOSYS_OBJS): Add unlink.o.Nick Clifton2014-04-303-8/+37
| | | | | (SCRIPTS): Remove msp430F5438A-s.ld and msp430F5438A-s.ld. * unlink.c: New file.
* * DevNotes: Add entry cgf-000026.Christopher Faylor2014-04-264-1/+27
| | | | | | | * fhandler.h (fhandler_console::save_top): Save top of screen coordinates. * fhandler_console.cc (dev::save_restore): Record top of screen coordinates. Clear entire buffer when restoring saved buffer and try to position the cursor on the save relative place on the screen.
* * syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up toCorinna Vinschen2014-04-252-1/+6
| | | | STATUS_TRANSACTION_NOT_ENLISTED.
* * fhandler_socket.cc: On x86_64, define u_long as __ms_u_long beforeCorinna Vinschen2014-04-245-11/+72
| | | | | | | | | | | including the windows headers. Explain why. (get_inet_addr): Convert ANY address to LOOPBACK address. Explain why. (fhandler_socket::evaluate_events): Forcibly set SO_ERROR socket option in case a connection attempt failed. Explain why. (fhandler_socket::ioctl): Drop x86_64 re-definition of u_long here. * fhandler_procnet.cc: On x86_64, define u_long as __ms_u_long before including the windows headers. Explain why. * net.cc: Ditto.
* * miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.Corinna Vinschen2014-04-233-1/+8
|
* * libc/machine/arm/strcmp-arm-tiny.S: New file.Richard Earnshaw2014-04-2210-741/+1857
| | | | | | | | | | | | | * libc/machine/arm/strcmp-armv4.S: New file. * libc/machine/arm/strcmp-armv4t.S: New file. * libc/machine/arm/strcmp-armv6.S: New file. * libc/machine/arm/strcmp-armv7.S: New file. * libc/machine/arm/strcmp-armv7m.S: New file. * libc/machine/arm/strcmp.S: Replace with wrapper for various implementations. * libc/machine/arm/Makefile.am (strcmp.o, strcmp.obj): Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * ldap.cc (user_attr): Remove "uid" attribute.Corinna Vinschen2014-04-224-20/+21
| | | | | | | | | * ldap.h (LDAP_USER_NAME_ATTR): Remove. Change other attribute index values as required. (cyg_ldap::get_user_name): Remove inline function. * uinfo.cc (pwdgrp::fetch_account_from_windows): Remove code to handle Cygwin username different from Windows username. (pwdgrp::add_account_from_cygserver): Remove unnecessary cast.
* * minidumper.cc (minidump): Fix copy and paste error in checkingJon TURNEY2014-04-212-1/+6
| | | | result of OpenProcess().
* * winf.cc (linebuf::fromargv): Temporarily revert patch from 2014-01-24.Corinna Vinschen2014-04-182-2/+6
|
* * cygtls.h (TP_NUM_C_BUFS): Raise to 50 to allow SYMLOOP_MAX recursionsCorinna Vinschen2014-04-188-233/+282
| | | | | | | | | | | | | | | | | | | | | path_conv <-> normalize_posix_path, plus a bit of buffer. (TP_NUM_W_BUFS): Ditto. (class san): Change type of _c_cnt and _w_cnt to unsigned. * path.cc (normalize_posix_path): Guard recursion into path_conv against tmp_pathbuf overflow. Generate normalized path in call to path_conv. If the path is valid, replace dst with the normalized_path from path_conv call. Add comment to explain why we're doing this. * tls_pbuf.cc (tls_pathbuf::destroy): Only free buffers until the first buffer pointer is NULL. (tmp_pathbuf::c_get): Simplify error message. (tmp_pathbuf::w_get): Ditto. * tls_pbuf.h (class tmp_pathbuf): Change type of c_buf_old and w_buf_old to unsigned. (tmp_pathbuf::check_usage): New inline method to check if we have enough tmp_pathbuf buffers left to call a function using tmp_pathbuf buffers. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Regenerate.
* * pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the messageCorinna Vinschen2014-04-162-2/+7
| | | | length to account for the trailing NUL.
* *** empty log message ***Corinna Vinschen2014-04-161-0/+4
|
* * net.cc (cygwin_setsockopt): Ignore IPV6_TCLASS the same way as IP_TOS.Corinna Vinschen2014-04-162-1/+14
|