| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
| |
conversion
(FACTOR): correct value
(genf): set milliseconds to zero, DOW to 4.
|
|
|
|
| |
enough to hold all supplementary group IDs.
|
|
|
|
|
|
|
|
| |
* exceptions.cc (unused_sig_wrapper): Remove _raise.
* sigproc.h (class sigframe): Default frames to skip to zero or suffer from
exuberant optimization.
* fhandler_tty.cc (fhandler_tty::write): Set appropriate errno when WriteFile
to pipe fails.
|
|
|
|
|
|
| |
* pinfo.cc (pinfo::release): Move here from pinfo.h.
* sigproc.cc (proc_terminate): Remove bogus 'pinfo child' which caused strange
destruction of random regions of memory when destructor was invoked.
|
|
|
|
|
|
|
|
|
|
|
| |
(_dll_crt0): To here.
(cygwin_dll_init): And here.
* external.cc (fillout_pinfo): Use more foolproof method for scanning for pids.
* pinfo.cc (set_myself): Eliminate myself_identity.init.
* sigproc.cc (wait_sig): Do it here instead to reduce the amount of time where
there could potentially be two processes with the same pid.
* spawn.cc (spawn_guts): Eliminate duplicate initialization.
* include/sys/cygwin.h: Mark unused PID_* elements.
|
|
|
|
| |
newlib/libc/include/sys/unistd.h.
|
|
|
|
|
|
|
| |
exception handling on threads not created by cygwin.
* sigproc.cc (proc_terminate): Don't release pinfo structs since we are
exiting.
* include/sys/cygwin.h: Add CW_INIT_EXCEPTIONS.
|
| |
|
|
|
|
|
| |
is no wait specified.
* syslog.cc (pass_handler::set_message): Zero the buffer prior to setting it.
|
| |
|
|
|
|
|
|
| |
core files.
* include/sys/procfs.h: New file, needed to autoconfigure cygwin core dumps
support in bfd.
|
|
|
|
|
|
|
|
| |
(regopt): Use correct path to find LOCAL_MACHINE registry options.
* fhandler.cc (fhandler_base::open): Set binary mode only when binmode ==
O_BINARY.
* pipe.cc (pipe): Pipe handling should rely on binmode not _fmode now that the
two are different.
|
|
|
|
|
| |
_STRACE_SYSTEM.
(strace_printf_wrap1): Ditto.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the process. Use new second argument to set_myself.
(cygwin_dll_init): Initialize exception list and constructor stuff here.
(_dll_crt0): And here. Also, deal with inherited pinfo shared memory region
from parent.
* pinfo.cc (set_myself): Accept a second argument signifying the a shared
memory region, passed from an execing parent.
(pinfo_init): Ditto.
* pinfo.h: Ditto.
* shared.h (child_info): Add a handle field to pass to child.
* spawn.cc (spawn_guts): Create a shared handle to pass to an execed child.
* winsup.h: Remove extraneous declaration.
|
| |
|
| |
|
|
|
|
| |
check.
|
| |
|
|
|
|
| |
* include/mntent.h: Avoid declaring functions.
|
|
|
|
|
| |
only in sources which require them.
* Makefile.in: Generate dependencies with -MD option.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
required.
* errno.cc: Use DWORD to hold Windows errors.
(geterrno_from_win_error): New function.
(seterrno_from_win_error): Use geterrno_from_win_error to convert supplied
windows error (suggested by Corinna Vinschen).
* path.cc (symlink_info): Add error element.
* path.cc (path_conv::check): Remove errno setting. Use new symlink_info errno
element to set path_conv error, where appropriate.
(symlink_info::check): Set error element rather than attempting to manipulate
errno. Add more checks for trailing / and /.. even though they are currently
useless. Avoid setting EINVAL.
* path.cc (normalize_posix_path): Correct check for trailing /.
|
| |
|
|
|
|
| |
not handle. (reverse of previous diff)
|
|
|
|
| |
not hinstance.
|
| |
|
| |
|
|
|
|
| |
allocated bounds.
|
|
|
|
| |
statement.
|
| |
|
| |
|
|
|
|
|
|
| |
* dtable.h: New file.
* sigproc.h: Eliminate pinfo.h usage here. Use it in source files that need
it.
|
| |
|
| |
|
|
|
|
| |
Allocate fd_set struct sdynamically.
|
| |
|
|
|
|
|
|
| |
if fd is invalid. Return POLLERR for each valid fd if cygwin_select
returned with error.
include/sys/poll.h: Change POLLERR comment according to above change.
|
|
|
|
| |
buffer. Also fix a buffer overrun.
|
|
|
|
| |
* select.cc (select_stuff::wait): Bounds check w4 array.
|
|
|
|
|
|
| |
filenames.
* fhandler.cc (fhandler_disk_file::fstat): Use modern method for saving errno,
making it effective for the whole function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(cygwin_select): Move fd_set copying logic from ::wait to here. Use common
return through sell.poll.
(select_stuff::wait): Just return success or failure and let caller fill in
fd_set.
* pinfo.h (pinfo): Eliminate self-referential pointer to sidbuf since pinfo
structure exists at random locations now.
* fork.cc (fork): Use 'use_psid' element to control when the psid is relevant.
* shared.cc (sec_user): Ditto.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (internal_getlogin): Ditto.
* syscall.cc (seteuid): Ditto. Set use_psid element.
|
|
|
|
| |
must be in units of microseconds, not milliseconds.
|
| |
|
|
|
|
|
|
|
| |
since we are already bounds checked by default.
* thread.cc (ResourceLocks::Lock): Streamline this function since it is called
a lot.
(ReleaseResourceLock): Ditto.
|
|
|
|
|
|
| |
may block and cursor may not be visible.
* select.cc (fhandler_console::select_write): Ditto.
* select.cc (fhandler_console::select_except): Ditto.
|
|
|
|
| |
correctly when "need_nl".
|
|
|
|
|
|
|
|
|
|
| |
recovery.
* spawn.cc (spawn_guts): Reorganize slightly to consolidate handling when there
is a CreateProcess error.
(_spawnve): Only longjmp back to vfork handling when a process has been
successfuly started.
* winsup.h (vfork_save): Extend to include frame info. Remove obsolete cpplus
conditionals.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
than use special format options.
(strace::vprntf): Ditto.
(getfunc): New function.
* include/sys/strace.h: Reflect above changes.
* smallprint.c (__small_vsprintf): Eliminate '%F' formatting.
* pinfo.cc (set_myself): Modify for new strace::prntf parameter.
* errno.cc (seterrno_from_win_error): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__release_output_mutex): Ditto.
|