Danny Smith
5f27904928
* include/commdlg.h (OPENFILENAMEW): Add members for
...
_WIN32_WINNT >= 0x0500.
(OPENFILENAMEA): Modify whitespace. Ansify comment.
2005-11-12 09:49:00 +00:00
Danny Smith
a9f25ffad8
* include/wingdi.h (GetICMProfile{AW}): Correct prototype.
...
Thanks to: Paul J Lucas
2005-11-12 01:10:12 +00:00
Christopher Faylor
ecb908f699
* cygheap.h (init_cygheap::_gtod): Remove.
...
* 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 16:42:15 +00:00
Christopher Faylor
b600843ae4
* times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now.
...
(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-11 04:07:30 +00:00
Christopher Faylor
c845f0c182
* include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin.
2005-11-10 21:17:15 +00:00
Corinna Vinschen
2d015bd67c
* bsd_helper.cc (securityinit): New function. Move initialization
...
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 15:04:06 +00:00
Corinna Vinschen
8032f81502
* bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.
2005-11-10 10:50:46 +00:00
Corinna Vinschen
11b2d6cf16
Fix dates.
2005-11-10 10:36:45 +00:00
Corinna Vinschen
2d5067835e
* syslog.cc (setlogmask): Don't mask the mask.
...
(vsyslog): Fix priority check.
2005-11-10 10:34:49 +00:00
Corinna Vinschen
03ea3f832e
* include/cygwin/signal.h: Add missing sigrelse prototype.
2005-11-10 09:12:22 +00:00
Christopher Faylor
8eb445cfd3
* fhandler_base.cc (fhandler_base::readv): Free buf, not a pointer into the
...
middle of buf.
2005-11-08 23:25:55 +00:00
Christopher Faylor
14f7b567cc
fix entry
2005-11-08 22:08:59 +00:00
Christopher Faylor
42cd8528aa
* memmem.cc: New file.
...
* include/cygwin/version.h: Bump API version number to 142.
* cygwin.din: Export memmem.
2005-11-08 22:08:39 +00:00
Christopher Faylor
1f99dd3ecf
* environ.cc (spenvs): Make "SYSTEMDRIVE" an "always export".
2005-11-08 16:32:09 +00:00
Corinna Vinschen
39f7ae0616
* times.cc (futimes): Redirect to utimes_worker if given file
...
descriptor is opened R/O.
2005-11-07 17:08:08 +00:00
Christopher Faylor
2b91e0dac4
* dcrt0.cc (dll_crt0_0): Initialize security data first so that it can be used
...
by subsequent handle creation.
2005-11-06 14:02:33 +00:00
Christopher Faylor
72319550c1
* cygheap.h (init_cygheap::_gtod): New hires_ms element.
...
* 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 20:45:56 +00:00
Christopher Faylor
f359a29fc8
* times.cc (hires_ms::prime): More debugging.
...
(hires_ms::usecs): Ditto.
2005-11-04 17:38:32 +00:00
Danny Smith
39dd399c50
2005-11-04 Michael Jung <mjung@iss.tu-darmstadt.de>
...
* lib/shell32.c (CLSID_ShellFSFolder): Add GUID.
2005-11-04 02:19:26 +00:00
Christopher Faylor
86548162b0
* times.cc (stupid_printf): Define and use throughout -- temporarily.
2005-11-04 02:01:45 +00:00
Christopher Faylor
314f743e1e
* times.cc (hires_ms::prime): Add lots of temporary debugging output.
2005-11-03 14:59:23 +00:00
Danny Smith
cdf5300155
* lib/crypt32.def (CertOIDToAlgId, CertAlgIDToOID, CryptProtectData,
...
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 08:21:18 +00:00
Christopher Faylor
369adcf72f
* times.cc (hires_ms::minperiod): Make copy-on-fork.
...
(gettimeofday): Remove temporary debugging.
(hires_us::prime): Add lots of temporary debugging output.
2005-11-03 02:41:51 +00:00
Christopher Faylor
1c2812f80e
* times.cc (gettimeofday): Add temporary debugging output.
2005-11-02 18:28:40 +00:00
Christopher Faylor
b7bb9f5fde
* include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING.
...
* exceptins.cc (sigpacket::process): Send a _CYGWIN_SIGNAL_STRING to gdb if the
process is being debugged. A WIP.
2005-11-01 05:55:30 +00:00
Chris Sutcliffe
ecb476c165
2005-10-29 Chris Sutcliffe <ir0nh34d@users.sf.net>
...
* include/objbase.h: Fix typo.
* include/w32api.h: Increment version to 3.5.
* Makefile.in: Ditto.
2005-10-30 00:07:58 +00:00
Christopher Faylor
0dc249751d
* exceptions.cc (signal_exit): Eliminate setting of main thread priority since
...
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 20:33:59 +00:00
Christopher Faylor
f02b22dcee
* fork.cc (frok::child): Change order of cleanup prior to return.
...
(fork): Save more of the stack.
* gendef: Fix some comments.
* sigproc.cc (wait_sig): Clarify debug output.
2005-10-29 15:19:34 +00:00
Christopher Faylor
c85263884a
* child_info.h (CHILD_INFO_MAGIC): Reset.
2005-10-29 15:05:55 +00:00
Chris Sutcliffe
cc2ac099b5
2005-10-27 Chris Sutcliffe <ir0nh34d@users.sf.net>
...
* include/w32api.h: Increment version to 3.4.
* Makefile.in: Ditto.
2005-10-27 23:28:21 +00:00
Chris Sutcliffe
8cc9ac230c
2005-10-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* Include/_mingw.h: Increment version to 3.9.
* Makefile.in: Ditto.
2005-10-27 21:21:58 +00:00
Christopher Faylor
6573722005
* pinfo.cc (_pinfo::fds): Lock fdtab while enumerating.
2005-10-24 15:42:14 +00:00
Corinna Vinschen
6485bf0b33
* spawn.cc (spawn_guts): Don't leave the function with return inside
...
pthread cleanup brackets.
2005-10-24 15:17:54 +00:00
Christopher Faylor
16bbf0cc57
* cygheap.h (cygheap_fdenum): Remove start_fd stuff.
...
(cygheap_fdenum::rewind): Ditto.
* pipe.cc (fhandler_pipe::open): Lock fdtab while enumerating.
* times.cc (utimes_worker): Ditto.
2005-10-24 15:09:07 +00:00
Christopher Faylor
0f9a8fc652
add missing ChangeLog entry
2005-10-24 00:02:05 +00:00
Christopher Faylor
82c925af80
* cygheap.h (cygheap_fdenum::cygheap_fdenum): Record locked state or suffer
...
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-23 23:47:45 +00:00
Corinna Vinschen
c2c020d1fb
* fhandler_socket.cc (fhandler_socket::connect): Don't restrict
...
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.
2005-10-22 16:02:15 +00:00
Corinna Vinschen
152a9caf58
* fhandler.h (class fhandler_socket): Add timeout parameter to wait()
...
method.
* fhandler_socket.cc (fhandler_socket::connect): Use event driven
technique (prepare/wait/release) to implement interuptible connect.
(fhandler_socket::wait): Add timeout parameter. Allow FD_CONNECT
handling.
* net.cc (cygwin_connect): Remove braindead workaround for allowing
blocking connect. That's entirely in fhandler_socket::connect now.
2005-10-22 15:11:49 +00:00
Corinna Vinschen
88d30f0b2f
* include/cygwin/version.h: Fix typo.
2005-10-22 10:28:02 +00:00
Christopher Faylor
a591389de3
* dir.cc (rmdir): Eliminate nonsensical code.
...
* fork.cc (fork): Move exit debug_printf to last statement.
2005-10-21 14:08:19 +00:00
Corinna Vinschen
81bd1ca723
* cygwin.din (futimes): Export.
...
(lutimes): Export.
* times.cc (utimes_worker): Created from utimes, add nofollow flag
to implement utimes and lutimes.
(utimes): Just call utimes_worker.
(lutimes): New function.
(futimes): Ditto.
* include/cygwin/version.h: Bump API minor version.
2005-10-20 14:26:23 +00:00
Christopher Faylor
0cdcb2345a
* sigproc.cc (child_info::sync): Move check for !wr_proc_pipe lower.
...
* spawn.cc (spawn_guts): Correct check for top-level process.
2005-10-19 22:25:46 +00:00
Christopher Faylor
fece95f7f3
* sigproc.cc (child_info::sync): Move check for !wr_proc_pipe lower.
...
* spawn.cc (spawn_guts): Correct check for top-level process.
2005-10-19 22:13:04 +00:00
Corinna Vinschen
c928a06464
* autoload.cc: Revert loading rcmd, rexec, rresvport and inet_network
...
from wsock32.dll since these symbols are not exported from ws2_32.dll.
2005-10-19 19:55:31 +00:00
Christopher Faylor
b27f0b2cf9
* times.cc (utimes): Only consider fds opened with write access.
2005-10-19 17:11:25 +00:00
Christopher Faylor
5a90915d41
* fhandler_disk_file.cc (fhandler_base::utimes_fs): Use existing handle if
...
fhandler has one.
* times.cc (utimes): Scan open fds for matching paths and use existing fhandler
if one exists.
2005-10-19 16:50:43 +00:00
Christopher Faylor
b3982520d3
* pinfo.cc (_pinfo::dup_proc_pipe): Make warning more severe by actually
...
printing it.
(_pinfo::alert_parent): Fix comment. Don't send to parent if we are in an exec
stub.
2005-10-19 14:19:37 +00:00
Christopher Faylor
b72a5c0767
* cygtls.cc (handle_threadlist_exception): Improve diagnostic output.
...
* sigproc.cc (child_info::sync): Only clear hProcess when execing.
(wait_sig): Protect readsig handle.
2005-10-19 00:22:08 +00:00
Corinna Vinschen
1f5c3042d5
* autoload.cc (NtLockVirtualMemory): Import.
...
(NtUnlockVirtualMemory): Import.
(GetProcessWorkingSetSize): Import.
(SetProcessWorkingSetSize): Import.
* cygwin.din (mlock): Export.
(munlock): Export.
* mmap.cc (mlock): New function.
(munlock): Ditto.
* ntdll.h (STATUS_WORKING_SET_QUOTA): Define.
(LOCK_VM_IN_WSL): Define.
(LOCK_VM_IN_RAM): Define.
(NtLockVirtualMemory): Declare.
(NtUnlockVirtualMemory): Declare.
* sysconf.cc (sysconf): Implement _SC_MEMLOCK_RANGE.
* wincap.h: Implement has_working_virtual_lock throughout.
* wincap.cc: Ditto.
* include/cygwin/version.h: Bump API minor version.
* include/sys/mman.h (mlock): Declare,
(munlock): Declare.
2005-10-18 18:51:33 +00:00
Christopher Faylor
a93b4154f1
* sigproc.cc (child_info::sync): Use correct name when closing to prevent
...
warnings when DEBUGGING.
* spawn.cc (spawn_guts): Set myself.hProcess to pi.hProcess since this may have
been zeroed by the previous sync.
2005-10-18 15:13:13 +00:00