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
2001-09-23 * dtable.cc (dtable::build_fhandler): Initialize unit when usingCorinna Vinschen
optional path_conv argument.
2001-09-23* dtable.cc (dtable::build_fhandler): Accept an optional path_conv argument.Christopher Faylor
If available, use this to calculate path name and device number. * dtable.h (dtable): Reflect above change. * fhandler.h (fhandler_base): Declare virtual method which accepts path_conv rather than path string as first argument. * fhandler.cc (fhandler_base::open): Define above new method. * syscalls.cc (_open): Set aside a path_conv variable for use in build_fhandler and subsequent call to open.
2001-09-22* exceptions.cc (setup_handler): Always relinquish lock after we'veChristopher Faylor
interrupted. * fhandler.cc: Move pipe methods to pipe.cc. * fhandler.h (fhandler_pipe): Add new methods. * fork.cc (sync_with_parent): Make error messages more informative. * pipe.cc (fhandler_pipe::fhandler_pipe): Move here from fhandler.cc. (fhandler_pipe::lseek): Ditto. (fhandler_pipe::set_close_on_exec): New method. (fhandler_pipe::read): Ditto. (fhandler_pipe::close): Ditto. (fhandler_pipe::dup): Ditto. (make_pipe): Create the guard mutex on the read side of the pipe. * select.cc (peek_pipe): Use guard_mutex to discover if we have the right to read on this pipe. (fhandler_pipe::readh_for_read): Pass the read pipe guard mutex to peek_pipe. * syscalls.cc (_read): Always detect signal catchers, for now. * debug.cc (makethread): Eliminate hack to make thread inheritable. * sigproc.cc (subproc_init): Don't use hack to make thread inheritable.
2001-09-21* fhandler.cc (fhandler_base::set_inheritance): Just use DUPLICATE_CLOSE_SOURCEChristopher Faylor
to change inheritance. Eliminate all other logic dealing with closed handles. * fhandler.h (fhandler_base::set_inheritance): Reflect above change. * fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Ditto.
2001-09-20 * fhandler_socket.cc (fhandler_socket::fixup_after_exec): CloseCorinna Vinschen
socket only when not using Winsock2.
2001-09-20 * fhandler.h (fhandler_socket::fixup_after_exec): Remove inlineCorinna Vinschen
implementation. (fhandler_dev_raw::fixup_after_exec): Ditto. * fhandler_raw.cc (fhandler_dev_raw::fixup_after_fork): Don't duplicate buffer on fork to avoid memory leak. (fhandler_dev_raw::fixup_after_exec): New implementation equal to former fixup_after_fork() implementation. * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Do nothing when not using Winsock2. (fhandler_socket::fixup_after_exec): New implementation. (fhandler_socket::set_close_on_exec): Never call set_inheritance().
2001-09-20 * fhandler.cc (fhandler_base::set_inheritance): If available,Corinna Vinschen
use SetHandleInformation() to set inheritance. * wincap.cc: Set flag has_set_handle_information_on_console_handles appropriately. * wincap.h: Add flag has_set_handle_information_on_console_handles.
2001-09-19* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.Christopher Faylor
2001-09-19 * lib/getopt.c (getopt_long): Avoid compiler warning.Corinna Vinschen
2001-09-19* lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin.Christopher Faylor
* scandir.cc (scandir): Use correct default when compar == NULL.
2001-09-19 * fhandler_socket.cc (fhandler_socket::fhandler_socket): RevertCorinna Vinschen
memory allocation to use cmalloc again.
2001-09-19* cygwin.din (__argv): Export.Christopher Faylor
(__argc): Ditto. (__progname): Ditto. * include/getopt.h (getopt_long): constify arguments. * lib/getopt.c: Import new file from NetBSD.
2001-09-18 * mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.Corinna Vinschen
2001-09-18* include/io.h: Add access declaration.Christopher Faylor
2001-09-17* syscalls.cc (rmdir): Set cwd to some other location if attempting to rmdirChristopher Faylor
current working directory.
2001-09-17* dtable.h (not_open): Assure inline.Christopher Faylor
* fhandler.h (operator []): Make const. * sync.cc (muto::~muto): Fix typo which stopped muto event handle from ever being closed.
2001-09-16* path.cc (symlink): Check arguments for validity.Egor Duda
(getcwd): Ditto. * syscalls.cc (ftruncate): Ditto. * times.cc (times): Ditto. * uname.cc (uname): Ditto.
2001-09-16* net.cc (dup_servent_ptr): Detect old Windows 95 misaligned structure andChristopher Faylor
realign appropriately.
2001-09-15* Makefile.in: Generate libcygwin.a during the link pass rather than as aChristopher Faylor
separate dlltool step. * dcrt0.cc (_dll_crt0): pppid_handle could be NULL. Don't close it if so.
2001-09-15*** empty log message ***Christopher Faylor
2001-09-15* dcrt0.cc (dll_crt0_1): Create vfork main storage here so that it can beChristopher Faylor
queried in waitsig later. * sigproc.cc (wait_sig): Don't deliver a signal if in a vfork. * fork.cc (vfork): Deliver all signals on parent return from vfork.
2001-09-14 * dcrt0.cc (_dll_crt0()): Don't call wincap.init() here.Corinna Vinschen
2001-09-14* fork.cc (vfork): Avoid recursive vforks.Christopher Faylor
2001-09-14* fhandler.h (fhandler_pipe::is_slow): Return true only if pipes are reliableChristopher Faylor
(i.e., not Win9x). * wincap.cc: Make statics NO_COPY to avoid fork overhead.
2001-09-14* grp.cc (read_etc_group): Just reuse group_buf storage for subsequent rereadChristopher Faylor
of /etc/group. * passwd.cc (read_etc_passwd): Just reuse passwd_buf storage for subsequent reread of /etc/passwd.
2001-09-14* cygheap.cc (dup_now): New function.Christopher Faylor
(cygheap_setup_for_child): Accept new argument controlling whether to delay copying of cygheap to shared memory region. (cygheap_setup_for_child_cleanup): Accept new arguments controlling whether to copy cygheap at this point. * cygheap.h: Reflect above changes. * fork.cc (fork_parent): Break copying of cygheap into two parts when fork_fixup is required so that the child can see the parent's changes. (vfork): Do stack cleanup prior to forcing a fork error. * spawn.cc (spawn_guts): Ditto.
2001-09-14* cygheap.cc (ccalloc): Pass correct length to creturn so that cygheap_max isChristopher Faylor
correctly calculated.
2001-09-13* sync.cc (muto::acquire): Fix while/if typo.Christopher Faylor
2001-09-13 * wincap.cc (wincapc::init): Simplify W2K/XP case.Corinna Vinschen
2001-09-13 * wincap.cc (wincapc::init): Set os name to "NT" on XP, too.Corinna Vinschen
2001-09-12 * Makefile.in: Build wincap.o.Corinna Vinschen
* wincap.cc: New file. * wincap.h: Ditto. * autoload.cc: Add dynamic load statement for `CreateHardLinkA'. * dcrt0.cc (os_being_run): Eliminated. (osname): Ditto. (iswinnt): Ditto. (set_os_type): Ditto. (dll_crt0_1): Call wincap.init() instead of set_os_type(). (_dll_crt0): Ditto. * environ.cc (set_chunksize): New function. (parse_thing): `forkchunk' setting now invokes function `set_chunksize'. * fork.cc (chunksize): Eliminated. Moved to be member of wincap. * host_dependent.h: Removed. * syscalls.cc (_link): Try using `CreateHardLinkA' first, if available. * cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc, environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc, fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h, security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc, times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap capability check throughout. * winsup.h: Include wincap.h. Eliminate extern declarations of `os_being_run' and `iswinnt'. Eliminate `os_type" definition. * include/cygwin/version.h: Bump version to 1.3.4.
2001-09-12* exceptions.cc (call_signal_handler_now): Add additional guard againstChristopher Faylor
inappropriately calling signal handler. * syscalls.cc (_read): Reset errno if not exiting due to signal.
2001-09-12minor cleanupsChristopher Faylor
2001-09-12Wed Sep 12 13:03:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins
* autoload.cc (LoadDLLfuncEx): Auto load TryEnterCriticalSection - its a n NT only call. * thread.cc (pthread_cond::TimedWait): Use critical sections for NT. (pthread_cond::fixup_after_fork): Don't detect bad apps. (pthread_mutex::pthread_mutex): Use critical sections for NT. (pthread_mutex::~pthread_mutex): Ditto. (pthread_mutex::Lock): Ditto. (pthread_mutex::TryLock): Ditto. (pthread_mutex::UnLock): Ditto. (pthread_mutex::fixup_after_fork): Ditto. Also do not detect bad apps. (__pthread_mutex_trylock): Move WIN32 specific test into the class metho d. (__pthread_mutex_destroy): Prevent dereferencing passed pointer without valid address. * thread.h (pthread_mutex): Use critical sections for NT.
2001-09-12* sigproc.h (sigframe::unregister): Return true/false whether this frame isChristopher Faylor
capable of responding to signals. * exceptions.cc (sigframe::call_signal_handler): Don't call signal handler if it is not armed for this thread.
2001-09-11fix some typos.Christopher Faylor
2001-09-11* cygwin.din: Remove cygwin_getshared.Christopher Faylor
* shared.cc: Ditto. * include/cygwin/version.h: Bump API minor number. * dtable.cc (dtable::build_fhandler): Fix incorrect test for socket.
2001-09-11Tue Sep 11 21:22:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins
* thread.cc (pthread_cond::~pthread_cond): Bugfix: Incorrect use of InterlockExchangePointer. (pthread_mutex::~pthread_mutex): Ditto. (semaphore::~semaphore): Ditto.
2001-09-11Tue Sep 11 18:15:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins
* dcrt0.cc (cygwin_finished_initializing): Copy _mtinterf on fork; * fork.cc (fork_child): fixup thread-related structures after fork; * thread.cc (MTinterface::Init): Initialise the new mutex, condition and semaphore lists. (MTinterface::fixup_after_fork): Iterate through each list and fixup the objects. (pthread_cond::pthread_cond): Add this to the condition list. (pthread_cond::~pthread_cond): Remove this from the condition list. (pthread_cond::fixup_after_fork): Recreate as best we can the pre-fork state. (pthread_mutex::pthread_mutex): Add this to the mutex list. (pthread_mutex::~pthread_mutex): Remove this from the mutex list. (pthread_mutex::fixup_after_fork): Recreate as best we can the pre-fork state. (semaphore::semaphore): Store the initial value, and add this to the semaphore list. (semaphore::~semaphore): Remove this from the semaphore list. (semaphore::Post): Increment the current semaphore value. (semaphore::TryWait): Decrement the current semaphore value. (semaphore::Wait): Ditto. (semaphote::fixup_after_fork): Recreate the pre-fork state as best we can. * thread.h (pthread_mutex): New members to allow fixup_after_fork. (pthread_cond): Ditto. (semaphore): Ditto. (MTinterface): New list heads for tracking conds and semaphores.
2001-09-10* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately onChristopher Faylor
inherited fds.
2001-09-10* sigproc.cc (NZOMBIES): Reduce substantially to minimize memory use.Christopher Faylor
2001-09-10Mon Sep 10 08:28:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins
* thread.h (MT_Interface): Remove pshared mutex array. Add a threadsafe list for mutex tracking (for fixupafter fork). * thread.cc (MTInterface::Init): Remove pshared mutex array. (pthread_mutex::pthread_mutex): Remove pshared mutex functionality. Fail with EINVAL on attempts to use pshared functionality. (__pthread_mutex_getpshared): Remove. (__pthread_cond_timedwait): Remove pshared mutex functionality. (__pthread_cond_wait): Ditto. (__pthread_mutex_init): Ditto. (__pthread_mutex_getprioceiling): Ditto. (__pthread_mutex_lock): Ditto. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): Ditto. (__pthread_mutexattr_setpshared): Ditto.
2001-09-10 * pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()Corinna Vinschen
instead of GetFileInformationByHandle().
2001-09-10* heap.h (inheap): Rewrite macro to accomodate removal of brk macros below.Christopher Faylor
2001-09-09* cygheap.cc (cygheap_fixup_in_child): Clear cygheap->base so that heap is notChristopher Faylor
forced to start at the same place in execed process. * heap.cc: Remove brk* macros for clarity throughout. * heap.h: Ditto. * shared.cc (shared_info::initialize): Move heap_chunk test into heap_chunk_size(). (heap_chunk_size): Check for chunk size here. Don't go to registry if heap_chunk_in_mb is already set. * smallprint.c (console_printf): Add Windows 95 concessions.
2001-09-09* child_info.h (PROC_MAGIC): Bump magic number.Christopher Faylor
2001-09-09 * cygheap.cc (init_cygheap::etc_changed): New method to signalCorinna Vinschen
a change in /etc. * cygheap.h (struct init_cygheap): Add member `etc_changed_h' and method `etc_changed'. * grp.cc (enum grp_state): Eliminate. (class grp_check): Ditto. (group_state): Define as `class pwdgrp_check'. (parse_grp): Remeber path and modification time of /etc/group file. * passwd.cc (enum_pwd_state): Eliminate. (class pwd_check): Ditto. (passwd_state): Define as `class pwdgrp_check'. (read_etc_passwd): Remember path and modification time of /etc/passwd file. * pwdgrp.h: New file. (enum pwdgrp_state): Substitutes `pwd_state' and `grp_state'. (class pwdgrp_check): Substitutes `pwd_check' and `grp_check'.
2001-09-09 * include/cygwin/version.h: Bump API minor version to 45 accordingCorinna Vinschen
to adding the gamm*_r functions.
2001-09-09* fork.cc (fork_parent): Stop malloc activity while fork is in control of theChristopher Faylor
heap. * sigproc.cc (NZOMBIES): Rename from ZOMBIEMAX for clarity. (zombies): Revert to original behavior. Allocating zombie array resulted in performance hit. * winsup.h: Declare malloc lock routines.
2001-09-08* cygwin.din: Add gamm*_r function exports.Christopher Faylor