aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2001-09-13* winsup.api/winsup.exp: Run only selected test if environmentEgor Duda3-5/+28
variable CYGWIN_TESTSUITE_TESTS is set. Use its value as regular expression to filter test names. * winsup.api/ltp/symlink01.c (creat_path_max): Provide explicit buffer to getcwd to conform to standards and avoid memory leak. (do_chdir): Ditto.
2001-09-132001-09-13 Earnie Boyd <earnie@SF.net>Earnie Boyd2-2/+8
* lib/Makefile.in (inst_includedir): Change to always use w32api subdirectory for target == cygwin. (inst_libdir): Ditto.
2001-09-13* libltp/lib/tst_sig.c: Pass SIGSEGV to application to considerEgor Duda90-3/+19617
whether it's expected or not. * winsup.api/known_bugs.tcl: lseek10 is known to fail because mknod is not implemented. * winsup.api/ltp/rename02.c: Fix formatting. * libltp/lib/libtestsuite.c: New file. * winsup.api/signal-into-win32-api.c: New test. * winsup.api/ltp/access04.c: Ditto. * winsup.api/ltp/access05.c: Ditto. * winsup.api/ltp/alarm07.c: Ditto. * winsup.api/ltp/chdir04.c: Ditto. * winsup.api/ltp/chmod01.c: Ditto. * winsup.api/ltp/close01.c: Ditto. * winsup.api/ltp/close02.c: Ditto. * winsup.api/ltp/creat01.c: Ditto. * winsup.api/ltp/creat03.c: Ditto. * winsup.api/ltp/exit01.c: Ditto. * winsup.api/ltp/exit02.c: Ditto. * winsup.api/ltp/fchdir01.c: Ditto. * winsup.api/ltp/fchdir02.c: Ditto. * winsup.api/ltp/fork02.c: Ditto. * winsup.api/ltp/fork03.c: Ditto. * winsup.api/ltp/fork06.c: Ditto. * winsup.api/ltp/fork07.c: Ditto. * winsup.api/ltp/fork09.c: Ditto. * winsup.api/ltp/fork10.c: Ditto. * winsup.api/ltp/fork11.c: Ditto. * winsup.api/ltp/fstat02.c: Ditto. * winsup.api/ltp/fstat03.c: Ditto. * winsup.api/ltp/fstat04.c: Ditto. * winsup.api/ltp/ftruncate01.c: Ditto. * winsup.api/ltp/ftruncate02.c: Ditto. * winsup.api/ltp/ftruncate03.c: Ditto. * winsup.api/ltp/getgid02.c: Ditto. * winsup.api/ltp/getgid03.c: Ditto. * winsup.api/ltp/getpgid01.c: Ditto. * winsup.api/ltp/getpgid02.c: Ditto. * winsup.api/ltp/getpid02.c: Ditto. * winsup.api/ltp/getppid02.c: Ditto. * winsup.api/ltp/getuid02.c: Ditto. * winsup.api/ltp/getuid03.c: Ditto. * winsup.api/ltp/kill01.c: Ditto. * winsup.api/ltp/kill02.c: Ditto. * winsup.api/ltp/kill03.c: Ditto. * winsup.api/ltp/kill04.c: Ditto. * winsup.api/ltp/lseek06.c: Ditto. * winsup.api/ltp/lseek07.c: Ditto. * winsup.api/ltp/lseek08.c: Ditto. * winsup.api/ltp/lseek09.c: Ditto. * winsup.api/ltp/lseek10.c: Ditto. * winsup.api/ltp/mmap02.c: Ditto. * winsup.api/ltp/mmap03.c: Ditto. * winsup.api/ltp/mmap04.c: Ditto. * winsup.api/ltp/mmap05.c: Ditto. * winsup.api/ltp/mmap06.c: Ditto. * winsup.api/ltp/mmap07.c: Ditto. * winsup.api/ltp/mmap08.c: Ditto. * winsup.api/ltp/munmap01.c: Ditto. * winsup.api/ltp/munmap02.c: Ditto. * winsup.api/ltp/open02.c: Ditto. * winsup.api/ltp/pipe01.c: Ditto. * winsup.api/ltp/pipe08.c: Ditto. * winsup.api/ltp/pipe09.c: Ditto. * winsup.api/ltp/pipe10.c: Ditto. * winsup.api/ltp/pipe11.c: Ditto. * winsup.api/ltp/poll01.c: Ditto. * winsup.api/ltp/read04.c: Ditto. * winsup.api/ltp/readlink01.c: Ditto. * winsup.api/ltp/readlink03.c: Ditto. * winsup.api/ltp/rename01.c: Ditto. * winsup.api/ltp/rename08.c: Ditto. * winsup.api/ltp/rename10.c: Ditto. * winsup.api/ltp/rmdir01.c: Ditto. * winsup.api/ltp/stat01.c: Ditto. * winsup.api/ltp/stat02.c: Ditto. * winsup.api/ltp/stat03.c: Ditto. * winsup.api/ltp/symlink03.c: Ditto. * winsup.api/ltp/symlink04.c: Ditto. * winsup.api/ltp/symlink05.c: Ditto. * winsup.api/ltp/sync02.c: Ditto. * winsup.api/ltp/time02.c: Ditto. * winsup.api/ltp/times02.c: Ditto. * winsup.api/ltp/times03.c: Ditto. * winsup.api/ltp/truncate01.c: Ditto. * winsup.api/ltp/truncate02.c: Ditto. * winsup.api/ltp/umask02.c: Ditto. * winsup.api/ltp/umask03.c: Ditto. * winsup.api/ltp/wait401.c: Ditto. * winsup.api/ltp/wait402.c: Ditto. * winsup.api/ltp/write02.c: Ditto. * winsup.api/ltp/write03.c: Ditto.
2001-09-13* dumper.cc (main): Properly recognize negative pids (used by w9x).Egor Duda2-1/+5
2001-09-132001-09-13 Earnie Boyd <earnie@SF.net>Earnie Boyd2-0/+18
* lib/Makefile.in (config_prefix): New variable. (inst_includedir): Manipulate special value only if target == cygwin and build == target and prefix != config_prefix. (inst_libdir): Ditto.
2001-09-13* sync.cc (muto::acquire): Fix while/if typo.Christopher Faylor2-1/+5
2001-09-12 * wincap.cc (wincapc::init): Simplify W2K/XP case.Corinna Vinschen2-8/+7
2001-09-12 * wincap.cc (wincapc::init): Set os name to "NT" on XP, too.Corinna Vinschen2-1/+5
2001-09-122001-09-12 Earnie Boyd <earnie@SF.net>Earnie Boyd2-5/+20
* Makefile.in (TARFLAGS): New variable. (TARFILEEXT): Ditto.
2001-09-12 * Makefile.in: Build wincap.o.Corinna Vinschen31-245/+706
* 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-122001-09-12 Earnie Boyd <earnie@SF.net>Earnie Boyd4-6/+17
* Makefile.in: Increment version. * include/w32api.h: Ditto. * lib/Makefile.in: Add usr/ to install directory special for cygwin.
2001-09-122001-09-11 Danny Smith <dannysmith@users.sourceforge.net>Earnie Boyd2-5/+11
* include/winnt.h (_[U]LARGE_INTEGER): Protect nameless struct with !defined(NONAMELESSUNION), rather than defined(_ANONYMOUS_STRUCT). (_REPARSE_DATA_BUFFER): Name union field DUMMYUNIONNAME.
2001-09-12* exceptions.cc (call_signal_handler_now): Add additional guard againstChristopher Faylor3-0/+14
inappropriately calling signal handler. * syscalls.cc (_read): Reset errno if not exiting due to signal.
2001-09-12minor cleanupsChristopher Faylor2-26/+30
2001-09-12Wed Sep 12 13:03:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins4-17/+82
* 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 Faylor3-12/+19
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-11Update copyrights.Christopher Faylor75-79/+79
2001-09-11fix some typos.Christopher Faylor1-5/+5
2001-09-11change copyright.Christopher Faylor1-1/+1
2001-09-11* cygwin.din: Remove cygwin_getshared.Christopher Faylor6-22/+32
* 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 Collins2-13/+12
* 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 Collins5-11/+162
* 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-102001-09-05 Danny Smith <dannysmith@users.sourceforge.net>Earnie Boyd2-1/+34
* include/wininet.h (InternetAutodial): Add prototype. (InternetAutodialHangup): Ditto. (InternetDial): Ditto. (InternetGetConnectedState): Ditto. (InternetGoOnline): Ditto. (InternetHangUp): Ditto. (InternetSetDialState): Ditto. Add associated INTERNET_* auto dial flags. Guard typedefs and prototypes with #ifndef RC_INVOKED.
2001-09-102001-09-10 Earnie Boyd <earnie@SF.net>Earnie Boyd2-11/+23
* dossh: Remove inadvertantly imported file. 2001-09-10 Danny Smith <dannysmith@users.sourceforge.net> * dirent.c (opendir): Use GetFileAttributes rather than stat to determine if input arg is dir.
2001-09-10* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately onChristopher Faylor2-0/+9
inherited fds.
2001-09-10* sigproc.cc (NZOMBIES): Reduce substantially to minimize memory use.Christopher Faylor2-1/+5
2001-09-09Mon Sep 10 08:28:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins3-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.
2001-09-09 * pwdgrp.h (pwdgrp_check::set_last_modified): Call GetFileTime()Corinna Vinschen2-4/+7
instead of GetFileInformationByHandle().
2001-09-09* heap.h (inheap): Rewrite macro to accomodate removal of brk macros below.Christopher Faylor2-1/+8
2001-09-09* cygheap.cc (cygheap_fixup_in_child): Clear cygheap->base so that heap is notChristopher Faylor8-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.
2001-09-09* child_info.h (PROC_MAGIC): Bump magic number.Christopher Faylor2-1/+5
2001-09-09 * cygheap.cc (init_cygheap::etc_changed): New method to signalCorinna Vinschen7-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'.
2001-09-09* winsup.api/ltp/dup03.c: New test.Egor Duda16-15/+4196
* winsup.api/ltp/lseek03.c: Ditto. * winsup.api/ltp/mmap001.c: Ditto. * winsup.api/ltp/read01.c: Ditto. * winsup.api/ltp/readdir01.c: Ditto. * winsup.api/ltp/rmdir05.c: Ditto. * winsup.api/ltp/sbrk01.c: Ditto. * winsup.api/ltp/select02.c: Ditto. * winsup.api/ltp/select03.c: Ditto. * winsup.api/ltp/signal03.c: Ditto. * winsup.api/ltp/stat06.c: Ditto. * winsup.api/ltp/unlink08.c: Ditto. * winsup.api/known_bugs.tcl: Update to reflect new test's known failures. * winsup.api/winsup.exp: Don't delete executable in case of unexpected pass, as well as in case of unexpected failure. * README: Update paragraph about expected failures.
2001-09-09* dumper.cc (main): Change command-line arguments format to beEgor Duda2-22/+39
similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to CYGWIN environment variable to perform core dumping in case of program crash. (usage): Ditto.
2001-09-09 * include/cygwin/version.h: Bump API minor version to 45 accordingCorinna Vinschen2-1/+6
to adding the gamm*_r functions.
2001-09-09* fork.cc (fork_parent): Stop malloc activity while fork is in control of theChristopher Faylor5-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.
2001-09-08* cygwin.din: Add gamm*_r function exports.Christopher Faylor3-1/+13
2001-09-07* cygheap.h (init_cygheap): Move heap pointers here.Christopher Faylor43-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.
2001-09-07Fri Sep 7 10:53:34 2001 Jason Tishler <jason@tishler.net>Corinna Vinschen2-3/+16
* poll.cc (poll): Change implementation to only call select() when no invalid file descriptors are specified.
2001-09-07* how-resources.texinfo: Add some additional words about where to findChristopher Faylor2-0/+11
documentation.
2001-09-07 * include/limits.h: Define PIPE_BUF.Corinna Vinschen3-2/+13
* syscalls.cc (fpathconf): Use PIPE_BUF instead of numerical constant. (pathconf): Ditto.
2001-09-07experiment.Christopher Faylor1-1/+1
2001-09-07* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure thatChristopher Faylor2-1/+6
prot_info_ptr is zeroed for later use.
2001-09-06* cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as aChristopher Faylor3-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.
2001-09-06Another in the how-it-works series.Christopher Faylor1-0/+22
2001-09-06Move appropriate variables to NO_COPY segment, throughout.Christopher Faylor17-27/+31
2001-09-06Remove initialization of static or global values to zero, throughout. ThisChristopher Faylor20-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.
2001-09-06* cygheap.h (init_cygheap): Move bucket array here from cygheap.cc.Christopher Faylor11-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.
2001-09-06* Makefile.in (dumper): Change logic for libbfd and libintl so that they willChristopher Faylor3-5/+11
be found either in the build tree or the installed directory. * mkpasswd.c (enum_users): Add a comment as a password for NT.
2001-09-06Revert inadvertently checked in files.Christopher Faylor2-11/+1