2008-03-11 14:35:55 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dlfcn.cc (get_full_path_of_dll): Allow paths up to PATH_MAX.
|
|
|
|
(dlopen): Call get_full_path_of_dll with path buffer allocate by
|
|
|
|
tmp_pathbuf.
|
|
|
|
|
2008-03-11 14:26:40 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* spawn.cc (find_exec): Use tmp_pathbuf to allocate path buffer.
|
|
|
|
|
2008-03-11 14:17:52 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dtable.cc (dtable::init_std_file_from_handle): Use tmp_pathbuf to
|
|
|
|
allocate path buffer.
|
|
|
|
(handle_to_fn): Ditto. Allocate fnbuf big enough to get long path
|
|
|
|
names.
|
|
|
|
|
2008-03-11 13:34:08 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* path.cc (cwdstuff::set): Make sure drive_length is 0 for virtual
|
|
|
|
paths. Add comments.
|
|
|
|
* spawn.cc (spawn_guts): Don't allow to start a native Win32 application
|
|
|
|
from a long path or a virtual path. Print an error message to stderr.
|
|
|
|
|
2008-03-11 12:42:00 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* environ.cc (parse_options): Use tmp_pathbuf to allocate buffer.
|
|
|
|
(regopt): Take tmp buffer as additional argument.
|
|
|
|
(environ_init): Alllcate tmpbuf earlier. Use as temporary buffer in
|
|
|
|
call to regopt.
|
|
|
|
* tls_pbuf.cc (tmp_pathbuf::c_get): Allocate one additional char.
|
|
|
|
(tmp_pathbuf::w_get): Allocate one additional WCHAR.
|
|
|
|
* winf.cc (av::unshift): Use tmp_pathbuf to allocate buffer.
|
|
|
|
|
2008-03-11 12:12:09 +01:00
|
|
|
2008-03-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* syscalls.cc (sync): Use MAX_PATH rather than CYG_MAX_PATH.
|
|
|
|
|
2008-03-10 18:23:50 +01:00
|
|
|
2008-03-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.h (class fhandler_console): Add write_buf as pointer to
|
|
|
|
temporary buffer space.
|
|
|
|
* fhandler_console.cc (CONVERT_LIMIT): Define as NT_MAX_PATH. Add
|
|
|
|
comment.
|
|
|
|
(fhandler_console::write_normal): Use write_buf throughout.
|
|
|
|
(fhandler_console::write): Use tmp_pathbuf to allocate write_buf.
|
|
|
|
|
2008-03-10 17:48:56 +01:00
|
|
|
2008-03-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_console.cc (fhandler_console::write_normal): Don't print
|
|
|
|
chars marked as ERR chars.
|
|
|
|
|
2008-03-10 17:22:38 +01:00
|
|
|
2008-03-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.h (dev_console::con_to_str): Declare returning DWORD.
|
|
|
|
* fhandler_console.cc (dev_console::con_to_str): Return number of
|
|
|
|
multibyte char bytes.
|
|
|
|
(fhandler_console::read): Set nread to number of multibyte char bytes
|
|
|
|
returned from con_to_str.
|
|
|
|
(fhandler_console::write_normal): Reorder trunc buffer preocessing.
|
|
|
|
Return after writing valid multibyte sequence out of trunc buffer.
|
|
|
|
Change comments slightly.
|
|
|
|
|
2008-03-08 18:28:40 +01:00
|
|
|
2008-03-08 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_disk_file.cc (DIR_BUF_SIZE): Define required space for file
|
|
|
|
name in terms of sizeof(WCHAR).
|
|
|
|
(fhandler_disk_file::readdir_helper): Convert *all* of fname.
|
|
|
|
* path.cc (fillout_mntent): Use tmp_pathbuf for path buffer.
|
|
|
|
(symlink_worker): Ditto.
|
|
|
|
(SCAN_JUSTCHECKTHIS): New state for suffix_scan to define
|
|
|
|
that only the actual name gets cheked and a suffix is never attached.
|
|
|
|
(suffix_scan::has): If filename + suffix would be > NAME_MAX, start
|
|
|
|
in SCAN_JUSTCHECKTHIS state.
|
|
|
|
(suffix_scan::next): Add case for SCAN_JUSTCHECKTHIS.
|
|
|
|
(symlink_info::check): Use tmp_pathbuf for path buffer. Goto
|
|
|
|
file_not_symlink in case of invalid file name.
|
|
|
|
(realpath): Use tmp_pathbuf for path buffer.
|
|
|
|
|
2008-03-08 04:28:34 +01:00
|
|
|
2008-03-07 Brian Dessent <brian@dessent.net>
|
|
|
|
|
|
|
|
* dtable.cc (handle_to_fn): Null-terminate posix_fn in the case
|
|
|
|
of justslash = true.
|
|
|
|
|
2008-03-08 02:33:22 +01:00
|
|
|
2008-03-07 Brian Dessent <brian@dessent.net>
|
|
|
|
|
|
|
|
* fhandler.cc (fhandler_base::open): Use %S for PUNICODE_STRING.
|
|
|
|
* syscalls.cc (setmode): Ditto.
|
|
|
|
|
2008-03-07 15:47:48 +01:00
|
|
|
2008-03-07 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_socket.cc (fhandler_socket::sendto): Never send more than
|
|
|
|
64K. Add comment to explain why.
|
|
|
|
(fhandler_socket::sendmsg): Ditto.
|
|
|
|
|
2008-03-07 12:24:51 +01:00
|
|
|
2008-03-07 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (DLL_OFILES): Add tls_pbuf.o.
|
|
|
|
* autoload.cc (CreateDesktopW): Replace CreateDesktopA.
|
|
|
|
(CreateWindowStationW): Replace CreateWindowStationA.
|
|
|
|
(GetUserObjectInformationW): Replace GetUserObjectInformationA.
|
|
|
|
* cygheap.h (cwdstuff::get): Assume default buffer size NT_MAX_PATH.
|
|
|
|
* cygtls.cc (_cygtls::remove): Free temporary TLS path buffers.
|
|
|
|
* cygtls.h (TP_NUM_C_BUFS): Define.
|
|
|
|
(TP_NUM_W_BUFS): Define.
|
|
|
|
(class tls_pathbuf): New class to store pointers to thread local
|
|
|
|
temporary path buffers.
|
|
|
|
(_local_storage::pathbufs): New member.
|
|
|
|
* environ.cc (win_env::add_cache): Use temporary TLS path buffer instead
|
|
|
|
of stack based buffer.
|
|
|
|
(posify): Get temporary outenv buffer from calling function.
|
|
|
|
(environ_init): Create temporary TLS path buffer for posify.
|
|
|
|
(build_env): Create Windows environment block as WCHAR buffer.
|
|
|
|
* environ.h (build_env): Change declaration accordingly.
|
|
|
|
* external.cc (sync_winenv): Accommodate build_env change.
|
|
|
|
* fhandler_console.cc (fhandler_console::need_invisible): Use
|
|
|
|
GetUserObjectInformationW and CreateWindowStationW.
|
|
|
|
* fhandler_process.cc (format_process_maps): Use temporary TLS path
|
|
|
|
buffer instead of stack based buffer.
|
|
|
|
* fork.cc (frok::parent): Convert to use CreateProcessW.
|
|
|
|
* path.cc: Throughout use temporary TLS path buffers instead of stack
|
|
|
|
based buffer. Replace checks for CYG_MAX_PATH by checks for
|
|
|
|
NT_MAX_PATH.
|
|
|
|
(getfileattr): New function to replace GetFileAttributesA.
|
|
|
|
(normalize_win32_path): Remove Win32 and NT long path prefixes.
|
|
|
|
(getwd): Assume PATH_MAX + 1 buffer per SUSv3.
|
|
|
|
* path.h (class path_conv): Set path buffer to size NT_MAX_PATH.
|
|
|
|
(iswdrive): Define.
|
|
|
|
* pinfo.cc (commune_process): Use temporary TLS path buffer instead of
|
|
|
|
stack based buffer.
|
|
|
|
* registry.cc (get_registry_hive_path): Ditto.
|
|
|
|
(load_registry_hive): Ditto.
|
|
|
|
* spawn.cc (spawn_guts): Convert to use CreateProcessW and
|
|
|
|
CreateProcessAsUserW.
|
|
|
|
(av::fixup): Open/close file using NtOpenFile/NtClose.
|
|
|
|
* syscalls.cc (mknod_worker): Allow PATH_MAX file name.
|
|
|
|
(mknod32): Ditto.
|
|
|
|
(getusershell): Ditto.
|
|
|
|
* tls_pbuf.cc: New file implementing tls_pathbuf and tmp_pathbuf
|
|
|
|
methods.
|
|
|
|
* tls_pbuf.h: New header for files using tmp_pathbuf.
|
|
|
|
* tlsoffsets.h: Regenerate.
|
|
|
|
* winsup.h (NT_MAX_PATH): Define as 32767 to avoid USHORT overflow.
|
|
|
|
|
2008-03-06 11:30:50 +01:00
|
|
|
2008-03-06 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
|
|
|
|
|
2008-03-06 11:16:07 +01:00
|
|
|
2008-03-06 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.cc (fhandler_base::open_): Add missing test for O_CREAT.
|
|
|
|
Fix comment.
|
|
|
|
|
2008-03-05 19:31:09 +01:00
|
|
|
2008-03-05 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* child_info.h (~child_info_spawn): Check moreinfo->myself_pinfo for
|
|
|
|
NULL before closing.
|
|
|
|
* spawn.cc (spawn_guts): Don't close moreinfo->myself_pinfo explicitely
|
|
|
|
in case of failing CloseProcess.
|
|
|
|
|
|
|
|
* fhandler.cc (fhandler_base::open_): Return EISDIR when trying to
|
|
|
|
create a directory.
|
|
|
|
* path.cc (path_conv::check): If input path had a trailing dir
|
|
|
|
separator, tack it on to the native path if directory doesn't exist.
|
|
|
|
|
2008-03-02 23:51:19 +01:00
|
|
|
2008-03-02 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::init_exception_handler): Semi-revert to making
|
|
|
|
only ourselves the exception handler and nothing else.
|
|
|
|
* exceptions.cc (open_stackdumpfile): Use correct format specifiers for
|
2008-03-03 00:11:00 +01:00
|
|
|
unicode when printing the name of the stackdump file.
|
2008-03-02 23:51:19 +01:00
|
|
|
(stack_info::walk): Stop walking if ebp points into cygwin itself.
|
|
|
|
(_cygtls::handle_exceptions): Detect when signal is masked and treat as
|
|
|
|
if it was not caught. Reinitialize exception handler to known state to
|
|
|
|
avoid subsequent attempts to call Windows exception handlers if an
|
|
|
|
exception occurs in a signal handler. Revert to a 'return 0' rather
|
|
|
|
than using a goto.
|
|
|
|
|
|
|
|
* strfuncs.cc (sys_wcstombs_alloc): Minor formatting tweak.
|
|
|
|
* winsup.h: Fix comment typo.
|
|
|
|
|
2008-03-02 23:25:07 +01:00
|
|
|
2008-03-02 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* smallprint.cc (__small_vsprintf): Free allocated buffer rather than
|
|
|
|
pointer into the buffer.
|
|
|
|
|
2008-03-01 15:53:44 +01:00
|
|
|
2008-03-01 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* cygtls.h (_cygtls::handle_threadlist_exception): Eliminate.
|
|
|
|
(_cygtls::init_threadlist_exceptions): Ditto.
|
|
|
|
* cygtls.cc (_cygtls::handle_threadlist_exception): Eliminate.
|
|
|
|
(_cygtls::init_threadlist_exceptions): Ditto.
|
|
|
|
(_cygtls::find_tls): Use myfault handling to deal with errors caused by
|
|
|
|
nonexistent threads.
|
2008-03-01 15:55:07 +01:00
|
|
|
* sigproc.cc (wait_sig): Eliminate call to init_threadlist_exceptions.
|
2008-03-01 15:53:44 +01:00
|
|
|
|
2008-03-01 14:19:08 +01:00
|
|
|
2008-03-01 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::init_exception_handler): Just return.
|
|
|
|
|
2008-03-01 14:18:22 +01:00
|
|
|
2008-03-01 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* exceptions.cc (_cygtls::handle_exceptions): Only call rtl_unwind when
|
|
|
|
exiting. Just return, don't set thread context.
|
|
|
|
* gendef (_setjmp): Store %fs:0 in jmp_buf.
|
|
|
|
(_sjfault): Ditto.
|
|
|
|
(_ljfault): Restore %fs:0 from jmp_buf.
|
|
|
|
(_longjmp): Ditto.
|
|
|
|
|
2008-02-29 17:38:51 +01:00
|
|
|
2008-02-29 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fs
|
|
|
|
instead of close to avoid calling close from wrong class when changing
|
|
|
|
a file system based device node.
|
|
|
|
(fhandler_disk_file::fchown): Ditto.
|
|
|
|
(fhandler_disk_file::facl): Ditto.
|
|
|
|
|
2008-02-28 18:57:42 +01:00
|
|
|
2008-02-28 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* exceptions.cc (_cygtls::handle_exceptions): When being debugged,
|
|
|
|
leave through SetThreadContext, too, to keep exception handler stack
|
|
|
|
intact.
|
|
|
|
|
2008-02-28 18:09:34 +01:00
|
|
|
2008-02-28 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* exceptions.cc (open_stackdumpfile): Add comments.
|
|
|
|
|
2008-02-28 16:50:51 +01:00
|
|
|
2008-02-28 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* exceptions.cc (open_stackdumpfile): Use NtCreateFile to create
|
|
|
|
stackdump file.
|
|
|
|
|
2008-02-27 19:08:52 +01:00
|
|
|
2008-02-27 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* exceptions.cc (stack_info::walk): Fix typo.
|
|
|
|
|
2008-02-27 18:57:14 +01:00
|
|
|
2008-02-27 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::init_exception_handler): Fix comment.
|
|
|
|
|
2008-02-27 18:53:39 +01:00
|
|
|
2008-02-27 Corinna Vinschen <corinna@vinschen.de>
|
2008-02-27 18:52:33 +01:00
|
|
|
|
|
|
|
* (struct __DIR_cache): Switch order of members so that the buffer
|
|
|
|
given to NtQueryDirectoryFile is 8 byte aligned.
|
|
|
|
|
2008-02-27 18:16:46 +01:00
|
|
|
2008-02-27 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::handle_threadlist_exception): Make it clear that
|
|
|
|
the function never actually returns.
|
|
|
|
* exceptions.cc (_cygtls::handle_exceptions): Jump out of function
|
|
|
|
rather than returning to avoid meddling by previously installed
|
|
|
|
exception handlers.
|
|
|
|
|
2008-02-25 19:32:23 +01:00
|
|
|
2008-02-25 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dcrt0.cc (initial_env): Only use local buffer "buf" if DEBUGGING is
|
|
|
|
enabled. Replace calls to GetEnvironmentVariable by calls to
|
|
|
|
GetEnvironmentVariableA for clarity. Call GetEnvironmentVariableA
|
|
|
|
with NULL buffer.
|
|
|
|
(cygbench): Ditto, drop local buffer.
|
|
|
|
* environ.cc (getearly): Call GetEnvironmentVariableA.
|
|
|
|
(environ_init): Retrieve unicode environment and convert to current
|
|
|
|
codepage locally.
|
|
|
|
(getwinenveq): Ditto.
|
|
|
|
* exceptions.cc (try_to_debug): Accommodate new sys_mbstowcs calling
|
|
|
|
convention.
|
|
|
|
* fhandler_clipboard.cc (set_clipboard): Call sys_mbstowcs to retrieve
|
|
|
|
required buffer length.
|
|
|
|
* fork.cc (frok::child): Call GetEnvironmentVariableA.
|
|
|
|
* miscfuncs.cc: Accommodate changed arguments in calls to sys_mbstowcs.
|
|
|
|
* sec_auth.cc: Ditto.
|
|
|
|
* strfuncs.cc (sys_wcstombs_alloc): Fix formatting.
|
|
|
|
(sys_mbstowcs): Change arguments to allow specifying a source string
|
|
|
|
length.
|
|
|
|
(sys_mbstowcs_alloc): Ditto.
|
|
|
|
* uinfo.cc (cygheap_user::ontherange): Accommodate changed arguments in
|
|
|
|
calls to sys_mbstowcs.
|
|
|
|
* winsup.h (sys_mbstowcs): Adjust declaration.
|
|
|
|
(sys_mbstowcs_alloc): Ditto.
|
|
|
|
|
2008-02-20 15:42:29 +01:00
|
|
|
2008-02-20 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* path.cc (cwdstuff::set): Revert error handling change in case
|
|
|
|
DuplicateHandle fails, because it breaks Vista/Longhorn workaround.
|
|
|
|
|
2008-02-19 22:42:48 +01:00
|
|
|
2008-02-19 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* sigproc.cc (sig_send): Use sigmask of target thread if it is
|
|
|
|
specified otherwise default to main sigmask.
|
|
|
|
|
2008-02-16 10:43:19 +01:00
|
|
|
2008-02-16 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX and
|
|
|
|
_PC_PATH_MAX cases.
|
|
|
|
|
2008-02-16 10:37:58 +01:00
|
|
|
2008-02-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* include/sys/cygwin.h (__INT_MAX_PATH): Remove.
|
|
|
|
(external_pinfo): Convert program_long to pointer.
|
|
|
|
* external.cc (fillout_pinfo): Add buffer for program_long value.
|
|
|
|
|
2008-02-15 21:11:06 +01:00
|
|
|
2008-02-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* include/sys/cygwin.h (__INT_MAX_PATH): Define to 32K.
|
2008-02-16 10:37:58 +01:00
|
|
|
(external_pinfo): Set size of program_long to __INT_MAX_PATH.
|
2008-02-15 21:11:06 +01:00
|
|
|
|
2008-02-15 19:07:07 +01:00
|
|
|
2008-02-15 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* include/sys/cygwin.h (external_pinfo): Define program_long size using
|
|
|
|
external buffer size rather than cygwin-internal buffer size.
|
|
|
|
|
2008-02-15 18:53:11 +01:00
|
|
|
2008-02-15 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
Perform whitespace cleanup throughout.
|
|
|
|
|
|
|
|
* dcrt0.cc (signal_shift_subtract): Eliminate ancient backwards
|
|
|
|
compatibility.
|
|
|
|
(check_sanity_and_sync): Ditto.
|
|
|
|
* winsup.h (SIGTOMASK): Ditto. Just use constant in signal
|
|
|
|
calculation.
|
|
|
|
* include/cygwin/version: Remove backwards signal mask compatibility
|
|
|
|
define.
|
|
|
|
|
|
|
|
* path.cc (symlink_info::check_sysfile): Cosmetic change.
|
|
|
|
|
|
|
|
* registry.cc (get_registry_hive_path): Remove unneeded variable.
|
|
|
|
|
|
|
|
* exceptions.cc (handle_sigsuspend): Eliminate thread signal mask and
|
|
|
|
use either main sigmask or current thread sigmask.
|
|
|
|
(set_process_mask): Ditto.
|
|
|
|
(sighold): Ditto.
|
|
|
|
(sigrelse): Ditto.
|
|
|
|
(sigset): Ditto.
|
|
|
|
(set_process_mask_delta): Ditto.
|
|
|
|
(_cygtls::call_signal_handler): Ditto.
|
|
|
|
* fhandler_process.cc (format_process_status): Ditto.
|
|
|
|
* fhandler_termios.cc (fhandler_termios::bg_check): Ditto.
|
|
|
|
* pinfo.h (class pinfo): Ditto.
|
|
|
|
* select.cc (pselect): Ditto.
|
|
|
|
* signal.cc (sigprocmask): Ditto.
|
|
|
|
(abort): Ditto.
|
|
|
|
(sigpause): Ditto.
|
|
|
|
(sigsend): Ditto.
|
|
|
|
(wait_sig): Ditto.
|
|
|
|
* thread.h (pthread::parent_tls): New member.
|
|
|
|
* thread.cc (pthread::pthread): Record parent_tls here.
|
|
|
|
(pthread::thread_init_wrapper): Initialize sigmask from parent thread.
|
|
|
|
|
2008-02-14 17:47:11 +01:00
|
|
|
2008-02-14 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygheap.cc (cwcsdup): New function.
|
|
|
|
(cwcsdup1): New function.
|
|
|
|
* cygheap.h (cygheap_user::get_windows_id): New method returning PWCHAR.
|
|
|
|
(cwcsdup): Declare.
|
|
|
|
(cwcsdup1): Declare.
|
|
|
|
* registry.cc (get_registry_hive_path): Use WCHAR instead of char
|
|
|
|
throughout.
|
|
|
|
(load_registry_hive): Ditto.
|
|
|
|
* registry.h (get_registry_hive_path): Change declaration accordingly.
|
|
|
|
(load_registry_hive): Ditto.
|
|
|
|
* sec_helper.cc (cygpsid::string): New method returning PWCHAR.
|
|
|
|
* security.h (cygpsid::string): Declare.
|
|
|
|
* syscalls.cc (seteuid32): Convert local name var to WCHAR.
|
|
|
|
* uinfo.cc (cygheap_user::env_userprofile): Convert local name buffers
|
|
|
|
to WCHAR. Call sys_wcstombs_alloc to generate puserprof buffer.
|
|
|
|
|
|
|
|
* winsup.h: Fix comment.
|
|
|
|
(NT_MAX_PATH): New definition for maximum internal path length.
|
|
|
|
Use throughout where appropriate.
|
|
|
|
* include/limits.h (PATH_MAX): Set to 4096 as on Linux.
|
|
|
|
|
2008-02-14 01:49:47 +01:00
|
|
|
2008-02-13 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* configure.in: Remove non-working options.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2008-02-13 18:21:05 +01:00
|
|
|
2008-02-13 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* syscalls.cc (_isatty): Define as an alias to isatty to override
|
|
|
|
newlib version.
|
|
|
|
|
|
|
|
* thread.cc (pthread_kill): Deal with signal 0 as per POSIX and also
|
|
|
|
avoid manipulating an invalid thread.
|
|
|
|
|
* posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,
wcstoll, wcstoul, wcstoull, wcsxfrm from unimplemented to implemented
POSIX interfaces.
Change headline of "GNU extensions" to "GNU and Linux extensions".
Add fgetxattr, flistxattr, fremovexattr, fsetxattr, getxattr, lgetxattr,
listxattr, llistxattr, lremovexattr, lsetxattr, removexattr, setxattr,
wcpcpy and wcpncpy to list of implemented GNU functions.
2008-02-13 15:50:39 +01:00
|
|
|
2008-02-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* posix.sgml: Move llrint, llrintf, llrintl, lrintl, rintl, wcstol,
|
|
|
|
wcstoll, wcstoul, wcstoull, wcsxfrm from unimplemented to implemented
|
|
|
|
POSIX interfaces.
|
|
|
|
Change headline of "GNU extensions" to "GNU and Linux extensions".
|
|
|
|
Add fgetxattr, flistxattr, fremovexattr, fsetxattr, getxattr, lgetxattr,
|
|
|
|
listxattr, llistxattr, lremovexattr, lsetxattr, removexattr, setxattr,
|
|
|
|
wcpcpy and wcpncpy to list of implemented GNU functions.
|
|
|
|
|
2008-02-13 10:42:22 +01:00
|
|
|
2008-02-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::init_exception_handler): Revert patch
|
|
|
|
from 2005-12-02.
|
|
|
|
* exceptions.cc (stack_info::walk): Add workaround for NT 5.2
|
|
|
|
64 bit OSes.
|
|
|
|
* wincap.h (wincaps::has_restricted_stack_args): New element.
|
|
|
|
* wincap.cc: Implement above element throughout.
|
|
|
|
(wincapc::init): Reset has_restricted_stack_args if not running
|
|
|
|
under WOW64.
|
|
|
|
|
2008-02-11 20:03:36 +01:00
|
|
|
2008-02-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): Remove unused
|
|
|
|
attr.
|
|
|
|
(fhandler_disk_file::fsetxattr): Ditto.
|
|
|
|
* include/attr/xattr.h: New file.
|
|
|
|
|
2008-02-11 17:39:06 +01:00
|
|
|
2008-02-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dcrt0.cc (dll_crt0_1): Fix typo in call to sys_wcstombs.
|
|
|
|
* miscfuncs.cc (next_char): Initialize ret to keep gcc happy.
|
|
|
|
|
* Makefile.in (DLL_OFILES): Add ntea.o.
* cygwin.din (getxattr, listxattr, removexattr, setxattr, lgetxattr,
llistxattr, lremovexattr, lsetxattr, fgetxattr, flistxattr,
fremovexattr, fsetxattr): Export Linux extended attribute functions.
Sort.
* errno.cc (errmap): Add mappings for ERROR_EAS_DIDNT_FIT,
ERROR_EAS_NOT_SUPPORTED, ERROR_EA_LIST_INCONSISTENT,
ERROR_EA_TABLE_FULL, ERROR_FILE_CORRUPT, ERROR_INVALID_EA_NAME.
* fhandler.h (class fhandler_base): Declare new fgetxattr and
fsetxattr methods.
(class fhandler_disk_file): Ditto.
* fhandler.cc (fhandler_base::fgetxattr): New method.
(fhandler_base::fsetxattr): New method.
* fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): New method.
(fhandler_disk_file::fsetxattr): New method.
* ntdll.h (STATUS_EA_TOO_LARGE): Define.
(STATUS_NONEXISTENT_EA_ENTRY): Define.
(STATUS_NO_EAS_ON_FILE): Define.
* ntea.cc (read_ea): Rewrite for long pathnames and for using with
Linux extended attribute functions.
(write_ea): Ditto.
(getxattr_worker): New static function.
(getxattr): New function.
(lgetxattr): New function.
(fgetxattr): New function.
(listxattr): New function.
(llistxattr): New function.
(flistxattr): New function.
(setxattr_worker): New static function.
(setxattr): New function.
(lsetxattr): New function.
(fsetxattr): New function.
(removexattr): New function.
(lsetxattr): New function.
(fsetxattr): New function.
* security.h (read_ea): Change declaration according to above changes.
(write_ea): Ditto.
* include/cygwin/version.h: Bump API minor version.
2008-02-10 16:43:04 +01:00
|
|
|
2008-02-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (DLL_OFILES): Add ntea.o.
|
|
|
|
* cygwin.din (getxattr, listxattr, removexattr, setxattr, lgetxattr,
|
|
|
|
llistxattr, lremovexattr, lsetxattr, fgetxattr, flistxattr,
|
|
|
|
fremovexattr, fsetxattr): Export Linux extended attribute functions.
|
|
|
|
Sort.
|
|
|
|
* errno.cc (errmap): Add mappings for ERROR_EAS_DIDNT_FIT,
|
|
|
|
ERROR_EAS_NOT_SUPPORTED, ERROR_EA_LIST_INCONSISTENT,
|
|
|
|
ERROR_EA_TABLE_FULL, ERROR_FILE_CORRUPT, ERROR_INVALID_EA_NAME.
|
|
|
|
* fhandler.h (class fhandler_base): Declare new fgetxattr and
|
|
|
|
fsetxattr methods.
|
|
|
|
(class fhandler_disk_file): Ditto.
|
|
|
|
* fhandler.cc (fhandler_base::fgetxattr): New method.
|
|
|
|
(fhandler_base::fsetxattr): New method.
|
|
|
|
* fhandler_disk_file.cc (fhandler_disk_file::fgetxattr): New method.
|
|
|
|
(fhandler_disk_file::fsetxattr): New method.
|
|
|
|
* ntdll.h (STATUS_EA_TOO_LARGE): Define.
|
|
|
|
(STATUS_NONEXISTENT_EA_ENTRY): Define.
|
|
|
|
(STATUS_NO_EAS_ON_FILE): Define.
|
|
|
|
* ntea.cc (read_ea): Rewrite for long pathnames and for using with
|
|
|
|
Linux extended attribute functions.
|
|
|
|
(write_ea): Ditto.
|
|
|
|
(getxattr_worker): New static function.
|
|
|
|
(getxattr): New function.
|
|
|
|
(lgetxattr): New function.
|
|
|
|
(fgetxattr): New function.
|
|
|
|
(listxattr): New function.
|
|
|
|
(llistxattr): New function.
|
|
|
|
(flistxattr): New function.
|
|
|
|
(setxattr_worker): New static function.
|
|
|
|
(setxattr): New function.
|
|
|
|
(lsetxattr): New function.
|
|
|
|
(fsetxattr): New function.
|
|
|
|
(removexattr): New function.
|
|
|
|
(lsetxattr): New function.
|
|
|
|
(fsetxattr): New function.
|
|
|
|
* security.h (read_ea): Change declaration according to above changes.
|
|
|
|
(write_ea): Ditto.
|
|
|
|
* include/cygwin/version.h: Bump API minor version.
|
|
|
|
|
2008-02-10 16:19:08 +01:00
|
|
|
2008-02-10 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
2008-02-10 16:44:12 +01:00
|
|
|
* libc/ftw.cc (ftw): Allow nfds <= 0 for glibc compatibility.
|
2008-02-10 16:19:08 +01:00
|
|
|
* libc/nftw.c (nftw): Ditto.
|
|
|
|
|
2008-02-07 19:59:40 +01:00
|
|
|
2008-02-07 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dtable.cc (dtable::init_std_file_from_handle): Set access to
|
2008-02-07 21:38:39 +01:00
|
|
|
read/write if handle is connected to a tty or console.
|
2008-02-07 19:59:40 +01:00
|
|
|
* fhandler_dsp.cc (fhandler_dev_dsp::dup): Set open flags correctly
|
|
|
|
after duplicating from archetype.
|
|
|
|
* fhandler_tty.cc (fhandler_tty_slave::dup): Ditto.
|
|
|
|
(fhandler_pty_master::dup): Ditto.
|
|
|
|
|
2008-02-06 23:04:16 +01:00
|
|
|
2008-02-06 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* miscfuncs.cc (next_char): Fix typos in comment.
|
|
|
|
* strfuncs.cc: Remove cygserver guards.
|
|
|
|
|
2008-02-06 19:24:50 +01:00
|
|
|
2008-02-06 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.h (fhandler_console::trunc_buf): Add to use as cache for
|
|
|
|
truncated multibyte characters on input.
|
|
|
|
(fhandler_console::write_replacement_char): Declare new method.
|
|
|
|
* fhandler_console.cc (CONVERT_LIMIT): Raise to 64K.
|
|
|
|
(fhandler_console::fhandler_console): Initialize trunc_buf.
|
|
|
|
(ERR): Define as independent value again.
|
|
|
|
(fhandler_console::write_replacement_char): New method to print
|
|
|
|
replacement chars.
|
|
|
|
(fhandler_console::write_normal): Add handling for truncated multibyte
|
|
|
|
sequences. Call next_char instead of pathetic CharNextExA function.
|
|
|
|
Don't change src, rather just work with found later on.
|
|
|
|
* miscfuncs.cc (is_cp_multibyte): Move here from strfuncs.cc.
|
|
|
|
Don't call Windows function, restrict to well-known ANSI/OEM codepages
|
|
|
|
and UTF-8.
|
|
|
|
(next_char): Call CharNextExA only for doublebyte codepages.
|
|
|
|
Implement for UTF-8 here.
|
|
|
|
* strfuncs.cc (is_cp_multibyte): Move to miscfuncs.cc.
|
|
|
|
* winsup.h (next_char): Declare.
|
|
|
|
* include/limits.h (MB_LEN_MAX): Set to maximum value of MB_CUR_MAX
|
|
|
|
as defined by newlib for now.
|
|
|
|
|
2008-02-05 18:37:10 +01:00
|
|
|
2008-02-05 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* autoload.cc (CharToOemA): Remove.
|
|
|
|
(CharNextExA): Define.
|
|
|
|
* environ.cc (codepage_init): Un-static. Set active_codepage to
|
|
|
|
active codepage. Default to ansi regardless of buf pointer.
|
|
|
|
* fhandler.h (dev_console::get_console_cp): New method.
|
|
|
|
(dev_console::con_to_str): Change declaration according to new
|
|
|
|
implementation.
|
|
|
|
(dev_console::str_to_con): Ditto.
|
|
|
|
* fhandler_console.cc (cp_convert): Remove.
|
|
|
|
(dev_console::con_to_str): Redefine to take WCHAR as incoming console
|
|
|
|
char.
|
|
|
|
(dev_console::get_console_cp): Return correct codepage according to
|
|
|
|
alternate_charset_active setting.
|
|
|
|
(dev_console::str_to_con): Redefine to create WCHAR buffer for console
|
|
|
|
output.
|
|
|
|
(fhandler_console::read): Read console input as WCHARs.
|
|
|
|
(base_chars): Fix typo in comment.
|
|
|
|
(fhandler_console::char_command): Save and restore console output
|
|
|
|
buffer using UNICODE functions.
|
|
|
|
(fhandler_console::write_normal): Convert to write output in UNICODE.
|
|
|
|
Use CharNextExA to recognize multibyte characters in input. Workaround
|
|
|
|
problem with UTF-8 and MultiByteToWideChar. Simplify the loop for
|
|
|
|
printing "normal" characters.
|
|
|
|
* strfuncs.cc (active_codepage): New variable to store active codepage.
|
|
|
|
(get_cp): Call codepage_init() if active_codepage is uninitialized.
|
|
|
|
Just return active_codepage.
|
|
|
|
(is_cp_multibyte): New function.
|
|
|
|
* winsup.h (active_codepage): Declare.
|
|
|
|
(codepage_init): Declare.
|
|
|
|
(is_cp_multibyte): Declare.
|
|
|
|
|
2008-02-04 13:00:19 +01:00
|
|
|
2008-02-03 Brian Dessent <brian@dessent.net>
|
|
|
|
|
|
|
|
* smallprint.cc (__small_vsprintf): Use HEAP_NOTHEAP for type.
|
|
|
|
* strfuncs.cc (sys_wcstombs_alloc): Guard use of ccalloc
|
|
|
|
to !__OUTSIDE_CYGWIN__ for use in cygserver.
|
|
|
|
(sys_mbstowcs_alloc): Ditto.
|
|
|
|
|
2008-02-01 14:11:57 +01:00
|
|
|
2008-02-01 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* miscfuncs.cc (cygwin_wcsncasecmp): Never access more than n
|
|
|
|
characters.
|
|
|
|
(cygwin_strncasecmp): Ditto. Fix for strings longer than n.
|
|
|
|
|
2008-02-01 13:37:51 +01:00
|
|
|
2008-02-01 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* string.h: Re-enable inline strcasematch and strncasematch
|
|
|
|
implementations and rename to ascii_strcasematch/ascii_strncasematch.
|
|
|
|
* dcrt0.cc: Replace str[n]casematch with ascii_str[n]casematch where
|
|
|
|
applicable.
|
|
|
|
* environ.cc: Ditto.
|
|
|
|
* fhandler_process.cc: Ditto.
|
|
|
|
* hookapi.cc: Ditto.
|
|
|
|
* path.cc: Ditto.
|
|
|
|
* spawn.cc: Ditto.
|
|
|
|
* strace.cc: Ditto.
|
|
|
|
* syscalls.cc: Ditto.
|
|
|
|
* uinfo.cc: Ditto.
|
|
|
|
* winf.cc: Ditto.
|
|
|
|
|
2008-01-31 21:26:01 +01:00
|
|
|
2008-01-31 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* dcrt0.cc (dll_crt0_1): Use GetCommandLineW and convert to current
|
|
|
|
codepage.
|
|
|
|
* environ.cc (set_file_api_mode): Always set file api to ANSI if not
|
|
|
|
using the OEM codepage.
|
|
|
|
(codepage_init): Allow "utf8" codepage.
|
|
|
|
* fhandler_clipboard.cc (set_clipboard): Convert clipbuf to void and
|
|
|
|
cast as needed. Always convert input to wide char and write
|
|
|
|
CF_UNICODETEXT to clipboard.
|
|
|
|
(fhandler_dev_clipboard::read): Read CF_UNICODETEXT from clipboard and
|
|
|
|
convert to current codepage if CYGWIN_NATIVE format is not available.
|
|
|
|
* fhandler_console.cc: Drop redundant undef.
|
|
|
|
* smallprint.cc (__small_vsprintf): Convert PWCHAR and UNICODE_STRING
|
|
|
|
to current codepage for printing.
|
|
|
|
* strfuncs.cc: Use PWCHAR throughout.
|
|
|
|
(get_cp): Return CP_UTF8 for utf8_cp codepage setting.
|
|
|
|
(sys_wcstombs): Allow NULL target buffer.
|
|
|
|
(sys_wcstombs_alloc): New function.
|
|
|
|
(sys_mbstowcs_alloc): Ditto.
|
|
|
|
* winsup.h (codepage_type): Add utf8_cp.
|
|
|
|
(HEAP_NOTHEAP): Define.
|
|
|
|
(sys_wcstombs_alloc): Declare.
|
|
|
|
(sys_mbstowcs_alloc): Declare.
|
|
|
|
|
2008-01-31 15:18:49 +01:00
|
|
|
2008-01-31 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygheap.h (struct cwdstuff): Add dir member to store cwd handle.
|
|
|
|
(cwdstuff::get_handle): New method.
|
|
|
|
* path.cc (cwdstuff::set): When doit is true, always try to get
|
|
|
|
directory handle. Fail if duplicating handle fails. Store handle
|
2008-02-15 18:53:11 +01:00
|
|
|
in dir. Fix potential SEGV when setting drive_length.
|
2008-01-31 15:18:49 +01:00
|
|
|
|
2008-01-28 13:19:30 +01:00
|
|
|
2008-01-28 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* path.cc: Fix Samba version in comment.
|
|
|
|
|
2008-01-24 18:29:29 +01:00
|
|
|
2008-01-24 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* path.cc (fs_info::update): Fix old-style Samba test to support
|
|
|
|
recent as well as upcoming Samba releases.
|
|
|
|
|
2008-01-22 18:43:22 +01:00
|
|
|
2008-01-22 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* ntdll.h (struct _FILE_FS_OBJECTID_INFORMATION): Define.
|
|
|
|
* path.cc (struct smb_extended_info): Define.
|
|
|
|
(fs_info::update): Request object id info to get Samba information.
|
|
|
|
Set flags according to new implementation.
|
|
|
|
* path.h (struct fs_info): Add samba_version to status_flags.
|
|
|
|
Implement flags() and samba_version() using IMPLEMENT_STATUS_FLAG.
|
|
|
|
|
2008-01-21 15:51:55 +01:00
|
|
|
2008-01-21 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
|
|
|
|
READ_CONTROL for Vista/Longhorn's sake.
|
|
|
|
|
2008-01-15 18:42:10 +01:00
|
|
|
2008-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (install-libs): Overwrite newlib's libg.a with symlink
|
|
|
|
to libcygwin.a.
|
|
|
|
|
2008-01-15 14:45:42 +01:00
|
|
|
2008-01-15 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* Makefile.in (DLL_OFILES): Remove memmem.o.
|
|
|
|
* memmem.cc: Remove in favor of newlib implementation.
|
|
|
|
|
2008-01-07 17:51:54 +01:00
|
|
|
2008-01-07 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* fhandler.h: Update copyright.
|
|
|
|
* include/limits.h: Ditto.
|
|
|
|
|
2008-01-06 19:37:20 +01:00
|
|
|
2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* fhandler.h (fhandler_base::is_tty): Make bool.
|
|
|
|
(fhandler_serial::is_tty): Ditto.
|
|
|
|
(fhandler_termios::is_tty): Ditto.
|
|
|
|
(fhandler_base::is_slow): Return bool value.
|
|
|
|
(fhandler_socket::is_slow): Ditto.
|
|
|
|
(fhandler_serial::is_slow): Ditto.
|
|
|
|
(fhandler_console::is_slow): Ditto.
|
|
|
|
(fhandler_tty_common::is_slow): Ditto.
|
|
|
|
(fhandler_tty_master::is_slow): Ditto.
|
|
|
|
(fhandler_dev_null::is_slow): Ditto.
|
|
|
|
|
2008-01-06 19:31:35 +01:00
|
|
|
2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* include/limits.h (TTY_NAME_MAX): Increase size to same as linux to
|
|
|
|
allow for (at least) null terminating byte for "/dev/console".
|
|
|
|
|
2008-01-01 20:07:36 +01:00
|
|
|
2008-01-01 Christopher Faylor <me+cygwin@cgf.cx>
|
|
|
|
|
|
|
|
* tty.cc: Update copyright.
|
|
|
|
* pipe.cc: Ditto.
|
|
|
|
|
2008-01-01 19:51:23 +01:00
|
|
|
2008-01-01 Christopher Faylor <me+cygwin@cgf.cx>
|
* cygwin.din (_f_llrint, _f_llrintf, _f_llrintl, _f_lrint, _f_lrintf,
_f_lrintl, _f_rint, _f_rintf, _f_rintl): Export fast *rint* functions.
(lrint, lrintf, rint, rintf): Redirect exports to alias _f_ versions.
(llrint, llrintf, llrintl, lrintl, rintl): Add exports aliasing _f_*
versions likewise.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2007-12-30 22:12:08 +01:00
|
|
|
|
2008-01-01 19:51:23 +01:00
|
|
|
* newsym: First stab at understanding data as well as functions.
|
* cygwin.din (_f_llrint, _f_llrintf, _f_llrintl, _f_lrint, _f_lrintf,
_f_lrintl, _f_rint, _f_rintf, _f_rintl): Export fast *rint* functions.
(lrint, lrintf, rint, rintf): Redirect exports to alias _f_ versions.
(llrint, llrintf, llrintl, lrintl, rintl): Add exports aliasing _f_*
versions likewise.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2007-12-30 22:12:08 +01:00
|
|
|
|
2008-01-01 19:51:23 +01:00
|
|
|
* pipe.cc (fhandler_pipe::init): Move more intelligence here.
|
|
|
|
(fhandler_pipe::create): Simplify based on above change.
|
2007-12-22 14:26:47 +01:00
|
|
|
|
2008-01-01 19:51:23 +01:00
|
|
|
* tty.cc (tty_list::allocate): Remove non-NT code.
|
2007-12-22 14:26:47 +01:00
|
|
|
|