| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
to TOKEN_INFORMATION_CLASS type.
Add QUOTA_LIMITS type.
|
| |
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
* lib/userenv.def: New stub for userenv.dll.
|
|
|
|
| |
(discovered by Axel Riese)
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* *.cc: put winsup.h before other headers (for __INSIDE_CYGWIN__);
use cur_environ() instead of just environ
* times.cc: remove import protections
* glob.c: add winsup.h
* localtime.c: ditto
* smallprint.c: ditto
* Makefile.in: don't __INSIDE_CYGWIN__ as it messes up profiling.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
variable argument macros when possible.
* sigproc.cc: Throughout, use sigproc_printf rather than sip_printf.
* strace.cc (strace::prntf): Remove 'active' check, since callers are supposed
to ensure this.
(__system_printf): Remove. Subsumed by strace::prntf.
* winsup.h: Define "NEW_MACRO_VARARGS" to indicate when to use new macro
varargs capability.
|
| |
|