summaryrefslogtreecommitdiff
path: root/src/win32
Commit message (Collapse)AuthorAgeFilesLines
* Properly pass `wchar *` type to giterr_setBoris Barbulovski2016-12-061-1/+1
|
* Properly pass `wchar *` type to giterr_setBoris Barbulovski2016-11-201-1/+1
|
* threads: introduce `git_thread_exit`Edward Thomson2016-11-182-0/+20
| | | | | | | | | | Introduce `git_thread_exit`, which will allow threads to terminate at an arbitrary time, returning a `void *`. On Windows, this means that we need to store the current `git_thread` in TLS, so that we can set its `return` value when terminating. We cannot simply use `ExitThread`, since Win32 returns `DWORD`s from threads; we return `void *`.
* Make sure we use the `C` locale for `regcomp` on macOS.Arthur Schreiber2016-10-061-0/+3
|
* threads: add platform-independent thread initialization functionPatrick Steinhardt2016-06-202-31/+30
|
* win32: rename pthread.{c,h} to thread.{c,h}Patrick Steinhardt2016-06-203-5/+5
| | | | | | | | | | The old pthread-file did re-implement the pthreads API with exact symbol matching. As the thread-abstraction has now been split up between Unix- and Windows-specific files within the `git_` namespace to avoid symbol-clashes between libgit2 and pthreads, the rewritten wrappers have nothing to do with pthreads anymore. Rename the Windows-specific pthread-files to honor this change.
* threads: remove now-useless typedefsPatrick Steinhardt2016-06-201-7/+0
|
* threads: remove unused function pthread_num_processors_npPatrick Steinhardt2016-06-202-13/+0
| | | | | The function pthread_num_processors_np is currently unused and superseded by the function `git_online_cpus`. Remove the function.
* threads: split up OS-dependent rwlock codePatrick Steinhardt2016-06-202-19/+13
|
* threads: split up OS-dependent thread-condition codePatrick Steinhardt2016-06-202-13/+9
|
* threads: remove unused function pthread_cond_broadcastPatrick Steinhardt2016-06-202-5/+0
|
* threads: split up OS-dependent mutex codePatrick Steinhardt2016-06-202-18/+13
|
* threads: split up OS-dependent thread codePatrick Steinhardt2016-06-202-27/+8
|
* Split the page size from the mmap alignmentcmn/pool-limitCarlos Martín Nieto2016-03-161-5/+24
| | | | | | | | While often similar, these are not the same on Windows. We want to use the page size on Windows for the pools, but for mmap we need to use the allocation granularity as the alignment. On the other platforms these values remain the same.
* nsec: support NDK's crazy nanosecondsEdward Thomson2016-02-251-0/+3
| | | | | | | | Android NDK does not have a `struct timespec` in its `struct stat` for nanosecond support, instead it has a single nanosecond member inside the struct stat itself. We will use that and use a macro to expand to the `st_mtim` / `st_mtimespec` definition on other systems (much like the existing `st_mtime` backcompat definition).
* Merge pull request #3606 from ethomson/drop_xpCarlos Martín Nieto2016-02-181-18/+3
|\ | | | | win32: drop xp support in WideCharToMultiByte
| * win32: drop xp support in WideCharToMultiByteEdward Thomson2016-02-091-18/+3
| |
* | fstat: use our custom `stat`Edward Thomson2016-02-163-12/+62
| |
* | win32: introduce p_timeval that isn't stupidEdward Thomson2016-02-124-5/+13
|/ | | | | Windows defines `timeval` with `long`, which we cannot sanely cope with. Instead, use a custom timeval struct.
* Make stat.st_size a __int64 not a uint64_tJacques Germishuys2015-11-211-1/+1
|
* Merge pull request #3170 from CmdrMoozy/nsec_fixCarlos Martín Nieto2015-11-124-17/+56
|\ | | | | git_index_entry__init_from_stat: set nsec fields in entry stats
| * Merge branch 'master' into nsec_fix_nextAxel Rasmussen2015-10-011-8/+15
| |\
| * | win32: define our own POSIX struct stat, and support USE_NSECAxel Rasmussen2015-09-184-17/+56
| | |
* | | config: add a ProgramData levelcmn/programdata-configCarlos Martín Nieto2015-10-212-0/+11
| |/ |/| | | | | | | This is where portable git stores the global configuration which we can use to adhere to it even though git isn't quite installed on the system.
* | win32: propogate filename too long errorsEdward Thomson2015-09-221-8/+15
|/
* win32: return EACCES in `p_lstat`Edward Thomson2015-09-171-2/+9
| | | | | | Don't coalesce all errors into ENOENT. At least identify EACCES. All callers should be handling this case already, as the POSIX `lstat` will return this.
* Merge pull request #3352 from ethomson/hiddenEdward Thomson2015-08-282-8/+42
|\ | | | | win32: ensure hidden files can be staged
| * win32: ensure hidden files can be stagedEdward Thomson2015-08-032-8/+42
| |
* | Fix duplicate basenames to support older VSJohn Haley2015-08-052-2/+1
|/ | | | | | | With Visual Studio versions 2008 and older they ignore the full path to files and only check the basename of the file to find a collision. Additionally, having duplicate basenames can break other build tools like GYP. This fixes https://github.com/libgit2/libgit2/issues/3356
* Merge pull request #3288 from ethomson/getenvCarlos Martín Nieto2015-07-071-0/+2
|\ | | | | git__getenv: utf-8 aware env reader
| * git__getenv: utf-8 aware env readerEdward Thomson2015-07-021-0/+2
| | | | | | | | | | | | Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere. Make `cl_getenv` use this to keep consistent memory handling around return values (free everywhere, as opposed to only some platforms).
* | Reserve aux_id 0; sort leaks by aux_id. Fix cmp.Jeff Hostetler2015-06-292-10/+28
| |
* | Include stacktrace summary in memory leak output.Jeff Hostetler2015-06-294-0/+748
|/
* Introduce p_utimes and p_futimesEdward Thomson2015-06-163-0/+51
| | | | | | Provide functionality to set the time on a filesystem entry, using utimes or futimes on POSIX type systems or SetFileTime on Win32.
* git_buf_put_w: introduce utf16->utf8 conversionEdward Thomson2015-05-014-4/+77
|
* git_path_diriter: use FindFirstFile in win32Edward Thomson2015-05-011-5/+0
| | | | | | | Using FindFirstFile and FindNextFile in win32 allows us to use the directory information that is returned, instead of us having to get the file attributes all over again, which is a distinct cost savings on win32.
* git_win32_path_dirload_with_stat: removedEdward Thomson2015-05-012-193/+0
|
* win32: keep full path for realpath usageEdward Thomson2015-04-281-8/+34
|
* win32: mimic git_path_dirload_with_stat closelyEdward Thomson2015-04-281-40/+28
|
* dirload: loop conditional; less path manglingEdward Thomson2015-04-281-59/+102
|
* win32 dirload: don't heap allocate DIR structureEdward Thomson2015-04-281-22/+18
|
* win32: abstract file attributes -> struct stat fnEdward Thomson2015-04-284-80/+81
|
* Improvements to status performance on Windows.J Wyman2015-04-284-86/+264
| | | | Changed win32/path_w32.c to utilize NTFS' FindFirst..FindNext data instead of doing an lstat per file. Avoiding unnecessary directory opens and file scans reduces IO, improving overall performance. Effect is magnified due to NTFS being a kernel mode file system (as opposed to user mode).
* Rename routine to free TLS dataJeff Hostetler2015-04-181-1/+1
|
* Attempt to fix Windows TLS memory leak.Jeff Hostetler2015-04-171-0/+2
|
* win32 resource: allow custom comments field in DLLEdward Thomson2015-03-181-2/+6
|
* Use secure API if available.Matti Virolainen2015-03-061-1/+1
|
* Add some missing definitions for mingw.orgTony Kelman2015-03-061-0/+7
| | | | these shouldn't be necessary if _WIN32_WINNT >= _WIN32_WINNT_VISTA
* Move definitions of strcasecmp and strncasecmp to msvc-compat.hTony Kelman2015-03-062-2/+3
| | | | should cut down on compiler warnings with mingw
* Merge pull request #2932 from jeffhostetler/jeffhostetler/big_clone_crashCarlos Martín Nieto2015-03-042-5/+21
|\ | | | | Fix crash in git_clone on extremely large repos