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
2011-07-29 Throughout change "WinSock" to "Winsock" in comments.Corinna Vinschen
* fhandler_socket.cc (fhandler_socket::sendmsg): Add missing call to get_inet_addr to convert AF_LOCAL to AF_INET sockets. * net.cc (cygwin_socket): Workaround UDP Winsock problem. Add comment to explain why. * select.cc: Include winsock2.h rather than winsock.h.
2011-07-26 * fhandler_disk_file.cc (__DIR_mounts::eval_ino): Create path_convCorinna Vinschen
with PC_KEEP_HANDLE flag. * path.h (path_conv::operator =): Duplicate UNICODE path as well. * security.cc (check_file_access): Use path_conv handle if available. * syscalls.cc (access): Create fhandler with PC_KEEP_HANDLE flag set. (euidaccess): Ditto. (faccessat): Ditto.
2011-07-26 * ntdll.h: Fix typo in comment.Corinna Vinschen
* path.cc: Ditto.
2011-07-25 * fhandler_console.cc (fhandler_console::ioctl): Fetch console eventsCorinna Vinschen
using PeekConsoleInput and return only key down events in buf. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Always return EINVAL if PeekNamedPipe fails. (fhandler_pty_master::ioctl): Ditto.
2011-07-22 * fhandler_tty.cc (fhandler_pty_slave::ioctl): Drop FIONBIO case.Corinna Vinschen
Handle FIONREAD. (fhandler_pty_master::ioctl): Ditto. Call fhandler_base::ioctl to decode default condition. * fhandler_console.cc (fhandler_console::ioctl): Handle FIONREAD.
2011-07-22Corinna Vinschen <corinna@vinschen.de>Christopher Faylor
* fhandler.cc: Add #include for asm/socket.h for dealing with FIONREAD. (fhandler_base::ioctl): Special-case errno for FIONREAD. * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Rename parameter for consistency. Call fhandler_base::ioctl to decode default condition. * fhandler_serial.cc (fhandler_serial::ioctl): Ditto. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Call fhandler_base::ioctl to decode default condition. * fhandler_windows.cc (fhandler_windows::ioctl): Ditto.
2011-07-21 * heap.cc (eval_start_address): Simplify test for large addressCorinna Vinschen
awareness of executable, which works for 32 and 64 bit systems. Change comment accordingly.
2011-07-21 * heap.cc (eval_start_address): New static function to evaluate theCorinna Vinschen
best start address for the application heap. (heap_init): Call eval_start_address to fetch the start value for start_address. Move preceeding comment to eval_start_address.
2011-07-21* cygwin.din (pthread_condattr_getclock): Export.Yaakov Selkowitz
(pthread_condattr_setclock): Export. * posix.sgml (std-notimpl): Move pthread_condattr_getclock and pthread_condattr_setclock from here... (std-susv4): ... to here. * sysconf.cc (sca): Set _SC_CLOCK_SELECTION to _POSIX_CLOCK_SELECTION. * thread.cc: (pthread_condattr::pthread_condattr): Initialize clock_id. (pthread_cond::pthread_cond): Initialize clock_id. (pthread_cond_timedwait): Use clock_gettime() instead of gettimeofday() in order to support all allowed clocks. (pthread_condattr_getclock): New function. (pthread_condattr_setclock): New function. * thread.h (class pthread_condattr): Add clock_id member. (class pthread_cond): Ditto. * include/pthread.h: Remove obsolete comment. (pthread_condattr_getclock): Declare. (pthread_condattr_setclock): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2011-07-19* sysconf.cc (sca): Return -1 for _SC_THREAD_ROBUST_PRIO_INHERIT,Yaakov Selkowitz
_SC_THREAD_ROBUST_PRIO_PROTECT, and _SC_XOPEN_UUCP. (SC_MAX): Redefine accordingly. (csa): Return strings for _CS_POSIX_V7_THREADS_CFLAGS, _CS_POSIX_V7_THREADS_LDFLAGS, and _CS_V7_ENV. (CS_MAX): Redefine accordingly. * include/limits.h (LONG_BIT): Define. (WORD_BIT): Define.
2011-07-18 * heap.cc (heap_init): Change type of largest_found to PVOID. StartCorinna Vinschen
querying memory at 0x20000000. Use largest_found pointer when trying to allocate largest free memory area found.
2011-07-14 * fhandler_console.cc (fhandler_console::input_tcsetattr): Revert toCorinna Vinschen
setting ENABLE_PROCESSED_INPUT depending on ISIG and IGNBRK. (fhandler_console::tcgetattr): Set ISIG depending on ENABLE_PROCESSED_INPUT as well.
2011-07-13 * fhandler_serial.cc (fhandler_serial::raw_read): Handle non-blockingCorinna Vinschen
case more thoroughly.
2011-07-13* setup_handler (setup_handler): Change break to goto out, missed in 2011-07-06Christopher Faylor
changes.
2011-07-11* fhandler_tty.cc (fhandler_pty_slave::ioctl): Remove erroneous support forChristopher Faylor
TIOCLINUX for pty. Get rid of unneeded EINVAL handling in wake of tty removal. Remove now-unneeded variable.
2011-07-10 * include/netdb.h (gethostbyname2): Declare.Corinna Vinschen
2011-07-10pthread_sigmask: fix return value to match POSIXEric Blake
* signal.cc (handle_sigprocmask): Return error rather than setting errno, for pthread_sigmask. (sigprocmask): Adjust caller.
2011-07-07 * miscfuncs.cc (yield): Drop thread priority only once.Corinna Vinschen
2011-07-06* exceptions.cc (_cygtls::interrupt_now): Back out previous change since itChristopher Faylor
could theoretically cause a non-CTRL-C-able program if a program has suffered memory corruption. (setup_handler): Ditto.
2011-07-06 * sched.c (sched_yield): Just call SwitchToThread because yield nowCorinna Vinschen
potentially switches CPU.
2011-07-06* exceptions.cc (_cygtls::interrupt_now): Don't check for spinning here.Christopher Faylor
(setup_handler): Check for spinning here, assuming that it is transitory and should not affect the retry loop.
2011-07-06* exceptions.cc (CALL_HANDLER_RETRY_INNER): Rename to reflect differentChristopher Faylor
functionality. (CALL_HANDLER_RETRY_OUTER): New define. (setup_handler): Add outer loop to signal handler to try harder to deliver the signal. * miscfuncs.cc (yield): Drop priority and use SleepEx() to force thread rescheduling rather than relying on SwitchToThread().
2011-07-06 * sigproc.cc (wait_sig): Fix debug output.Corinna Vinschen
2011-07-05 * fhandler_console.cc (fhandler_console::input_tcsetattr): MakeCorinna Vinschen
ENABLE_PROCESSED_INPUT flag only depending on value of IGNBRK. (fhandler_console::tcgetattr): Don't set ISIG depending on ENABLE_PROCESSED_INPUT, set IGNBRK instead.
2011-07-05 * security.cc (get_file_sd): Fix comment.Corinna Vinschen
2011-07-05 * fhandler.cc (fhandler_base::open): Never create files with WRITE_DACCorinna Vinschen
access. Explain why. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Improve debug output.
2011-07-05 * fhandler.cc (fhandler_base::open): Don't open file with WRITE_DACCorinna Vinschen
access on remote filesystem. Explain why. * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for directories. * fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets. * path.cc (symlink_worker): Ditto for symlinks.
2011-07-04* environ.cc (tty_is_gone): Wrap warning at 80 characters.Christopher Faylor
2011-07-04 Throughout, open console handles with sharing for reading and writing.Corinna Vinschen
* dcrt0.cc (insert_file): Open file with full sharing allowed. * hookapi.cc (find_first_notloaded_dll): Ditto. * spawn.cc (av::fixup): Ditto.
2011-07-04 * dtable.cc (dtable::init_std_file_from_handle): Change test for consoleCorinna Vinschen
device in call to fh->init to avoid conhost crash on W7.
2011-07-04 * environ.cc (environ_init): Reinstantiate on-the-fly CYGWIN variableCorinna Vinschen
test and call to parse_options if found.
2011-07-04* fhandler.cc (fhandler_base::open_with_arch): Call close_on_exec last to avoidChristopher Faylor
setting close_on_exec for archetype. * fhandler_tty.cc (fhandler_pty_master::setup): Protect {from,to}_pty handles. Use consistent naming in debug output. Use inheritable handles and... (fhandler_pty_master::fixup_after_fork): ...avoid duplicating handles here. (fhandler_pty_slave::open): Don't set close_on_exec flag here.
2011-07-02* dtable.cc (cnew): Fix whitespace.Christopher Faylor
2011-07-01 * include/sys/param.h (NGROUPS): Redefine as NGROUPS_MAX.Corinna Vinschen
(MAXHOSTNAMELEN): Redefine with same value as MAX_HOSTNAME_LEN. Change comment. (MAXPATHLEN): Improve comment. (MAXSYMLINKS): Define and add comment.
2011-07-01 * fhandler.cc (fhandler_base::open): Move NFS-specific code into theCorinna Vinschen
code block handling FH_FS stuff.
2011-06-30 * dtable.cc (fh_oom): Remove.Corinna Vinschen
(fh_calloc): Remove. (cnew): Redefine to handle NULL returns from cmalloc. (build_fh_name): Accommodate new definition of cnew. Remove unneeded test for fh_oom. (fh_alloc): Ditto.
2011-06-30 * fhandler_console.cc (fhandler_console::read): Add comment.Corinna Vinschen
(fhandler_console::input_tcsetattr): Don't set ENABLE_PROCESSED_INPUT if IGNBRK flag is set.
2011-06-30 * dtable.cc (fh_oom): New static fhandler storage.Corinna Vinschen
(fh_calloc): New static function. Add a comment to explain why this is needed. (cnew): Call fh_calloc as placement argument. (build_fh_name): Check return code from cnew against address of fh_oom to test for out of memory condition. (fh_alloc): Ditto. (build_fh_pc): Avoid a crash due to useing a NULL fhandler. * pipe.cc (fhandler_pipe::create): Check if build_fh_dev returned a valid pointer before using it.
2011-06-28 * fhandler_process.cc (heap_info::fill_if_match): Rename info toCorinna Vinschen
note that this heap is a Windows heap. (format_process_maps): Print info about application heap.
2011-06-24 * fhandler_console.cc (fhandler_console::read): Don't generate ^@ onCorinna Vinschen
Ctrl+Alt+Space.
2011-06-22 * fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipesCorinna Vinschen
non-inheritable.
2011-06-22 * fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debugCorinna Vinschen
output.
2011-06-18 * path.cc (normalize_win32_path): Skip all slashes after recognizingCorinna Vinschen
a ".." path component. Add comment.
2011-06-17 * fhandler.cc (fhandler_base::open): Drop local create_options variable.Corinna Vinschen
Use options member instead. * fhandler.h (class fhandler_base): Change type of access member to ACCESS_MASK. Change get_access and set_access methods accordingly. Add options member. Add get_options and set_options methods. (class fhandler_disk_file): Add prw_handle. (fhandler_disk_file::prw_open): Declare. (fhandler_disk_file::close): Declare. (fhandler_disk_file::dup): Declare. (fhandler_disk_file::fixup_after_fork): Declare. * fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file): Initialize prw_handle to NULL. (fhandler_disk_file::close): Close prw_handle. (fhandler_disk_file::dup): New method. (fhandler_disk_file::fixup_after_fork): Set prw_handle to NULL since prw_handle is not inherited. (fhandler_disk_file::prw_open): New method. Add long comment to explain current behaviour. (fhandler_disk_file::pread): Revert previous change. Change to use prw_handle if possible. (fhandler_disk_file::pwrite): Change to use prw_handle if possible.
2011-06-17 * dcrt0.cc (dll_crt0_1): Call strace.dll_info after call to pinfo_init.Corinna Vinschen
* strace.cc (strace::hello): Drop printing DLL information here since application info is not always available at this point. (strace::dll_info): New method to print DLL info. * include/sys/strace.h (strace::dll_info): Declare.
2011-06-17 * dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,Corinna Vinschen
otherwise ptys are not recognized.
2011-06-17* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() toChristopher Faylor
reflect existence. * fhandler.h (fhandler_pty_common::fhandler_pty_common): Ditto. * pinfo.cc (_pinfo::set_ctty): Output device numbers in hex.
2011-06-15* errno.cc (EIO): Lowercase "o" representative string.Christopher Faylor
2011-06-15* cygheap.h (init_cygheap::ctty_on_hold): Remove conditionalized variable.Christopher Faylor
* dcrt0.cc (do_exit): Remove code which handled CYGWIN=tty style ttys. * devices.in: Remove "/dev/ttym". * dtable.cc: Rename tty to pty where appropriate throughout. (dtable::stdio_init): Use new t->is_console rather than using now-deleted hwnd element in tty structure. (dtable::init_std_file_from_handle): Remove code which handled CYGWIN=tty style ttys. (fh_alloc): Ditto. * fhandler.h: Rename tty to pty where appropriate. (fhandler_pty_common): Delete output_done_event, ioctl_request_event, ioctl_done_event. (fhandler_pty_master::setup): Delete argument. (fhandler_tty_master): Delete. (fhandler_union): Delete __tty_master. * fhandler_console.cc (use_tty): Delete. (fhandler_console::get_tty_stuff): Set is_console to true rather than calling sethwnd. (fhandler_console::send_winch_maybe): Remove CYGWIN=tty considerations. (fhandler_console::input_tcsetattr): Ditto. * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use new t->is_console rather than using now-deleted hwnd element in tty structure. * fhandler_tty.cc: Rename tty to pty where appropriate throughout. (tty_master): Delete. (process_input): Ditto. (process_output): Ditto. (process_ioctl): Ditto. (fhandler_tty_master::*): Ditto. (fhandler_pty_master::process_slave_output): Remove CYGWIN=tty considerations. (fhandler_pty_slave::open): Ditto for *_done_event. (fhandler_pty_slave::write): Ditto. (fhandler_pty_slave::ioctl): Ditto. (fhandler_pty_slave::fch_open_handles): Ditto. (fhandler_pty_slave::fch_set_sd): Ditto. (fhandler_pty_slave::fch_close_handles): Ditto. (fhandler_pty_common::close): Ditto. (fhandler_pty_master::setup): Ditto. Remove now-unneeded ispty parameter. (fhandler_pty_master::open): Reflect argument removal for tty::allocate. * select.cc: Rename tty to pty where appropriate throughout. * sigproc.cc (proc_subproc): Remove CYGWIN=tty considerations. * tty.cc (ttyslot): Accommodate CYGWIN=tty removal. (tty_list::init_session): Ditto. (tty_list::attach): Ditto. (tty::create_master): Delete. (tty_list::terminate): Ditto. (tty_list::allocate): Delete "with_console" parameter. Remove CYGWIN=tty considerations. (tty::init): Set is_console = false. Use 'false' for was_opened since it is a boolean. * tty.h (*_{DONE,REQUEST}_EVENT): Delete. (tty_min::is_console): Declare new field which replaces hwnd. (tty_min::gethwnd): Delete. (tty_min::sethwnd): Ditto. (tty_list::allocate): Delete parameter. (tty_list::terminate): Delete declaration. * include/sys/cygwin.h (PID_USETTY): Redefine to PID_UNUSED1 and change comment to reflect its availability.
2011-06-14* fhandler_tty_slave.cc (fhandler_tty_slave::fhandler_tty_slave): RevertChristopher Faylor
previous change since unit 0 is perfectly valid.