Commit graph

11660 commits

Author SHA1 Message Date
Richard Frith-Macdonald
4e61056743 The code in GSPrivateReturnAddresses() and the -symbols method must have ifdefs in matching order so that setup of the information from the stack matches the code used to generate the corresponding symbols. 2021-03-18 20:17:35 +00:00
Frederik Seiffert
5fb5fb46c4 Win MSVC: add NSFileManager support
Also unifies _CHAR in NSFileManager with GSNativeChar, as they are internally required to be the same.
2021-03-17 17:42:15 +01:00
Frederik Seiffert
54ae296b69 Fix libdispatch integration compilation error on Windows. 2021-03-17 17:42:15 +01:00
Richard Frith-Macdonald
f8ad54a6d7 Fix missing method in header 2021-03-11 09:50:49 +00:00
Richard Frith-Macdonald
810294f2df update 2021-03-05 11:56:07 +00:00
Richard Frith-Macdonald
d7e4086f6b Rewrite handling of tls handshake to operate asynchronously, attempting continuation of the handshake when the socket becomes readable. The point of this is to prevent recursive entry into the runloop (and possible stack overflow) if the remote end fails to send anything for a while. 2021-03-05 11:54:32 +00:00
Frederik Seiffert
172e75b865 Add unscheduled NSTimer block initializer. 2021-03-03 10:03:14 +01:00
Richard Frith-Macdonald
ebfd7a2bea update 2021-02-27 15:15:39 +00:00
Richard Frith-Macdonald
7c9c3b8605 Fix potential deadlock found by Wolfgang 2021-02-22 15:59:29 +00:00
Richard Frith-Macdonald
edc771775f fix missing check to see whether we have already initialised 2021-02-18 21:27:21 +00:00
Richard Frith-Macdonald
958449e90f Initialise XMLParser in main thread 2021-02-18 21:18:41 +00:00
Richard Frith-Macdonald
e6c387f8fd Fixup to perform a full load 2021-02-15 21:20:22 +00:00
Richard Frith-Macdonald
4b5e342c89 Check that a POST actually finishes 2021-02-15 20:41:58 +00:00
Richard Frith-Macdonald
a93eab8549 fix typos in comments and remove leftover debug line 2021-02-15 19:58:30 +00:00
Richard Frith-Macdonald
b45feeb8d7 Fixes for SSL/TLS support using GNUTLS under MinGW. Use send/recv
rather than read/write in TLS push/pull functions (works with winsock
and unix) and perform mappings between winsock error codes and
unix/gnutls error codes so that we correctly repeat operations whe they
fail in non-blockign mode.
2021-02-13 11:08:06 +00:00
Frederik Seiffert
5c562c546f Windows MSVC fixes 2021-02-12 14:33:04 +01:00
Richard Frith-Macdonald
19c32ba0f5 Enable NSFileHandle TLS support under mingw 2021-02-11 20:03:41 +00:00
Richard Frith-Macdonald
05542be4c7 iComment on why we have a hope 2021-02-09 21:29:40 +00:00
Richard Frith-Macdonald
309eb5fb6c Change sense of test so that success of resolving a relative link is a pass 2021-02-09 15:48:08 -05:00
Frederik Seiffert
4cc89bb8b1 Disable gdomap for all Android ABIs.
Target OS can be either "linux-android" or "linux-androideabi" (when building for armeabi-v7a).
2021-02-08 12:29:37 +01:00
Richard Frith-Macdonald
8f0a021adb Fix failure to send large requests, when the write operation succeeds but we have not written all the data we need to, we should write more as long as the stream has space available. 2021-02-06 11:23:09 +00:00
Richard Frith-Macdonald
524624c7ed remove excess format specified from printf 2021-02-06 10:03:47 +00:00
Fred Kiefer
46c463c006 * Tools/make_strings/StringsFile.m: Write the file in UTF8 format
if the string contains any non ASCII character.
2021-02-05 22:56:15 +01:00
Richard Frith-Macdonald
6977d9e759 Test for initialisation with nil string 2021-02-04 11:12:15 +00:00
Richard Frith-Macdonald
b8169e26eb Fix null pointer dereference 2021-02-04 11:00:05 +00:00
Richard Frith-Macdonald
8b68ee50c0 Merge branch 'master' of ssh://github.com/gnustep/libs-base 2021-02-04 10:57:26 +00:00
Frederik Seiffert
9725e77c9d Disable gdomap on Android (unsupported). 2021-02-03 17:55:12 +01:00
Richard Frith-Macdonald
72a678dc11 add ARC markup for initialisation 2021-02-03 16:25:15 +00:00
Richard Frith-Macdonald
be173ab404 Fix resource leaks (failure to close) on error. 2021-02-03 16:23:43 +00:00
Frederik Seiffert
61709e6101 Support building on Windows with Clang MSVC target 2021-02-03 15:02:27 +01:00
Riccardo Mottola
ece6fc97ff Add check for statbuf.st_mtim if available and use statbuf.st_mtim to get nanosecond precision in modification date, also fix conversion of nanoseconds in creation date. 2021-02-02 23:30:18 +01:00
Richard Frith-Macdonald
625e8541a9 Call -cancel at the end of a synchronous load so that we stop our NSURLProtocol instance from retaining us as its client. 2021-01-26 14:38:29 +00:00
Richard Frith-Macdonald
747f47d83d Mark function call as requiring void return; hint to tell coverity that we do not want the return value from this function (there's nothing we could do with it and the function should never fail with the input we provide). 2021-01-25 12:25:49 +00:00
Richard Frith-Macdonald
5ea20c1571 fix possible nil pointer usage 2021-01-25 12:23:32 +00:00
Richard Frith-Macdonald
2382fed763 Fix check for string terminator and improve formatting 2021-01-25 12:10:25 +00:00
Richard Frith-Macdonald
e2f6d591b3 Merge branch 'master' of ssh://github.com/gnustep/libs-base 2021-01-23 13:47:29 +00:00
Richard Frith-Macdonald
f4da566b94 Simple check for timezone adjustments around 1970 2021-01-22 10:34:06 +00:00
Richard Frith-Macdonald
0ece3b8980 avoid clash with strnstr() declaration on bsd systems 2021-01-22 03:47:16 -05:00
fredkiefer
3b1bf24b26 * Tools/pl2link.m (main): Set key StartupWMClass and allow file
parameters of the Exec key.
2021-01-21 21:26:00 +01:00
Richard Frith-Macdonald
68308540bd Add a couple of teswts for scanning zeros as doubles 2021-01-21 14:38:31 +00:00
Richard Frith-Macdonald
4784da65ef new log 2021-01-21 14:29:11 +00:00
Richard Frith-Macdonald
4d0dc010ab Was checking incorrect variable to avoid assignment to nul pointer. 2021-01-21 14:27:21 +00:00
Richard Frith-Macdonald
4e826135ce Updated for some minor leak fixes 2021-01-19 11:17:23 +00:00
Richard Frith-Macdonald
fc31e13214 Merge branch 'master' of ssh://github.com/gnustep/libs-base 2021-01-19 10:31:50 +00:00
Richard Frith-Macdonald
84ab9286bb Merge branch 'master' of ssh://github.com/gnustep/libs-base 2021-01-19 05:13:25 -05:00
Richard Frith-Macdonald
3efce5f271 Update from git log 2021-01-19 05:12:54 -05:00
Richard Frith-Macdonald
72af51982f fix leak of set 2021-01-18 12:20:46 +00:00
Richard Frith-Macdonald
925023e8c0 Fix leak evaluating a cast 2021-01-18 11:56:44 +00:00
Richard Frith-Macdonald
d63b2e0035 Fix memory leaks 2021-01-18 11:52:37 +00:00
Richard Frith-Macdonald
fe7d9b6435 Use NSZoneMalloc and NSZoneRealloc for memory used by data, so it is in the correct zone for the instance (and to avoid complaints from static analyser). 2021-01-18 11:47:39 +00:00