aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2005-01-18 * autoload.cc (CoInitialize): Remove.Corinna Vinschen3-75/+163
(CoUninitialize): Remove. (CoCreateInstance): Remove. (CoTaskMemFree): Add. (SHGetDesktopFolder): Add. * path.cc (shortcut_header): Remove. (shortcut_initalized): Remove. (GUID_shortcut): New static GUID. (struct win_shortcut_hdr): New struct describing Windows shortcut header structure. (symlink_worker): Rewrite creating Windows shortcuts. Create ITEMIDLIST if target exists. Only write once. (cmp_shortcut_header): Use win_shortcut_hdr structure for comparison. (check_shortcut): Rewrite to read only once from file. Allow skipping an ITIMIDLIST in the file.
2005-01-18 * lib/user32.def (MonitorFromPoint}: Correct suffix.Danny Smith2-1/+5
2005-01-17 * include/sys/stat.h (struct __stat64): Change st_size type toDanny Smith3-2/+8
__int64. * include/wchar.h (struct __stat64): Change st_size type to __int64.
2005-01-17* pinfo.h (maybe_set_exit_code_from_windows): Renamed from set_exit_state.Christopher Faylor4-11/+35
* pinfo.cc (pinfo::exit): Use renamed function. (proc_waiter): Ditto. Make a copy of input argument to avoid problems when procs array is shuffled. Flag when copy is made so that remove_proc knows when it is safe to reshuffle. * sigproc.cc (proc_terminate): Don't flag process_state as PID_EXITED. (remove_proc): Wait for waiter to finish copying pinfo element before moving it (an actual wait should be an extremely rare event).
2005-01-16* ps.cc (main): Eliminate use of PID_ZOMBIE.Christopher Faylor3-3/+22
* strace.cc (main): Recognize new option for displaying hex value of strace type. (handle_output_debug_string): Prepend output with hex value of strace message if -H is specified.
2005-01-16* init.cc (dll_entry): Remove unused extern.Christopher Faylor8-31/+51
* include/sys/cygwin.h: Remove PID_ZOMBIE. * pinfo.h: Rename EXITCODE_* defines. (pinfo::set_exit_state): Remove parameter. * pinfo.cc (set_exit_state): Remove parameter. Reverse sense of test so that exitcode is checked for having been set rather than not having been set. Set flag when exitcode has been established. Don't set PID_STATE here. (pinfo::init): Remove exitcode initialization. (pinfo::exit): Reflect change in EXITCODE_* naming. Set flag when exitcode has been established. Reflect change in arguments to set_process_state. (proc_waiter): Reflect change in arguments to set_process_state. Set process_state here and only here. * fhandler_process.cc (fhandler_process::fill_filebuf): Reflect removal of PID_ZOMBIE define. (format_process_stat): Ditto. (format_process_status): Ditto. * sigproc.cc (pid_exists): Ditto. (stopped_or_terminated): Ditto. Make sure that only low-order 16 bits of exitcode are used. * spawn.cc (spawn_guts): Reflect change in EXITCODE_* naming.
2005-01-15* sigproc.cc (sig_send): Don't complain if attempt to send signal to myselfChristopher Faylor2-2/+7
fails after I've "execed".
2005-01-14 * fhandler_disk_file.cc (fhandler_disk_file::facl): Pretend successfulCorinna Vinschen4-6/+58
SETACL if no acls are available. * fhandler.cc (fhandler_base::facl): Implement to return sensible values on GETACL and GETACLCNT. Pretend successful SETACL. * fhandler_virtual.cc (fhandler_virtual::facl): Ditto.
2005-01-13 * fhandler.h (fhandler_disk_file::touch_ctime): Declare.Corinna Vinschen3-14/+63
* fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): New method to set file's ctime. (fhandler_disk_file::fchmod): Try opening file for writing first. Set file's ctime on success. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto.
2005-01-13 * pinfo.cc (pinfo::exit): Don't access self after releasing it.Corinna Vinschen3-3/+13
* path.h (path_conv::path_conv): Fill path with native device name in case of device argument.
2005-01-13 * fhandler_serial.cc (fhandler_serial::dup): Call overlapped_setupCorinna Vinschen2-1/+6
for child, not for parent.
2005-01-13 * include/_mingw.h: Increment version to 3.7.Earnie Boyd3-3/+5
* Makefile.in: Ditto.
2005-01-13* init.cc (dll_entry): Nuke attempt to set exit code since parent will useChristopher Faylor3-6/+8
windows exit code if needed. * pinfo.cc (pinfo::exit): Move release() here to minimize pid creation race (suggested by Pierre Humblet).
2005-01-13 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,Earnie Boyd3-24/+6
lstat): Remove. * include/errno.h (ELOOP): Ditto.
2005-01-132005-01-13 Benoit Blanchon <bblanchon@users.sourceforge.net>Danny Smith2-4/+18
* include/wininet.h (InternetCheckConnectionA, InternetCheckConnectionW) Add prototypes. (INTERNET_RAS_INSTALLED, INTERNET_CONNECTION_OFFLINE, INTERNET_CONNECTION_CONFIGURED): Add defines.
2005-01-12Reorganize header file inclusion throughout so that cygerrno.h comes first.Christopher Faylor23-32/+51
* fhandler.h (select_record::thread_errno): Save any encountered errno here. (select_record::set_select_errno): New function. (select_record::saw_error): New function. (select_record::select_record): Initialize thread_errno to zero. * select.cc (set_handle_or_return_if_not_open): Set thread_errno on failure. (select_stuff::wait): Record errno for later resurrection in calling thread. (peek_serial): Ditto.
2005-01-12Add missing changelog entry.Christopher Faylor1-0/+4
2005-01-12* pinfo.cc (pinfo::exit): Don't assume that this == myself.Christopher Faylor3-6/+6
2005-01-12 * include/tchar.h (_tfreopen): Add UNICODE mappings.Danny Smith2-0/+6
2005-01-112005-01-11 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2-7/+19
* mkpasswd.c (print_win_error): Transform into macro. (_print_win_error): Upgrade former print_win_error by printing the line. (current_user): Call _print_win_error. (enum_users): Print name in case of lookup failure. (enum_local_groups): Ditto.
2005-01-11* pinfo.cc (pinfo::init): Don't close input handle on temporary (?) failure.Christopher Faylor2-1/+7
2005-01-11revert previous erroneous checkin.Christopher Faylor1-2/+2
2005-01-11* pinfo.h (_pinfo::set_exit_state): Declare new function.Christopher Faylor10-101/+150
(pinfo::exit): Move here from _pinfo::exit. * sigproc.cc (child_info::sync): Use new function to set exitcode and process_state. * pinfo.cc (_pinfo::exit): Ditto. (proc_waiter): Ditto. (_pinfo::set_exit_state): Define new function. (_pinfo::dup_proc_pipe): Close handle when there is no parent process around to care about the exit value. * dcrt0.cc (dll_crt0_0): Move subproc_ready synchronization later to make sure that myself is still mapped in parent. (do_exit): Reflect movement to pinfo::exit. (__api_fatal): Ditto. * exceptions.cc (signal_exit): Ditto. * errno.cc (errmap): Map PROC_NOT_FOUND. * init.cc (dll_entry): Release myself before exiting. * sigproc.cc (proc_can_be_signalled): Set errno appropriately. (sig_send): Ditto. Also remove ill-advised test for !myself->sendsig since this is an indication of a process which is still initializating -- it is not an error. (child_info::sync): Don't set exitcode here. Assume that will happen in proc_waiter, if necessary. * spawn.cc (spawn_guts): Delay "wait_for_myself" logic until later. Don't wait at all if the process has already exited. Reflect movement to pinfo::exit.
2005-01-11 * include/sys/stat.h (_S_IFLNK, S_IFLNK, _S_ISLNK, S_ISLNK, _lstat,Earnie Boyd2-1/+24
lstat): Conditionalize defines for __STRICT_ANSI__.
2005-01-11 * ChangeLog: Split and create ChangeLog-2004.Corinna Vinschen2-3848/+3848
2005-01-11 * environ.cc: Yes, yes, the copyright date, as usual.Corinna Vinschen1-1/+1
2005-01-11 * environ.cc (build_env): Disallow empty strings and strings startingCorinna Vinschen2-0/+13
with '=' in Win32 environment.
2005-01-10 * include/errno.h (ELOOP): Add definition.Earnie Boyd2-0/+6
2005-01-10 * fhandler_disk_file.cc: Fix copyright date.Corinna Vinschen1-1/+2
2005-01-102005-01-07 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe3-0/+16
* include/commctrl.h (ComboBox_SetMinVisible, ComboBox_GetMinVisible): Added Macros. * include/winuser.h (CB_SETMINVISIBLE, CB_GETMINVISIBLE): Added definitions.
2005-01-10 * mingwex/complex/(cabsl.c cacosl.c cacoshl.c cargl.c casinl.cDanny Smith24-14/+682
casinhl.c catanl.c catanhl.c ccosl.c ccoshl.c cexpl.c cimagl.c clogl.c cpowl.c cprojl.c creall.c csinl.c csinhl.c csqrtl.c ctanl.c ctanhl.c): New files. * mingwex/Makefile.in (COMPLEX_DISTFILES): Adjust. (COMPLEX_OBJS): Adjust. * include/complex.h (cabsl, cacosl, cacoshl, cargl, casinf. casinhl, catanl, catanhl, ccosl, ccoshl, cexpl, cimagl, clogl, cpowl, cprojl, creall, csinl, csinhl, csqrtl, ctanl, ctanhl): Declare.
2005-01-10* cygrun.c (main): Fix exit code so that it reflects UNIX style.Christopher Faylor3-1/+9
* winsup.api/ltp/fork04.c (setup): Accommodate change in putenv declaration.
2005-01-082005-01-08 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2-16/+18
* syscalls.cc (seteuid32): Only change the default dacl when seteuid succeeds. Do not close HKCU.
2005-01-07 * fhandler_process.cc: Fix copyright date.Corinna Vinschen1-1/+1
2005-01-06 * fhandler_process.cc: Use strcasematch instead of strcasecmpCorinna Vinschen2-3/+8
throughout.
2005-01-06 * syscalls.cc (rename): Fix behaviour in case of renaming directoriesCorinna Vinschen2-11/+68
according to SUSv3.
2005-01-06 * fhandler_disk_file.cc (fhandler_base::open_fs): Don't allowCorinna Vinschen2-0/+13
opening directories for writing.
2005-01-06update copyrightChristopher Faylor4-4/+6
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