summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * syscalls.cc (_link): Check new link path for trailing dot.Corinna Vinschen2000-04-202-7/+13
|
* * fhandler.h (fhandler_base::hclose): New virtual method.Christopher Faylor2000-04-204-21/+34
| | | | | | | (fhandler_base::set_inheritance): Make this a method so that we can use the appropriate close methods. * fhandler.cc (fhandler_base::set_inheritance): Ditto. * path.cc (normalize_posix_path): Eliminate /. trailing path component.
* * syscalls.cc (setuid): Allow switching user context afterCorinna Vinschen2000-04-192-12/+58
| | | | | | | successful call to ImpersonateLogedOnUser (NT only). (setgid): Ditto. (seteuid): Call setuid. (setegid): Call setgid.
* * uinfo.cc (internal_getlogin): Use NetGetDCName() insteadCorinna Vinschen2000-04-192-4/+9
| | | | of NetGetAnyDCName().
* * syscalls.cc (_rename): Try MoveFile() at first beforeDJ Delorie2000-04-192-25/+32
| | | | MoveFileEx(..., MOVEFILE_REPLACE_EXISTING).
* clean up SGML for latest version of jade/docbookDJ Delorie2000-04-192-4/+15
|
* * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS pathChristopher Faylor2000-04-182-5/+3
| | | | spec, even within a quoted string.
* * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS pathChristopher Faylor2000-04-182-1/+12
| | | | spec.
* Remove obsolete setting.Christopher Faylor2000-04-161-4/+0
|
* * init.cc (dll_entry): Use better check for determining when to set threadChristopher Faylor2000-04-163-3/+13
| | | | | | specific stuff. * syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE succeeds, if file still exists.
* * fhandler_console.cc (keytable): Add support for keypad 5 key, which MS seemsChristopher Faylor2000-04-154-10/+14
| | | | | | to think is equivalent to VK_CLEAR. * debug.cc (thread_stub): Eliminate initialization of reent stuff. * init.cc (dll_entry): Move it here.
* * dcrt0.cc (insert_file): Avoid freeing previously allocated argument list.Christopher Faylor2000-04-135-69/+83
| | | | | | | | | | * path.cc (symlink_info::check): Rename from symlink_check_one. Use new symlink_info struct for communication. (path_conv::path_conv): Use symlink_info structure for communication with symlink_info::check. Fix typo which resulted in symbolic links always being resolved. (readlink): Use stat_suffixes array when resolving a link. * syscalls.cc (stat_suffixes): Make global.
* * include/cygwin/version.h: Bump minor api to reflect export change.Corinna Vinschen2000-04-132-1/+6
|
* * cygwin.din: Add symbol for `lacl'.Corinna Vinschen2000-04-134-5/+37
| | | | | | | | | * security.cc (ReadSD): Add debug output. (acl_worker): New static function. (acl): Call acl_worker now. (lacl): New function. (facl): Call acl_worker now. * include/cygwin/acl.h: Add prototype for `lacl'.
* * path.cc (conv_to_win32_path): Detect a win32 pathCorinna Vinschen2000-04-131-4/+24
| | | | if path contains backslashes.
* Fix typo.Christopher Faylor2000-04-131-4/+3
|
* * path.cc (path_conv::path_conv): Ensure that suffix is correctly copied toChristopher Faylor2000-04-122-18/+24
| | | | path when we've found a symlink but aren't following symlinks.
* Add a debugging line.Christopher Faylor2000-04-111-0/+1
|
* * fhandler.cc (fhandler_disk_file::fstat): Allocate enough space for root dirChristopher Faylor2000-04-082-2/+8
| | | | determination or overflow an array.
* * exceptions.cc (sigsave): Copy on fork so that we can restore correct behaviorChristopher Faylor2000-04-086-38/+64
| | | | | | | | | | | | | in forked process. (interruptible): Flag as interruptible when running in main process module. (interrupt_setup): Save return address and address of return address. (signal_fixup_after_fork): New function. Uses above two values to restore proper behavior to forked process. (interrupt_on_return): Pass return address address to interupt_setup. (interrupt_now): Pass NULL for return address address to interrupt_setup. * fork.cc (fork): Call signal_fixup_after_fork. * shared.h: Lint cleanups. * winsup.h: Ditto.
* Bump minor version.Christopher Faylor2000-04-071-1/+1
|
* * fhandler.h (select_stuff): Eliminate use of 'total'.Christopher Faylor2000-04-033-7/+11
| | | | | | * select.cc (cygwin_select): Ditto. (select_stuff::wait): Use maximum size for w4 rather than calculating what will fit.
* * grp.cc (parse_grp): Save empty array instead ofCorinna Vinschen2000-04-032-1/+6
| | | | NULL in gr_mem if no supplementary group is given.
* * newlib/libc/include/sys/unistd.h: Add prototypes forCorinna Vinschen2000-04-024-18/+88
| | | | | | | | | | | | | | fchmod, fchown, lchown. * winsup/cygwin/syscalls.cc (chown_worker): Use previous uid/gid if new uid/gid is -1. New static function with chown functionality. (chown): Call chown_worker with SYMLINK_FOLLOW. (fchown): New function. Call chown_worker with SYMLINK_FOLLOW. (lchown): New function. Call chown_worker with SYMLINK_IGNORE. * cygwin.din: Add symbols for fchown, lchown. * path.cc (symlink): Call `set_file_attribute()' and `SetFileAttributeA()' instead of `chmod()' to set uid/gid correct.
* Simplify constructors and initializers for select_record.Christopher Faylor2000-03-301-6/+6
|
* * fhandler.h (select_record): Explicitly zero elements of this class.Christopher Faylor2000-03-303-2/+18
| | | | | (select_stuff): Ditto. * select.cc (cygwin_select): Eliminate memset zero of sel.
* * Makefile.in: Use default rules when compiling cygrun.o.Christopher Faylor2000-03-285-12/+26
| | | | | | | | * dcrt0.cc (host_dependent_constants::init): Limit non-NT platforms to 32K chunks when copying regions during a fork. * path.cc (symlink_check_one): Add temporary debugging output. Simplify PATH_EXEC test. * syscalls.cc (stat_suffixes): Null terminate this list.
* * 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
|
* * 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.
* 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
|
* * 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.