| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* path.sgml (func-cygwin-conv-path): Document returning EINVAL if
"from" is NULL.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of conglomerated newargv.setup(). Let newargv.setup() decide when to call
dup_all(). Only set argc and argv for cygwin processes.
(av::setup): Rename from av::fixup. Accept argc and argv parameters. Fill out
argv and argc here. Duplicate whole argv structure when this is a Cygwin
executable.
* winf.cc (linebuf::fromargv): Don't bother duplicating argv elements since
they will never be used.
* winf.h (av::set): Delete.
(av::setup): Rename from av::fixup. Add two parameters.
(av::replace0_maybe): Assign calloced to 1 rather than 'true' for clarity.
(av::dup_maybe): Delete.
(av::dup_all): Set calloced to show that we have duplicated all of the
arguments in the list.
|
|
|
|
|
| |
wcscoll since all calling functions are using wide chars. Explain in
preceeding comment.
|
| |
|
|
|
|
|
| |
installation separation since Cygwin 1.7.
(faq.using.third-party.multiple-copies): Ditto.
|
|
|
|
| |
pointer since getstack() already does that.
|
| |
|
|
|
|
| |
around definition of bzero.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(EXTRA_DLL_OFILES): Remove.
(DLL_OFILES): Remove EXTRA_DLL_OFILES.
(ASFLAGS): Define as -D_WIN64 on x86_64.
(GMON_OFILES): Add mcountFunc.o.
($(srcdir)/$(TLSOFFSETS_H)): Use target_cpu rather than CONFIG_DIR.
* configure.ac (CONFIG_DIR): Remove definition.
* configure: Regenerate.
* gcrt0.c: Use latest version from Mingw-w64 project.
* gmon.c: Ditto.
* gmon.h: Ditto.
* mcount.c: Ditto.
* mcountFunc.S: Ditto, new file.
* profil.c: Ditto.
* profil.h: Ditto.
* config: Remove entire directory.
|
|
|
|
| |
(.SUFFIXES): Add .S.
|
|
|
|
| |
(symlink_native): Fix creating relative native symlink.
|
|
|
|
| |
read access overrun when pos > 0.
|
|
|
|
|
| |
(__to_clock_t): Remove a debug_printf.
(times): Align syscall_printf to debug output of other system calls.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* times.cc (GetSystemTimePreciseAsFileTime): Temporarily declare here
to workaround missing definition in 32 bit w32api headers.
(get_system_time): New always inline function to call either
GetSystemTimePreciseAsFileTime or GetSystemTimeAsFileTime on a per OS
basis. Call throughout instead of GetSystemTimeAsFileTime.
* wincap.h (wincaps::has_precise_system_time): New element.
* wincap.cc: Implement above element throughout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Windows 9x compatibility.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop now unneeded
casts in calls to_timestruc_t.
(fhandler_base::utimens_fs): Ditto for timespec_to_filetime.
* fhandler_proc.cc (format_proc_stat): Ditto for to_time_t.
* hires.h (class hires_ms): Remove unused member initime_ns.
Remove declarations for timeGetTime_ns and prime.
(hires_ms::uptime): Remove.
* posix_ipc.cc (ipc_cond_timedwait): Ditto for timespec_to_filetime.
* fhandler_registry.cc (fhandler_registry::fstat): Add cast.
* resource.cc (fill_rusage): Call NtQueryInformationProcess rather than
GetProcessTimes to deal with LARGE_INTEGER rather than FILETIME.
* times.cc: Simplify time handling. Throughout, use LARGE_INTEGER
rather than FILETIME to simplify computations. Throughout use
{u}int64_t rather than {unsigned} long long. Drop unneeded casts since
NSPERSEC is 64 bit anyway.
(systime_ns): Remove.
(times): Call NtQuerySystemInformation to fetch boot time. Call
NtQueryInformationProcess rather than GetProcessTimes to deal with
LARGE_INTEGER rather than FILETIME. Call GetSystemTimeAsFileTime.
(totimeval): Use constant 1000000 as in other functions.
(time_t_to_filetime): Remove.
(to_time_t): Change return type to time_t.
(time_as_timestruc_t): Rename filetime to systime.
(time): Ditto. Add cast.
(hires_ns::nsecs): Fix return type cast.
(hires_ms::timeGetTime_ns): Remove.
(hires_ns::prime): Remove.
(hires_ms::nsecs): Drop call to prime. Call GetSystemTimeAsFileTime
directly. Subtract FACTOR here since it's the only function needing
to do so.
(minperiod): Cosmetically change to ULONG.
(hires_ns::resolution): Fix return type cast.
(hires_ms::resolution): Simplify, rely on NtQueryTimerResolution.
* winsup.h: Align time related prototypes to above changes.
|
|
|
|
|
| |
names for old pre-1.7 applications.
(get_ifs): Call gen_old_if_name for said old applications.
|
| |
|
|
|
|
| |
allows to access files via ".." using an invalid POSIX path.
|
| |
|
|
|
|
| |
error. Explain why.
|
| |
|
|
|
|
|
|
| |
process.
(sigpacket::setup_handler): Fix long-standing problem where loop could exit
with lock held.
|
|
|
|
| |
We don't want to actually sleep when calling this function.
|
| |
|
|
|
|
|
|
| |
essentially guarded by thread-specific signal_arrived.
* exceptions.cc (_cygtls::handle_SIGCONT): Simplify. Eliminate lock/unlock
since code is guarded by signal_arrived.
|
| |
|
|
|
|
| |
sure that yield() isn't called when signal stack is locked.
|
| |
|
|
|
|
| |
* sigproc.cc (exit_thread): Remove now-unneeded sleep code.
|
| |
|
| |
|
|
|
|
|
|
| |
code if mandatory locking is used on this descriptor. Explain why.
(fhandler_disk_file::pwrite): Ditto.
* posix.sgml (std-notes): Extend description of file locking.
|
| |
|
|
|
|
|
|
|
| |
sig_handle_tty_stop to wake up. Make sure to unlock before calling
yield to avoid starvation of sig_handle_tty_stop. Add comments.
* miscfuncs.cc (yield): Explain why yield should never be called under
_cygtls::lock conditions. Call SleepEx with 1ms timeout. Explain why.
|
| |
|
|
|
|
|
| |
* faq-using.xml: Ditto.
* faq-what.xml: Ditto.
|
|
|
|
|
|
| |
* faq-setup.xml: Ditto.
* faq-using.xml: Ditto.
* highlights.xml: Ditto.
|
|
|
|
| |
"preliminary".
|
| |
|
|
|
|
|
|
|
| |
Include Makefile.dep last.
(Makefile.dep): Run xidepend within source dir. Temporarily drop
faq.xml from dependencies.
* xidepend: Fix creating base filename to accommodate VPATH.
|
|
|
|
| |
today's changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(fhandler_base::fixup_after_exec): Reset mandatory_locking.
* fhandler.h (class fhandler_base): Add mandatory_locking status flag.
Add mandatory_locking accessor methods. Accommodate change throughout.
(fhandler_base::mand_lock): Declare.
(class fhandler_disk_file): Drop in favor of new status flag.
* (fhandler_disk_file::fcntl): Call need_fork_fixup if mandatory_locking
flag gets set.
* flock.cc (fhandler_base::lock): Define here.
(flock): Handle mandatory_locking.
(lockf): Ditto.
(fhandler_base::mand_lock): Define.
|
| |
|
|
|
|
| |
global dtors. Explain why.
|
| |
|
| |
|