summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately onChristopher Faylor2001-09-102-0/+9
| | | | inherited fds.
* * sigproc.cc (NZOMBIES): Reduce substantially to minimize memory use.Christopher Faylor2001-09-102-1/+5
|
* Mon Sep 10 08:28:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-09-093-154/+31
| | | | | | | | | | | | | | | | | | | * 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.
* * pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()Corinna Vinschen2001-09-092-4/+7
| | | | instead of GetFileInformationByHandle().
* * heap.h (inheap): Rewrite macro to accomodate removal of brk macros below.Christopher Faylor2001-09-092-1/+8
|
* * cygheap.cc (cygheap_fixup_in_child): Clear cygheap->base so that heap is notChristopher Faylor2001-09-098-65/+82
| | | | | | | | | | | 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.
* * child_info.h (PROC_MAGIC): Bump magic number.Christopher Faylor2001-09-092-1/+5
|
* * cygheap.cc (init_cygheap::etc_changed): New method to signalCorinna Vinschen2001-09-097-103/+124
| | | | | | | | | | | | | | | | | | 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'.
* * include/cygwin/version.h: Bump API minor version to 45 accordingCorinna Vinschen2001-09-092-1/+6
| | | | to adding the gamm*_r functions.
* * fork.cc (fork_parent): Stop malloc activity while fork is in control of theChristopher Faylor2001-09-095-22/+25
| | | | | | | | 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.
* * cygwin.din: Add gamm*_r function exports.Christopher Faylor2001-09-083-1/+13
|
* * cygheap.h (init_cygheap): Move heap pointers here.Christopher Faylor2001-09-0743-543/+571
| | | | | | | | | | | | | | | | | | | * include/sys/cygwin.h (perprocess): Remove heap pointers. * dcrt0.cc (__cygwin_user_data): Reflect obsolete perprocess stuff. (_dll_crt0): Don't initialize heap pointers. (cygwin_dll_init): Ditto. (release_upto): Use heap pointers from cygheap. * heap.h: Ditto. * fork.cc (fork_parent): Ditto. Don't set heap pointers in ch. (fork_child): Remove obsolete sigproc_fixup_after_fork. * shared.cc (memory_init): Reorganize so that cygheap initialization is called prior to regular heap since regular heap uses cygheap now. * sigproc.cc (proc_subproc): Eliminate zombies allocation. (sigproc_init): Move zombies alloation here. Don't free up array on fork, just reuse it. (sigproc_fixup_after_fork): Eliminate. * sigproc.h: Ditto. * include/cygwin/version.h: Reflect change to perprocess structure.
* Fri Sep 7 10:53:34 2001 Jason Tishler <jason@tishler.net>Corinna Vinschen2001-09-072-3/+16
| | | | | * poll.cc (poll): Change implementation to only call select() when no invalid file descriptors are specified.
* * include/limits.h: Define PIPE_BUF.Corinna Vinschen2001-09-073-2/+13
| | | | | * syscalls.cc (fpathconf): Use PIPE_BUF instead of numerical constant. (pathconf): Ditto.
* experiment.Christopher Faylor2001-09-071-1/+1
|
* * fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure thatChristopher Faylor2001-09-072-1/+6
| | | | prot_info_ptr is zeroed for later use.
* * cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as aChristopher Faylor2001-09-063-2/+13
| | | | | | candidate for deletion. It is actually the end of a linked list chain. * exceptions.cc (open_stackdumpfile): Default to "unknown" program name if myself->progname hasn't been filled out yet.
* Another in the how-it-works series.Christopher Faylor2001-09-061-0/+22
|
* Move appropriate variables to NO_COPY segment, throughout.Christopher Faylor2001-09-0617-27/+31
|
* Remove initialization of static or global values to zero, throughout. ThisChristopher Faylor2001-09-0620-38/+45
| | | | | | just needlessly grows the size of the DLL. * tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for thread safety.
* * cygheap.h (init_cygheap): Move bucket array here from cygheap.cc.Christopher Faylor2001-09-0611-18/+49
| | | | | | | | | | | | * cygheap.cc: Throughout use bucket array from cygheap. * sigproc.cc (proc_subproc): Dynamically allocate zombie buffer to save DLL space. (sigproc_fixup_after_fork): Free zombie array after a fork. * sigproc.h (sigproc_fixup_after_fork): Declare. * dir.cc (mkdir): Expand buffer for security descriptor to 4K to avoid stack corruption. * fhandler.cc (fhandler_base::open): Ditto. * path.cc (symlink): Ditto.
* minor wording changesChristopher Faylor2001-09-051-12/+16
|
* top level overview of vfork.Christopher Faylor2001-09-051-0/+34
|
* * winver.rc: Change copyright to include 2001.Corinna Vinschen2001-09-052-1/+5
|
* * fhandler_floppy.cc (fhandler_floppy::lseek): Remove iswinnt check.Corinna Vinschen2001-09-052-36/+37
|
* * fhandler_socket.cc (fhandler_socket::close): Change 2MSL valueCorinna Vinschen2001-09-052-1/+6
| | | | according to MSDN.
* * net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handlingCorinna Vinschen2001-09-052-5/+15
| | | | for non-blocking sockets.
* * exceptions.cc (ctrl_c_handler): Only send SIGINT when we have a controllingChristopher Faylor2001-09-052-5/+8
| | | | terminal and we are the head of the process group.
* * thread.cc (InterlockedExchangePointer): Don't define if it already exists.Christopher Faylor2001-09-043-18/+26
|
* * uname.cc (uname): Eliminate os specific retrieving of x86Corinna Vinschen2001-09-042-25/+14
| | | | processor type.
* 2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>Corinna Vinschen2001-09-042-2/+10
| | | | | | * fhandler_console.cc (fhandler_console::char_command): Save the cursor position relative to the top of the window. * fhandler_cc (fhandler_console::write): Ditto.
* *** empty log message ***Christopher Faylor2001-09-031-0/+95
|
* * dir.cc (opendir): Write version information to __d_dirent->d_version.Corinna Vinschen2001-09-032-0/+5
|
* * cygwin.din: Add `dirfd'.Corinna Vinschen2001-09-034-1/+30
| | | | | | | | * dir.cc (dirfd): New function. (opendir): Open a directory file descriptor and save it in __d_dirent->d_fd. (closedir): Close directory file descriptor. * include/cygwin/version.h: Bump API minor version to 44.
* * child_info.h: Modify magic number.Christopher Faylor2001-09-036-61/+80
| | | | | | | | | * dcrt0.cc (_cygwin_testing): Define. (_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists. Don't issue "conflicting versions" error if _cygwin_testing is true. * shared.cc (shared_name): Use _cygwin_testing global rather than testing the environment. * syscalls.cc (_write): Remove debugging info.
* * tty.cc (tty::create_inuse): Eliminate unneeded argument.Christopher Faylor2001-09-014-6/+13
| | | | | | * tty.h: Reflect above change. * fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout. Always make inuse inheritable.
* * debug.cc (mark_closed): Rename from debug_mark_closed and make static.Christopher Faylor2001-09-019-44/+95
| | | | | | | | | | | | | | | | | | | (setclexec_pid): New function for marking saved handle as close-on-exec. (delete_handle): New function. (debug_fixup_after_fork): New function. * debug.h: Declare new functions, remove obsolete ones. * fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles. * fhandler.cc (fhandler_disk_file::close): Minor reorg. (fhandler_base::set_inheritance): Set flag appropriately for debugging when close-on-exec so forked process can delete closed handles. * tty.h (open_output_mutex): Eliminate unneeded argument. (open_input_mutex): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument changes. * fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool. * tty.cc (tty::get_event): Eliminate unneeded argument. (tty::common_init): Reflect change to get_event. Events should always be inherited.
* * security.cc (create_token): Change initialization of `exp' to complyCorinna Vinschen2001-08-312-1/+6
| | | | with new LARGE_INTEGER definition in winnt.h.
* * cygwin.sc: Revert to previous NO_COPY behavior.Christopher Faylor2001-08-315-29/+33
| | | | | | * winsup.h: Ditto. * sigproc.cc: Ditto. * autoload.cc: Ditto.
* minor wording change.Christopher Faylor2001-08-311-1/+1
|
* space reduction.Christopher Faylor2001-08-311-2/+2
|
* space reduction.Christopher Faylor2001-08-311-1/+1
|
* * cygwin.sc: New file -- linker script for building cygwin DLL.Christopher Faylor2001-08-3110-46/+236
| | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Use linker script to control location of cygheap. * cygheap.cc (buckets): Make static. (init_cheap): Remove special iswinnt handling. Allocate cygheap at a fixed location. Display more info when allocation fails. (cygheap_fixup_in_child): Try harder to move cygheap to correct location. Display more info when allocation fails. * fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state. * net.cc (cygwin_shutdown): Set appropriate shutdown value for future use. * select.cc (select_stuff::cleanup): New method. (cygwin_select): Call cleanup explicitly to avoid a race. (select_stuff:~select_stuff): Call cleanup chain via cleanup method. (fhandler_socket::select_read): Set *_ready when shutdown has been called on the socket. (fhandler_socket::select_write): Ditto. (fhandler_socket::select_except): Ditto. * winsup.h: Move NO_COPY to "COMMON" section. * autoload.cc (wsock_started): Avoid initializing NO_COPY value. * sigproc.cc: Remove initialization from NO_COPY variables. (sigproc_init): Initialize sig_loop_wait here, rather than via initialization. (subproc_init): Initialize proc_loop_wait here, rather than via initialization.
* * select.cc (select_read): Add setting read_ready flag.Corinna Vinschen2001-08-302-0/+7
| | | | (select_write): Add setting write_ready flag.
* * path.cc (path_conv::check): Avoid splitting off leading '/' in path componentChristopher Faylor2001-08-292-0/+7
| | | | when building a symlink.
* * resource.cc (getrlimit): Return actual values on RLIMIT_STACK.Corinna Vinschen2001-08-282-0/+15
|
* oopsChristopher Faylor2001-08-281-14/+7
|
* * dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.Christopher Faylor2001-08-283-9/+27
|
* * select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.Christopher Faylor2001-08-272-12/+20
| | | | (select_stuff::wait): Ditto.
* * syscalls.cc (check_tty_fds): New function. Check whether there is a fdChristopher Faylor2001-08-252-2/+25
| | | | | referring to pty slave. (setsid): Don't detach console if the process has a pty slave.