Christopher Faylor
8323a37d5d
* thread.cc (pthread::exit): Create dummy tls structure to hold _main_tls
...
contents if we've asked _main_tls to exit.
2011-08-24 14:23:38 +00:00
Chris Sutcliffe
b84aabf695
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/_mingw.h: Increment version to 3.20.
2011-08-23 22:59:35 +00:00
Chris Sutcliffe
99724a3258
2011-08-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* tlsmthread.c: Update to reflect changes in tlssup.c.
* tlssup.c: code clean-up.
2011-08-23 22:27:35 +00:00
Corinna Vinschen
58ef30a4e7
* poll.cc (poll): Don't return prematurely if invalid fds have been
...
encountered. Enforce timeout set to 0 in case of invalid fds. Take
number of invalid fds into account when returning.
2011-08-23 14:05:04 +00:00
Corinna Vinschen
247caa48ea
* fhandler_socket.cc (fhandler_socket::send_internal): Fix setting
...
nosignal flag. Convert ECONNABORTED on connection-oriented socket
to EPIPE, too.
2011-08-23 13:07:24 +00:00
Christopher Faylor
8f8977bb8b
* Makefile.in: Check for header file existence when building dumper.exe too.
2011-08-21 19:36:52 +00:00
Christopher Faylor
059f809e4b
* dtable.cc (conv_start_chars): Remove unneeded section attribute.
2011-08-21 18:45:07 +00:00
Yaakov Selkowitz
0cd08cee4b
* include/paths.h (_PATH_MAILDIR): Define.
...
(_PATH_SHELLS): Define.
2011-08-21 03:22:30 +00:00
Corinna Vinschen
f71c1cdb55
* fhandler_process.cc (format_process_maps): Define page protection
...
shortcuts RO, X, and WC. Use in creating access flag string. Don't
set type flag to 's' for copy-on-write pages, as on Linux.
2011-08-20 18:55:45 +00:00
Chris Sutcliffe
8d5b10a681
2011-08-20 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/_mingw.h: Increment version to 3.19.
2011-08-20 05:00:12 +00:00
Chris Sutcliffe
0ed575b596
2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/float.h: Modify guard to accomodate CLang.
Thanks to Ruben Van Boxem for the report.
2011-08-20 04:12:22 +00:00
Chris Sutcliffe
ea2b1b2ff0
2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* tlssup.c: Remove mingwm10.dll fallback.
2011-08-20 04:11:28 +00:00
Chris Sutcliffe
74604ab159
2011-08-19 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
...
* include/sys/types.h (ssize_t): Defined as int as opposed to long.
Thanks to bvassche for the report.
2011-08-20 01:38:16 +00:00
Yaakov Selkowitz
1165d4442d
* new-features.sgml (ov-new1.7.10): Document /proc/devices
...
and /proc/misc.
2011-08-19 20:06:28 +00:00
Yaakov Selkowitz
07797cc0d8
* devices.h (fh_devices): Define DEV_MISC_MAJOR, DEV_MEM_MAJOR,
...
DEV_SOUND_MAJOR. Use throughout.
* fhandler_proc.cc (proc_tab): Add /proc/devices and /proc/misc
virtual files.
(format_proc_devices): New function.
(format_proc_misc): New function.
2011-08-19 20:05:15 +00:00
Christopher Faylor
c8a66289e4
* dtable.cc: Mark some const variables as static.
...
* environ.cc (conv_start_chars): Move to shared cygwin region and initialize at
compile time.
(match_first_char): New generic function for querying conv_start_chars.
(posify_maybe): Rename from posify.
(environ_init): Remove conv_envvars initialization. Don't check
conv_start_chars, just allow posify_maybe to make the decision.
* fhandler_console.cc (__vt100_conv): Fix formatting. Mark as const.
2011-08-19 18:19:22 +00:00
Corinna Vinschen
aeeaae457b
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
...
using the device independent key code, rather than the device dependent
scan code.
2011-08-19 13:10:01 +00:00
Corinna Vinschen
17e1361aa3
* include/winuser.h: Ad missing MAPVK_xxx definitions.
2011-08-19 11:58:05 +00:00
Yaakov Selkowitz
28c2fbeed8
* sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
...
this is now defined in <sys/stat.h>.
2011-08-19 01:41:49 +00:00
Christopher Faylor
6072b95eeb
* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.
...
* init.cc: Reflect change to dll_crt0_0 in declaration.
2011-08-18 15:59:16 +00:00
Corinna Vinschen
8f19b4b64f
* dtable.cc (dtable::get_debugger_info): Add missing braces.
...
(dtable::stdio_init): Fix incorrect negation of not_open(2) condition.
2011-08-18 09:16:50 +00:00
Pierre Humblet
927761a425
2011-08-16 Pierre Humblet <Pierre.Humblet@ieee.org>
...
* net.cc (gethostby_helper): Remove DEBUGGING code from and
streamline the second pass.
2011-08-16 23:32:18 +00:00
Corinna Vinschen
833db5481f
* dlfcn.cc (dlopen): Reimplement RTLD_NODELETE for Windows 2000 using
...
internal datastructures. Explain the code.
* ntdll.h (struct _LDR_DATA_TABLE_ENTRY): Define.
(struct _PEB_LDR_DATA): Define.
(struct _PEB): Change PVOID LoaderData to PPEB_LDR_DATA Ldr.
* fhandler_process.cc (format_process_maps): Call NtQueryVirtualMemory
with valid return length pointer. Explain why.
2011-08-16 20:08:34 +00:00
Corinna Vinschen
9d3b795b47
* new-features.sgml (ov-new1.7.10): Document new RTLD flags.
2011-08-16 14:51:06 +00:00
Corinna Vinschen
c429beb296
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2011-08-16 14:48:38 +00:00
Corinna Vinschen
6bc64eac26
* autoload.cc (GetModuleHandleExW): Define.
...
* dlfcn.cc: Throughout mark exported symbols as extern "C".
(dlopen): Unignore flags argument. Define ret to NULL. Fix typo in
comment. Support Glibc flags RTLD_NOLOAD and RTLD_NODELETE.
* include/dlfcn.h: Clean up comments.
(RTLD_NODELETE): Define.
(RTLD_NOLOAD): Define.
(RTLD_DEEPBIND): Define.
2011-08-16 14:44:26 +00:00
Corinna Vinschen
56c387b1b3
* pipe.cc (pipe): Just call _pipe with O_BINARY mode. Move code to
...
generate normalized pathnames from here...
(_pipe): ...to here.
2011-08-15 16:05:13 +00:00
Corinna Vinschen
f8b8b1be3c
* miscfuncs.cc (CreatePipeOverlapped): New function.
...
(ReadPipeOverlapped): Ditto.
(WritePipeOverlapped): Ditto.
* miscfuncs.h: Declare new functions.
* pinfo.cc (commune_process): Call WritePipeOverlapped instead of
WriteFile. Set timeout to 1 sec.
(_pinfo::commune_request): Call ReadPipeOverlapped instead of ReadFile.
Set timeout to 0.5 secs.
* sigproc.cc (sig_send): Create pipe using CreatePipeOverlapped.
2011-08-13 10:28:15 +00:00
Christopher Faylor
e1d5167d20
* miscfuncs.cc (create_pipe): Delete obsolete function.
...
* miscfuncs.h (create_pipe): Delete define.
* pipe.c (fhandler_pipe::create_selectable): Delete obsolete comment.
2011-08-12 16:55:35 +00:00
Corinna Vinschen
3de2809073
* new-features.sgml (ov-new1.7.10): Document large address awareness
...
of heap and new way to set the default heap size per executable.
* setup2.sgml (setup-maxmem): Revamp to explain new method of
allocating more heap on a per-executable basis. Drop outdated stuff.
Keep shortened description of heap_chunk_in_mb as note.
2011-08-12 13:51:21 +00:00
Corinna Vinschen
ad39174691
* fhandler_proc.cc (fhandler_proc::closedir): Don't free, but delete
...
instead.
Also fix previous ChangeLog entry.
2011-08-12 12:35:37 +00:00
Corinna Vinschen
1f08558f14
* fhandler.h (fhandler_proc::opendir): Declare.
...
(fhandler_proc::closedir): Declare.
* fhandler_proc.cc (fhandler_proc::opendir): New method. Fetch list
of active processes here once to avoid potential duplicates.
(fhandler_proc::closedir): New method.
2011-08-12 12:31:08 +00:00
Corinna Vinschen
6e2c582323
* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Don't allow to
...
access process info by using the Windows PID.
* fhandler_process.cc (fhandler_process::fstat): Ditto.
(fhandler_process::fill_filebuf): Ditto.
2011-08-11 16:43:26 +00:00
Corinna Vinschen
3b7cd74bfd
* (winpids::add): Make sure to store always a Windows PID in
...
pidlist, even if pid is a Cygwin PID.
(winpids::enum_processes): Fetch Cygwin processes from listing of
shared cygwin object dir in the native NT namespace. Only if winpid
is true, fetch Windows processes using an additional call to
NtQuerySystemInformation.
2011-08-11 07:28:42 +00:00
Corinna Vinschen
56a85b9cea
* ps.cc (main): Don't overwrite process name, just attach <defunct>
...
to it for zombie processes.
2011-08-10 19:52:41 +00:00
Corinna Vinschen
d10f0e106e
* fhandler_process.cc (format_process_status): Always print process name
...
even for zombies.
(get_mem_values): Fix loop fetching working set list to avoid out of
memory conditions. Return all mem values set to 0 for zombies.
* ntdll.h (STATUS_PROCESS_IS_TERMINATING): Define.
2011-08-10 13:13:09 +00:00
Corinna Vinschen
afe817741c
* heap.cc (eval_initial_heap_size): New function fetching the heap
...
size from the LoaderFlags field in the PE/COFF header.
(heap_init): Call eval_initial_heap_size rather than
cygwin_shared->heap_chunk_size to fetch the initial heap size.
* shared.cc (shared_info::heap_chunk_size): Remove.
* shared_info.h (class shared_info): Drop heap_chunk member.
(CURR_SHARED_MAGIC): Update.
2011-08-09 12:00:27 +00:00
Corinna Vinschen
c29da54058
* ntdll.h (STATUS_NOT_FOUND): Define.
...
* ntea.cc (read_ea): Return correct ENOTSUP rather than EOPNOTSUPP.
Handle STATUS_INVALID_DEVICE_REQUEST and STATUS_NOT_FOUND. Explain
why. Convert conditional to switch statement.
(write_ea): Return correct ENOTSUP rather than EOPNOTSUPP. Handle
STATUS_INVALID_DEVICE_REQUEST. Convert conditional to switch statement.
2011-08-09 09:14:28 +00:00
Corinna Vinschen
f0b7368c68
* resource.cc (getrlimit): Just return RLIM_INFINITY in a request for
...
RLIMIT_AS.
2011-08-07 19:49:08 +00:00
Corinna Vinschen
60b55c4c18
* fhandler_process.cc (format_process_maps): Actually print info about
...
the application heap of the printed process, not of the current process.
2011-08-07 11:04:32 +00:00
Corinna Vinschen
e5366c218d
* include/winnt.h (IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE,
...
IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY,
IMAGE_DLLCHARACTERISTICS_NX_COMPAT): Fix typo in definitions.
(IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE,
IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY,
IMAGE_DLL_CHARACTERISTICS_NX_COMPAT): Keep broken definitions for
backward compatibility.
2011-08-05 07:02:26 +00:00
Corinna Vinschen
4593c596a8
* faq-using.xml (faq.using.bloda): Add NVIDIA. Change wording slightly.
2011-08-04 18:25:41 +00:00
Corinna Vinschen
a5408d982c
* net.cc (socketpair): Release sb0 if there's no space left for sb1.
2011-08-04 08:22:11 +00:00
Yaakov Selkowitz
2a5e0b2dee
* new-features.sgml (ov-new1.7.10): Document new POSIX Clock Selection
...
option APIs.
2011-08-03 19:18:07 +00:00
Yaakov Selkowitz
bfc071dbce
* cygwin.din (clock_nanosleep): Export.
...
* posix.sgml (std-notimpl): Move clock_nanosleep from here...
(std-susv4): ... to here.
(std-notes): Note limitations of clock_nanosleep.
* signal.cc (clock_nanosleep): Renamed from nanosleep, adding clock_id
and flags arguments and changing return values throughout.
Improve checks for illegal rqtp values. Add support for
CLOCK_MONOTONIC and TIMER_ABSTIME.
(nanosleep): Rewrite in terms of clock_nanosleep.
(sleep): Ditto.
(usleep): Ditto.
* thread.cc: Mark clock_nanosleep in list of cancellation points.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2011-08-03 19:17:02 +00:00
Christopher Faylor
2964913236
* dll_init.cc: Use fabort in favor of api_fatal and fork_info->abort where
...
appropriate throughout.
(fabort): Define.
(dll_list::topsort): Don't print sorting information. Fix formatting.
(dll_list::topsort_visit): Fix formatting.
(dll_list::load_after_fork_impl): Perform comment fixups.
* sigproc.cc (child_info_fork::abort): (for now?) Always print cause of fork
failure.
* include/sys/strace.h (strace_vprintf): Remove _STRACE_NOTALL when printing.
We really do want to see this.
2011-08-03 17:58:59 +00:00
Yaakov Selkowitz
f0968c1e7e
* cygtls.h (struct _local_storage): Add cw_timer member.
...
* cygtls.cc (_cygtls::init_thread): Initialize locals.cw_timer.
(_cygtls::fixup_after_fork): Ditto.
* tlsoffsets.h: Regenerate.
* ntdll.h (enum _TIMER_INFORMATION_CLASS): Define.
(struct _TIMER_BASIC_INFORMATION): Define.
(NtQueryTimer): Declare function.
* thread.h (cancelable_wait): Change timeout argument to
PLARGE_INTEGER and provide NULL default.
(fast_mutex::lock): Adjust accordingly.
(pthread_cond::wait): Change timeout argument to PLARGE_INTEGER
and default to NULL.
* thread.cc (cancelable_wait): Change timeout argument to
PLARGE_INTEGER. Initialize _cygtls.locals.cw_timer if needed.
Use NT waitable timers for handling timeout. Return remaining time
to timeout argument if timeout was relative.
(pthread_cond::wait): Change timeout argument to PLARGE_INTEGER.
Adjust to change in cancelable_wait.
(pthread_mutex::lock): Adjust to change in cancelable_wait.
(pthread_spinlock::lock): Ditto.
(pthread::join): Ditto.
(__pthread_cond_dowait): Change waitlength argument to PLARGE_INTEGER.
Adjust to changes in cancelable_wait and pthread_cond::wait.
(pthread_cond_timedwait): Adjust to change in __pthread_cond_dowait.
(pthread_cond_wait): Ditto.
(semaphore::_timedwait): Adjust to change in cancelable_wait.
(semaphore::_wait): Ditto.
* exceptions.cc (handle_sigsuspend): Ditto.
* signal.cc (nanosleep): Ditto.
* wait.cc (wait4): Ditto. Fix copyright dates.
* times.cc (FACTOR, NSPERSEC): Move from here...
* hires.h (FACTOR, NSPERSEC): ...to here.
2011-08-03 16:40:48 +00:00
Corinna Vinschen
d32e0bfc08
* syscalls.cc (faccessat): Fix parens in flag expression when calling
...
build_fh_name.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Fix typo in
comment.
* fhandler_socket.cc (fhandler_socket::bind): Ditto.
* path.cc (symlink_worker): Ditto.
2011-08-01 17:01:38 +00:00
Christopher Faylor
ab0887572f
* dll_init.cc (dll_list::load_after_fork_impl): Add a hint to an error message.
2011-08-01 13:11:37 +00:00
Christopher Faylor
dc3dc49831
* sigproc.cc (pending_signals::pending): Define new function.
...
(sig_dispatch_pending): Avoid calling sig_send if there are no pending signals.
2011-08-01 00:02:04 +00:00