]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago * pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
Corinna Vinschen [Wed, 16 Apr 2014 09:26:41 +0000 (09:26 +0000)]
* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
length to account for the trailing NUL.

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 16 Apr 2014 09:04:25 +0000 (09:04 +0000)]
*** empty log message ***

10 years ago * net.cc (cygwin_setsockopt): Ignore IPV6_TCLASS the same way as IP_TOS.
Corinna Vinschen [Wed, 16 Apr 2014 08:58:20 +0000 (08:58 +0000)]
* net.cc (cygwin_setsockopt): Ignore IPV6_TCLASS the same way as IP_TOS.

10 years ago * cygserver-config: Use numeric id 18 instead of "system" in chown.
Corinna Vinschen [Wed, 16 Apr 2014 08:44:58 +0000 (08:44 +0000)]
* cygserver-config: Use numeric id 18 instead of "system" in chown.

10 years ago * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
Corinna Vinschen [Mon, 14 Apr 2014 14:08:26 +0000 (14:08 +0000)]
* libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
(CPU_SET): Likewise.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix gid evaluation
Corinna Vinschen [Sat, 12 Apr 2014 11:10:13 +0000 (11:10 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix gid evaluation
for local accounts.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 30.
Corinna Vinschen [Thu, 10 Apr 2014 19:20:49 +0000 (19:20 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 30.

10 years ago* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
DJ Delorie [Wed, 9 Apr 2014 21:35:43 +0000 (21:35 +0000)]
* libc/machine/rl78/setjmp.S: Add RL78/G10 support.

10 years ago * exceptions.cc (exception::myfault_handle): Only handle the minimum
Corinna Vinschen [Wed, 9 Apr 2014 19:20:01 +0000 (19:20 +0000)]
* exceptions.cc (exception::myfault_handle): Only handle the minimum
amount of exceptions the myfault handler was designed for.

10 years ago * cygwin.sc.in: (Temporarily?) workaround serious ld bug which
Corinna Vinschen [Tue, 8 Apr 2014 14:13:59 +0000 (14:13 +0000)]
* cygwin.sc.in: (Temporarily?) workaround serious ld bug which
truncates symbols in certain computations to 32 bit.  See
https://sourceware.org/bugzilla/show_bug.cgi?id=16821

10 years agorelease/1.7.29
Corinna Vinschen [Mon, 7 Apr 2014 11:41:49 +0000 (11:41 +0000)]
release/1.7.29

10 years ago * cygserver_ipc.h (ipc_set_proc_info): Add bool parameter to specify
Corinna Vinschen [Mon, 7 Apr 2014 11:25:58 +0000 (11:25 +0000)]
* cygserver_ipc.h (ipc_set_proc_info): Add bool parameter to specify
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.

10 years ago * process.cc (process::process): Only notice that signal_arrived is
Corinna Vinschen [Mon, 7 Apr 2014 11:19:29 +0000 (11:19 +0000)]
* process.cc (process::process): Only notice that signal_arrived is
NULL in debug output.

10 years ago2014-04-04 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 4 Apr 2014 21:52:07 +0000 (21:52 +0000)]
2014-04-04  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add to current TI license to
        include tirtos addition.

10 years ago2014-04-04 Ashish Kapania <akapania@ti.com>
Jeff Johnston [Fri, 4 Apr 2014 21:43:55 +0000 (21:43 +0000)]
2014-04-04  Ashish Kapania  <akapania@ti.com>

        * arm/configure.in: (*-*-tirtos*) Accept TIRTOS target when setting
        objtype
        * arm/configure: Regenerated.

10 years ago2014-04-04 Ashish Kapania <akapania@ti.com>
Jeff Johnston [Fri, 4 Apr 2014 21:40:59 +0000 (21:40 +0000)]
2014-04-04  Ashish Kapania  <akapania@ti.com>

        * 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.

10 years agoForced checkin
Corinna Vinschen [Fri, 4 Apr 2014 16:45:29 +0000 (16:45 +0000)]
Forced checkin

10 years ago * new-features.xml: (ov-new1.7.29): Fix incomplete XML tagging.
Corinna Vinschen [Fri, 4 Apr 2014 16:17:13 +0000 (16:17 +0000)]
* new-features.xml: (ov-new1.7.29): Fix incomplete XML tagging.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 4 Apr 2014 14:32:52 +0000 (14:32 +0000)]
*** empty log message ***

10 years ago * ntea.cc (EA_BUFSIZ): Fix comment.
Corinna Vinschen [Fri, 4 Apr 2014 14:26:05 +0000 (14:26 +0000)]
* ntea.cc (EA_BUFSIZ): Fix comment.
(read_ea): Use tmp_pathbuf for local buffer rather than alloca.
Throughout change ZwQueryEaFile to NtQueryEaFile in comments.

10 years ago * ntea (EA_BUFSIZ): Reduce to 64K. Add comment to explain why.
Corinna Vinschen [Fri, 4 Apr 2014 13:38:42 +0000 (13:38 +0000)]
* ntea (EA_BUFSIZ): Reduce to 64K.  Add comment to explain why.

10 years ago*** empty log message ***
Corinna Vinschen [Tue, 1 Apr 2014 08:43:34 +0000 (08:43 +0000)]
*** empty log message ***

10 years ago* new-features.xml: (ov-new1.7.29): Add new section.
Christopher Faylor [Tue, 1 Apr 2014 00:57:07 +0000 (00:57 +0000)]
* new-features.xml: (ov-new1.7.29): Add new section.

10 years ago* DevNotes: Add entry cgf-000025.
Christopher Faylor [Sat, 29 Mar 2014 21:16:09 +0000 (21:16 +0000)]
* DevNotes: Add entry cgf-000025.
* 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.

10 years ago * dcrt0.cc (dll_crt0_0): Install myfault exception handler on x86_64.
Corinna Vinschen [Fri, 28 Mar 2014 22:31:53 +0000 (22:31 +0000)]
* dcrt0.cc (dll_crt0_0): Install myfault exception handler on x86_64.
* 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.

10 years ago * sec_auth.cc (create_token): Initialize lsa handle to NULL, rather than
Corinna Vinschen [Fri, 28 Mar 2014 20:34:04 +0000 (20:34 +0000)]
* sec_auth.cc (create_token): Initialize lsa handle to NULL, rather than
to INVALID_HANDLE_VALUE.
(lsaauth): Ditto.
(lsaprivkeyauth): Ditto.
* setlsapwd.cc (setlsapwd): Don't initialize lsa handle.

10 years ago * exceptions.cc (_cygtls::signal_debugger): Move memcpy to copy context
Corinna Vinschen [Fri, 28 Mar 2014 16:56:03 +0000 (16:56 +0000)]
* exceptions.cc (_cygtls::signal_debugger): Move memcpy to copy context
from incoming siginfo_t to thread_context, too.

10 years ago * gendef (_sigbe/x86_64): Fix typo in .seh_proc pseudo-op.
Corinna Vinschen [Thu, 27 Mar 2014 19:35:55 +0000 (19:35 +0000)]
* gendef (_sigbe/x86_64): Fix typo in .seh_proc pseudo-op.
(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.

10 years ago * libc/machine/arm/acle-compat.h: New file.
Richard Earnshaw [Thu, 27 Mar 2014 13:26:39 +0000 (13:26 +0000)]
* libc/machine/arm/acle-compat.h: New file.
* libc/machine/arm/arm_asm.h: Use it.

10 years ago2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>
Jeff Johnston [Fri, 21 Mar 2014 21:27:29 +0000 (21:27 +0000)]
2014-03-21  Maciej W. Rozycki  <macro@codesourcery.com>

        * 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.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 21:17:43 +0000 (21:17 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/_sbrk.S: Add .size and .type directive.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 21:16:40 +0000 (21:16 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Tweak initialization sqeuence.
        * nds32/crt1.S: Ditto.

10 years ago2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 21:15:15 +0000 (21:15 +0000)]
2014-03-21  Sabrina Ni  <sabrinanitw@gmail.com>

        * libc/machine/nds32/configure: Regenerated.
        * libc/machine/nds32/configure.in: Add AC_NOEXECUTABLES.

10 years ago2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 21:09:46 +0000 (21:09 +0000)]
2014-03-21  Sabrina Ni  <sabrinanitw@gmail.com>

        * libc/machine/nds32/Makefile.am: Use C code implemented memcpy,
        memset for 'ISA V3M'.
        * libc/machine/nds32/Makefile.in: Generated.
        * libc/machine/nds32/configure: Generated.
        * libc/machine/nds32/configure.in: Detect IS_NDS32_ISA_V3M.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 21:02:52 +0000 (21:02 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/_argv.S: Replace syscall with break.
        * nds32/_argvlen.S: Ditto.
        * nds32/_chdir.S: Ditto.
        * nds32/_chmod.S: Ditto.
        * nds32/_close.S: Ditto.
        * nds32/_exit.S: Ditto.
        * nds32/_fstat.S: Ditto.
        * nds32/_getpid.S: Ditto.
        * nds32/_gettimeofday.S: Ditto.
        * nds32/_isatty.S: Ditto.
        * nds32/_kill.S: Ditto.
        * nds32/_link.S: Ditto.
        * nds32/_lseek.S: Ditto.
        * nds32/_open.S: Ditto.
        * nds32/_read.S: Ditto.
        * nds32/_rename.S: Ditto.
        * nds32/_stat.S: Ditto.
        * nds32/_system.S: Ditto.
        * nds32/_time.S: Ditto.
        * nds32/_times.S: Ditto.
        * nds32/_unlink.S: Ditto.
        * nds32/_utime.S: Ditto.
        * nds32/_write.S: Ditto.
        * nds32/syscall_error_handler.S: Ditto.
        * nds32/vh.h: New.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:58:54 +0000 (20:58 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Initialize ITB base.
        * nds32/crt1.S: Ditto.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:55:57 +0000 (20:55 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/Makefile.in: Alter filename.
        * nds32/syscall_argv.S: Rename to _argv.S
        * nds32/syscall_argvlen.S: Rename to _argvlen.S
        * nds32/syscall_chdir.S: Rename to _chdir.S
        * nds32/syscall_chmod.S: Rename to _chmod.S
        * nds32/syscall_close.S: Rename to _close.S
        * nds32/syscall_exit.S: Rename to _exit.S
        * nds32/syscall_fstat.S: Rename to _fstat.S
        * nds32/syscall_getpid.S: Rename to _getpid.S
        * nds32/syscall_gettimeofday.S: Rename to _gettimeofday.S
        * nds32/syscall_isatty.S: Rename to _isatty.S
        * nds32/syscall_kill.S: Rename to _kill.S
        * nds32/syscall_link.S: Rename to _link.S
        * nds32/syscall_lseek.S: Rename to _lseek.S
        * nds32/syscall_open.S: Rename to _open.S
        * nds32/syscall_read.S: Rename to _read.S
        * nds32/syscall_rename.S: Rename to _rename.S
        * nds32/syscall_sbrk.S: Rename to _sbrk.S
        * nds32/syscall_stat.S: Rename to _stat.S
        * nds32/syscall_system.S: Rename to _system.S
        * nds32/syscall_time.S: Rename to _time.S
        * nds32/syscall_times.S: Rename to _times.S
        * nds32/syscall_unlink.S: Rename to _unlink.S
        * nds32/syscall_utime.S: Rename to _utime.S
        * nds32/syscall_write.S: Rename to _write.S

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:34:46 +0000 (20:34 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/syscall_argv.S: Correct the method to set errno.
        * nds32/syscall_argvlen.S: Ditto.
        * nds32/syscall_chdir.S: Ditto.
        * nds32/syscall_chmod.S: Ditto.
        * nds32/syscall_close.S: Ditto.
        * nds32/syscall_error_handler.S: Ditto.
        * nds32/syscall_fstat.S: Ditto.
        * nds32/syscall_getpid.S: Ditto.
        * nds32/syscall_gettimeofday.S: Ditto.
        * nds32/syscall_isatty.S: Ditto.
        * nds32/syscall_kill.S: Ditto.
        * nds32/syscall_link.S: Ditto.
        * nds32/syscall_lseek.S: Ditto.
        * nds32/syscall_open.S: Ditto.
        * nds32/syscall_read.S: Ditto.
        * nds32/syscall_rename.S: Ditto.
        * nds32/syscall_sbrk.S: Ditto.
        * nds32/syscall_stat.S: Ditto.
        * nds32/syscall_system.S: Ditto.
        * nds32/syscall_time.S: Ditto.
        * nds32/syscall_times.S: Ditto.
        * nds32/syscall_unlink.S: Ditto.
        * nds32/syscall_utime.S: Ditto.
        * nds32/syscall_write.S: Ditto.

10 years ago2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:28:57 +0000 (20:28 +0000)]
2014-03-21  Sabrina Ni  <sabrinanitw@gmail.com>

        * libc/machine/nds32/setjmp.S: Keep jmp_buff sync with GDB.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:27:41 +0000 (20:27 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Use pseudo-instruction "bal frame" to replace
        "la + jral".
        * nds32/crt1.S: Ditto.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:26:01 +0000 (20:26 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Eliminate initialization for $fp.
        * nds32/crt1.S: Ditto.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:24:04 +0000 (20:24 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Refine.
        * nds32/crt1.S: Refine.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:22:29 +0000 (20:22 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/crt0.S: Set argc=argv=env=0.
        * nds32/crt1.S: Ditto.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:20:53 +0000 (20:20 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/Makefile.in: Add syscall_error_handler.o.
        * nds32/syscall_error_handler.S: New.
        * nds32/syscall_extra.h: Reduce code size.

10 years ago2014-03-21 Sabrini Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:16:14 +0000 (20:16 +0000)]
2014-03-21  Sabrini Ni  <sabrinanitw@gmail.com>

        * nds32/syscall_extra.h: Define macro.
        * nds32/syscall_argv.S: Use define macro.
        * nds32/syscall_argvlen.S: Ditto.
        * nds32/syscall_chdir.S: Ditto.
        * nds32/syscall_chmod.S: Ditto.
        * nds32/syscall_close.S: Ditto.
        * nds32/syscall_fstat.S: Ditto.
        * nds32/syscall_getpid.S: Ditto.
        * nds32/syscall_gettimeofday.S: Ditto.
        * nds32/syscall_isatty.S: Ditto.
        * nds32/syscall_kill.S: Ditto.
        * nds32/syscall_link.S: Ditto.
        * nds32/syscall_lseek.S: Ditto.
        * nds32/syscall_open.S: Ditto.
        * nds32/syscall_read.S: Ditto.
        * nds32/syscall_rename.S: Ditto.
        * nds32/syscall_stat.S: Ditto.
        * nds32/syscall_system.S: Ditto.
        * nds32/syscall_time.S: Ditto.
        * nds32/syscall_times.S: Ditto.
        * nds32/syscall_unlink.S: Ditto.
        * nds32/syscall_utime.S: Ditto.
        * nds32/syscall_write.S: Ditto.

10 years ago2014-03-21 Sabrina Ni <sabrinanitw@gmail.com>
Jeff Johnston [Fri, 21 Mar 2014 20:09:10 +0000 (20:09 +0000)]
2014-03-21  Sabrina Ni  <sabrinanitw@gmail.com>

        * libc/machine/nds32/setjmp.S: Optimize.

10 years ago* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Actually pass ioctl argument to
Christopher Faylor [Thu, 20 Mar 2014 02:23:52 +0000 (02:23 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Actually pass ioctl argument to
_ioctl.

10 years ago* fhandler.h (fhandler_dev_dsp): Remove variable names from declarations.
Christopher Faylor [Wed, 19 Mar 2014 20:43:15 +0000 (20:43 +0000)]
* fhandler.h (fhandler_dev_dsp): Remove variable names from declarations.
(fhandler_dev_dsp::close_audio_in): Make __reg1.
(fhandler_dev_dsp::close_audio_out): Make __reg2.
* fhandler_dev_dsp.cc (fhandler_dev_dsp::close_audio_in): Make __reg1.
(fhandler_dev_dsp::close_audio_out): Make __reg2.
(fhandler_dev_dsp::close): Don't abruptly terminate sound just because we are
exiting.

10 years ago * exception.h (exception::handle_while_being_debugged): Declare.
Corinna Vinschen [Wed, 19 Mar 2014 16:08:21 +0000 (16:08 +0000)]
* exception.h (exception::handle_while_being_debugged): Declare.
(exception::exception): Install unhandled exception filter.
* exceptions.cc (exception::handle_while_being_debugged): New method.

10 years agoFix ChangeLog
Corinna Vinschen [Wed, 19 Mar 2014 13:06:06 +0000 (13:06 +0000)]
Fix ChangeLog

10 years ago * fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call
Corinna Vinschen [Wed, 19 Mar 2014 13:05:33 +0000 (13:05 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call
_fixup_after_fork rather than looping forever.
(fhandler_dev_dsp::fixup_after_exec): Ditto.

10 years ago* fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call
Christopher Faylor [Tue, 18 Mar 2014 20:17:03 +0000 (20:17 +0000)]
* fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call
_fixup_after_fork rather than looping forever.
(fhandler_dev_dsp::fixup_after_exec): Ditto.

10 years ago Partially revert patch from 2014-03-04.
Corinna Vinschen [Tue, 18 Mar 2014 13:51:18 +0000 (13:51 +0000)]
Partially revert patch from 2014-03-04.
* exception.h (exception::handler_installed): Declare.
(exception::exception): Install vectored exception handler on x86_64.
(exception::~exception): Remove for x86_64.
* exceptions.cc (exception::handler_installed): Define.

10 years ago* sigproc.h (no_thread_exit_protect): New class.
Christopher Faylor [Mon, 17 Mar 2014 04:41:35 +0000 (04:41 +0000)]
* sigproc.h (no_thread_exit_protect): New class.
* sigproc.cc (thread_exit): Use no_thread_exit_protect to determine if we need
to coordinate ThreadExit/ExitProcess.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Use
no_thread_exit_protect to kludge around waiting for waveOutClose as it waits
for a thread that never exits.
(fhandler_dev_dsp::Audio_in::stop): Ditto for waveInClose.
* fhandler.h (fhandler_dev_dsp::base): New method.
(fhandler_dev_dsp::_read): Ditto.
(fhandler_dev_dsp::_write): Ditto.
(fhandler_dev_dsp::_ioctl): Ditto.
(fhandler_dev_dsp::_fixup_after_fork): Ditto.
(fhandler_dev_dsp::_fixup_after_exec): Ditto.
* fhandler_dsp.cc (fhandler_dev_dsp::read): Call real function via base()
pointer.
(fhandler_dev_dsp::write): Ditto.
(fhandler_dev_dsp::ioctl): Ditto.
(fhandler_dev_dsp::fixup_after_fork): Ditto.
(fhandler_dev_dsp::fixup_after_exec): Ditto.
(fhandler_dev_dsp::_read): Rename by adding an leading underscore.
(fhandler_dev_dsp::_write): Ditto.
(fhandler_dev_dsp::_ioctl): Ditto.
(fhandler_dev_dsp::_fixup_after_fork): Ditto.
(fhandler_dev_dsp::_fixup_after_exec): Ditto.

10 years ago * Makefile.in (OBJS): Add pwdgrp.o.
Corinna Vinschen [Wed, 12 Mar 2014 17:37:04 +0000 (17:37 +0000)]
* Makefile.in (OBJS): Add pwdgrp.o.
* client.cc (client_request::handle_request): Handle
CYGSERVER_REQUEST_PWDGRP message.
* pwdgrp.cc: New file implementing CYGSERVER_REQUEST_PWDGRP.

10 years ago * cygheap.h (enum cygheap_pwdgrp::cache_t): Remove.
Corinna Vinschen [Wed, 12 Mar 2014 17:36:56 +0000 (17:36 +0000)]
* cygheap.h (enum cygheap_pwdgrp::cache_t): Remove.
(cygheap_pwdgrp::caching): Convert to bool.
(cygheap_pwdgrp::pwd_cache): Add cygserver member.
(cygheap_pwdgrp::grp_cache): Ditto.
(cygheap_pwdgrp::nss_db_caching): Drop.
(cygheap_pwdgrp::nss_db_full_caching): Drop.
(cygheap_pwdgrp::nss_cygserver_caching): New method.
(cygheap_pwdgrp::nss_disable_cygserver_caching): New method.
* cygserver.h (client_request::request_code_t): Add
CYGSERVER_REQUEST_PWDGRP.
* cygserver_pwdgrp.h: New file.
* cygtls.h (struct _local_storage): Remove pwbuf and grbuf members.
* grp.cc (pwdgrp::prep_tls_grbuf): Drop.
(internal_getgrsid): Handle cygserver caching and rearrange to check
the caches first.
(internal_getgrnam): Ditto.
(internal_getgrgid): Ditto.
(gr_ent::enumerate_caches): Handle cygserver cache.
* passwd.cc (pwdgrp::prep_tls_pwbuf): Drop.
(internal_getpwsid): Handle cygserver caching and rearrange to check
the caches first.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(pw_ent::enumerate_caches): Handle cygserver cache.
* pwdgrp.h (pwdgrp::add_account_from_cygserver): New method declaration.
(pwdgrp::fetch_account_from_cygserver): New method declaration.
(pwdgrp::prep_tls_pwbuf): Drop declaration.
(pwdgrp::prep_tls_grbuf): Drop declaration.
(pwdgrp::add_user_from_cygserver): New inline methods.
(pwdgrp::add_group_from_cygserver): New inline methods.
* tlsoffsets.h: Regenerate.
* tlsoffsets64.h: Regenerate.
* uinfo.cc (internal_getlogin): Call internal_getgroups if cygserver
caching is not available.
(cygheap_pwdgrp::init): Initialize pwd_cache.cygserver and
grp_cache.cygserver.  Set caching to true.
(cygheap_pwdgrp::nss_init_line): Drop db_cache handling entirely.
(pwdgrp::add_account_from_windows): Drop no caching handling.
(client_request_pwdgrp::client_request_pwdgrp): New method.
(pwdgrp::fetch_account_from_cygserver): New method.
(pwdgrp::add_account_from_cygserver): New method.

* fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix formatting.
* include/sys/cygwin.h: Ditto.

10 years ago * Throughout, fix format specifiers in debug statements to accommodate
Corinna Vinschen [Wed, 12 Mar 2014 16:00:48 +0000 (16:00 +0000)]
* Throughout, fix format specifiers in debug statements to accommodate
x86_64.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Avoid crash on
Corinna Vinschen [Wed, 12 Mar 2014 15:46:07 +0000 (15:46 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Avoid crash on
non-domain member machines if an unknown SID comes in.

10 years ago * include/cygwin/socket.h (IPV6_JOIN_GROUP): Revert.
Corinna Vinschen [Wed, 12 Mar 2014 09:44:33 +0000 (09:44 +0000)]
* include/cygwin/socket.h (IPV6_JOIN_GROUP): Revert.
(IPV6_LEAVE_GROUP): Ditto.

10 years agoFix ChangeLog entry date.
Corinna Vinschen [Tue, 11 Mar 2014 15:15:33 +0000 (15:15 +0000)]
Fix ChangeLog entry date.

10 years ago* fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO for use
Christopher Faylor [Mon, 10 Mar 2014 18:18:56 +0000 (18:18 +0000)]
* fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO for use
with older OS.
* fhandler_console.cc (dev_console::fillin): Ditto for
GetConsoleScreenBufferInfo.

10 years ago* fhandler_console.cc (dev_console::save_restore): Save entire line of current
Christopher Faylor [Mon, 10 Mar 2014 17:33:17 +0000 (17:33 +0000)]
* fhandler_console.cc (dev_console::save_restore): Save entire line of current
cursor position.

10 years ago* fhandler_console.cc (fhandler_console::save_restore): Save only until last
Christopher Faylor [Mon, 10 Mar 2014 03:15:39 +0000 (03:15 +0000)]
* fhandler_console.cc (fhandler_console::save_restore): Save only until last
written row and, because of this, don't bother trying to restore the screen
buffer size.  Set cursor position after refilling buffer.
(fhandler_console::write): Use absolute paths when saving/restoring cursor
position or suffer odd problems after a saved screen is restored.

10 years ago* fhandler.h (fhandler_console::dwBufferSize): Delete.
Christopher Faylor [Sun, 9 Mar 2014 22:49:56 +0000 (22:49 +0000)]
* fhandler.h (fhandler_console::dwBufferSize): Delete.
(fhandler_console::dwCursorPosition): Ditto.
(fhandler_console::wAttributes): Ditto.
(fhandler_console::b): New field encompassing previously disparate screen
buffer info.
(fhandler_console::save_bufsize): Rename from savebufsiz
(fhandler_console::save_buf): Rename sfrom savebuf.
(fhandler_console::save_cursor): New field.
(fhandler_console::save_restore): New function.
(fhandler_console::con): Rename from dev_state.
(fhandler_console::focus_aware): Accommodate name change.
* fhandler_console.cc: Use 'b' field of dev_console throughout instead of
disparate names.  Accommodate dev_state -> con rename.
(dev_state:save_restore): New function.  Attempt to save the entire screen
buffer rather than just the visible part.  Clear the buffer when saving, like
Linux.
(fhandler_console::char_command): Use con.save_restore() for Save/restore
screen sequence.

10 years ago* sigproc.cc (_cygtls::remove_wq): Reset thread_ev inside of lock. Set to NULL
Christopher Faylor [Sun, 9 Mar 2014 19:25:38 +0000 (19:25 +0000)]
* sigproc.cc (_cygtls::remove_wq): Reset thread_ev inside of lock.  Set to NULL
when done.

10 years ago* fhandler_console.cc (fhandler_console::char_command): Properly use calculated
Christopher Faylor [Sun, 9 Mar 2014 18:46:30 +0000 (18:46 +0000)]
* fhandler_console.cc (fhandler_console::char_command): Properly use calculated
value rather than directly using dev_state.args[0].

10 years ago* dir.cc (opendir): Propagate any errno from build_fh_name.
Christopher Faylor [Sun, 9 Mar 2014 18:39:14 +0000 (18:39 +0000)]
* dir.cc (opendir): Propagate any errno from build_fh_name.

10 years ago * pwdgrp.h (pwdgrp::is_passwd): New inline method.
Corinna Vinschen [Fri, 7 Mar 2014 20:38:48 +0000 (20:38 +0000)]
* pwdgrp.h (pwdgrp::is_passwd): New inline method.
(pwdgrp::is_group): New inline method.
(add_account_from_windows): Drop group argument from declaration.
(fetch_account_from_windows): Ditto.
(check_file): Ditto.
(add_user_from_windows): Call add_account_from_windows accordingly.
(add_group_from_windows): Ditto.
* uinfo.cc (pwdgrp::add_account_from_windows): Drop group argument.
Use is_group method instead.
(pwdgrp::check_file): Ditto.
(pwdgrp::fetch_account_from_windows): Ditto.
* grp.cc: Accommodate aforementioned changes.
* passwd.cc: Ditto.

10 years ago * libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE is
Corinna Vinschen [Fri, 7 Mar 2014 20:06:54 +0000 (20:06 +0000)]
* libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE is
defined.
* libc/stdlib/strtold.c (strtold): Ditto.  Call strtod on systems
with long double == double, _strtold otherwise.

10 years ago * passwd.cc (pg_ent::enumerate_builtin): Convert pwd_builtins and
Corinna Vinschen [Thu, 6 Mar 2014 18:54:08 +0000 (18:54 +0000)]
* passwd.cc (pg_ent::enumerate_builtin): Convert pwd_builtins and
grp_builtins to array of cygpsid pointers.  Replace SID strings with
pointers to well known SIDs.
* sec_helper.cc (well_known_local_service_sid): Define.
(well_known_network_service_sid): Define.
(trusted_installer_sid): Define.
* security.h (well_known_local_service_sid): Declare.
(well_known_network_service_sid): Declare.
(trusted_installer_sid): Declare.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Throughout set acc_type
to SidTypeUnknown if LookupAccountXXX function failed.  Create
simplified passwd entry for non-user accounts, except for LocalSystem.
Add comment.

10 years ago * setpwd.cc (client_request_setpwd::serve): Use RtlSecureZeroMemory to
Corinna Vinschen [Thu, 6 Mar 2014 17:02:18 +0000 (17:02 +0000)]
* setpwd.cc (client_request_setpwd::serve): Use RtlSecureZeroMemory to
delete password from memory.

10 years ago * setlsapwd.cc (setlsapwd): Use RtlSecureZeroMemory to delete password
Corinna Vinschen [Thu, 6 Mar 2014 17:00:52 +0000 (17:00 +0000)]
* setlsapwd.cc (setlsapwd): Use RtlSecureZeroMemory to delete password
from memory.

10 years ago * ldap.cc (rediscover_thread): Remove.
Corinna Vinschen [Wed, 5 Mar 2014 20:58:33 +0000 (20:58 +0000)]
* ldap.cc (rediscover_thread): Remove.
(cyg_ldap::open): Remove code to rediscover DC.  It just won't do the
right thing.
(cyg_ldap::enumerate_ad_accounts): Change to be self-sufficient (no
explicit open call required).  Enumerate on a DC of the domain itself
instead of relying on delegation.  Remove ill-advised code trying to
generate rootdse from domain name.
* passwd.cc (pg_ent::enumerate_ad): Drop explicit call to
cyg_ldap::open.

10 years ago * include/cygwin/config.h (__TM_GMTOFF): Define.
Corinna Vinschen [Wed, 5 Mar 2014 12:50:29 +0000 (12:50 +0000)]
* include/cygwin/config.h (__TM_GMTOFF): Define.
(__TM_ZONE): Define.

10 years ago * libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition.
Corinna Vinschen [Wed, 5 Mar 2014 12:49:40 +0000 (12:49 +0000)]
* libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition.
(__TM_ZONE): Ditto.

10 years ago * localtime.cc: Define TM_GMTOFF and TM_ZONE based on __TM_GMTOFF and
Corinna Vinschen [Wed, 5 Mar 2014 12:45:49 +0000 (12:45 +0000)]
* localtime.cc: Define TM_GMTOFF and TM_ZONE based on __TM_GMTOFF and
__TM_ZONE being defined.  Throughout, write to these struct tm members
only if CYGWIN_VERSION_CHECK_FOR_EXTRA_TM_MEMBERS is true.
* libc/strptime.cc: Ditto.
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_EXTRA_TM_MEMBERS):
Define.
(CYGWIN_VERSION_API_MINOR): Bump to 272.

10 years ago * libc/include/time.h (__TM_GMTOFF): Define on Cygwin.
Corinna Vinschen [Wed, 5 Mar 2014 12:43:12 +0000 (12:43 +0000)]
* libc/include/time.h (__TM_GMTOFF): Define on Cygwin.
(__TM_ZONE): Ditto.
(struct tm): Add __TM_GMTOFF and __TM_ZONE members if they are defined.

10 years ago2014-02-27 Joey Ye <joey.ye@arm.com>
Jeff Johnston [Tue, 4 Mar 2014 17:39:26 +0000 (17:39 +0000)]
2014-02-27  Joey Ye  <joey.ye@arm.com>

        * libnosys/sbrk.c (_sbrk): Remove TWS

10 years ago * exception.h (exception::handler_installed): Remove.
Corinna Vinschen [Tue, 4 Mar 2014 11:56:42 +0000 (11:56 +0000)]
* exception.h (exception::handler_installed): Remove.
(exception::exception): Remove old code.  Manually install SEH handler
instead.
(exception::~exception): For x86_64, define frame end label.
* exceptions.cc (exception::handler_installed): Remove.

10 years ago * libc/include/machine/_default_types.h: Define unsigned type using
Corinna Vinschen [Tue, 4 Mar 2014 08:05:39 +0000 (08:05 +0000)]
* libc/include/machine/_default_types.h: Define unsigned type using
signed type macros in case unsigned type macros are not available.

10 years ago * exception.h (exception::exception): Install vectored exception
Corinna Vinschen [Mon, 3 Mar 2014 15:38:59 +0000 (15:38 +0000)]
* exception.h (exception::exception): Install vectored exception
handler rather than vectored continue handler.

10 years ago * sec_helper.cc (cygpsid::get_id): Move Samba SID->uid/gid mapping
Corinna Vinschen [Mon, 3 Mar 2014 12:03:47 +0000 (12:03 +0000)]
* sec_helper.cc (cygpsid::get_id): Move Samba SID->uid/gid mapping
from get_sids_info here.
(get_sids_info): Vice versa.
* security.cc (convert_samba_sd): New static function to map a Samba
security descriptor to a security descriptor with UNIX users and groups
converted to Windows SIDs per RFC 2307 mapping.
(check_file_access): Call convert_samba_sd on Samba security
descriptors.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
Corinna Vinschen [Fri, 28 Feb 2014 19:10:40 +0000 (19:10 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended
user info if we're creating a passwd entry.  Add comment.

10 years ago * cygheap.h (cygheap_user::sid): Return reference to cygpsid rather
Corinna Vinschen [Fri, 28 Feb 2014 11:37:02 +0000 (11:37 +0000)]
* cygheap.h (cygheap_user::sid): Return reference to cygpsid rather
than PSID.
(cygheap_user::saved_sid): Ditto.
(cygheap_pwdgrp::cache_t): New type.
(cygheap_pwdgrp::caching): Convert to cache_t.
(cygheap_pwdgrp::nss_db_caching): Change accordingly.
(cygheap_pwdgrp::nss_db_full_caching): New inline method.
* grp.cc (internal_getgroups): Reinvent.  Take cyg_ldap pointer as
third parameter and use throughout.
(getgroups32): Call internal_getgroups.
* pwdgrp.h (internal_getgroups): Declare.
* uinfo.cc (internal_getlogin): Partial rewrite to accommodate having
no connection to the DC.  Give primary group from user token more
weight.  Generate group entries for all groups in the user token if
caching is set to NSS_FULL_CACHING.
(cygheap_pwdgrp::init): Initialize caching to NSS_FULL_CACHING.
(cygheap_pwdgrp::nss_init_line): Handle "db_cache: full".
(pwdgrp::add_account_from_windows): Fix group handling in non-caching
mode.
(pwdgrp::fetch_account_from_windows): Default primary group for the
current user to primary group from user token.  Check for primary
domain first after LookupAccountSid failed.

10 years ago * autoload.cc (CheckTokenMembership): Import.
Corinna Vinschen [Thu, 27 Feb 2014 12:57:27 +0000 (12:57 +0000)]
* autoload.cc (CheckTokenMembership): Import.
* external.cc (cygwin_internal): Call get_uid/get_gid instead of get_id.
* grp.cc (internal_getgrsid): Take additional cyg_ldap pointer.
Forward to pwdgrp::add_group_from_windows.
(internal_getgrnam): Ditto.
(internal_getgrgid): Ditto.
(gr_ent::enumerate_local): Drop ugid_caching bool from call to
pwdgrp::fetch_account_from_windows.
(getgroups32): Rename from internal_getgroups and drop getgroups32 stub.
Drop srchsid parameter and code handling it.  Add local cyg_ldap
instance and forward to internal_getgrXXX.
(getgroups): Call getgroups32.
(get_groups): Add local cyg_ldap instance and forward to
internal_getgrXXX.
(getgrouplist): Ditto.
(setgroups32): Ditto.
* ldap.cc (cyg_ldap::open): Don't call close.  Return true if connection
is already open.
(cyg_ldap::remap_uid): Forward this to internal_getpwsid.
(cyg_ldap::remap_gid): Forward this to internal_getgrsid.
* passwd.cc (internal_getpwsid): Take additional cyg_ldap pointer.
Forward to pwdgrp::add_user_from_windows.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(pg_ent::enumerate_builtin): Drop ugid_caching bool from call to
pwdgrp::fetch_account_from_windows.
(pg_ent::enumerate_sam): Ditto.
(pg_ent::enumerate_ad): Ditto.  Forward local cldap instead.
* pwdgrp.h (internal_getpwsid): Align declaration to above change.
(internal_getpwnam): Ditto.
(internal_getpwuid): Ditto.
(internal_getgrsid): Ditto.
(internal_getgrgid): Ditto.
(internal_getgrnam): Ditto.
(internal_getgroups): Drop declaration.
(pwdgrp::add_account_from_windows): Align declaration to below change.
(pwdgrp::add_user_from_windows): Ditto.
(pwdgrp::add_group_from_windows): Ditto.
* sec_acl.cc (setacl): Add local cyg_ldap instance and forward to
internal_getpwuid and internal_getgrgid.
(getacl): Add local cyg_ldap instance and forward to cygpsid::get_id.
(aclfromtext32): Add local cyg_ldap instance and forward to
internal_getpwnam and internal_getgrnam.
* sec_helper.cc (cygpsid::get_id): Take additional cyg_ldap pointer.
Forward to internal_getgrsid and internal_getpwsid.
(get_sids_info): Drop ldap_open.  Forward local cldap to
internal_getpwsid and internal_getgrXXX.  Call CheckTokenMembership
rather than internal_getgroups.
* security.h (cygpsid::get_id): Add cyg_ldap pointer, drop default
parameter.
(cygpsid::get_uid): Add cyg_ldap pointer.  Call get_id accordingly.
(cygpsid::get_gid): Ditto.
* uinfo.cc (internal_getlogin): Add local cyg_ldap instance and forward
to internal_getpwXXX and internal_getgrXXX calls.
(pwdgrp::add_account_from_windows): Take additional cyg_ldap pointer.
Forward to pwdgrp::fetch_account_from_windows.
(fetch_posix_offset): Drop ldap_open argument and handling.  Get
cyg_ldap instance as pointer.
(pwdgrp::fetch_account_from_windows): Take additional cyg_ldap pointer.
Use it if it's not NULL, local instance otherwise.  Drop ldap_open.
Drop fetching extended group arguments from AD for speed.

10 years ago * path.cc (find_fast_cwd_pointer): Fix preceeding comment.
Corinna Vinschen [Thu, 27 Feb 2014 10:25:03 +0000 (10:25 +0000)]
* path.cc (find_fast_cwd_pointer): Fix preceeding comment.

10 years agoFix typo
Corinna Vinschen [Wed, 26 Feb 2014 13:16:41 +0000 (13:16 +0000)]
Fix typo

10 years ago* fhandler.h (fhandler_console::scroll_buffer_screen): New function.
Christopher Faylor [Wed, 26 Feb 2014 03:58:37 +0000 (03:58 +0000)]
* fhandler.h (fhandler_console::scroll_buffer_screen): New function.
* fhandler_console.cc (fhandler_console::scroll_buffer_screen): New function.
(fhandler_console::char_command): Use scroll_buffer_screen as appropriate.
(dev_console::scroll_buffer): Remove if 0'ed block.

10 years ago * mkgroup.c (domlist_t): Drop id_offset.
Corinna Vinschen [Mon, 24 Feb 2014 10:51:42 +0000 (10:51 +0000)]
* mkgroup.c (domlist_t): Drop id_offset.
(get_dcname): Remove.
(current_group): Remove.
(enum_unix_groups): Simplify.  Change space to underscore in domain
name.
(enum_local_groups): Simplify to accommodate the fact that it's only
called for foreign machines.
(enum_groups): Ditto.
(print_special_by_sid): Remove.
(print_special_by_name): Remove.
(usage): Align to new code.
(fetch_primary_domain): Remove.
(main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method.
Call enum_local_groups, enum_groups, and enum_unix_groups only for
foreign machines.
* mkpasswd.c (get_dcname): Remove.
(current_user): Remove.
(enum_unix_users): Simplify.  Change space to underscore in domain name.
(enum_users): Simplify to accommodate the fact that it's only
called for foreign machines.
(print_special_by_sid): Remove.
(usage): Align to new code.
(longopts): Add -b/--no-builtin option.
(opts): Add -b option.
(print_special_by_name): Remove.
(enum_std_accounts): Remove.
(fetch_primary_domain): Remove.
(main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method.
Call enum_users and enum_unix_users only for foreign machines.
* utils.xml (mkgroup): Align documentation to new usage.
(mkpasswd): Ditto.

10 years ago * minidumper.cc (minidump): Fix -t option argument handling.
Jon TURNEY [Sun, 23 Feb 2014 11:34:31 +0000 (11:34 +0000)]
* minidumper.cc (minidump): Fix -t option argument handling.

10 years ago* dev_console::scroll_buffer): Reinstate clipping region.
Christopher Faylor [Sun, 23 Feb 2014 03:42:02 +0000 (03:42 +0000)]
* dev_console::scroll_buffer): Reinstate clipping region.

10 years ago* fhandler.h (dev_console::is_fullscreen): Delete.
Christopher Faylor [Sun, 23 Feb 2014 03:38:52 +0000 (03:38 +0000)]
* fhandler.h (dev_console::is_fullscreen): Delete.
(dev_console::scroll_window): Return bool indicating success.
(dev_console::scroll_screen): New function.
(dev_console::clear_screen): New function.
(fhandler_console::clear_screen): Make __reg3.
(fhandler_console::cursor_set): Ditto.
(fhandler_console::cursor_get): Ditto.
(fhandler_console::cursor_rel): Ditto.
* fhandler_console.cc (dev_console::scroll_buffer): Adapt from
fhandler_console.
(fhandler_console::scroll_buffer): Use dev_console function.
(dev_console::is_fullscreen): Delete.
(dev_console::scroll_window): Return true if we cleared the screen.
Shrink/grow buffer first before scrolling to ensure that there is sufficient
space after scrolling.
(fhandler_console::clear_screen): Make reg3, use dev_console function.
(dev_console::clear_screen): New function adapted from fhandler_console.
(fhandler_console::cursor_set): Make __reg3.
(fhandler_console::cursor_rel): Ditto.
(fhandler_console::cursor_get): Ditto.
(fhandler_console::write): Fix "reverse index".

10 years ago * external.cc (cygwin_internal): Add cases for CW_GETNSSSEP,
Corinna Vinschen [Sat, 22 Feb 2014 19:38:12 +0000 (19:38 +0000)]
* external.cc (cygwin_internal): Add cases for CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
* grp.cc (internal_getgrsid_from_db): New function.
* passwd.cc (internal_getpwsid_from_db): New function.
(pg_ent::setent): Add special case for call from mkpasswd/mkgroup.
* pwdgrp.h (internal_getpwsid_from_db): Declare.
(internal_getgrsid_from_db): Declare.
(enum nss_enum_t): Move to include/sys/cygwin.h.
(class pg_ent): Add comment.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix typo in comment.
Change "UNIX" to "Unix" in domain name.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GETNSSSEP,
CW_GETPWSID and CW_GETGRSID.
(enum nss_enum_t): Define here.

10 years ago * pwdgrp.h (pwdgrp::fetch_account_from_windows): Add bool parameter
Corinna Vinschen [Fri, 21 Feb 2014 10:01:00 +0000 (10:01 +0000)]
* pwdgrp.h (pwdgrp::fetch_account_from_windows): Add bool parameter
to declaration, set to true by default.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Add bool parameter
"ugid_caching".  Only add account to ugid_cache if set to true.
* grp.cc (gr_ent::enumerate_local): Call fetch_account_from_windows
with ugid_caching parameter set to false.
* passwd.cc (pg_ent::enumerate_builtin): Ditto.
(pg_ent::enumerate_sam): Ditto.
(pg_ent::enumerate_ad): Ditto.

10 years ago * libm/complex/complex.tex: Fix wrong syntax in documentation.
Corinna Vinschen [Thu, 20 Feb 2014 18:59:10 +0000 (18:59 +0000)]
* libm/complex/complex.tex: Fix wrong syntax in documentation.
* libm/math/math.tex: Ditto.

10 years ago * grp.cc (getgrouplist): Fix previous fix so ret is only set to ngroups
Corinna Vinschen [Thu, 20 Feb 2014 15:46:48 +0000 (15:46 +0000)]
* grp.cc (getgrouplist): Fix previous fix so ret is only set to ngroups
if ngroups isn't too small.

10 years ago*** empty log message ***
Corinna Vinschen [Thu, 20 Feb 2014 13:57:39 +0000 (13:57 +0000)]
*** empty log message ***

10 years ago * grp.cc (get_groups): Don't add gid to list if it's ILLEGAL_GID.
Corinna Vinschen [Thu, 20 Feb 2014 13:55:57 +0000 (13:55 +0000)]
* grp.cc (get_groups): Don't add gid to list if it's ILLEGAL_GID.
(getgrouplist): Return number of groups, just like glibc.

10 years ago * libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
Corinna Vinschen [Thu, 20 Feb 2014 13:32:34 +0000 (13:32 +0000)]
* libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize
c->pos to 0.

10 years ago * passwd.cc (pg_ent::setent): Initialize cygheap domain info.
Corinna Vinschen [Wed, 19 Feb 2014 18:29:52 +0000 (18:29 +0000)]
* passwd.cc (pg_ent::setent): Initialize cygheap domain info.
* sec_auth.cc (get_logon_server): Ditto.

This page took 0.069651 seconds and 5 git commands to generate.