summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.h (set_name): Don't use 'unix' as name since this is defined by gccChristopher Faylor2000-06-181-5/+5
| | | | | now. * fhandler.cc (set_name): Ditto.
* * fhandler.cc (fhandler_disk_file::open): Check for directoryCorinna Vinschen2000-06-081-0/+4
| | | | to set O_DIROPEN on directories anyway.
* * fhandler.cc (fhandler_disk_file::open): Check for executableCorinna Vinschen2000-05-311-2/+3
| | | | even if ntsec is on if filesystem doesn't support ACLs.
* * fhandler.cc (fhandler_base::puts_readahead): ChangeCorinna Vinschen2000-05-091-2/+2
| | | | while condition to disallow wild runs.
* * fhandler.cc (lock): use signed math to allow checking rangesDJ Delorie2000-05-081-8/+9
| | | | properly.
* * dcrt0.cc (insert_file): Eliminate unused parameter.Christopher Faylor2000-05-071-1/+8
| | | | | | | | | | (build_argv): Ditto. * exceptions.cc (stack): Eliminate unused parameters. (stackdump): Ditto. (cygwin_stackdump): Reflect above changes. (sig_handle): Ditto. * fhandler.cc (fhandler_base::set_inheritance): Use kludge to avoid unused parameter warning.
* * fhandler.cc (fhandler_disk_file::open): Check for allow_ntsecCorinna Vinschen2000-04-251-1/+2
| | | | | | | | | | | | | when determining exec flag. * path.cc (symlink_info::check): Remove call to get_file_attribute(). * security.cc (read_sd): Rename, ditto for variables to conform to common naming convention. Use GetFileSecurity() instead of BackupRead() to avoid permission problems when reading ACLs. (write_sd): Same renaming as for read_sd(). (alloc_sd): Change default permissions according to Linux permissions for group and world when write permission is set. * syscalls.cc (stat_worker): Avoid different permission problems when requesting file informations.
* * fhandler.h (fhandler_base::hclose): New virtual method.Christopher Faylor2000-04-201-4/+5
| | | | | | | (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.
* * fhandler.cc (fhandler_disk_file::fstat): Allocate enough space for root dirChristopher Faylor2000-04-081-2/+3
| | | | determination or overflow an array.
* * fhandler.cc (fhandler_base::open): Call set_file_attribute() only if a ↵Corinna Vinschen2000-03-171-1/+3
| | | | file is really created.
* * security.cc (set_process_privileges): Removed `static'.Corinna Vinschen2000-03-161-51/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* Pipe changes throughout suggested by Eric Fifer <EFifer@sanwaint.com>Christopher Faylor2000-03-151-2/+2
| | | | | | | | | | | | | | | | | | | | | * 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.
* * fhandler.cc (fhandler_base::get_readahead_into_buffer): New function.Christopher Faylor2000-03-121-0/+18
| | | | | | | | | | | | | * 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.
* Throughout use strace class in place of individual functions and variables.Christopher Faylor2000-03-071-1/+1
| | | | | | * 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.
* Remove unneeded include.Christopher Faylor2000-02-261-1/+0
|
* * exceptions.cc (interruptible): Make a little more structured.Christopher Faylor2000-02-261-0/+1
| | | | | | | | | | | | | (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.
* * fhandler.cc (set_inheritance): Revert previous patch which got rid of 'name'Christopher Faylor2000-02-211-1/+1
| | | | parameter.
* Respond to a multitude of g++ warnings.Christopher Faylor2000-02-211-9/+9
|
* *** empty log message ***Corinna Vinschen2000-02-211-0/+4
|
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+1501