Commit Graph

968 Commits (db4ef5494beb96bdc59aab56c1ef77c91b795cc0)

Author SHA1 Message Date
Felix von Leitner db4ef5494b some crude attempt to fix mingw cross build 2021-04-27 17:38:54 +00:00
Felix von Leitner a16f238d80 next attempt (I need a bsd shell) 2021-04-25 11:09:25 +00:00
Felix von Leitner 714a06fcb7 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
Felix von Leitner 0c8b9934d2 provide prototype 2021-04-24 12:48:50 +00:00
Felix von Leitner 0c4c4efbe0 try too fix erdgeist's bug 2021-04-24 12:47:18 +00:00
Felix von Leitner a246f90de5 try to fix erdgeist's bug 2021-04-24 12:46:53 +00:00
Felix von Leitner 26a19cf273 less compiler warnings 2021-04-24 12:33:33 +00:00
Felix von Leitner 45c5556548 better test 2021-04-24 11:44:17 +00:00
Felix von Leitner 52d9cfa681 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
Felix von Leitner 2a08bdfb89 change t.c from threading to full io_wait 2021-04-24 11:38:24 +00:00
Felix von Leitner 0be5f69f11 fix deps 2021-04-24 10:47:51 +00:00
Felix von Leitner b023cbb0aa test iob_send 2021-04-23 08:06:41 +00:00
Felix von Leitner b5f0721298 fix out of bounds memory access 2021-04-23 08:02:09 +00:00
Felix von Leitner b148d97cad limit iovec size for sendmsg code path to 50 2021-04-22 12:53:53 +00:00
Felix von Leitner 7705db76e2 mention sendmsg issue 2021-04-22 11:31:22 +00:00
Felix von Leitner 3e7158a2fc add missing includes 2021-04-22 11:12:52 +00:00
Felix von Leitner 77ea7db2d8 add missing man pages 2021-04-22 11:11:52 +00:00
Felix von Leitner c4b742d9e0 left old constants in 2021-04-22 11:08:29 +00:00
Felix von Leitner 53db030fd0 need to use own constants now 2021-04-22 11:04:41 +00:00
Felix von Leitner ed984eb886 now with accept4 2021-04-22 11:03:24 +00:00
Felix von Leitner e23d5bbc5b OSX does not have accept4 :( 2021-04-22 11:02:44 +00:00
Felix von Leitner 28d01b3688 also escape negative chars (we are in utf-8 land now, no longer latin1) 2021-04-21 11:32:03 +00:00
Felix von Leitner 5211d82384 it's fcntl.h not sys/fcntl.h 2021-04-08 11:08:47 +00:00
Felix von Leitner 2b74003e85 add missign build deps (thanks Giorgio) 2021-03-29 08:33:24 +00:00
Felix von Leitner f8f8908929 add missed dependency 2021-03-19 17:09:46 +00:00
Felix von Leitner b21da7cf70 add support for saving syscalls with accept4 2021-03-12 16:23:32 +00:00
Felix von Leitner 9e831fe414 move cleanup after check that all events are handled 2021-03-12 10:43:46 +00:00
Felix von Leitner 874530bace prevent infinite loop in cleanup code for
io_close-with-outstanding-events-queued race prevention
2021-03-11 14:13:51 +00:00
Felix von Leitner d342fa80e2 properly initialize deferred list in io_fd (did not help though) 2021-03-09 13:54:59 +00:00
Felix von Leitner 9f9b777fab add snarky comment 2021-02-18 23:21:57 +00:00
Felix von Leitner ce92de14c0 might actually work now 2021-02-17 13:48:39 +00:00
Felix von Leitner 5420136c6b attempt to prevent future endless loops in io_wait half-closed fd
cleanup
2021-02-16 15:50:38 +00:00
Felix von Leitner 93111d2dc7 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
Felix von Leitner 96a42d6c7e document changes 2020-12-07 17:54:40 +00:00
Felix von Leitner c9823c9fbd you need to #include <stdlib.h> 2020-12-07 17:53:46 +00:00
Felix von Leitner 40a5ae7d3b add fmt_strm_malloc 2020-12-07 17:53:24 +00:00
Felix von Leitner bd5461a618 add man page for fmt_strm_alloca and fmt_strm_malloc 2020-12-07 17:53:13 +00:00
Felix von Leitner 6acd715154 mmap_private opens the file for reading, not for writing 2020-12-07 15:00:54 +00:00
Felix von Leitner 624c3ac378 more cross references for open_* 2020-12-07 14:57:16 +00:00
Felix von Leitner 00b0891427 correct file open mode for mmap_private man page 2020-12-07 14:20:57 +00:00
Felix von Leitner 7a484e1f0e more cross references 2020-12-07 14:20:04 +00:00
Felix von Leitner bab35a1169 update dependencies, use $(AR) and $(RANLIB) 2020-12-01 13:50:02 +00:00
Felix von Leitner 8b933945a1 forward changes made in prototypes to actual implementation 2020-11-20 13:42:58 +00:00
Felix von Leitner fe000e3df8 buffer_seek did not work at all m( 2020-11-14 17:34:21 +00:00
Felix von Leitner 1948ac17a4 undo fatfinger 2020-11-14 17:21:58 +00:00
Felix von Leitner 81def53a7d also advance cur if upstream is a bytestream or an iobuf 2020-11-14 17:09:49 +00:00
Felix von Leitner 96ea061228 also increment cur in bs_skip if upstream is not a memory buffer 2020-11-14 16:53:54 +00:00
Felix von Leitner c3366f8bbb only use writev for larger chunks in buffer_putflush
only use lseek if it saves a read in buffer_seek
2020-11-10 21:51:22 +00:00
Felix von Leitner 726614af36 abort loop if EOF 2020-11-10 21:23:45 +00:00
Felix von Leitner a10f89d5f3 add compiler.h to abstract gcc attributes 2020-11-08 00:29:35 +00:00