summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * path.cc (cygwin_conv_path): Handle NULL "from" path gracefully.Corinna Vinschen2013-06-213-1/+13
| | | | | * path.sgml (func-cygwin-conv-path): Document returning EINVAL if "from" is NULL.
* * faq-using.xml (faq.using.private-cygwin): Drop.Corinna Vinschen2013-06-192-21/+4
|
* * winf.h (av::unshift): Make __reg2.Christopher Faylor2013-06-192-2/+7
|
* *** empty log message ***Corinna Vinschen2013-06-191-0/+3
|
* * spawn.cc (child_info_spawn::worker): Eliminate call to newargv.set() in favorChristopher Faylor2013-06-194-170/+181
| | | | | | | | | | | | | | | | 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.
* * nlsfuncs.cc (__collate_range_cmp): Convert input to wchar_t and callCorinna Vinschen2013-06-192-4/+12
| | | | | wcscoll since all calling functions are using wide chars. Explain in preceeding comment.
* * spawn.cc (child_info_spawn::worker): Eliminate wascygexec.Christopher Faylor2013-06-192-3/+5
|
* * faq-using.xml (faq.using.multiple-copies): Modernize to reflectCorinna Vinschen2013-06-192-15/+38
| | | | | installation separation since Cygwin 1.7. (faq.using.third-party.multiple-copies): Ditto.
* * dcrt0.cc (child_info_fork::alloc_stack): Don't subtract 4096 from stackChristopher Faylor2013-06-192-1/+6
| | | | pointer since getstack() already does that.
* *** empty log message ***Corinna Vinschen2013-06-181-0/+3
|
* * gmon.c: Drop gratuitous inclusion of strings.h. Remove __MINGW32__Corinna Vinschen2013-06-182-3/+5
| | | | around definition of bzero.
* * Makefile.in (VPATH): Drop CONFIG_DIR.Corinna Vinschen2013-06-1812-302/+422
| | | | | | | | | | | | | | | | | | (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.
* * Makefile.common: Add rule to build assembler code.Corinna Vinschen2013-06-182-1/+9
| | | | (.SUFFIXES): Add .S.
* * path.cc (cnt_bs): New inline function.Corinna Vinschen2013-06-173-4/+63
| | | | (symlink_native): Fix creating relative native symlink.
* * fhandler_clipboard.cc (fhandler_dev_clipboard::read): Fix bufferCorinna Vinschen2013-06-173-1/+10
| | | | read access overrun when pos > 0.
* * times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.Corinna Vinschen2013-06-172-4/+8
| | | | | (__to_clock_t): Remove a debug_printf. (times): Align syscall_printf to debug output of other system calls.
* * cygwinenv.xml: Fix link to FAQ.Corinna Vinschen2013-06-172-1/+5
|
* * autoload.cc (GetSystemTimePreciseAsFileTime): Define.Corinna Vinschen2013-06-145-5/+34
| | | | | | | | | | * 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.
* Streamline time/times functionality. Remove last remains of formerCorinna Vinschen2013-06-149-214/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * net.cc (gen_old_if_name): New function to generate short interfaceCorinna Vinschen2013-06-132-2/+58
| | | | | names for old pre-1.7 applications. (get_ifs): Call gen_old_if_name for said old applications.
* * posix.sgml (fcntl, flock, lockf): Point to implementation notes.Corinna Vinschen2013-06-132-3/+7
|
* * path.cc (normalize_posix_path): Fix long-standing problem whichCorinna Vinschen2013-06-123-0/+32
| | | | allows to access files via ".." using an invalid POSIX path.
* * winver.rc (FileDescription): Remove (R).Corinna Vinschen2013-06-112-1/+5
|
* * sec_auth.cc (get_user_groups): Don't handle ERROR_ACCESS_DENIED asCorinna Vinschen2013-06-102-2/+13
| | | | error. Explain why.
* clarify entryChristopher Faylor2013-06-081-1/+1
|
* * exceptions.cc (try_to_debug): Don't use yield() when waiting for anotherChristopher Faylor2013-06-082-2/+13
| | | | | | process. (sigpacket::setup_handler): Fix long-standing problem where loop could exit with lock held.
* * miscfuncs.cc (yield): Revert (after researching) to calling SleepEx with 0.Christopher Faylor2013-06-082-15/+16
| | | | We don't want to actually sleep when calling this function.
* revert accidentally checked in filesChristopher Faylor2013-06-082-6/+5
|
* * cygwait.cc (cygwait): Remove lock around sig retrieval since this code isChristopher Faylor2013-06-085-39/+35
| | | | | | essentially guarded by thread-specific signal_arrived. * exceptions.cc (_cygtls::handle_SIGCONT): Simplify. Eliminate lock/unlock since code is guarded by signal_arrived.
* * winver.rc (LegalCopyright): Belatedly bump to 2013.Corinna Vinschen2013-06-072-2/+6
|
* * exceptions.cc (_cygtls::handle_SIGCONT): Reinstate previous behavior but makeChristopher Faylor2013-06-072-10/+29
| | | | sure that yield() isn't called when signal stack is locked.
* * exceptions.cc (exception::handle): Add comment explaining si_addr behavior.Christopher Faylor2013-06-072-6/+14
|
* * DevNotes: Add entry cgf-000023.Christopher Faylor2013-06-073-15/+10
| | | | * sigproc.cc (exit_thread): Remove now-unneeded sleep code.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 21.Corinna Vinschen2013-06-072-1/+5
|
* * posix.sgml (std-notes): Fix typo.Corinna Vinschen2013-06-072-1/+5
|
* * fhandler_disk_file.cc (fhandler_disk_file::pread): Skip to non-atomicCorinna Vinschen2013-06-073-6/+37
| | | | | | 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.
* *** empty log message ***Corinna Vinschen2013-06-061-0/+9
|
* * exceptions.cc (_cygtls::handle_SIGCONT): Simplify loop waiting forCorinna Vinschen2013-06-063-23/+30
| | | | | | | 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.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 20.Corinna Vinschen2013-06-052-1/+5
|
* * faq-copyright.xml: Fix link to license.Corinna Vinschen2013-06-054-4/+10
| | | | | * faq-using.xml: Ditto. * faq-what.xml: Ditto.
* * faq-programming.xml: Convert url to refer to new flat faq.html file.Corinna Vinschen2013-06-055-7/+14
| | | | | | * faq-setup.xml: Ditto. * faq-using.xml: Ditto. * highlights.xml: Ditto.
* * new-features.xml (ov-new1.7.19): Revert mandatory locking support toCorinna Vinschen2013-06-052-2/+7
| | | | "preliminary".
* *** empty log message ***Corinna Vinschen2013-06-051-2/+2
|
* * Makefile.in: Add rule to rebuild Makefile if Makefile.in changes.Corinna Vinschen2013-06-043-4/+18
| | | | | | | 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.
* * new-features.xml (ov-new1.7.19): Align mandatory locking text toCorinna Vinschen2013-06-042-3/+8
| | | | today's changes.
* * fhandler.cc (fhandler_base::lock): Move to flock.cc.Corinna Vinschen2013-06-046-22/+51
| | | | | | | | | | | | | | (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.
* *** empty log message ***Corinna Vinschen2013-06-031-0/+3
|
* * sigproc.cc (exit_thread): Allow to exit the thread while runningCorinna Vinschen2013-06-032-1/+15
| | | | global dtors. Explain why.
* Fix typoCorinna Vinschen2013-06-021-1/+1
|
* * new-features.xml (ov-new1.7.19): Add mandatory locking.Corinna Vinschen2013-06-022-0/+9
|