Commit graph

11630 commits

Author SHA1 Message Date
Dustin J. Mitchell
41a578ab2b add server support 2022-02-13 20:18:07 +00:00
Dustin J. Mitchell
c0403f3f38 fix bad test 2022-02-13 16:18:17 +00:00
Dustin J. Mitchell
fc73911cde fix some clippy::wrong_self_convention 2022-02-13 03:39:39 +00:00
Dustin J. Mitchell
ad464c4779 use Uda instead of UDA 2022-02-13 03:39:39 +00:00
Dustin J. Mitchell
51a854cfef address some clippy lints 2022-02-13 03:30:02 +00:00
Dustin J. Mitchell
bbb7b64842 review safety comments 2022-02-13 03:19:11 +00:00
Dustin J. Mitchell
c22182cc19 rename trait methods to avoid ambiguity 2022-02-13 02:30:17 +00:00
Dustin J. Mitchell
213da88b27 add tc_task_get_taskmap 2022-02-13 02:05:25 +00:00
Dustin J. Mitchell
1488355b89 add working-set support 2022-02-12 22:19:09 +00:00
Dustin J. Mitchell
ad560fdb79 add UDA support 2022-02-12 16:22:45 +00:00
Dustin J. Mitchell
f81c4eec90 rename array to list in rust types 2022-02-12 15:20:46 +00:00
Dustin J. Mitchell
e9cd6adc5b fix memory leak, remove blanket pointer-by-value impls 2022-02-12 01:21:05 +00:00
Dustin J. Mitchell
76cbc2880b refactor annotations to handle invalid strings 2022-02-12 00:26:57 +00:00
Dustin J. Mitchell
7ebdaa761c treat libc::time_t as a PassByValue 2022-02-12 00:18:01 +00:00
Dustin J. Mitchell
af51e0382a implement lists in the same files as singular data 2022-02-11 23:59:22 +00:00
Dustin J. Mitchell
7996a98908 add annotation support 2022-02-11 23:54:52 +00:00
Tomas Babej
e60fdafdaa centos8: Fix missing repo metadata 2022-02-11 00:40:31 -05:00
Jan Palus
d541e0da65 TLSClient: fix multiple issues with error handling
- do not check errno on successful function calls (it might not be
  cleared after previous failed one)
- GNUTLS_E_* are not passed through errno but as function return value
- therefore there's more error spectrum than -1
- do not assume whole header is received, check number of bytes fetched

small additional improvements:
- read as many bytes into buffer as possible before appending to data
- skip writing nul byte at the end of buffer and use append() instead
- additional sanity checks
2022-02-11 00:19:04 -05:00
Dustin J. Mitchell
b01285d780 add some simple replica functions 2022-02-10 01:18:50 +00:00
Dustin J. Mitchell
1c734851ae safety notes for new types 2022-02-10 01:10:40 +00:00
Dustin J. Mitchell
7a473d0eda simplify imports 2022-02-10 01:01:02 +00:00
Dustin J. Mitchell
a4d992012e TCUuidList, refactor traits 2022-02-10 00:55:34 +00:00
Dustin J. Mitchell
8cbd44544c remove commented-out code 2022-02-10 00:30:13 +00:00
Dustin J. Mitchell
914017b46c tc_replica_all_tasks 2022-02-10 00:11:30 +00:00
Dustin J. Mitchell
c9c72b4fd3 return TCResult from tc_uuid_from_str 2022-02-09 23:43:23 +00:00
Dustin J. Mitchell
28a4599a6a rename TCStrings to TCStringList 2022-02-09 23:37:32 +00:00
Dustin J. Mitchell
8caf442e3f mark all extern-C functions as unsafe 2022-02-09 23:26:39 +00:00
Dustin J. Mitchell
ae5afff4f7 fix another lint 2022-02-09 03:20:17 +00:00
Dustin J. Mitchell
5cf3ce4bc8 comment out failing clippy lint 2022-02-09 03:16:14 +00:00
Dustin J. Mitchell
f96b5415c8 fix some clippy warnings 2022-02-09 02:59:01 +00:00
Dustin J. Mitchell
a270b6c254 Simplify implementation of arrays 2022-02-07 00:15:09 +00:00
Dustin J. Mitchell
e11506ee6a always implement traits for C type 2022-02-06 23:05:33 +00:00
Dustin J. Mitchell
1e585ba0d9 comment updates 2022-02-06 16:50:43 +00:00
Dustin J. Mitchell
831eb0bb15 TCTags -> TCStrings to be more general 2022-02-06 16:40:17 +00:00
Dustin J. Mitchell
3d248b55fd factor out some utilities for pointer arrays 2022-02-06 16:38:31 +00:00
Dustin J. Mitchell
b0f7850711 trivially implement PassByValue for usize 2022-02-06 16:26:09 +00:00
Dustin J. Mitchell
dadc9473d3 unit tests for TCString 2022-02-06 16:21:42 +00:00
Dustin J. Mitchell
f4c6e04d44 TCTags as PassByValue 2022-02-06 05:27:30 +00:00
Dustin J. Mitchell
23ba6a57b3 switch to PassByValue and PassByPointer traits 2022-02-06 04:02:53 +00:00
Dustin J. Mitchell
a46a9d587a fix typo 2022-02-05 00:25:02 +00:00
Dustin J. Mitchell
3dd2ae5011 implement TCTags as an array 2022-02-04 02:49:55 +00:00
Dustin J. Mitchell
8b160c7ee8 more task functions 2022-02-01 03:01:09 +00:00
Dustin J. Mitchell
e5625e1597 entry and wait time support 2022-02-01 02:45:28 +00:00
Dustin J. Mitchell
f2b3e5fd0a tc_task_has_tag 2022-02-01 01:02:49 +00:00
Dustin J. Mitchell
03ffb6ce83 limit unsafe regions 2022-02-01 00:48:49 +00:00
Dustin J. Mitchell
22a6857c1b simplify TCResult to just two values 2022-02-01 00:46:04 +00:00
Dustin J. Mitchell
b675cef99c add error handling for tasks 2022-02-01 00:35:02 +00:00
Dustin J. Mitchell
2dc9358085 add warn(unsafe_op_in_unsafe_fn) 2022-01-31 19:57:05 +00:00
Dustin J. Mitchell
ce45c1004c add tc_task_add_tag and check errors 2022-01-31 19:44:00 +00:00
Dustin J. Mitchell
ef0bb2ced4 allow task setters to return error values 2022-01-31 19:34:21 +00:00