Vicent Martí
3d4f169867
Merge pull request #1858 from linquize/win32-template-dir
...
Configurable template dir for Win32
2013-09-17 10:21:22 -07:00
Russell Belfer
eefc32d549
Bug fixes and cleanups
...
This contains a few bug fixes and some header and API cleanups.
The main API change is that filters should now use GIT_PASSTHROUGH
to indicate that they wish to skip processing a file instead of
GIT_ENOTFOUND.
The bug fixes include a possible out-of-range buffer access in
the ident filter, a filter ordering problem I introduced into the
custom filter tests on Windows, and a filter buf NUL termination
issue that was coming up on Linux.
2013-09-17 09:31:46 -07:00
Russell Belfer
a3aa5f4d5d
Add simple global shutdown hooks
...
Increasingly there are a number of components that want to do some
cleanup at global shutdown time (at least if there are not going
to be memory leaks). This creates a very simple system of shutdown
hooks that will be invoked by git_threads_shutdown. Right now, the
maximum number of hooks is hardcoded, but since adding a hook is
not a public API, it should be fine and I thought it was better to
start off with really simple code.
2013-09-17 09:31:45 -07:00
Linquize
f84bc38853
Refactor git_win32__find_system_dirs() to extract "etc\\" as subpath parameter
2013-09-17 23:28:16 +08:00
Linquize
89095fbddc
Fix failure in win32_find_git_in_registry() when UAC is turned on
...
Demand read only access to registry key instead of full access.
This might happen in Windows Vista and later.
2013-09-17 22:57:30 +08:00
Linquize
ffbd337aef
Fix failure in win32_find_git_in_registry()
...
The buffer size 0 was definitely not enough so it failed
2013-09-17 22:57:06 +08:00
Linquize
21753d4869
Fix warning in src/win32/version.h
2013-09-05 20:42:47 +08:00
Vicent Martí
dbecec37a7
Merge pull request #1805 from libgit2/threading-packed-load
...
Thread safety for the refdb_fs
2013-08-28 09:38:14 -07:00
Edward Thomson
1ff3a09415
Improve win32 version check, no ipv6 tests on XP
2013-08-27 19:44:35 -05:00
Russell Belfer
f087bc245e
Convert to our own SRWLOCK type on Win32
2013-08-27 12:08:55 -07:00
Russell Belfer
2f368a661c
Fix MINGW SRWLock typedefs
2013-08-26 15:17:35 -07:00
Russell Belfer
430953417f
Load SRWLock APIs at runtime
...
This loads SRWLock APIs at runtime and in their absence (i.e. on
Windows before Vista) falls back on a regular CRITICAL_SECTION
that will not permit concurrent readers.
2013-08-26 14:56:31 -07:00
Russell Belfer
b6ac07b517
Trying to fix Win32 warnings
2013-08-22 14:45:10 -07:00
Russell Belfer
972bb689c4
Add SRWLock implementation of rwlocks for Win32
2013-08-22 14:10:56 -07:00
Edward Thomson
8255b497b6
Quiet down some warnings
2013-08-19 17:49:53 -05:00
Edward Thomson
238b761491
Fix p_inet_pton on windows
...
p_inet_pton on Windows should set errno properly for callers.
Rewrite p_inet_pton to handle error cases correctly and add
test cases to exercise this function.
2013-08-19 17:21:35 -05:00
Edward Thomson
86967cc579
Use time(2) to get the time
...
We didn't use the added precision in gettimeofday, so remove it.
This prevents us from having an unnecessary reimplementation on
win32.
2013-08-19 16:44:17 -05:00
Martin Woodward
c9340df055
Give credit to PHP for the p_readlink function in posix_w32.c
2013-08-16 19:40:58 +01:00
Ben Straub
2af9bcb2db
Merge pull request #1779 from ben/win32-precompiled-header-speedup
...
Speed up build under MSVC
2013-08-13 11:37:31 -07:00
Vicent Martí
40948998ba
Merge pull request #1767 from libgit2/win32-bigger-utf8-buffer
...
Bigger buffer for utf-8 parsing in win32
2013-08-13 11:36:24 -07:00
Russell Belfer
0228a51429
Missed one path for path_as_utf8 type
2013-08-13 10:20:25 -07:00
Russell Belfer
ee0656012c
Minor win32 fixes and improvements
...
This is just a bunch of small fixes that I noticed while looking
at the UTF8 and UTF16 path stuff. It fixes a slowdown in looking
for an empty directory (not exiting loop asap), makes the dir name
in the git__DIR structure be a GIT_FLEX_ARRAY to save an allocation,
and fixes some slightly odd assumptions in the cl_getenv helper.
2013-08-13 09:53:56 -07:00
Russell Belfer
841034a35e
Reintroduce type for UTF8 win32 path conversions
2013-08-13 09:45:56 -07:00
Russell Belfer
d4cff0cb1c
Rename git__win32_path fns to git_win32_path
2013-08-13 09:40:32 -07:00
Ben Straub
e12618b1ec
Add some things to precompiled header
2013-08-13 09:22:53 -07:00
Ben Straub
3869a171dd
Fix mingw cross-compile build
2013-08-13 09:10:34 -07:00
Vicent Marti
3948e86240
windows: Fuck me
2013-08-13 09:38:37 +02:00
Vicent Marti
345b6307be
windows: Require order
2013-08-13 09:35:07 +02:00
Vicent Marti
53d712dcb9
windows: Missing renames.
2013-08-13 09:31:03 +02:00
Vicent Marti
abf3732728
windows: Path conversion with better semantics
2013-08-13 09:15:39 +02:00
Ben Straub
0e26fca1da
Make utf-8 source strings unlimited
2013-08-10 15:11:19 -07:00
Ben Straub
aa0af72933
Fix 64-bit MSVC warnings
2013-08-10 14:56:58 -07:00
Edward Thomson
57f31f058c
Fixes to safely reading the index
...
Avoid wrapping around extension size when reading, avoid walking off
the end of the buffer when reading names.
2013-08-08 12:32:23 -05:00
Ben Straub
aaefbdeea2
Discriminate path-specific and general UTF-X conversions
2013-08-08 08:48:57 -07:00
Ben Straub
2c0128ee79
Rename git_win_str_utf* to git_win32_path_utf*
2013-08-07 19:29:33 -07:00
Ben Straub
9c38f7a652
Add typedefs for win32 utf-8 and utf-16 buffers
...
...and normalize the signatures of the two conversion functions.
2013-08-07 13:22:41 -07:00
Ben Straub
d85636190f
Split UTF-16 and UTF-8 buffer sizes for win32
...
Also fixed up call-sites to use the correct buffer sizes, especially
when converting to utf-8.
2013-08-05 11:41:39 -07:00
nulltoken
c4ac556ee7
Fix compilation warnings
2013-06-29 13:27:55 +02:00
Sven Strickroth
4753711235
Correctly handle junctions
...
A junction has S_IFDIR | S_IFLNK set, however, only one makes sense.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2013-06-25 16:46:06 +02:00
Sven Strickroth
a7ea40955e
Do not redefine WC_ERR_INVALID_CHARS
...
WC_ERR_INVALID_CHARS might be already defined by the Windows SDK.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2013-06-23 01:25:34 +02:00
nulltoken
c1cf1af46a
cmake: Add option to specify the name of the binary
2013-06-13 10:12:44 +02:00
Vicent Marti
5a6e45cc84
Revert "cmake: Update Windows resources to reflect the optional vendor string"
...
This reverts commit 095bfd7487 .
2013-06-12 21:14:04 +02:00
Russell Belfer
37f66e8263
Fix Windows warnings
...
This fixes problems with missing function prototypes and 64-bit
data issues on Windows.
2013-06-12 15:21:21 -07:00
yorah
d17db2fd77
thread: fix segfault on Windows 64 bits
...
`lpExitCode` is a pointer to a long. A long is 32 bits wide on Windows.
It means that on Windows 64bits, `GetExitCodeThread()` doesn't set/clear the high-order bytes of the 64 bits memory space pointed at by `value_ptr`.
2013-05-30 11:45:11 +02:00
nulltoken
095bfd7487
cmake: Update Windows resources to reflect the optional vendor string
...
Make InternalName and OriginalFilename resources reflect the name of the compiled binary.
2013-05-22 00:15:13 +02:00
Linquize
7026ad893b
calloc() to initialize memory
2013-05-16 21:11:38 +08:00
nulltoken
1fed6b07f0
Fix trailing whitespaces
2013-05-15 22:41:30 +02:00
Linquize
0cb16fe924
Unify whitespaces to tabs
2013-05-15 20:26:55 +08:00
Vicent Martí
3405f78754
Merge pull request #1547 from ethomson/win32_stat
...
p_stat() should follow symlinks on windows
2013-05-06 06:51:21 -07:00
Edward Thomson
00a4c47938
p_stat() should follow symlinks on windows
2013-05-04 12:40:41 -05:00