aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2005-01-06* timer.cc (timer_thread): Pass sigev pointer value as per SuSv3 rather thanChristopher Faylor2-1/+6
pointer to sigev.
2005-01-06 * include/_mingw.h (__int16): Define as short.Danny Smith2-1/+6
2005-01-06 * include/stdio.h (P_tmpdir): Add define.Danny Smith2-0/+7
2005-01-05* dcrt0.cc (multiple_cygwin_problem): Reorganize error message to not alwaysChristopher Faylor3-9/+20
talk about a "version" when it's not a version. (dll_crt0_0): Change info passed to multiple_cygwin_problem to be a little more precise. * shared.cc (user_shared_initialize): Ditto. (shared_info::initialize): Ditto.
2005-01-04* pinfo.cc (_pinfo::dup_proc_pipe): Can't close proc pipe when execing or weChristopher Faylor2-2/+12
will suffer an exit code race.
2005-01-03Update copyrights.Christopher Faylor3-3/+3
2005-01-03 * signal.cc: Fix copyright date.Corinna Vinschen1-1/+2
2005-01-03 * signal.cc (abort): Call _GLOBAL_REENT's __cleanup.Corinna Vinschen2-2/+6
2005-01-03 * Makefile.in (inst_docdir): For Cygwin target set to share/doc/.Earnie Boyd2-1/+5
2005-01-03 * syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.Corinna Vinschen2-2/+7
2005-01-022005-01-02 Jiri Malak <Jiri.Malak@geac.cz>Danny Smith2-0/+7
* include/winnt.h (GetCurrentFiber, GetFiberData): Make inline assembly code conditional on _X86_.
2005-01-02 * include/_mingw.h: Increment version to 3.6Earnie Boyd3-3/+8
* Makefile.in: Ditto
2005-01-02 * lib/uxtheme.def: Really remove the \r.Earnie Boyd1-50/+50
2005-01-02 * include/afxres.h: Remove the \r from the line ending.Earnie Boyd7-1048/+1060
* include/errorrep.h: Ditto. * include/shldisp.h: Ditto. * include/tschema.h: Ditto. * lib/dhcpcsvc.def: Ditto. * lib/uxtheme.def: Ditto. * lib/wldap32.def: Ditto.
2005-01-02 * include/w32api.h: Increment version.Earnie Boyd2-3/+3
* Makefile.in: Ditto.
2005-01-02* cygthread.cc (cygthread::stub): Set inuse to false when exiting.Christopher Faylor3-18/+20
(cygthread::cygthread): Actually pass name as argument to debugging output to avoid SEGV when strace'ing. (cygthread::release): Don't set stack_ptr to NULL, since it is only set once on first entry to a stub not on each stub iteration. (cygthead::exit_thread): Remove obsolete function. * cygthread.h (cygthread::exit_thread): Ditto.
2005-01-02* shared.cc (open_shared): Don't attempt VirtualAlloc magic if first attempt toChristopher Faylor2-2/+8
map memory fails.
2005-01-01 * include/winerror.h (ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY):Danny Smith2-1/+7
Correct typo.
2004-12-31* path.sgml: Encode programming example with CDATA.Joshua Daniel Franklin4-1/+19
2004-12-30* devices.cc (device::isfs): Return true for the logical case of devn == FH_FS.Christopher Faylor2-1/+6
2004-12-30 * bsd_mutex.cc: Include limits.h.Corinna Vinschen2-22/+125
(MSLEEP_MUTEX): New define for third parameter to msleep_event_name. (MSLEEP_SEM): Ditto. (MSLEEP_EVENT): Ditto. (msleep_event_name): Add third parameter to allow multiple synchronization objects per ident. (_msleep): Implement new synchronization technique to make sure that all threads have been woken up by a corresponding wakeup call. (wakeup): Ditto.
2004-12-292004-12-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe4-2/+33
*include/winuser.h (MNS_*, WM_MENUCOMMAND, WM_MENUGETOBJECT, WM_MENUDRAG, WM_NCMOUSEHOVER, WM_NCMOUSELEAVE, WM_UNINITMENUPOPUP, SPI_GETFOREGROUNDLOCKTIMEOUT, SPI_SETFOREGROUNDLOCKTIMEOUT): Added definitions. *include/imm.h (WM_IME_REQUEST): Added definition. *include/shlobj.h (SLGP_RAWPATH, SLGP_UNCPRIORITY): Added definition.
2004-12-29Added HSHELL_FLASH definitionChris Sutcliffe2-0/+5
2004-12-28* pinfo.cc (_pinfo::dup_proc_pipe): DUPLICATE_CLOSE_SOURCE closes the handleChristopher Faylor2-5/+6
regardless, so revert previous change.
2004-12-28* cygthread.cc (cygthread::stub): Add better debug output.Christopher Faylor6-21/+58
(cygthread::cygthread): Ditto. (cygthread::terminate_thread): Ditto. Move inuse test earlier or suffer infinite loop. * pinfo.cc (_pinfo::dup_proc_pipe): Close handle if DuplicateHandle fails and process no longer exists. * spawn.cc (spawn_guts): Create process in suspended state if OS demands it. * wincap.cc: Add "start_proc_suspended" throughout. * wincap.h (wincaps): Ditto. (wincapc): Ditto.
2004-12-27Update Makefile to use xmltoJoshua Daniel Franklin6-169/+33
2004-12-27* pinfo.cc (_pinfo::exit): Beef up debugging output.Christopher Faylor3-5/+11
* sigproc.cc (proc_subproc): Detached children apparently need a ppid of 1.
2004-12-27* init.cc (dll_entry): Previous code reversion was ill-advised. Revert it.Christopher Faylor4-1/+18
* sigproc.cc (child_info::sync): Ditto. * pinfo.cc (_pinfo::exit): Don't set myself.procinfo to NULL since it is no longer required.
2004-12-27* init.cc (dll_entry): Remove exit code setting.Christopher Faylor5-11/+19
* pinfo.cc (pinfo::init): Initialize exitcode to unset state rather than SIGTERM. (proc_waiter): Detect if exit code is unset and use status from GetExitCodeProcess. * sigproc.cc (child_info::sync): Remove exit code detection here since proc_waiter now (again) detects it.
2004-12-26* fhandler.cc (fhandler_base::fchmod): Do the right thing when changing an "onChristopher Faylor5-3/+24
disk" device or fifo. (fhandler_base::fchown): Ditto for changing ownership. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Accommodate device files on ntfs partitions. * path.cc (path_conv::check): Use isfs function to figure out if a path exists on a filesystem to make sure that device files are caught.
2004-12-25 * mingwex/complex/(cabsf.c cacosf.c cacoshf.c cargf.c casinf.cDanny Smith24-7/+663
casinhf.c catanf.c catanhf.c ccosf.c ccoshf.c cexpf.c cimagf.c clogf.c cpowf.c cprojf.c crealf.c csinf.c csinhf.c csqrtf.c ctanf.c ctanhf.c): New files. * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust. (COMPLEX_OBJS(: Adjust. * include/complex.h (cabsf, cacosf, cacoshf, cargf, casinf. casinhf, catanf, catanhf, ccosf, ccoshf, cexpf, cimagf, clogf, cpowf, cprojf, crealf, csinf, csinhf, csqrtf, ctanf, ctanhf): Declare.
2004-12-24 * .sgml: Cleanup markup for XML validity.Joshua Daniel Franklin18-108/+109
2004-12-24* child_info.h (CURR_CHILD_INFO_MAGIC): Update.Christopher Faylor8-66/+121
(child_info::parent_wr_proc_pipe): Eliminate. * pinfo.h (_pinfo::alert_parent): Move here from pinfo class. (_pinfo::dup_proc_pipe): New method. (_pinfo::sync_proc_pipe): Ditto. * exceptions.cc (sig_handle_tty_stop): Reflect move of alert_parent. * init.cc (dll_entry): Exit with status one if main process called ExitProcess. * pinfo.cc (set_myself): Remove handling of parent_wr_proc_pipe. (_pinfo::exit): Reflect move of alert_parent. Set procinfo to NULL to flag that we are exiting normally. Always use exitcode when exiting (although this could be a little racy). (pinfo::init): Set default exit to SIGTERM. This will be the exit code reported if process is terminated. (_pinfo::dup_proc_pipe): New function. (pinfo::wait): Duplicate wr_proc_pipe to the right place. Use dup_proc_pipe to move the pipe to the child. (_pinfo::sync_proc_pipe): New function. (_pinfo::alert_parent): Move to _pinfo. Make sure that wr_proc_pipe is ours before using it. * sigproc.cc (child_info::child_info): Remove handling of parent_wr_proc_pipe. * spawn.cc (spawn_guts): Pass our wr_proc_pipe to the child when execing. Ensure that exit code of cygwin process started from windows is correctly set.
2004-12-242004-12-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Danny Smith5-0/+99
* include/shldisp.h: New file. * include/shlobj.h (IObjMgr): Added interface definiton. * lib/shell32.c (CLSID_AutoComplete, IID_AutoComplete, IID_AutoComplete2, CLSID_ACLMulti, IID_IObjMgr, CLSID_ACListISF, IID_IACList): Added GUIDs. * include/shlguid.h (CLSID_AutoComplete, IID_AutoComplete, IID_AutoComplete2, CLSID_ACLMulti, IID_IObjMgr, CLSID_ACListISF, IID_IACList): Added GUIDs.
2004-12-23* path.h (path_conv::set_normalized_path): Add second argument and fill it inChristopher Faylor5-22/+34
throughout. * path.cc (path_conv::check): Declare, set and use "strip_tail". (path_conv::set_normalized_path): Add and use second argument, replacing all tail stripping tests.
2004-12-23* cygthread.cc (cygthread::cygthread): Guard debugging variable with "ifdefChristopher Faylor2-0/+10
DEBUGGING". (cygthread::release): Ditto.
2004-12-23* path.cc (path_conv::check): Don't strip the trailing slash from a pathChristopher Faylor2-1/+7
consisting only of two slashes.
2004-12-23* cygthread.cc (cygthread::stub): Detect if thread function wants to releaseChristopher Faylor9-34/+70
itself here, to avoid a race. (cygthread::release): Clear more stuff. Add a diagnostic for an internal error. * cygthread.h (auto_release): New function. * pinfo.h (pinfo::remember): Add an argument to denote whether child is detached. * fork.cc (fork_parent): Reflect change in arguments to pinfo::remember. * pinfo.cc (_pinfo::exit): Signal exit more forcibly. (proc_waiter): Use cygthread::auto_release to signify that cygthread::stub should release the thread. This should avoid a race. (pinfo::alert_parent): Don't signify an error when wr_proc_pipe == NULL. * sigproc.cc (proc_subproc): Add support for PROC_DETACHED_CHILD. * sigproc.h: Ditto. * spawn.cc (spawn_guts): Specify whether child is detached or not when calling pinfo::remember.
2004-12-23 * include/commctrl.h (CDRF_NOTIFYSUBITEMDRAW): Add define.Danny Smith2-8/+14
Thanks to: Chris Sutcliffe <ironhead@walled.net> (CDRF_*): Use hex notation for constants.
2004-12-22* cygheap.cc (cygheap_setup_for_child): Add api_fatal to catch failingChristopher Faylor5-13/+52
MapViewOfFileEx. * cygthread.cc (cygthread::stub): Previous change to make diagnostic output more informative was really a bust. Try again. Capture previous name in a new field in cygthread for diagnostic purposes. (cygthread::cygthread): Ditto. (cygthread::release): Add an argument to control whether h should be cleared or not. (cygthread::terminate_thread): Use 'inuse' for tests rather than 'h'. (cygthread): Add some diagnostic fields. (cygthread::release): Add an argument. * pinfo.cc (proc_waiter): Accommodate change to cygthread::release.
2004-12-22* cygthread.cc (cygthread::stub): Make diagnostic output more informative.Christopher Faylor2-2/+7
2004-12-22* pinfo.cc (proc_waiter): Zero wait_thread in child to avoid races with processChristopher Faylor3-1/+24
termination. * cygthread.cc (cygthread::terminate): Clumsily detect when h has gone away and attempt no further action.
2004-12-22* cygthread.h (cygthread::release): Just declare here.Christopher Faylor3-7/+18
* cygthread.cc (cygthread::release): Define here. Use InterlockedExchange to set inuse or suffer potential races. (cygthread::terminate): Use release().
2004-12-22 * fhandler_process.cpp (format_process_status): Use tabs in formattingCorinna Vinschen2-17/+22
instead of spaces.
2004-12-22 * path.cc (set_normalized_path): Allow empty pathnames.Corinna Vinschen2-1/+5
2004-12-21* spawn.cc (spawn_guts): Force parent to forget about P_DETACH'ed process.Christopher Faylor2-0/+7
2004-12-20* path.cc (normalize_win32_path): Remove unneeded check for dots.Christopher Faylor2-8/+7
2004-12-20* path.cc (normalize_posix_path): Remove unneeded check for dots.Christopher Faylor2-13/+20
(path_conv::set_normalized_path): Strip trailing dots, similarly to what had previously been done for the win32 path.
2004-12-20 * include/wchar.h (wcsdup): Correct prototype.Danny Smith3-2/+8
* include/string.h (wcsdup): Correct prototype.
2004-12-19* path.cc (normalize_win32_path): Make third arg pass-by reference. ReorganizeChristopher Faylor2-60/+61
slightly to eliminate extra variables. (normalize_posix_path): Ditto. (path_conv::check): Reflect change in arguments. (mount_info::conv_to_posix_path): Ditto. (mount_info::add_item): Ditto.