summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* * cygserver-config: Use numeric id 18 instead of "system" in chown.Corinna Vinschen2014-04-162-2/+6
|
* * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.Corinna Vinschen2014-04-142-2/+7
| | | | (CPU_SET): Likewise.
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix gid evaluationCorinna Vinschen2014-04-122-9/+15
| | | | for local accounts.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 30.Corinna Vinschen2014-04-102-1/+5
|
* * libc/machine/rl78/setjmp.S: Add RL78/G10 support.DJ Delorie2014-04-092-0/+25
|
* * exceptions.cc (exception::myfault_handle): Only handle the minimumCorinna Vinschen2014-04-092-1/+19
| | | | amount of exceptions the myfault handler was designed for.
* * cygwin.sc.in: (Temporarily?) workaround serious ld bug whichCorinna Vinschen2014-04-082-11/+13
| | | | | truncates symbols in certain computations to 32 bit. See https://sourceware.org/bugzilla/show_bug.cgi?id=16821
* release/1.7.29Corinna Vinschen2014-04-071-0/+3
|
* * cygserver_ipc.h (ipc_set_proc_info): Add bool parameter to specifyCorinna Vinschen2014-04-073-5/+16
| | | | | | | whether or not to send signal_arrived. * shm.cc (client_request_shm::client_request_shm): Call ipc_set_proc_info with bool parameter set to true to not send signal_arrived.
* * process.cc (process::process): Only notice that signal_arrived isCorinna Vinschen2014-04-072-2/+6
| | | | NULL in debug output.
* 2014-04-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-04-042-2/+7
| | | | | * COPYING.NEWLIB: Add to current TI license to include tirtos addition.
* 2014-04-04 Ashish Kapania <akapania@ti.com>Jeff Johnston2014-04-043-2/+8
| | | | | | * arm/configure.in: (*-*-tirtos*) Accept TIRTOS target when setting objtype * arm/configure: Regenerated.
* 2014-04-04 Ashish Kapania <akapania@ti.com>Jeff Johnston2014-04-0412-3/+6455
| | | | | | | | | | | * configure.host (sys_dir, newlib_cflags): Set sys_dir to tirtos and use -D__DYNAMIC_REENT__ and -DMALLOC_PROVIDED compiler options for TIRTOS target. * libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Change #ifdef to not define this macro when __tirtos__ is defined. * libc/sys/tirtos : Add support for TIRTOS. * libc/sys/tirtos/Makefile.am, libc/sys/tirtos/lock.c: New files. * libc/sys/tirtos/configure.in, libc/sys/tirtos/include/sys/lock.h: Ditto.
* Forced checkinCorinna Vinschen2014-04-040-0/+0
|
* * new-features.xml: (ov-new1.7.29): Fix incomplete XML tagging.Corinna Vinschen2014-04-042-0/+8
|
* *** empty log message ***Corinna Vinschen2014-04-041-0/+4
|
* * ntea.cc (EA_BUFSIZ): Fix comment.Corinna Vinschen2014-04-042-13/+21
| | | | | (read_ea): Use tmp_pathbuf for local buffer rather than alloca. Throughout change ZwQueryEaFile to NtQueryEaFile in comments.
* * ntea (EA_BUFSIZ): Reduce to 64K. Add comment to explain why.Corinna Vinschen2014-04-042-4/+18
|
* *** empty log message ***Corinna Vinschen2014-04-012-4/+22
|
* * new-features.xml: (ov-new1.7.29): Add new section.Christopher Faylor2014-04-012-0/+17
|
* * DevNotes: Add entry cgf-000025.Christopher Faylor2014-03-293-27/+30
| | | | | | * exceptions.cc (_cygtls::signal_debugger): Reorganize to avoid contacting the debugger if we have already done so via the exception handler. Eliminate need for goto. Remove an ifdef in favor of just allocating a larger buffer.
* * dcrt0.cc (dll_crt0_0): Install myfault exception handler on x86_64.Corinna Vinschen2014-03-284-41/+97
| | | | | | | | | | | | | | | | | | | | | | * exception.h (exception_list): Typedef as void on x86_64. (exception::handler_installed): Remove. (exception::handle_while_being_debugged): Remove. (exception::myfault_handle): Declare for x86_64. (exception::handle): Declare as ordinary exception handler on x86_64 as well. (exception::exception): Drop previous code (again). Install exception::handle as SEH handler. (exception::install_myfault_handler): New x86_64-only method to install exception::myfault_handle as VEH handler. Explain why. (exception::~exception): For x86_64, define frame end label (again). * exceptions.cc (CYG_EXC_CONTINUE_EXECUTION): Drop definition. (CYG_EXC_CONTINUE_SEARCH): Ditto. (exception::myfault_handle): New x86_64-only method, VEH handler to handle myfault exceptions. (exception::handle): Define as ordinary exception handler on x86_64 as well. Use ExceptionContinueExecution and ExceptionContinueSearch throughout instead of deleted Cygwin macros. Don't handle myfault exceptions on x86_64.
* * sec_auth.cc (create_token): Initialize lsa handle to NULL, rather thanCorinna Vinschen2014-03-283-4/+12
| | | | | | | to INVALID_HANDLE_VALUE. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Don't initialize lsa handle.
* * exceptions.cc (_cygtls::signal_debugger): Move memcpy to copy contextCorinna Vinschen2014-03-282-5/+9
| | | | from incoming siginfo_t to thread_context, too.
* * gendef (_sigbe/x86_64): Fix typo in .seh_proc pseudo-op.Corinna Vinschen2014-03-272-10/+23
| | | | | | | | | | (setjmp/x86_64): Drop storing ExceptionList pointer in jmp_buf->Frame. Drop comment. Store likely frame in rdx. Jump to __setjmpex. (__setjmpex): New function providing setjmp functionality. Fetch jmp_buf->Frame from rdx, like MSVCRT setjmpex. (__sjfault/x86_64): Store rdx content in jmp_buf->Frame. (__ljfault/x86_64): Don't restore ExceptionList pointer. (longjmp/x86_64): Ditto.
* * libc/machine/arm/acle-compat.h: New file.Richard Earnshaw2014-03-273-19/+206
| | | | * libc/machine/arm/arm_asm.h: Use it.
* 2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>Jeff Johnston2014-03-215-2/+81
| | | | | | | | | | | | | | * libc/stdlib/gd_qnan.h (f_QNAN, d_QNAN0, d_QNAN1): Add MIPS versions. (ld_QNAN0, ld_QNAN1, ld_QNAN2, ld_QNAN3): Don't define for MIPS. (ldus_QNAN0, ldus_QNAN1, ldus_QNAN2, ldus_QNAN3, ldus_QNAN4): Likewise. * libc/stdlib/ldtoa.c (nan113, nan64, nan53, nan24): Add MIPS versions. (enan): Handle legacy MIPS payloads. * libm/common/s_nan.c (nan): Use __builtin_nan if supported by the compiler. * libm/common/sf_nan.c (nanf): Likewise.
* 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>Jeff Johnston2014-03-212-0/+6
| | | | * nds32/_sbrk.S: Add .size and .type directive.