| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
uninitialized by gcc.
|
|
|
|
| |
* dll_init.cc: Fix typo in comment.
|
| |
|
|
|
|
| |
* configure: Regenerate.
|
|
|
|
|
|
|
| |
erroneous premature return after collecting truncated multibyte
sequence in trunc_buf. Rather fall through to printing routine.
Fix return value to take trunc_buf content into account. Improve
comments.
|
|
|
|
| |
avoid stack damage.
|
| |
|
| |
|
|
|
|
|
|
| |
(errx): Ditto.
(verr): Ditto.
(verrx): Ditto.
|
|
|
|
| |
backslashes from Win32 environment path lists.
|
|
|
|
| |
error from FlushFileBuffers().
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(fhandler_socket::bind): Change comment to explain setting the
SO_EXCLUSIVEADDRUSE socket option. Remove code which checks for
address in use.
* net.cc (cygwin_setsockopt): Never set SO_REUSEADDR option. Improve
comment to compensate for the deleted comment in fhandler_socket::bind.
* wincap.cc: Throughout, drop has_enhanced_socket_security from wincaps.
* wincap.h (struct wincaps): Drop has_enhanced_socket_security flags
and method.
|
|
|
|
|
|
|
|
| |
* configure.in: Configure winsup/cygserver regardless of cross_host.
* configure: Regenerate.
winsup/cygwin:
* configure.in: Define LIBSERVER regardless of cross_host.
* configure: Regenerate.
|
|
|
|
|
| |
pthread_testcancel in case of timeout to enable pthread_cancel
on waiting thread.
|
|
|
|
| |
sys/features.h.
|
|
|
|
|
| |
computation of st_blocks.
(fhandler_base::fstat_helper): Fix formatting.
|
| |
|
|
|
|
|
| |
Rework how NtOpenFile gets called to make it more readable. Change
comment.
|
|
|
|
|
|
|
|
|
|
| |
* winf.h: Move definitions of _P_PATH_TYPE_EXEC and _P_MODE from here...
* pinfo.h: ...to here.
(_P_PATH_TYPE_EXEC): Redefine to be bigger than _P_SYSTEM.
(_P_MODE): Redefine so as not to mask out _P_SYSTEM.
* spawn.cc (spawnlp): Add _P_PATH_TYPE_EXEC flag in call to spawnve.
(spawnlpe): Ditto.
(spawnvp): Ditto.
|
|
|
|
|
| |
Return ENOEXEC in !p_type_exec case only for unrecognized files.
Fix comment formatting.
|
|
|
|
| |
spawnve.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(_execve): Drop temporary define and drop export alias.
(execl): Call spawnve.
(execle): New function.
(execlp): New function.
(execv): Call spawnve.
(execve): Drop converting NULL envp to emtpy envp.
(execvp): Call spawnve.
(execvpe): Drop converting NULL envp to emtpy envp. Call spawnve.
(fexecve): Call spawnve.
* spawn.cc (spawnve): Convert NULL envp to emtpy envp. Remove outdated
comment.
(spawnlp): Call spawnve.
(spawnlpe): Ditto.
(spawnvp): Ditto.
(spawnvpe): Fix formatting.
|
|
|
|
|
|
| |
* strfuncs.cc (strccpy): ...to here.
* string.h (strccpy): Declare.
* winsup.h (strccpy): Drop declaration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* exec.cc (execvp): Call spawnve with _P_PATH_TYPE_EXEC flag
from here.
(execvpe): Ditto.
* spawn.cc (spawn_guts): Filter _P_PATH_TYPE_EXEC from mode and
store in p_type_exec. Call av::fixup with addtional p_type_exec
argument.
(spawnve): Check for filtered mode.
(spawnvpe): Add _P_PATH_TYPE_EXEC flag when calling spawnve.
(av::fixup): Accept additional bool parameter p_type_exec. Only check
for script if p_type_exec is true.
* winf.h (_P_PATH_TYPE_EXEC): Define.
(_P_MODE): Define.
(av::fixup): Declare with additional bool parameter.
|
| |
|
|
|
|
|
|
|
| |
PC_SYM_NOFOLLOW_REP flag is set.
(cygwin_conv_path): Set PC_SYM_NOFOLLOW_REP flag when converting from
POSIX to Win32.
* path.h (enum pathconv_arg): Define PC_SYM_NOFOLLOW_REP flag.
|
|
|
|
|
|
|
| |
(fhandler_proc::fill_filebuf): Handle return value of 0 from format
function as error.
(format_proc_stat): Set errno when returning 0 size.
(format_proc_partitions): Rewrite method to fetch partition info.
|
| |
|
|
|
|
| |
st_size of directories to 0. Explain why.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
* include/sys/mman.h: Define madvise constants, keep Linux-specific
constants undefined.
(madvise): Declare.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(class fhandler_dev_floppy): Convert partitions to part_t pointer.
Add lock_partition method.
* fhandler_floppy.cc (fhandler_dev_floppy::lock_partition): New method
to implement ondemand partition locking.
(fhandler_dev_floppy::write_file): Call lock_partition from here if
writing failed due to a potential write restriction on a disk
partition.
(fhandler_dev_floppy::open): Don't lock partitions here.
(fhandler_dev_floppy::close): Keep track of partition handle reference
count. Close handles and remove partitions pointer ony if count is 0.
(fhandler_dev_floppy::dup): Just copy partitions pointer and increment
reference count.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(class fhandler_dev_floppy): Add partitions array member. Add close
method.
* fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero
out partitions array.
(fhandler_dev_floppy::open): Fix "entire disk" condition for call to
DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO).
When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME)
on all affected disk partitions starting with Vista.
(fhandler_dev_floppy::close): New method.
(fhandler_dev_floppy::dup): Duplicate handles in partitions, if any.
* wincap.h (wincaps::has_restricted_raw_disk_access): New element.
* wincap.cc: Implement above element throughout.
|
|
|
|
|
| |
* include/sys/termios.h (cfgetospeed, cfgetispeed): Declare functions.
Move macros after declarations and make conditional on !__cplusplus.
|
|
|
|
| |
current locale and calling srand48.
|
|
|
|
| |
* ChangeLog: Start fresh.
|
|
|
|
| |
(_cygtls::init_thread): Seed random number generator on a per-thread basis.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cygwin.din: Export program_invocation_name and
program_invocation_short_name.
* dcrt0.cc: Set program_invocation*name to correct values, based on
argv[0].
* globals.cc (program_invocation_name): Define.
(program_invocation_short_name): Ditto
newlib:
* libc/include/sys/errno.h (program_invocation_name): Declare.
(program_invocation_short_name): Ditto.
|
|
|
|
| |
duplication now. Add more comments for clarity.
|
|
|
|
| |
DEF_(USER|GROUP|OTHER)_OBJ entries.
|
| |
|
|
|
|
| |
entries.
|
|
|
|
|
|
| |
with the tls.
* pinfo.cc (status_exit): Add debug output to report on unexpected exit.
* tls_pbuf.cc (tmp_pathbuf::c_get): Add more details to internal error.
|
| |
|
|
|
|
|
|
| |
(std_dll_init): Restructure loop to retry loading a DLL only if
specific errors occur. If these errors persist, try to load DLL
with name only.
|
| |
|