| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
bytes_to_write to 0 in case it fits into the buffer, otherwise suffer
early EOF in caller.
|
|
|
|
|
|
|
|
| |
* dll_init.cc: Throughout, use modname where it was used before.
(dll_list::operator[]): Use modname. Move comment from dll_list::alloc
here and remove hint about GetModuleBaseNameW.
(dll_list::alloc): Store full path in name, pointer to basename in
modname. Search dll using modname.
|
|
|
|
| |
it's used in older csih.
|
| |
|
|
|
|
| |
with O_RDWR permissions.
|
|
|
|
|
|
|
|
|
| |
__pthread_cond_dowait. Only check and potentially initialize cond and
mutex, drop call to (*cond)->wait.
(pthread_cond_timedwait): Replace call to __pthread_cond_dowait with
separate calls to __pthread_cond_wait_init and (*cond)->wait to be
able to initialize cond before accessing its clock_id member.
(pthread_cond_wait): Ditto (more or less).
|
|
|
|
|
| |
use `void *' as __wait_status_ptr_t instead. This is less type safe but fixes
compile error on `wait(NULL)'. Remove extra `;'.
|
|
|
|
| |
than ExitProcess.
|
|
|
|
| |
drives are not supported here.
|
|
|
|
| |
userprofile path returned from get_registry_hive_path to Win32 path.
|
|
|
|
|
|
|
| |
(dll_list::find_by_modname): Remove.
(dll_list::alloc): Only store module basename in name. Add comment to
explain why. Simplify address check. Fix formatting in comment.
* dll_init.h (struct dll): Drop modname and find_by_modname.
|
|
|
|
| |
fabort string in case of bss start.
|
| |
|
|
|
|
|
| |
1114 when loading user32.dll as potential problem when not using
a domain service account.
|
|
|
|
| |
api_fatal message.
|
|
|
|
|
|
|
| |
* exec.cc: Change include of process.h to reflect the fact that it's
now back in include.
* spawn.cc: Ditto.
* syscalls.cc: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cygheap.h (init_cygheap::manage_console_count): Ditto.
(init_cygheap::console_count): Ditto.
* fhandler.h (fhandler_console::has_a): Ditto.
(fhandler_console::free_console): Declare new function.
* fhandler_console.cc (fhandler_console::free_console): Define new function.
(fhandler_console::open_setup): Delete call to manage_console_count.
(fhandler_console::close): Ditto. Replace with call to free_console().
* fhandler_tty.cc (fhandler_pty_slave::open): Delete call to
manage_console_count.
(fhandler_pty_slave::cleanup): Ditto.
(fhandler_pty_slave::close): Call fhandler_console::free_console() if this is
our controlling tty.
* pinfo.cc (_pinfo::set_ctty): Skip function if tty in question == our ctty.
Delete call to manage_console_count.
* syscalls.cc (close_all_files): Avoid locking and avoid setting errno when
iterating over fds.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* setup-net.sgml: Ditto.
|
| |
|
|
|
|
|
|
|
|
| |
* ntsec.sgml: Ditto.
* pathnames.sgml: Ditto.
* setup2.sgml: Ditto.
* setup-net.sgml: Ditto.
(setup-dir): Drop paragraph on Unix/DOS file mode.
|
|
|
|
| |
* passwd.cc (pwdgrp::parse_passwd): Ditto for res.
|
|
|
|
| |
debug_only_printf.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* dir.cc (closedir): Call global close instead of just releasing the
fhandler.
* fhandler_disk_file.cc (fhandler_disk_file::closedir): Don't close
fhandler handle here, rely on global closedir doing the right thing.
* fhandler_registry.cc (fhandler_registry::readdir): Also delete
d_hash when closing registry key.
(fhandler_registry::rewinddir): Ditto.
Avoid infinite recursion in VirtualStore under UAC:
* fhandler_registry.cc (VIRT_CLASSES_KEY_PREFIX): Define.
(VIRT_CLASSES_KEY_SUFFIX): Ditto.
(VIRT_CLASSES_KEY): Ditto.
(VIRT_CLASSES_LINKTGT): Ditto.
(fhandler_registry::exists): Return virt_symlink as file type if
this is a Classes key under the VirtualStore.
(fhandler_registry::fstat): Handle virt_symlink.
(fhandler_registry::readdir): Return DT_LNK as d_type if this is a
Classes key under the VirtualStore.
(fhandler_registry::fill_filebuf): Handle Classes symlink.
Handle user impersonation in /proc/registry access:
* autoload.cc (RegOpenUserClassesRoot): Define.
(RegOpenCurrentUser): Define.
* fhandler_registry.cc (RegOpenUserClassesRoot): Declare function
missing in w32api.
(RegOpenCurrentUser): Ditto.
(fetch_hkey): New function.
(fhandler_registry::open): Call fetch_hkey to get root registry key.
(open_key): Ditto.
|
| |
|
| |
|
|
|
|
| |
via dtable method to avoid over-incrementing refcnt.
|
|
|
|
|
|
| |
incremented here.
(dtable::dup3): Simplify slightly. Add comment.
* syscalls.cc (dup3): Increment refcnt here, similarly to dup2.
|
| |
|
|
|
|
|
|
|
| |
GetOverlappedResult since previous IsEventSignalled will have reset the handle.
* select.cc (cygwin_select): Remove space before parentheses in syscall
debugging output.
(pipe_data_available): Streamline if block.
|
|
|
|
|
|
|
| |
* fhandler.cc (flush_async_io): Assume only called for writer. Call
GetOverlappedResult directly rather than kluding call to has_ongoing_io.
(fhandler_base_overlapped::close): Only start flush thread when closing write
handle. Only cancel I/O when reading.
|
|
|
|
| |
(main): Call ExitProcess() to exit exactly the same way as any straced child.
|
|
|
|
| |
(main): Call setlocale.
|
|
|
|
|
|
|
|
|
| |
* tzset.c: New tool, new file.
* utils.sgml (tzset): New section.
* new-features.sgml (ov-new1.7.10): Add tzset.
* release/1.7.10: Add tzset.
|
| |
|
|
|
|
|
| |
DOS paths.
(globify): Call is_dos_path instead of isdrive.
|
| |
|
| |
|
|
|
|
| |
clearness.
|
| |
|
|
|
|
| |
create hash from there.
|
|
|
|
|
|
|
|
|
| |
* fhandler_fifo.cc (fhandler_fifo::arm): Define new function.
(fhandler_fifo::open): Fix handling of RDWR pipes to avoid opening a second
handle. Use arm() function to set events.
(fhandler_fifo::raw_read): Correctly go into "connect again logic" when we
detect another writer is available. Use arm() function to set event.
* pipe.cc (fhandler_pipe::create): Add more detail to debugging output.
|
| |
|
|
|
|
|
|
|
|
| |
* dtable.cc (dtable::release): Make void again. Skip not_open check since it
is guaranteed to be open. Don't bother deleting here since actual deletion
will be handled in cygheap_fdget::~cygheap_fdget.
* dtable.h (dtable::release): Make void again.
* syscalls.cc (dup2): Bump fhandler use count on successful dup.
|
|
|
|
|
|
|
|
|
|
|
| |
reference count changes itself.
* fhandler.cc (fhandler_base::reset): Set _refcnt to 0.
* fhandler.h (fhandler_base::refcnt): Report refcnt when debugging.
* select.cc (cygwin_select): Set return_on_signal to indicate when select
should be interrupted.
(select_stuff::wait): Keep looping unless return_on_signal is set.
* select.h (select_stuff::return_on_signal): New variable.
(select_stuff::select_stuff): Zero return_on_signal.
|
|
|
|
| |
* fhandler_registry.cc (fhandler_registry::opendir): New function.
|
| |
|