Commit Graph

111 Commits (bc4c322160d4dbd970ec7168df7ec445e279ee3e)

Author SHA1 Message Date
Felix von Leitner 017557490a use madvise MADV_PREFETCH to implement iob_prefetch 2004-09-27 19:46:42 +00:00
Felix von Leitner 315ab58746 fix case where iob_send sends all from io batch, but then new data is
added and iob_send is called again
2004-07-21 16:35:31 +00:00
Felix von Leitner 1892543745 cosmetics: use write instead of writev if there is only one buffer to
write (looks nicer in strace)
2004-07-21 16:00:47 +00:00
Felix von Leitner c431accd41 Solaris compatibility for io_passfd and io_receivefd (untested, but at
least it compiles)
2004-06-03 16:45:30 +00:00
Felix von Leitner 1213467cfe actually return 0 on success in io_passfd 2004-05-13 12:40:09 +00:00
Felix von Leitner c7adf4e307 add io_readwritefile, io_appendfile 2004-05-10 20:08:38 +00:00
Felix von Leitner 71cbad0f60 work around broken Linux sendfile API (offset 64-bit but count 32-bit) 2004-05-08 12:52:22 +00:00
Felix von Leitner 9d014e1f36 bsd compat 2004-05-05 20:04:03 +00:00
Felix von Leitner 56ac77f629 argh more bsd 2004-05-05 20:03:15 +00:00
Felix von Leitner 878fbf64ac bsd compat 2004-05-05 20:01:40 +00:00
Felix von Leitner 21907d29cc slight optimization for sending 0 bytes from a file
(also fixes a FreeBSD-current sendfile breakage)
2004-04-07 08:38:41 +00:00
Felix von Leitner 0da1c0902d fix bug in mmap code path of io_sendfile (David Leadbeater) 2004-03-24 14:02:00 +00:00
Felix von Leitner f9bff979e2 fix signal race (Scott Lamb) 2004-03-07 21:48:56 +00:00
Felix von Leitner ca610274e0 explicitly define extern globals 2004-03-06 10:35:09 +00:00
Felix von Leitner 1f7895e25c document return values correctly 2004-03-06 10:27:44 +00:00
Felix von Leitner 08b13a1f18 <io.h> -> <iob.h> 2004-03-02 22:41:34 +00:00
Felix von Leitner 10be0bddaf add more man pages 2004-03-02 20:02:23 +00:00
Felix von Leitner 654075d0eb add sigpipe helper 2004-02-29 03:05:37 +00:00
Felix von Leitner 5617c437b8 add some man pages 2004-02-27 17:04:02 +00:00
Felix von Leitner 59a340381e better error handling 2004-02-27 14:50:28 +00:00
Felix von Leitner ec2f230bb4 add fd passing functions 2004-02-27 14:47:31 +00:00
Felix von Leitner 5959a6d634 add io_socketpair 2004-02-27 13:58:17 +00:00
Felix von Leitner 00dcef4652 add iob_addfile_close (iob_reset will close the files) 2004-02-25 02:22:54 +00:00
Felix von Leitner 8bfdacc6f2 handle POLLNVAL (can't happen errors) 2004-02-24 00:20:04 +00:00
Felix von Leitner 4f27d99c9d speculative pre-emptive freebsd 4 compatibility ;) 2004-02-21 17:27:42 +00:00
Felix von Leitner 75e1b71e75 try to fix freebsd 4 compile error 2004-02-21 17:26:57 +00:00
Felix von Leitner 31e62af122 writev fix 2004-01-30 12:47:28 +00:00
Felix von Leitner bfe7592705 the mmap+write version of io_sendfile sent too much at the end and/or
went into an infinite loop sometimes.
2004-01-26 01:17:39 +00:00
Felix von Leitner 1e6cd7dc5c actually check in AIX sendfile code 2004-01-14 01:11:49 +00:00
Felix von Leitner 81f97d85b7 integrate Linux sendfile into trysendfile.c infrastructure
first stab at AIX 5 sendfile support
2004-01-12 22:09:41 +00:00
Felix von Leitner 23e8812905 still had bus error :( 2004-01-10 00:12:18 +00:00
Felix von Leitner d981f35a7f still bus error 2004-01-10 00:09:30 +00:00
Felix von Leitner 4c5a8ea119 bus error?! 2004-01-10 00:06:56 +00:00
Felix von Leitner 8885fc1018 prefetching leaked memory 2004-01-10 00:05:18 +00:00
Felix von Leitner 5ea24edfec macos x support 2004-01-08 17:12:28 +00:00
Felix von Leitner e8c96ef3a7 macos x support 2004-01-08 17:11:08 +00:00
Felix von Leitner 9a765ad112 Support Solaris 9 sendfile 2004-01-08 16:34:47 +00:00
Felix von Leitner 2edb9fb227 #define _LARGEFILE64_SOURCE 2004-01-08 15:11:13 +00:00
Felix von Leitner d8c2458342 support HP-UX sendfile (thanks Rolf Eike Beer) 2004-01-08 15:07:40 +00:00
Felix von Leitner 00d584a650 sendfile 2004-01-07 19:05:36 +00:00
Felix von Leitner 67e1b495b6 recent change corrected sendfile parameters but not internal usage 2004-01-07 18:54:43 +00:00
Felix von Leitner 126e947ac2 add experimental prefetching support 2004-01-07 15:58:44 +00:00
Felix von Leitner c99799d0f8 more alloca fixes 2004-01-06 23:35:06 +00:00
Felix von Leitner 8c61125e21 make cast nicer 2004-01-06 23:01:02 +00:00
Felix von Leitner 68da613393 more defensive programming for SIGIO (*groan*) 2003-11-28 17:38:08 +00:00
Felix von Leitner 5c92fb9e03 make sure the mmap based io_sendfile actually works (and terminates) 2003-11-24 04:12:07 +00:00
Felix von Leitner fe36b75750 oops, left debug #undef in 2003-11-15 00:12:22 +00:00
Felix von Leitner 5e4484722d use mmap on BSD without sendfile 2003-11-15 00:11:24 +00:00
Olaf Dreesen 0a7bea50ee fixing the poll call in io_waituntil2 2003-11-14 14:50:34 +00:00
Felix von Leitner e119e542a9 *duh* one extra zero 2003-11-11 19:50:42 +00:00