summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * exceptions.cc (signal_exit): Only dump core when it's a "kernel" signal.Christopher Faylor2013-07-192-2/+10
| | | | | Only use RtlCaptureContext on x86_64. It doesn't seem to do what's expected on x86.
* * spawn.cc (child_info_spawn::worker): Reinstate using temp buffer for wideChristopher Faylor2013-07-193-11/+12
| | | | | | character command-line storage. Use wcs method to convert command line. * winf.h (lb_wcs): Delete. (linebuf::wcs): Implement new single-argument method.
* * lib/libcmain.c (main): Don't point to last quoted character if the only thingChristopher Faylor2013-07-192-2/+7
| | | | in the buffer is the program name.
* .Christopher Faylor2013-07-191-0/+3
|
* fix comment typoChristopher Faylor2013-07-191-1/+1
|
* .Christopher Faylor2013-07-191-3/+3
|
* * common.din: Export GetCommandLine{A,W}.Christopher Faylor2013-07-197-29/+117
| | | | | | | | | | | | | | | | | | * kernel32.cc: Add includes needed for GetCommandLine functions. (ucmd): New function. (cygwin_GetCommandLineW): Ditto. (cygwin_GetCommandLineA): Ditto. * spawn.cc (child_info_spawn::worker): Rename one_line -> cmd. Use lb_wcs macro to generate a wide character version of the line buffer. Remove duplicate printing of command line. Don't access members of linebuf directly. * winf.h: Use pragma once. (linebuf): Make storage private. (linebuf::operator size_t): New operator. Return size of buf. (linebuf::operator wchar_t): New operator. (linebuf::wcs): New function. (lb_wcs): New macro. * include/cygwin/version.h: Bump API minor number to 268. * strfuncs.cc: Clarify descriptive file comment.
* *** empty log message ***Corinna Vinschen2013-07-191-0/+16
|
* * cygtls.cc (_cygtls::remove): Close cw_timer handle, thus avoidingCorinna Vinschen2013-07-192-2/+10
| | | | handle leak.
* * cygserver_ipc.h (ipc_retval::ipc_retval): Take ssize_t as argumentCorinna Vinschen2013-07-192-1/+7
| | | | | to make sure entire ipc_retval union is initialized on all supported platforms.
* * path.cc (normalize_posix_path): Start checking path before ".." atCorinna Vinschen2013-07-182-2/+8
| | | | | dst, rather than at dst_start, otherwise suffer loss of one leading slash in case of UNC paths.
* * winsup.h (cygbench): Fix declaration to match definition.Christopher Faylor2013-07-172-3/+7
| | | | * dcrt0.cc (initial_env): Remove unused variable.
* Remove /dev/mem, /dev/kmem, /dev/port support.Corinna Vinschen2013-07-1511-3009/+2575
| | | | | | | | | | | | | | * Makefile.in (DLL_OFILES): Drop fhandler_mem.o. (fhandler_mem_CFLAGS): Remove rule. * devices.in (enum fh_devices): Remove FH_MEM, FH_KMEM and FH_PORT. * devices.cc: Regenerate. * dtable.cc (fh_alloc): Drop handling for FH_MEM, FH_KMEM and FH_PORT. * fhandler.h (class fhandler_dev_mem): Remove. * fhandler_mem.cc: Remove file. * globals.cc (ro_u_pmem): Remove. * mmap.cc (fhandler_dev_mem::mmap): Remove. (fhandler_dev_mem::munmap): Remove. (fhandler_dev_mem::fixup_mmap_after_fork): Remove.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 22.Corinna Vinschen2013-07-152-1/+5
|
* *** empty log message ***Corinna Vinschen2013-07-151-0/+1
|
* * path.cc (symlink_native): Fix common prefix search. Enhance comment.Corinna Vinschen2013-07-152-5/+10
|
* * uname.cc (uname): Drop unused code.Corinna Vinschen2013-07-112-14/+9
|
* * gentlsoffsets: Clean up a little.Christopher Faylor2013-07-103-14/+24
| | | | | | * thread.cc (semaphore::_fixup_after_fork): Report on potential problem parameter. Make sure that currentvalue is never zero. (semaphore::init): Make cosmetic change.
* * 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
|
* .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.
* * 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.
* * 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
|
* * 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.
* * 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.
* * 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.