aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2005-11-18* include/cygwin/sys_time.h: Move futimes and lutimes declaration here fromChristopher Faylor2-1/+8
newlib.
2005-11-18* times.cc (timezone): Put back (void).Christopher Faylor3-1/+20
* include/cygwin/time.h: Add more cygwin stuff from newlib.
2005-11-18* include/cygwin/sys_time.h: Rename from include/cygwin/time.h.Christopher Faylor3-4/+34
* include/cygwin/time.h: New file.
2005-11-182005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net>Danny Smith1-0/+8
* include/winuser.h (GetClassLongPtr{AW}): Add prototypes. (SetClassLongPtr{AW}): Likewise. (GCLP_*): Add GetClassLongPtr defines. * lib/user32.def (GetClassLongPtr{AW}): Add stubs. (SetClassLongPtr{AW}): Likewise.
2005-11-182005=11-18 Brian Gunlogson <gmb300@users.sourceforge.net>Danny Smith2-0/+19
* include/winuser.h (GetClassLongPtr{AW}): Add prototypes. (SetClassLongPtr{AW}): Likewise. (GCLP_*): Add GetClassLongPtr defines. * lib/user32.def (GetClassLongPtr{AW}): Add stubs. (SetClassLongPtr{AW}): Likewise.
2005-11-17* fork.cc (fork): Move top-of-stack calculation later.Christopher Faylor3-8/+16
* pinfo.cc (_pinfo::set_ctty): Use __ctty to print current console in debugging output.
2005-11-17 * fhandler_tty.cc (fhandler_tty_slave::open): Don't expect thatCorinna Vinschen2-7/+15
service applications have no window station attached.
2005-11-16* times.cc (hires_ms::prime): Don't escalate the priority.Christopher Faylor2-6/+10
2005-11-14* include/sys/elf64.h: Fix types to reflect linux usage.Christopher Faylor3-38/+47
2005-11-14* fhandler.h (fhandler_console::fixup_after_fork_exec): Define with additionalChristopher Faylor3-9/+20
bool parameter. (fhandler_console::fixup_after_exec): Accommodate fixup_after_fork_exec's parameter. (fhandler_console::fixup_after_fork): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork_exec): Avoid opening new console only when close_on_exec AND execing.
2005-11-14* fhandler.h (fhandler_console::fixup_after_fork_exec): Declare new function.Christopher Faylor6-40/+24
(fhandler_console::fixup_after_fork): Use fixup_after_fork_exec. (fhandler_console::fixup_after_exec): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork): Delete definition. (fhandler_console::fixup_after_fork_exec): Rename from fixup_after_exec. * pinfo.cc (_pinfo::set_ctty): Don't play with console count here. * syscalls.cc (close_all_files): Don't close cygheap ctty if hExeced since the child will be copying information from us. (setsid): Use myctty() rather than raw ctty #.
2005-11-14* cygheap.h (init_cygheap::manage_console_count): Declare new function.Christopher Faylor18-71/+148
(init_cygheap::console_count): Renamed from open_fhs. Make private. * cygheap.cc (init_cygheap::manage_console_count): Define new function. * dtable.cc (dtable::fixup_after_exec): Always call fixup_after_exec on elements of fd even when they are about to be closed. * fhandler.h (report_tty_counts): Remove open_fhs from debugging output. * fhandler_console.cc (fhandler_console::open): Use manage_console_count rather than manipulating count directly. (fhandler_console::close): Ditto. (fhandler_console::fixup_after_fork): Ditto. (fhandler_console::fixup_after_exec): Ditto. Don't close handles if close_on_exec. * fhandler_tty.cc (fhandler_tty_slave::open): Use manage_console_count() rather than manipulating count directly. Reflect change in arguments to report_tty_counts(). (fhandler_tty_slave::close): Ditto for both. (fhandler_tty_slave::dup): Ditto for both. (fhandler_tty_slave::ioctl): Use myctty() rather than raw ctty #. (fhandler_tty_slave::fixup_after_fork): Reflect change in arguments to report_tty_counts(). (fhandler_tty_master::init_console): Use manage_console_count() rather than manipulating count directly. * fhandler_clipboard.cc (fhandler_dev_clipboard::fixup_after_exec): Don't perform any operations if close_on_exec. * fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_exec): Ditto. * fhandler_raw.cc (fhandler_dev_raw::fixup_after_exec): Ditto. * fhandler_serial.cc (fhandler_serial::fixup_after_exec): Ditto. * pinfo.h (_pinfo::_ctty): Declare new function. (myctty): Declare new macro. (__ctty): Declare new macro. * pinfo.cc (_pinfo::_ctty): Define new function. (_pinfo::set_ctty): Use manage_console_count() rather than manipulating count directly. * signal.cc (kill_pgrp): Use myctty() and __ctty() macros rather than raw ctty #. * syscalls.cc (setsid): Ditto. Use manage_console_count() rather than manipulating count directly.
2005-11-13 * fhandler_socket.cc (fhandler_socket::recvfrom): Just return 0 (EOF)Corinna Vinschen3-2/+22
in case of WSAESHUTDOWN. (fhandler_socket::recvmsg): Ditto. * poll.cc (poll): Set revents to POLLIN instead of POLLHUP. Add comment.
2005-11-12 * include/commdlg.h (OPENFILENAMEW): Add members forDanny Smith2-4/+16
_WIN32_WINNT >= 0x0500. (OPENFILENAMEA): Modify whitespace. Ansify comment.
2005-11-12 * include/wingdi.h (GetICMProfile{AW}): Correct prototype.Danny Smith2-2/+8
Thanks to: Paul J Lucas
2005-11-11* cygheap.h (init_cygheap::_gtod): Remove.Christopher Faylor8-58/+145
* cygwin.din: Export clock_getres and clock_setres. * hires.h (hires_ms::minperiod): Delete declaration. (hires_ms::began_period): Ditto. (hires_ms::prime): Make void. (hires_ms::resolution): Just define here. (hires_ms::usecs): Remove unneeded argument. (gtod): Redeclare as a variable. * timer.cc (timer_thread): Eliminate argument to gtod.usecs(). (timer_tracker::gettime): Ditto. (timer_tracker::settime): Ditto. * times.cc (gettimeofday): Ditto. (hires_ms::began_period): Delete declaration. (hires_us::prime): Remove debugging. (hires_ms::prime): Make void. Eliminate period stuff. (hires_ms::usecs): Eliminate argument to gtod.usecs(). (hires_ms::resolution): New function. (clock_getres): Ditto. (clock_setres): Ditto. * version.h: Bump API version to 143. * include/cygwin/time.h: New file.
2005-11-11* times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now.Christopher Faylor3-1/+13
(hires_ms::usecs): Call prime if haven't called began_period(). * param.h: Don't define stuff that is already defined in endian.h.
2005-11-10* include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin.Christopher Faylor2-2/+7
2005-11-10 * bsd_helper.cc (securityinit): New function. Move initializationCorinna Vinschen8-61/+210
of security related variables from ipcinit here. * bsd_helper.h (securityinit): Add prototype. * cygserver.cc (main): Call securityinit right after wincap.init. * process.cc (process_cache::process): Fix maximum process condition. * README: Add description for new -p/--process-cache option. * bsd_helper.cc (default_tun_check): Add kern.srv.process_cache_size entry to tunable_params. Set max value of kern.srv.request_threads to 310. * cygserver.cc (SERVER_VERSION): Set to 1.20. (print_usage): Print usage of new parameter -p. (main): Add process cache parameter handling. Accomodate new max value of request threads. * cygserver.conf: Add kern.srv.process_cache_size tunable parameter. Accomodate new max value of kern.srv.request_threads. * process.cc: Fix a comment. (process_cache::process_cache): Add max process cache size parameter. Change _cache_add_trigger to manual reset event. (struct pcache_wait_t): New struct used as parameter to pcache_wait_thread. (pcache_wait_thread): New thread function used for threaded process cache. (process_cache::wait_for_processes): Use threaded waiting if number of processes to wait for is bigger than 62. Always check all processes to avoid race under heavy load. (process_cache::sync_wait_array): Remove useless assert. Reset _cache_add_trigger right at the start since it's manual reset now. Accomodate threaded waiting. * process.h (process_cache::process_cache): Add max_procs parameter. (process_cache::_max_process_count): New member. (process_cache::_wait_array: Raise to allow up to 5 wait threads. (process_cache::_process_array): Ditto.
2005-11-10 * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.Corinna Vinschen2-1/+5
2005-11-10 Fix dates.Corinna Vinschen1-2/+2
2005-11-10 * syslog.cc (setlogmask): Don't mask the mask.Corinna Vinschen2-2/+7
(vsyslog): Fix priority check.
2005-11-10 * include/cygwin/signal.h: Add missing sigrelse prototype.Corinna Vinschen2-0/+5
2005-11-08* fhandler_base.cc (fhandler_base::readv): Free buf, not a pointer into theChristopher Faylor2-3/+9
middle of buf.
2005-11-08fix entryChristopher Faylor1-1/+1
2005-11-08* memmem.cc: New file.Christopher Faylor5-3/+79
* include/cygwin/version.h: Bump API version number to 142. * cygwin.din: Export memmem.
2005-11-08* environ.cc (spenvs): Make "SYSTEMDRIVE" an "always export".Christopher Faylor2-1/+5
2005-11-07 * times.cc (futimes): Redirect to utimes_worker if given fileCorinna Vinschen2-1/+8
descriptor is opened R/O.
2005-11-06* dcrt0.cc (dll_crt0_0): Initialize security data first so that it can be usedChristopher Faylor2-1/+6
by subsequent handle creation.
2005-11-04* cygheap.h (init_cygheap::_gtod): New hires_ms element.Christopher Faylor6-8/+40
* hires.h (hires_ms::minperiod): Remove static designation. (hires::began_period): New field. * signal.cc: Include headers required for cygheap.h now that gtod lives in the cygheap. * timer.c: Ditto. * times.cc (gtod): Delete variable. (gtod::minperiod): Ditto. (gtod::began_period): Define. (hires_ms::prime): Add more debugging output. Call timeBeginPeriod only when !began_period.
2005-11-04* times.cc (hires_ms::prime): More debugging.Christopher Faylor3-12/+27
(hires_ms::usecs): Ditto.
2005-11-042005-11-04 Michael Jung <mjung@iss.tu-darmstadt.de>Danny Smith2-0/+5
* lib/shell32.c (CLSID_ShellFSFolder): Add GUID.
2005-11-04* times.cc (stupid_printf): Define and use throughout -- temporarily.Christopher Faylor2-19/+24
2005-11-03* times.cc (hires_ms::prime): Add lots of temporary debugging output.Christopher Faylor2-0/+13
2005-11-03 * lib/crypt32.def (CertOIDToAlgId, CertAlgIDToOID, CryptProtectData,Danny Smith2-5/+20
CryptUnprotectData, CryptDecodeObjectEx, CryptEncodeObjectEx, CryptRegisterOIDFunction, CryptUnregisterOIDFunction): Add stubs. Thanks to: F Richter <res2002 at users dot sourceforge dot net> Fix some ChangeLog whitespace.
2005-11-03* times.cc (hires_ms::minperiod): Make copy-on-fork.Christopher Faylor2-4/+20
(gettimeofday): Remove temporary debugging. (hires_us::prime): Add lots of temporary debugging output.
2005-11-02* times.cc (gettimeofday): Add temporary debugging output.Christopher Faylor2-0/+6
2005-11-01* include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING.Christopher Faylor3-5/+14
* exceptins.cc (sigpacket::process): Send a _CYGWIN_SIGNAL_STRING to gdb if the process is being debugged. A WIP.
2005-10-302005-10-29 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe4-4/+10
* include/objbase.h: Fix typo. * include/w32api.h: Increment version to 3.5. * Makefile.in: Ditto.
2005-10-29* exceptions.cc (signal_exit): Eliminate setting of main thread priority sinceChristopher Faylor4-17/+20
process lock should make that unnecessary. * fork.cc (stack_base): Eliminate. (frok::parent): Subsume stack_base and just set stack stuff here. Report on priority class in debugging output. * spawn.cc (spawn_guts): Report on priority class in debugging output.
2005-10-29* fork.cc (frok::child): Change order of cleanup prior to return.Christopher Faylor4-7/+18
(fork): Save more of the stack. * gendef: Fix some comments. * sigproc.cc (wait_sig): Clarify debug output.
2005-10-29* child_info.h (CHILD_INFO_MAGIC): Reset.Christopher Faylor2-1/+5
2005-10-272005-10-27 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe3-3/+8
* include/w32api.h: Increment version to 3.4. * Makefile.in: Ditto.
2005-10-272005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe3-3/+8
* Include/_mingw.h: Increment version to 3.9. * Makefile.in: Ditto.
2005-10-24* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.Christopher Faylor2-1/+5
2005-10-24 * spawn.cc (spawn_guts): Don't leave the function with return insideCorinna Vinschen2-2/+9
pthread cleanup brackets.
2005-10-24* cygheap.h (cygheap_fdenum): Remove start_fd stuff.Christopher Faylor4-6/+12
(cygheap_fdenum::rewind): Ditto. * pipe.cc (fhandler_pipe::open): Lock fdtab while enumerating. * times.cc (utimes_worker): Ditto.
2005-10-24add missing ChangeLog entryChristopher Faylor1-0/+1
2005-10-23* cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or sufferChristopher Faylor9-66/+86
deadlocks. (class locked_process): Move to another header. * sync.h (lock_process): Define here. * cygtls.cc (_cygtls::fixup_after_fork): Reset spinning state as well as stacklock state. * dcrt0.cc (lock_process::locker): Define. (dtable::lock_cs): Delete. * dtable.cc (dtable_init): Eliminate call to init_lock(). (dtable::fixup_after_fork): Ditto. (dtable::init_lock): Delete definition. * dtable.h (dtable::init_lock): Delete declaration. (dtable::lock): Use process lock rather than dtable-specific lock. (dtable::unlock): Ditto. * sigproc.cc (sigproc_init): Minor change to debugging output. * times.cc (utime_worker): Use build_fh_pc rather than reinterpreting the posix path name again. Return any error from path_conv immediately.
2005-10-22 * fhandler_socket.cc (fhandler_socket::connect): Don't restrictCorinna Vinschen3-16/+35
WSAEINVAL -> WSAEISCONN conversion to nonblocking sockets. (fhandler_socket::accept): Use event driven technique to implement interuptible accept. (fhandler_socket::wait): Allow FD_ACCEPT handling. * net.cc (cygwin_accept): Remove workaround for allowing blocking accept. That's entirely in fhandler_socket::accept now.