| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
behavior.
|
|
|
|
| |
in case of EINVAL. Treat mmapping /dev/zero like MAP_ANONYMOUS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the new page map.
(mmap_record): Change type of base_address_ to caddr_t.
Add map_map_ member. Add several methods to manipulate map_map_.
(mmap_record::alloc_map): New method.
(mmap_record::free_map): Ditto.
(mmap_record::find_empty): Ditto.
(mmap_record::map_map): Ditto.
(mmap_record::unmap_map): Ditto.
(list::add_record): Change return type to `mmap_record *'.
Allocate page map.
(list::match): New method.
(mmap): Partly rewritten to take care for the new page map. Add some
parameter checking.
(munmap): Ditto.
|
|
|
|
| |
* syscalls.cc (getpagesize): Fix another typo.
|
|
|
|
|
|
| |
avoid calling GetSystemInfo too often.
* heap.cc (getpagesize): Eliminate.
(heap_init): Use getpagesize function from syscalls.cc.
|
|
|
|
| |
request to avoid implementing the same twice.
|
|
|
|
| |
been interrupted by a signal.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* signal.cc (sigaction): Don't treat SIGCONT specially.
* exceptions.cc (interrupt_setup): Save sa_flags of interrupted signal for
later use.
(sig_handler): Default any stopping signal to SIGSTOP.
(call_signal_handler): New function.
(sigdelayed0): New function.
* sigproc.cc (sigproc_init): Initialize SIGSTOP sigaction for special behavior.
* sigproc.h: Define call_signal_handler.
* syscalls.cc (_read): Allow restartable signal behavior.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(fhandler_disk_file: Ditto.
(fhandler_dev_mem): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::open): Set OBJ_INHERIT attribute
for device\physicalmemory handle.
(fhandler_dev_mem::mmap): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork): New method.
* mmap.cc (mmap_record): Add private `fdesc_' member. Change constructor
accordingly.
(get_fd): New method.
(mmap): Use new mmap_record constructor.
(fhandler_base::fixup_mmap_after_fork): New method.
(fhandler_disk_file::fixup_mmap_after_fork): Ditto.
(fixup_mmaps_after_fork): Call `fixup_mmap_after_fork' of appropriate
fhandler class.
|
|
|
|
|
|
| |
(cmd_list): Add code to implement -p, -k, and -l options.
* regtool.cc (Fail): Add call to LocalFree to free memory allocated by
FormatMessage.
|
| |
|
|
|
|
| |
(cmd_set): Ditto for rv.
|
| |
|
|
|
|
|
| |
* include/sys/socket.h: Change prototype to have 2nd parameter `const'.
* net.cc (cygwin_bind): Change 2nd parameter to `const'.
|
|
|
|
|
|
|
|
|
| |
* environ.cc (codepage_init): To here.
* exceptoins.cc (SIG_NONMASKABLE): Remove SIGCONT from consideration since it
is supposed to be maskable.
* signal.cc (sigaction): Ditto.
* sigproc.cc (wait_sig): Ditto.
* winsup.h: Eliminate global declaration of codepage_init.
|
|
|
|
|
|
|
|
| |
(setrlimit): Ditto.
Patch by David Sainty <David.Sainty@optimation.co.nz>:
* resource.cc (setrlimit): Prevent failing with an error when the
operation would not have changed anything.
|
| |
|
| |
|
|
|
|
| |
page before doing OemToCharBuff.
|
|
|
|
|
| |
* include/cygwin/version.h: Fix typo in CYGWIN_VERSION_DLL_COMBINED
macro.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* exceptions.cc (stackdump): Avoid creating stackdump when
`rlim_core' is 0.
* resource.cc: New global variable `rlim_core'.
(getrlimit): New function.
(setrlimit): Ditto.
include/cygwin/version.h: Bump minor API version to 32 due to
adding `getrlimit' and `setrlimit'.
include/sys/resource.h: Add defines, types and prototypes for
`getrlimit' and `setrlimit'.
|
|
|
|
|
|
|
|
| |
* exceptions.cc (interrupt_setup): Reorganize arguments to allow use of
regparm.
(interrupt_now): Ditto.
(interrupt_on_return): Ditto.
(call_handler): Ditto.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* security.cc (alloc_sd): Always set SE_DACL_PROTECTED flag on
Win2K and higher.
|
| |
|
| |
|
|
|
|
| |
ready to be read whether overlapped_armed or not.
|
|
|
|
| |
implementation.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
`smbntsec'.
* path.cc (path_conv::check): Check path for being a remote path.
If so and `allow_smbntsec' is set to FALSE, set has_acls to FALSE.
* security.cc: Add global definition for `allow_smbntsec'.
* security.h: Add extern declaration for `allow_smbntsec'.
* fhandler.cc (fhandler_disk_file::open): Eliminate extern declaration
of `allow_ntsec'.
* syscalls.cc: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
<matt@use.net>:
* utils/cygcheck.cc (keyeprint): Move declaration before other functions so it
could be used by all functions to report error messages. Add comment.
(add_path): Check for NULL return from malloc.
(find_on_path): Check initial uses of pointers for NULL.
(rva_to_offset): Ditto.
(init_paths): Add checking for return values of Win32 calls.
(get_dword): Ditto.
(get_word): Ditto.
(dll_info): Ditto, also add NULL pointer checks.
(scan_registry): Ditto.
(check_keys): Ditto.
(dump_sysinfo): Ditto. Add default case to switch. Add error reporting if
GetVolumeInformation fails, except when it returns ERROR_NOT_READY.
(track_down): Add checking for NULL pointers and return values of Win32 calls.
(cygwin_info): Ditto. Correct small memory leak.
|
|
|
|
|
|
|
|
| |
reporting.
(fhandler_console::char_command): Honor mouse events.
(fhandler_console::open): Enable mouse input events.
(fhandler_console::input_tcsetattr): Ditto.
* select.cc (peek_console): Add check for mouse events.
|
|
|
|
|
|
| |
dynamically.
(normalize_win32_path): Ditto.
* Makefile.in: Avoid scanning the directory twice for *.d files.
|
|
|
|
|
|
|
|
| |
method.
* fhandler_console.cc (fhandler_console::read): Revert previously misapplied
patch.
(fhandler_console::char_command): Add a second argument.
(fhandler_console::write): Recognize when a '?' is found after a <esc>[.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
added entry about scp leaving ssh procs on Win9x.
|
| |
|