aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2000-11-05* pinfo.cc (winpids:add): New method.Christopher Faylor5-46/+101
(winpids::enumNT): New method renamed from EnumProcessesNT. Use add method to add elements to the lists. (winpids::enum9x): New method renamed from EnumProcesses9x. Use add method to add elements to the lists. (winpids::enum_init): Accept 'winpid' parameter to control whether to add all windows pids to the list. (winpids::release): New method. * pinfo.h (winpids): Reflect above changes. * signal.cc (kill_pgrp): Ditto. * external.cc (fillout_pinfo): Ditto.
2000-11-05* exceptions.cc (handle_sigsuspend): Record frame here for signalling.Christopher Faylor3-6/+12
(set_process_mask): Ditto.
2000-11-04* sigproc.cc (wait_subproc): Still more debugging cleanup.Christopher Faylor2-4/+8
2000-11-04 * hashtab.h (struct htab): Add member return_allocation_failure.Hans-Peter Nilsson2-0/+16
(htab_try_create): New prototype. Mention which functions may return NULL when this is used.
2000-11-04* pinfo.cc (EnumProcessesNT): Avoid 0 pids.Christopher Faylor5-30/+39
(EnumProcesses9x): Ditto. * sigproc.cc (remove_childe): Eliminate. (proc_subproc): Move remove_child stuff here. (wait_subproc): Synchronize with proc_subproc when error occurs. Add more debugging info. * sigproc.h (procstuff): Add an entry. * spawn.cc (spawn_guts): Add sigframe here.
2000-11-04* lib/Makefile.in: Install header files in w32api subdirectory.Christopher Faylor2-4/+10
2000-11-04* sigproc.cc (wait_subproc): Refine debug output.Christopher Faylor2-3/+10
2000-11-03 * hashtab.h: Change void * to PTR where necessary.Hans-Peter Nilsson2-5/+9
2000-11-03* pinfo.cc (pinfo::init): Reverse order of setting status and pid info in anChristopher Faylor10-22/+59
execed process to avoid a race. * sigproc.cc (wait_subproc): Print more info when a WFSO error occurs. * automode.c: New file. * syscalls.cc (close_all_files): Streamline slightly. * cygheap.cc (ccalloc): Clear *entire* allocated array.
2000-11-02Add support for -storm-chaosNick Clifton2-3/+7
2000-11-02* ntdll.h: Remove IO_COUNTERS definition since it is now in winnt.h.Christopher Faylor2-10/+4
2000-11-02* pinfo.cc (EnumProcessesNT): New function. Eliminates dependence on psapi.h.Christopher Faylor5-65/+228
(EnumProcesses9x): Rename from EnumProcessesW95. Change arguments to be more useful for cygwin. (winpids::init): Accomodate argument changes. (enum_init): Ditto. * pinfo.h (winpids): Make pidlist dynamically extendable by storing it as a pointer and remembering the size. * ntdll.h: Add extra definitions needed for EnumProcessesNT. Reformat via 'indent'.
2000-11-02* exceptions.cc (interruptible): Remove obsolete tests.Christopher Faylor3-35/+46
(sigreturn): Construct pseudo-frame-pointer so that signal handler can figure out where to put return address when signals are coming in quickly. * path.cc (cwdstuff::get): Allow length 0 buffer length when buffer when NULL.
2000-11-02 * kill.cc (main): Return 1 in case of errors.Corinna Vinschen2-1/+7
2000-11-01 * CONTRIBUTIONS: New file.Earnie Boyd4-2/+18
* README: Change the maintained by header. * TODO: Add a note about checking the TODO.
2000-11-01 * include/basetyps.h: add comment for GUID_DEFINEDEarnie Boyd23-386/+1994
* include/lm.h: add includes for lmerr.h and lmserver.h * include/lmcons.h: add W2K typedefs LMSTR, LMCSTR * include/lmerr.h: add error codes * include/lmserver.h: replace LPTSTR with LPWSTR, LPTCSTR with LPWCSTR in structures and prototypes * include/lmshare.h: ditto * include/lmuse.h: ditto * include/lmstats.h: ditto * include/oleauto.h: add function prototype SystemTimeToVariantTime * include/winbase.h: change first argument of CommConfigDialog to const * include/windowsx.h: add macros defining FAR versions of mem and string functions for porting from Win16 code * include/winioctl.h: added IOCTL_STORAGE defines * include/winnetwk.h: added WNNC_NET flags * include/winnt.h: add include of <basetsd.h>; add structs; add pointer typedefs for TOKEN structs * include/winsock.h: add guard around BSD-ish typedefs * include/wtypes.h: new VARENUM enums, new WIN32/WIN64 compat. macros * include/basetsd.h: new file * include/raserror.h: ditto * include/rassapi.h: ditto * include/ras.h: ditto comment from Earnie: replaced original ras.h contribution with Danny's contribution as it is more complete. * include/rpcndr.h: add default definition for __RPCNDR_H_VERSION__
2000-10-31* path.h (has_exec_chars): Standard function for checking for executable magicChristopher Faylor4-6/+22
numbers. * path.cc (symlink_info::check): Use the above function. * fhandler.cc (fhandler_disk_file::open): Ditto.
2000-10-31* path.cc (_readlink): Return ENOENT when file does not exist.Christopher Faylor2-0/+10
2000-10-31 * fhandler.h (fhandler_dev_raw): Add method `fixup_after_exec'.Corinna Vinschen2-0/+5
2000-10-31 * fhandler.h (fhandler_dev_raw): Add definition for methodCorinna Vinschen4-19/+47
`fixup_after_fork'. * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Add `set_need_fixup_after_fork' call. (fhandler_dev_raw::~fhandler_dev_raw): Revert to user space allocation. (fhandler_dev_raw::open): Ditto. (fhandler_dev_raw::dup): Ditto. Reset buffer pointer. (fhandler_dev_raw::fixup_after_fork): New function. * fhandler_tape.cc (fhandler_dev_tape::open): Revert to user space memory allocation. (fhandler_dev_tape::ioctl): Ditto. Change behaviour on MTSETBLK when new size is 1.
2000-10-31 * fhandler_tape.cc (fhandler_dev_tape::open): Fix memory allocation.Corinna Vinschen2-3/+10
Use Cygwin heap instead of user heap. (fhandler_dev_tape::ioctl): Ditto.
2000-10-31* pinfo.cc (enum_init): Don't suffer silently if we can't load the processChristopher Faylor2-3/+17
enumerators.
2000-10-31Update section "Why is make behaving badly?"David Starks-Browning1-24/+22
2000-10-31minor typoDavid Starks-Browning1-1/+1
2000-10-30* signal.cc (kill_pgrp): Revert 25-Oct change.Christopher Faylor2-1/+8
(kill_worker): Ditto.
2000-10-30Add noconfigure dirs for m68[hc]{11|12} targets.Nick Clifton2-1/+9
2000-10-30* include/cygwin/version.h: Bump DLL minor version number to 6.Christopher Faylor2-1/+5
2000-10-30* libc/include/stdlib.h: Avoid declaring cfree under Cygwin.Christopher Faylor3-16/+12
* libc/include/malloc.h: Ditto. Also remove obsolete declaration.
2000-10-28Whitespace cleanup.Christopher Faylor45-301/+196
* configure.in: Eliminate subdir stuff. * configure: Regenerate. * include/getopt.h (option): Make name field 'const'.
2000-10-28* Makefile.in: Accomodate newer gcc's which require linking of c++ programsChristopher Faylor6-53/+63
with g++. Fixup output for some compilations. * cygcheck.cc: Respond to compiler warnings. * dumper.cc (main): Ditto. * parse_pe.cc (exclusion::sort_and_check): Ditto. * setfacl.cc (getaclentry): Ditto.
2000-10-28Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor15-686/+764
2000-10-28* strace.cc (main): Add a '-b' option.Christopher Faylor2-2/+14
2000-10-27 * autoload.cc: New file keeping all autoload stuff.Corinna Vinschen7-329/+326
* Makefile.in: Add autoload.o to dependencies. * dcrt0.cc: Move all autoload stuff to autoload.cc. * fhandler_mem.cc: Ditto. * net.cc: Ditto. * uinfo.cc: Ditto.
2000-10-27* sigproc.cc (wait_sig): Add braces to avoid confusion.Christopher Faylor3-5/+11
2000-10-27 * fhandler_socket.cc: New file.Corinna Vinschen6-300/+324
* Makefile.in: Add fhandler_socket.o to dependencies. * fhandler.h: Change comment. * net.cc Move all fhandler_socket methods to fhandler_socket.cc. * winsup.h: Add declaration for `ws2_32_handle'.
2000-10-26 * dtable.cc (dtable::release): Check for socket. ChangeCorinna Vinschen7-42/+260
cnt_need_fixup_before accordingly. (dtable::dup2): Ditto. (dtable::fixup_before_fork): New method. (dtable::fixup_before_exec): Ditto. * dtable.h (class dtable): Add member `cnt_need_fixup_before'. Add definition for methods `dec_need_fixup_before', `inc_need_fixup_before', `need_fixup_before', `fixup_before_exec' and `fixup_before_fork'. * fhandler.h (class fhandler_base): Slight rearrangements. Add definitions for methods `fixup_before_fork_exec'. (class fhandler_socket): Eliminate superfluous constructor. Add member `prot_info_ptr'. Add destructor. Add definitions for methods `dup', `fixup_before_fork_exec', `fixup_after_fork' and `fixup_after_exec'. * fork.cc (fork_parent): Care for file types which need a fixup before fork. Start child in suspended state then. * net.cc: New global variable `ws2_32_handle' and `wsadata'. (fdsock): Check for Winsock version. Call `set_socket_inheritance' only if Winsock version < 2.0. Care for `need_fixup' count in fdtab. (cygwin_socket): Eliminate call to `set_socket_inheritance'. (cygwin_accept): Ditto. (cygwin_rcmd): Ditto. (cygwin_rresvport): Ditto. (cygwin_rexec): Ditto. (socketpair): Ditto. (fhandler_socket::fhandler_socket): Set `need_fork_fixup'. Allocate space for the WSAPROTOCOL_INFOA struct used in fixup. (fhandler_socket::~fhandler_socket): New destructor. (fhandler_socket::fixup_before_fork_exec): New method. (fhandler_socket::fixup_after_fork): Ditto. (fhandler_socket::dup): Ditto. (wsock_init): New static function. (LoadDLLinitfunc (wsock32)): Rearranged. (LoadDLLinitfunc (ws2_32)): New function. (dummy_autoload): Add autoload statemants for `WSADuplicateSocketA' and `WSASocketA'. * spawn.cc (spawn_guts): Care for file types which need a fixup before exec. Start child in suspended state then.
2000-10-26 * ntsec.sgml: Slight changes. Fix some errors.Corinna Vinschen2-11/+16
2000-10-26 * ntsec.sgml: Changed the (now incorrect) hint that ntsec onlyCorinna Vinschen2-1/+8
uses access allowed ACEs.
2000-10-26* signal.cc (kill_pgrp): Don't limit sending of signals to stopped processesChristopher Faylor2-3/+7
when sig < 0. (kill_worker): Only send SIGCONT to stopped processes when sendSIGCONT.
2000-10-25* exceptions.cc (sig_handle): Just make sure that wait_sig loops when receivingChristopher Faylor2-1/+7
a SIGCONT. Don't block waiting for completion that will never occur.
2000-10-25Add comment.Christopher Faylor1-0/+1
2000-10-25* dtable.cc (dtable::fixup_after_exec): Use variable rather than constantlyChristopher Faylor2-7/+14
indexing into fds array. (dtable::fixup_after_fork): Ditto.
2000-10-25 * fhandler.cc (fhandler_base::fcntl): Treat O_NONBLOCK and OLD_O_NDELAYCorinna Vinschen3-10/+28
as exactly the same. If one is set, both are set. * net.cc (fhandler_socket::fcntl): Ditto.
2000-10-25* dcrt0.cc (do_exit): Remove debugging statement.Christopher Faylor2-2/+4
2000-10-25* dcrt0.cc (do_exit): Don't bother looking for pgrp children to send SIGHUP ifChristopher Faylor6-3/+28
process has never created any children. * fork.cc (fork): Set flag indicating that there is another process with our process group. * spawn.cc (spawn_guts): Ditto. * pinfo.h (set_has_pgid_children): New methods for setting when process has children in its process group. * syscalls.cc (setpgid): Clear has_gid_children if pgid changes.
2000-10-24 * ntdll.h: New file.Corinna Vinschen4-36/+94
* fhandler_mem.cc: Move ntdll.dll specific definitions and declarations to ntdll.h. * sysconf.cc (sysconf): Add support for _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and _SC_AVPHYS_PAGES.
2000-10-24 * libc/include/sys/unistd.h: Add defines for sysconf valuesCorinna Vinschen2-22/+32
_SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and _SC_AVPHYS_PAGES.
2000-10-24 * fhandler.cc (fhandler_base::fcntl): Behave properly when passedCorinna Vinschen4-10/+18
previous version of O_NDELAY. * syscalls.cc: Move OLD_O_NDELAY to winsup.h. * winsup.h: Define OLD_O_NDELAY now.
2000-10-24Update "How can I access other drives?" entry with details about ↵David Starks-Browning1-7/+17
--change-cygdrive-prefix and some other minor changes.
2000-10-24Update entry "What's the difference between packages in 'latest' and 'contrib'.David Starks-Browning1-0/+4