181 Commits

Author SHA1 Message Date
tezc
3c8e0f9f70 sc_sock windows : don't try to set non-existing fds 2021-04-15 01:41:55 +03:00
tezc
9250f22d7c sc_sock windows, move Ws2tcpip.h in front of windows.h 2021-04-15 01:36:48 +03:00
tezc
c3010e0d12 do not override error message on _term family functions + clang-format 2021-04-15 01:30:58 +03:00
tezc
d1a7e421ad more poll_term tests 2021-04-15 00:20:36 +03:00
tezc
7af766e1d5 save error message if close on sock_poll fails 2021-04-15 00:12:09 +03:00
tezc
e39a8fb2d2 fix windows sc_cond 2021-04-14 23:30:54 +03:00
tezc
13a8284383 made sc_sock_poll sc_sock_pipe and cond immune to double termination 2021-04-14 23:24:43 +03:00
tezc
e1ef96ad61 made sc_sock_poll sc_sock_pipe and cond immune to double termination 2021-04-14 23:16:36 +03:00
Ozan Tezcan
8c8a3ede9f
Merge pull request #71 from tezc/doc-fix
documentation fix
2021-04-14 02:11:36 +03:00
tezc
012a3243ad documentation fix 2021-04-14 01:25:28 +03:00
Ozan Tezcan
b0e47c120c
Merge pull request #70 from tezc/cleanup-destroy
made data structures immune to call term/destroy twice
2021-04-13 23:48:27 +03:00
tezc
5799b118b1 added mmap double destroy fix for windows 2021-04-13 23:10:42 +03:00
tezc
502372b4d6 added double destroy queue test 2021-04-13 22:46:20 +03:00
tezc
286379b0b2 bump version to 2.0.0 2021-04-13 22:36:50 +03:00
tezc
6eac784e7b made array and queue reusable after destroyed 2021-04-13 22:29:29 +03:00
tezc
57e67dc955 made data structures immune to call term/destroy twice 2021-04-13 22:16:30 +03:00
Ozan Tezcan
3d11311f90
Merge pull request #69 from tezc/fix-fd-leak
sc_mmap : cleanup fd on failure for Mac OS
2021-04-11 22:12:13 +03:00
tezc
90146f93be sc_mmap : cleanup fd on failure for Mac OS 2021-04-11 21:05:57 +03:00
tezc
9863c861ff bounds check in sc_str to prevent misuse 2021-04-08 13:47:58 +03:00
Ozan Tezcan
ac312c7192
Merge pull request #68 from tezc/str-fix
bounds check in sc_str to prevent misuse
2021-04-08 13:43:56 +03:00
tezc
b469d73ae7 bounds check in sc_str to prevent misuse 2021-04-08 13:16:53 +03:00
Ozan Tezcan
e8f896f077
refactor (#67)
* refactor
2021-04-07 04:55:05 +03:00
Ozan Tezcan
c221478638
Switched to tabs for indentation, amalgamation tool works with tabs only (#66)
* Switched to tabs for indentation, amalgamation tool works with tabs only
2021-04-07 00:28:50 +03:00
Ozan Tezcan
ded2b9429c
sc_buf set_rpos and set_wpos checks. Don't compact on reserve. (#65)
* sc_buf set_rpos and set_wpos checks. Don't compact on reserve.
2021-04-04 12:58:07 +03:00
Ozan Tezcan
6653078fd2
Merge pull request #64 from tezc/crc32-fix
crc32 big endian support, aarch64 hardware support
2021-04-04 12:46:09 +03:00
tezc
414feeb5b7 crc32 big endian support, aarch64 hardware support 2021-04-04 12:28:21 +03:00
tezc
44737e264a sc_signal.c indentation and apple fix. 2021-04-01 11:16:03 +03:00
tezc
535a9229b0 suppress clang-tidy warning for array and queue 2021-04-01 03:24:25 +03:00
tezc
6f4040aa03 add clang-tidy to sc_map 2021-03-31 02:09:33 +03:00
tezc
7ffcfb0dc3 copy pointless '\0' byte to silence sanitizer 2021-03-31 01:54:37 +03:00
Ozan Tezcan
e741f7e371
Merge pull request #63 from tezc/str-fix
allow zero length string in sc_buf
2021-03-28 23:29:00 +03:00
tezc
b9dae6606c allow zero length string in sc_buf 2021-03-28 05:29:05 +03:00
Ozan Tezcan
c0149e90d4
sc_buf_shrink, sc_list del before add. (#62)
sc_buf_shrink, sc_list del before add.
v1.0.4
2021-03-24 01:37:41 +03:00
Ozan Tezcan
8c5b16ecd2
Merge pull request #59 from tezc/tezc-poll-h
use include <poll.h> instead <sys/poll.h>
2021-03-09 21:50:18 +03:00
Ozan Tezcan
31e57ced65
use include <poll.h> instead <sys/poll.h> 2021-03-09 21:32:35 +03:00
Ozan Tezcan
b79c8c71a9
add systemd helper (#58)
* add systemd helper
2021-03-08 07:39:26 +03:00
Ozan Tezcan
f19158c3d9
if log level is "error", print log to stderr instead of stdout (#57) 2021-03-08 03:54:51 +03:00
Ozan Tezcan
ca520dd749
Update README.md 2021-03-04 06:43:25 +03:00
Ozan Tezcan
72d92503c1
Update README.md 2021-03-01 14:50:18 +03:00
Tezc
f954b07aa0
documentation (#56)
documentation
v1.0.3
2021-02-27 20:29:43 +03:00
Tezc
e6c0c88dff
clang-tidy (#55)
* clang-tidy
2021-02-24 18:37:21 +03:00
Tezc
597e89413f
Update README.md 2021-02-24 14:00:27 +03:00
Tezc
e9bf73667a
Update README.md 2021-02-24 13:59:10 +03:00
Tezc
74a41ed625
Merge pull request #54 from tezc/buf-fix
Buf fix, doc
2021-02-24 10:16:53 +03:00
tezc
96a6d6e039 readme 2021-02-24 09:53:36 +03:00
tezc
491e7800a3 buf-fix 2021-02-24 09:53:27 +03:00
Tezc
ab8abe49f8
test (#53)
* test
v1.0.2
2021-02-19 05:20:07 +03:00
Tezc
2944a7cc4f
Merge pull request #52 from tezc/string-null-append
make appending to null string same as appending to empty string
2021-02-19 00:23:24 +03:00
tezc
aabeb33ef4 make appending to null string same as appending to empty string 2021-02-19 00:00:52 +03:00
Tezc
fb94efca1b
test (#50)
* test
2021-02-17 20:04:08 +03:00