summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * cygwin.sc.in (.text.*): Fold into .text on all platforms.Corinna Vinschen2013-07-103-5/+15
| | | | | | | (.eh_frame): Add section. * environ.cc (my_findenv): Drop __stdcall attribute. (getearly): Ditto. (findenv_func): Drop cast.
* Add an entry.Christopher Faylor2013-07-081-1/+5
|
* * cygcheck.cc (dll_info): Detect and report on symlinks. Output wrongChristopher Faylor2013-07-073-17/+38
| | | | | | architecture message inline with stdout for clarity. * path.cc (is_symlink): Always reset file pointer to beginning on exit. (readlink): Assume that file pointer is set to the beginning.
* .Christopher Faylor2013-07-031-0/+3
|
* * fhandler.cc (fhandler_base::close_with_arch): Make sure that the archetype isChristopher Faylor2013-07-032-16/+20
| | | | deleted when close_with_arch is referenced *via* the archetype.
* * path.cc (find_fast_cwd_pointer): Use gas syntax for assemblerCorinna Vinschen2013-06-282-12/+37
| | | | | description in all comments. Make algorithm work on Windows 8.1 Preview.
* * dcrt0.cc (child_info_fork::alloc_stack): Fix a comparison to avoidCorinna Vinschen2013-06-273-2/+8
| | | | | taking 4K more stack in forked child. * fork.cc (frok::parent): Print child exit code in hex if sync failed.
* * cygpath.cc (do_pathconv): when -p option is given, generate wideCorinna Vinschen2013-06-263-5/+12
| | | | | | path without long path prefixing. * wide_path.h (wide_path::wide_path): Allow extra bool parameter to specify whether or not performing Windows long path prefixing.
* * new-features.sgml (ov-new1.7.21): New section. Document rawmemchr.Yaakov Selkowitz2013-06-242-0/+16
|
* * common.din (rawmemchr): Export.Yaakov Selkowitz2013-06-245-1/+11
| | | | | * posix.sgml (std-gnu): Add rawmemchr. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * 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.