969 Commits

Author SHA1 Message Date
leitner
885ffac7d8 remove unused label 2022-04-11 08:37:51 +00:00
leitner
d93ddc33b8 fix buffer overread for len=0 in scan_longn (Martin Castillo) 2022-04-11 08:35:54 +00:00
leitner
e0ebf1e57e forgot to add man page 2022-04-11 08:28:01 +00:00
leitner
276cd8ef9e what if the left-over from writev does not fit into the buffer? 2022-03-14 10:34:50 +00:00
leitner
de672180ac don't disturb glibc with __deprecated__ 2022-03-11 12:59:37 +00:00
leitner
fc223dc725 recent kernel return POLLERR and then calling read returns EGAIN which
leads to busy loop. Try to work around.
2022-03-11 12:07:53 +00:00
leitner
c9e9ecfb6a add bytestream man page 2022-03-10 20:25:08 +00:00
leitner
46cd715bbf explain a bit what we are trying to do here 2021-11-03 12:28:12 +00:00
leitner
0556994916 try to prevent ARM from reordering writes in hardware 2021-10-26 09:54:22 +00:00
leitner
32f02d34fc remove stray l (Rolf Eike Baer) 2021-08-20 11:12:38 +00:00
leitner
1217583e2b now that gcc 11's static analyzer looks at array bounds in arguments
like "char ip[4]", let's be more strict about that
2021-04-27 17:39:42 +00:00
leitner
07c3f0bf3d some crude attempt to fix mingw cross build 2021-04-27 17:38:54 +00:00
leitner
853242b078 next attempt (I need a bsd shell) 2021-04-25 11:09:25 +00:00
leitner
efb1a8a2ae kqueue path assumed EVFILT_READ and EVFILT_WRITE are bits that can be used with | and ~ and &
they aren't
2021-04-25 11:03:53 +00:00
leitner
2788b18f32 provide prototype 2021-04-24 12:48:50 +00:00
leitner
cef53a5907 try too fix erdgeist's bug 2021-04-24 12:47:18 +00:00
leitner
1a793700a8 try to fix erdgeist's bug 2021-04-24 12:46:53 +00:00
leitner
8296813ff4 less compiler warnings 2021-04-24 12:33:33 +00:00
leitner
9889bf3d70 better test 2021-04-24 11:44:17 +00:00
leitner
45f99bbd0a in io_eagain, make sure the kernel knows we wanted to write to the
descriptor in case we optimized the syscall away previously
in iob_send leave loop if we got a partial write
2021-04-24 11:39:18 +00:00
leitner
f84ff9a817 change t.c from threading to full io_wait 2021-04-24 11:38:24 +00:00
leitner
3a3c328a99 fix deps 2021-04-24 10:47:51 +00:00
leitner
119bc7702d test iob_send 2021-04-23 08:06:41 +00:00
leitner
f4cd377378 fix out of bounds memory access 2021-04-23 08:02:09 +00:00
leitner
86e596b870 limit iovec size for sendmsg code path to 50 2021-04-22 12:53:53 +00:00
leitner
fc7e04660f mention sendmsg issue 2021-04-22 11:31:22 +00:00
leitner
1fb5505cc2 add missing includes 2021-04-22 11:12:52 +00:00
leitner
e1f516b426 add missing man pages 2021-04-22 11:11:52 +00:00
leitner
f6bdbda5d5 left old constants in 2021-04-22 11:08:29 +00:00
leitner
5e47b80d5a need to use own constants now 2021-04-22 11:04:41 +00:00
leitner
bb0a9278c3 now with accept4 2021-04-22 11:03:24 +00:00
leitner
7fd8e31f7d OSX does not have accept4 :( 2021-04-22 11:02:44 +00:00
leitner
ca968b8cec also escape negative chars (we are in utf-8 land now, no longer latin1) 2021-04-21 11:32:03 +00:00
leitner
0579cb6a7b it's fcntl.h not sys/fcntl.h 2021-04-08 11:08:47 +00:00
leitner
fc8aed5d39 add missign build deps (thanks Giorgio) 2021-03-29 08:33:24 +00:00
leitner
49152d0c56 add missed dependency 2021-03-19 17:09:46 +00:00
leitner
b5f21a3900 add support for saving syscalls with accept4 2021-03-12 16:23:32 +00:00
leitner
c4b0dd6b81 move cleanup after check that all events are handled 2021-03-12 10:43:46 +00:00
leitner
15f004df55 prevent infinite loop in cleanup code for
io_close-with-outstanding-events-queued race prevention
2021-03-11 14:13:51 +00:00
leitner
5f9f1a2a62 properly initialize deferred list in io_fd (did not help though) 2021-03-09 13:54:59 +00:00
leitner
ad37bd83de add snarky comment 2021-02-18 23:21:57 +00:00
leitner
d4ac8fe906 might actually work now 2021-02-17 13:48:39 +00:00
leitner
75fe9a620e attempt to prevent future endless loops in io_wait half-closed fd
cleanup
2021-02-16 15:50:38 +00:00
leitner
e2673d3782 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf 2021-01-03 23:15:28 +00:00
leitner
68a04bf226 document changes 2020-12-07 17:54:40 +00:00
leitner
5259ce9092 you need to #include <stdlib.h> 2020-12-07 17:53:46 +00:00
leitner
47043a16a8 add fmt_strm_malloc 2020-12-07 17:53:24 +00:00
leitner
b6195a540a add man page for fmt_strm_alloca and fmt_strm_malloc 2020-12-07 17:53:13 +00:00
leitner
dda1b00937 mmap_private opens the file for reading, not for writing 2020-12-07 15:00:54 +00:00
leitner
35e3a2fdb5 more cross references for open_* 2020-12-07 14:57:16 +00:00