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
2002-08-29removeChristopher Faylor
2002-08-28removeChristopher Faylor
2002-08-28* malloc.cc: Protect some definitions to avoid a compile time warning.Christopher Faylor
2002-08-28 * cygwin.din: Export getc_unlocked, getchar_unlocked,Corinna Vinschen
putc_unlocked, putchar_unlocked functions. * include/cygwin/version.h: Bump api minor.
2002-08-28 * fhandler_socket.cc (fhandler_socket::recvfrom): Eliminate flagsCorinna Vinschen
not understood by WinSock. (fhandler_socket::sendto): Ditto. If WinSock sendto() returns WSAESHUTDOWN, change errno to EPIPE and raise SIGPIPE if MSG_NOSIGNAL isn't set in flags. * include/cygwin/socket.h: Define MSG_WINMASK and MSG_NOSIGNAL. * include/cygwin/version.h: Bump API minor number.
2002-08-28 * poll.cc (poll): Eliminate erroneous POLLERR conditional.Corinna Vinschen
2002-08-28fragging mumble bruggum newlibChristopher Faylor
2002-08-27 * fhandler_socket.cc (fhandler_socket::check_peer_secret_event):Corinna Vinschen
Fix strace message. (fhandler_socket::connect): Remove sigframe. (fhandler_socket::accept): Ditto. (fhandler_socket::getsockname): Ditto. (fhandler_socket::getpeername): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recvmsg): Ditto. (fhandler_socket::sendto): Ditto. (fhandler_socket::sendmsg): Ditto. (fhandler_socket::close): Ditto. (fhandler_socket::ioctl): Ditto. * ioctl.cc (ioctl): Add sigframe. *net.cc (cygwin_sendto): Ditto. (cygwin_recvfrom): Ditto. (cygwin_recvfrom): Ditto. (cygwin_connect): Ditto. (cygwin_shutdown): Ditto. (cygwin_getpeername): Ditto. (cygwin_accept): Ditto. Improve strace message. (cygwin_getsockname): Ditto. Ditto. (cygwin_recvmsg): Ditto. Ditto. (cygwin_sendmsg): Fix strace message.
2002-08-27* child_info.h: Add _PROC_WHOOPS enum value.Christopher Faylor
(CURR_CHILD_INFO_MAGIC): Update. (child_info::magic): Make 'long'. * cygheap.h: Export _cygheap_start. * cygheap.cc: Don't declare _cygheap_start. * cygmagic: Use cksum to produce checksums. Append 'U' to end of checksum. * dcrt0.cc (initial_env): Calculate sleep ms before reusing buffer. (_dll_crt0): Detect cygheap mismatch as indicative of different cygwin version. Set child_proc_info to NULL when _PROC_WHOOPS. (multiple_cygwin_problem): If child_info specific problem, then set child_proc_info type to _PROC_WHOOPS. * shared_info.h (CURR_MOUNT_MAGIC): Update. (CURR_SHARED_MAGIC): Ditto.
2002-08-26 * fhandler.h (fhandler_socket::recvfrom): Fix prototype.Corinna Vinschen
(fhandler_socket::sendto): Ditto. * fhandler_socket.cc (fhandler_socket::recvfrom): Ditto. (fhandler_socket::sendto): Ditto. * include/sys/socket.h (recv): Fix prototype. (recvfrom): Ditto. (send): Ditto. (sendto): Ditto. * net.cc (cygwin_sendto): Ditto. Improve strace message (cygwin_recvfrom): Ditto. Ditto. (cygwin_setsockopt): Improve strace message. (cygwin_getsockopt): Ditto. (cygwin_connect): Ditto. (cygwin_accept): Ditto. (cygwin_bind): Ditto. (cygwin_getsockname): Ditto. (cygwin_getpeername): Ditto. (cygwin_recv): Fix prototype. (cygwin_send): Ditto. (cygwin_recvmsg): Improve strace message. (cygwin_sendmsg): Ditto.
2002-08-26 * sec_acl.cc (getacl): Check ace_sid == well_known_world_sidCorinna Vinschen
before owner_sid and group_sid so that well_known_world_sid means "other" even when owner_sid and/or group_sid are Everyone. * security.cc (get_attribute_from_acl): Created from code common to get_nt_attribute() and get_nt_object_attribute(), with same reordering as in getacl() above. (get_nt_attribute): Call get_attribute_from_acl(). (get_nt_object_attribute): Ditto.
2002-08-26* Makefile.in (cygcheck.exe): Make a -mno-cygwin program.Christopher Faylor
* cygrun.c (main): Export CYGWIN=ntsec unless otherwise set. * shared.cc (shared_name): Only add build date to shared name when *testing*.
2002-08-25* Makefile.in (DLL_IMPORTS): Move libuuid.a and libshell32.a to list ratherChristopher Faylor
than referring to them via -l. Add DLL imports last in link line for new-cygwin.dll and cygrun.exe.
2002-08-19* pinfo.h (pinfo::remember): Arrange for destructor call if proc_subprocChristopher Faylor
returns error. * sigproc.cc (zombies): Store 1 + total zombies since proc_subproc uses NZOMBIES element.
2002-08-19 * pwdgrp.h (pwdgrp_read::pwdgrp_read): Remove.Corinna Vinschen
(pwdgrp_read::~pwdgrp_read): Ditto. (pwdgrp_read::open): Reset fh to NULL instead of INVALID_HANDLE_VALUE. (pwdgrp_read::close): Ditto.
2002-08-19* fhandler.h (fhandler_console::send_winch_maybe): New method.Christopher Faylor
* fhandler_console.cc (set_console_state_for_spawn): Remove if 0'ed code. (fhandler_console::send_winch_maybe): Define new method. (fhandler_console::read): Use send_winch_maybe where appropriate. (fhandler_console::init): Just call all tcsetattr rather than output_tcsetattr. * select.cc (peek_console): Reorganize so that send_winch_maybe is called for everything but keyboard input.
2002-08-18* perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.Christopher Faylor
(vfork_save::restore_pid): New method. (vfork_save::restore_exit): New method. * fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to "parent". Use exitval field if exiting but never created a new process. * syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that pid will be allocated (UGLY!). (getsid): New function. * dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a vfork. * spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for returning from vfork. * cygwin.din: Export getsid. * include/cygwin/version.h: Bump api minor number. * malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
2002-08-18* cygmalloc.h (MORECORE_CANNOT_TRIM): Define.Christopher Faylor
2002-08-18* sigproc.cc (sigCONT): Define.Christopher Faylor
* sigproc.h (sigCONT): Declare. (wait_sig): Create sigCONT event here. * exceptions.cc (sig_handle_tty_stop): Wait for sigCONT event rather than stopping thread. (sig_handle): Set sigCONT event as appropriate on SIGCONT rather than calling ResumeThread.
2002-08-18* malloc.cc: Update to 2.7.2.Christopher Faylor
* malloc_wrapper.cc (malloc_init): Call user level mallocs to determine if the malloc has been wrapped.
2002-08-17fix typoChristopher Faylor
2002-08-16Missed this commit in last checkin.Christopher Faylor
2002-08-16* winsup.h: Remove malloc_*lock functions.Christopher Faylor
2002-08-16* Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. UseChristopher Faylor
-fomit-frame-pointer for malloc.o compilation. * malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more malloc functions. Eliminate export_* calls. Just use straight malloc names. Remove unused argument from malloc lock functions. * cygwin.din: Just export straight malloc names. Add malloc_stats, malloc_trim, malloc_usable_size, mallopt, memalign, valloc. * dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries. * fork.cc (fork_parent): Remove unused argument from malloc_lock argument. * malloc.cc: New file. Doug Lea's malloc v2.7.1. * cygmalloc.h: New file. * include/cygwin/version.h: Bump API_MINOR. * sync.h (muto::acquire): Use appropriate number for regparm attribute. (muto::reset): Ditto. (muto::release): Ditto.
2002-08-16* exceptions.cc (interrupt_setup): Ensure that the previous signal mask isChristopher Faylor
properly saved.
2002-08-16* dcrt0.cc: Modify define for CYGWIN_GUARD.Christopher Faylor
(alloc_stack_hard_way): Just use CYGWIN_GUARD in VirtualAlloc call.
2002-08-16present tenseChristopher Faylor
2002-08-15make comment more accurate.Christopher Faylor
2002-08-12 * fhandler.h (fhandler_socket::recv): Remove method.Conrad Scott
(fhandler_socket::send): Ditto. * fhandler_socket.cc (fhandler_socket::recv): Ditto. (fhandler_socket::send): Ditto. (fhandler_socket::read): Delegate to fhandler_socket::recvfrom. (fhandler_socket::write): Delegate to fhandler_socket::sendto. (fhandler_socket::sendto): Check for null `to' address. * net.cc (cygwin_sendto): Check for zero request length. (cygwin_recvfrom): Ditto. Fix signature, use void *buf. (cygwin_recv): Delegate to cygwin_recvfrom. (cygwin_send): Delegate to cygwin_sendto.
2002-08-11* cygthread.cc (cygthread::cygthread): Close another race.Christopher Faylor
2002-08-11* assert.cc (__assert): Call debugger on assertion failure if debugging.Christopher Faylor
* dcrt0.cc (dll_crt0_1): Just wait for signal thread to go live rather than going through the overhead of invoking it. * fork.cc (fork_child): Ditto. * exceptions.cc (signal_fixup_after_fork): Call sigproc_init here. * sigproc.cc (proc_can_be_signalled): Assume that the signal thread is live. (sig_dispatch): Ditto. (sig_send): Ditto. (wait_for_sigthread): Renamed from "wait_for_me". Assume that wait_sig_inited has been set and that this function is only called from the main thread. * winsup.h (wait_for_sigthread): Declare new function.
2002-08-08* environ.cc (parse_options): Remember the "no" part of any options for laterChristopher Faylor
export.
2002-08-08 * winsup.h (__check_null_invalid_struct): Make ptr argument non-const.Conrad Scott
(__check_null_invalid_struct_errno): Ditto. * miscfuncs.cc (__check_null_invalid_struct): Ditto. (__check_null_invalid_struct_errno): Ditto. (__check_invalid_read_ptr_errno): Remove superfluous cast. * net.cc (get): Set appropriate errno if fd is not a socket. (cygwin_sendto): Fix parameter checking. (cygwin_recvfrom): Ditto. (cygwin_setsockopt): Ditto. (cygwin_getsockopt): Ditto. (cygwin_connect): Ditto. (cygwin_gethostbyaddr): Ditto. (cygwin_accept): Ditto. (cygwin_bind): Ditto. (cygwin_getsockname): Ditto. (cygwin_listen): Ditto. (cygwin_getpeername): Ditto. (cygwin_send): Ditto. (cygwin_shutdown): Ditto. Move sigframe to fhandler_socket. (cygwin_recvmsg): Fix parameter checking. Add tracing. (cygwin_sendmsg): Ditto. * fhandler_socket.cc (fhandler_socket::shutdown): Add sigframe. * resource.cc (setrlimit): Fix parameter checking.
2002-08-08 Patch by Joe Buehler <jbuehler@hekimian.com>:Corinna Vinschen
* sec_helper.cc (sec_acl): remove extraneous arg to debug_printf.
2002-08-07 Fix by Conrad Scott <conrad.scott@dsl.pipex.com>:Corinna Vinschen
* fhandler_socket.cc (fhandler_socket::accept): Fix FIONBIO call.
2002-08-07one more changeChristopher Faylor
2002-08-07* cygheap.cc (_csbrk): Avoid !cygheap considerations.Christopher Faylor
(cygheap_init): Deal with unintialized cygheap issues here.
2002-08-07Conrad Scott <conrad.scott@dsl.pipex.comChristopher Faylor
* cygheap.cc (_csbrk): Allocate some slop initially. Don't erroneously add sbrk amount to returned value in initial case.
2002-08-06* spawn.cc (spawn_guts): Don't set mount_h here.Christopher Faylor
* sigproc.cc (init_child_info): Set it here instead. * shared.cc (cygwin_mount_h): Make NO_COPY.
2002-08-06* cygthread.cc (cygthread::stub): Accept flag to pass info structure to threadChristopher Faylor
function. (cygthread::operator new): Add defense debugging output. (cygthread::cygthread): Add debugging output. Set name after thread has been awakened to avoid a race. (cygthread::exit_thread): Use handle operator rather than using ev directly. (cygthread::exit_thread): Reorganize to provide debugging. Set __name to NULL. * cygthread.h (cygself): Define. * fhandler_tty.cc (fhandler_tty_master::init): Use cygself as argument so that invoked thread can access its own info. (process_output): Derive cygthread info of thread from thread argument. * sigproc.cc (sigproc_init): Use cygself as argument so that invoked thread can access its own info. (wait_sig): Derive cygthread info of thread from thread argument.
2002-08-06 * debug.h (handle_list::allocated): Remove field.Conrad Scott
* debug.cc (newh): Don't malloc extra entries. (add_handle): Downgrade strace message level. (delete_handle): Remove case for `allocated' entries.
2002-08-05* cygthread.cc (cygthread::stub): Change event creation to manual reset. SetChristopher Faylor
__name after calling SetEvent to prevent races. (cygthread::detach): Always reset event here to prevent races.
2002-08-04 * debug.h (WaitForMultipleObjects): Correct typo.Conrad Scott
2002-08-04updateChristopher Faylor
2002-08-02 * security.cc (verify_token): Do not reject a token just becauseCorinna Vinschen
the supplementary group list is missing Everyone or a groupsid equal to usersid, or because the primary group is not in the token, as long as it is equal to the usersid. * syscalls.cc (seteuid32): Use common code for all successful returns. * grp.cc (getgroups32): Never includes Everyone in the output.
2002-08-02* cygthread.cc (cygthread::exit_thread): Define new method.Christopher Faylor
* cygthread.h (cygthread::exit_thread): Declare new method. * fhandler.h (fhandler_tty_master::hThread): Delete. (fhandler_tty_master::output_thread): Define. * fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Adjust constructor. (fhandler_tty_master::init): Use cygthread rather than handle. (process_output): Use cygthread method to exit. (fhandler_tty_master::fixup_after_fork): Set output_thread to NULL after fork. (fhandler_tty_master::fixup_after_exec): Set output_thread to NULL after spawn/exec. * tty.cc (tty_list::terminate): Detach from output_thread using cygthread method.
2002-08-02* syscalls.cc (_link): Revert previous change and just always dereference theChristopher Faylor
oldpath.
2002-08-02* syscalls.cc (link): Properly deal with a link to a symlink.Christopher Faylor
2002-08-01* cygthread.cc: Remove cruft.Christopher Faylor
2002-08-01* Makefile.in (DLL_OFILES): Add cygthread.o.Christopher Faylor
* dcrt0.cc (dll_crt0_1): Eliminate various thread initialization functions in favor of new cygthread class. * debug.cc: Remove thread manipulation functions. * debug.h: Ditto. * external.cc (cygwin_internal): Use cygthread method for determining thread name. Remove capability for setting thread name. * fhandler_console.cc (fhandler_console::read): Use cygthread method rather than iscygthread function. * fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Use cygthread methods to create threads. (fhandler_tty_common::__acquire_output_mutex): Use cygthread method to retrieve thread name. * select.cc (pipeinf): Use cygthread pointer rather than handle. (start_thread_pipe): Ditto. (pipe_cleanup): Ditto. (serialinf): Ditto. (start_thread_serial): Ditto. (serial_cleanup): Ditto. (socketinf): Ditto. (start_thread_socket): Ditto. (socket_cleanup): Ditto. * sigproc.cc (hwait_sig): Ditto. (hwait_subproc): Ditto. (proc_terminate): Ditto. (sigproc_terminate): Ditto. (sigproc_init): Initialize cygthread hwait_sig pointer. (subproc_init): Initialize cygthread hwait_subproc pointer. (wait_sig): Rely on cygthread HANDLE operator. * strace.cc (strace::vsprntf): Use cygthread::name rather than threadname. * window.cc (gethwnd): Use cygthread method to initialize thread.