summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * include/winnt.h: Eliminate duplicate PCONTEXT and LPCONTEXT typedefs.Christopher Faylor2000-03-262-4/+8
|
* * path.cc (symlink_check_one): Recognize symlink settings from the mount table.Christopher Faylor2000-03-265-53/+51
| | | | | | | * path.h: Make PATH_SYMLINK an alias for MOUNT_SYMLINK. * syscalls.cc (stat_worker): Use extension search mechanism in path_conv to look for .exe rather than trying to special case it here. * mount.h: Make MOUNT_SYMLINK a real option.
* * environ.cc: Add TMPDIR to the list of environment variables which areChristopher Faylor2000-03-254-3/+15
| | | | | | converted to POSIX format. * sigproc.cc (proc_terminate): Don't attempt to delete when a muto pointer is NULL.
* * syscalls.cc (stat_worker): Set st_nlink to 1 on remote drives.Corinna Vinschen2000-03-192-2/+8
|
* * times.cc: Fix extern declarations for variables that are exported but used byChristopher Faylor2000-03-192-1/+11
| | | | this modules.
* * times.cc: Remove unneeded (and incorrect) externs.Christopher Faylor2000-03-192-3/+4
|
* Patch suggested by Mumit Khan <khan@xraylith.wisc.edu>:Christopher Faylor2000-03-193-2/+14
| | | | | * strace.cc (_impure_ptr): New global variable to make strace build under Cygwin gcc.
* * Makefile.in: Make CXXFLAGS consistent with cygwin.Christopher Faylor2000-03-182-4/+9
|
* * dcrt0.cc (host_dependent_constants::init): Eliminate DELETE flag from sharedChristopher Faylor2000-03-182-1/+6
| | | | constant.
* * delqueue.cc (delqueue_list::queue_file): Add some debugging.Christopher Faylor2000-03-184-19/+48
| | | | | | * path.h (class path_conv): Add a char * operator for the most common case. * syscalls.cc (_unlink): Rewrite to use FILE_FLAG_DELETE_ON_CLOSE when possible (i.e., on NT).
* * fhandler.cc (fhandler_base::open): Call set_file_attribute() only if a ↵Corinna Vinschen2000-03-172-1/+9
| | | | file is really created.
* Change ChangeLog entry to more common format.Corinna Vinschen2000-03-161-11/+11
|
* * security.cc (set_process_privileges): Removed `static'.Corinna Vinschen2000-03-167-120/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (get_nt_attribute): Returns uid and gid additionally. Removed call to set_process_privileges(). (get_file_attribute): Returns uid and gid additionally. Don't call ntea if ntsec is ON. (set_nt_attribute): Removed call to set_process_privileges(). Don't call ntea if ntsec is ON. (acl): Removed call to set_process_privileges(). * dcrt0.cc (dll_crt0_1): Calls set_process_privileges() now. * winsup.h: New prototype for set_process_privileges(), changed prototype for get_file_attribute(). * fhandler.cc (get_file_owner): Discarded. (get_file_group): Ditto. (fhandler_disk_file::fstat): Discard calls to get_file_owner() and get_file_group(). * path.cc (path_conv::path_conv): Added debugging output for result of GetVolumeInformation(). (mount_info::conv_to_win32_path): Call backslashify() with pathbuf instead of src_path. * syscalls.cc (chown): Reformatted. (chmod): Replace get_file_owner() and get_file_group() calls by a call to get_file_attribute(). Discard local variable has_acls. Slightly reformatted. (stat_worker): Replaced idiot's (it's me) root dir check by call to rootdir(). Don't call num_entries() on remote drives. Discard local variable has_acls.
* * errno.cc: Map ERROR_NOACCESS to EFAULT.Corinna Vinschen2000-03-152-0/+5
|
* * spawn.cc (spawn_guts): Restore dependency on signal_arrived. It's needed toChristopher Faylor2000-03-152-2/+11
| | | | wake up the WaitForSingleObject.
* * Makefile.in: Use MINGW_CXXFLAGS when compiling strace.Christopher Faylor2000-03-152-3/+7
|
* Pipe changes throughout suggested by Eric Fifer <EFifer@sanwaint.com>Christopher Faylor2000-03-1515-88/+106
| | | | | | | | | | | | | | | | | | | | | * debug.cc (threadname_init): Pass name of lock as arg 2 of new_muto. * malloc.cc (malloc_init): Ditto. * sigproc.cc (sigproc_init): Ditto. * exceptions.cc (events_init): Ditto. (call_handler): Eliminate special case for hExeced. Report locked thread in debugging output. * fhandler.cc (fhandker_pipe::fhandler_pipe): Propagate device type to base class. * fhandler.h (fhandler_pipe): Ditto. * hinfo.cc (hinfo::build_fhandler): Pass specific type of pipe to constructor. * spawn.cc (spawn_guts): Eliminate dependency on signal when waiting for subprocess. * strace.cc: Remove obsolete #ifdef. * sync.cc (muto::muto): Save the name of the muto. (muto:~muto): Also release the muto. * sync.h: Add a muto name field. * select.cc (peek_pipe): Avoid doing a PeekNamedPipe on the write end of a pipe.
* settimeofday was listed twiceDJ Delorie2000-03-131-2/+2
|
* * strace.cc: Throughout, track information like start_time, etc. on aChristopher Faylor2000-03-132-28/+36
| | | | per-process basis.
* * fhandler.cc (fhandler_base::get_readahead_into_buffer): New function.Christopher Faylor2000-03-127-92/+113
| | | | | | | | | | | | | * fhandler.h: Declare new function. Add extra argument to process_slave_output. * fhandler_console.cc (fhandler_console::read): Move read ahead code to new function. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Move common code here. (fhandler_tty_slave::read): Understand readahead. (fhandler_pty_master::read): Move code to process_slave_output. * select.cc (peek_pipe): Avoid performing certain checks when non-read and on inappropriate fh types.
* * fhandler_console.cc (fhandler_console::read): Don't even think about breakingChristopher Faylor2000-03-124-112/+139
| | | | | | | on interrupt if executing in a "cygwin" thread. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Streamline, simplify code. * sigproc.cc (sig_send): Remove debugging statement.
* * sigproc.cc: Set wait_sig priority to normal.Christopher Faylor2000-03-112-1/+5
|
* * sigproc.cc (wait_sig): Add addtional debugging output.Christopher Faylor2000-03-102-2/+6
|
* * environ.cc: Eliminate oldstack CYGWIN option.Christopher Faylor2000-03-098-178/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * exceptions.cc (sfta): Eliminate obsolete function. (sgmb): Eliminate obsolete function. (class stack_info): Remove MS method for walking the stack. (stack_info::init): Just initialize required fields. (stack_info::brute_force): Rename to stack_info::walk. (handle_exceptions): Pass derived frame pointer to sig_send. (interrupt_setup): Clear saved frame pointer here. (interrupt_on_return): thestack is no longer a pointer. (call_handler): Accept a flag to indicate when a signal was sent from other than the main thread. Use saved frame pointer for determining where to place signal handler call. (sig_handle): Accept "nonmain" argument. Pass it to call_handler. * fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Change debugging output slightly. * (fhandler_tty_common::__release_output_mutex): Ditto. (fhandler_tty_slave::read): Fix a comment, remove a goto. * sigproc.cc (sig_send): Accept an optional frame pointer argument for use when suspending the main process. sigcomplete_main is an autoreset event now. Save frame pointer for non-main operation. (wait_sig): Make sigcomplete_main an autoreset event. Eliminate NOSIGQUEUE. Pass rc to sig_handle to signify if this was a nonmain process. * sigproc.h: Reflect change to sig_send argument. * syscalls.cc (swab): Eliminate swab function since it is now available in newlib. * winsup.h (signal_dispatch): Change CONTEXT cx to DWORD ebp.
* * sigproc.cc (sig_send): Eliminate sync_sig_send synchronization since itChristopher Faylor2000-03-073-6/+9
| | | | didn't seem to affect the "bash hangs" problem.
* Throughout use strace class in place of individual functions and variables.Christopher Faylor2000-03-0714-93/+87
| | | | | | * cygwin.din: Eliminate _strace_wm. * sigproc.cc (wait_sig): Temporarily add more debugging output. * include/cygwin/version.h: Bump minor api to reflect export change.
* * exceptions.cc (call_handler): Streamline to use only one call toChristopher Faylor2000-03-053-12/+37
| | | | | | ResumeThread. * sigproc.cc (sig_send): Use a muto around the ReleaseSemaphore. Remove priority setting since it didn't solve anything.
* * sigproc.cc (sig_send): Temporarily set priority to highest while sending aChristopher Faylor2000-02-292-0/+10
| | | | signal.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-293-5/+5
| | | | | | | * include/largeint.h: Rename HAVE_INT64 macro to _HAVE_INT64 to avoid namespace pollution. * include/rpcndr.h: Likewise. * include/winnt.h: Likewise.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-293-56/+556
| | | | | | | Patches from Jan Nijtmans <j.nijtmans@chello.nl>: * include/wtypes.h (PBLOB, LPBLOB): Define. * include/winsock2.h: Much more complete version. (FD_SET, SOMAXCONN): Protect common macros defined by winsock.h.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-292-4/+22
| | | | | | | | | Patches from Jan Nijtmans <j.nijtmans@chello.nl>: * include/winsock.h (FD_CLR): Add missing ')'. (timercmp): Fix macro to handle all 6 comparison operators. (AF_FIREFOX, AF_UNKNOWN1, AF_BAN, AF_ATM, AF_INET6): Define. (AF_MAX): Update. (PF_FIREFOX, PF_UNKNOWN1, PF_BAN, PF_ATM, PF_INET6): Define.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-291-0/+4
| | | | | | | * include/largeint.h: Rename HAVE_INT64 macro to _HAVE_INT64 to avoid namespace pollution. * include/rpcndr.h: Likewise. * include/winnt.h: Likewise.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-292-4/+13
| | | | | * include/shlobj.h (SHGetDataFromIDList{A,W}): Fix typo. (SHGetSpecialFolderPath{A,W}): Add prototypes.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-292-0/+91
| | | | * lib/ole32.def: Add missing exports.
* 2000-02-28 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-02-294-2/+157
| | | | | | | * include/winbase.h (TLS_MINIMUM_AVAILABLE): Move macro from here * include/winnt.h (TLS_MINIMUM_AVAILABLE): to here. (NT_TIB): Define. * include/tlhelp32.h: New file.
* * include/rapi.h: New file.Christopher Faylor2000-02-281-0/+5
| | | | * lib/rapi.def: New file.
* * pinfo.cc (set_myself): Add build date to strace output.Christopher Faylor2000-02-283-1/+12
| | | | | * sigproc.cc (proc_subproc): Only clear wait event when not attending to a signal.
* Fix typo.Christopher Faylor2000-02-281-1/+0
|
* Fix sysname.Christopher Faylor2000-02-281-1/+1
|
* * configure.in: Remove --enable-strace-hhmmss option.Christopher Faylor2000-02-283-86/+55
| | | | * configure: Regenerate.
* * strace.cc (handle_output_debug_string): Parse strace output to allow variousChristopher Faylor2000-02-283-10/+145
| | | | types of time output.
* * dcrt0.cc (set_os_type): Record OS name string.Christopher Faylor2000-02-287-152/+109
| | | | | | | | | | | | | | | | | | (getprogname): Eliminate obsolete function. (dll_crt0_1): Move initial strace initialization output to set_myself. * exceptions.cc (interruptible): Add debugging output. (interrupt_setup): New function. (interrupt_now): Use interrupt_setup to set up common interrupt handler stuff. (interrupt_on_return): Ditto. (call_handler): Move signal_arrived arm and clear threads to region where signalled thread is suspended or suffer races. * pinfo.cc (set_myself): Output interesting information when strace is first initialized. Initialize progname here. * sigproc.cc (sig_dispatch_pending): Modify to ensure that flush signal are sent synchronously. * strace.cc (strace_vsprintf): Move code into strace program. * uname.cc (uname): Use 'osname' global to construct cygwin name + Windows type + version.
* Bump minor version numberChristopher Faylor2000-02-261-1/+2
|
* Change fork/exec magic number.Christopher Faylor2000-02-261-1/+1
|
* Remove unneeded include.Christopher Faylor2000-02-261-1/+0
|
* * exceptions.cc (interruptible): Make a little more structured.Christopher Faylor2000-02-2611-47/+78
| | | | | | | | | | | | | (call_handler): Allow signals to be sent even if signalled thread is stopped. Change order of signal_arrived arming/waiting threads clearing to eliminate a race. (reset_signal_arrived): New helper function. * malloc.cc (malloc_init): Use mutos so that signal handler can keep track of who owns the lock. (__malloc_lock): Ditto. (__malloc_unlock): Ditto. * sync.h (new_muto): Actually use a muto for the "buffer". * Makefile.in: Fix a dependency.
* * Makefile.in: fix "make check" support and cygrun.DJ Delorie2000-02-262-2/+6
|
* Eliminate RCS stuff.Christopher Faylor2000-02-241-6/+0
|
* *** empty log message ***Christopher Faylor2000-02-241-1/+1
|
* * syscalls.c (_read): Clear errno before doing any read operation.Christopher Faylor2000-02-242-0/+5
|