Andreas Kling
6d5633904f
CIODevice: Don't discard already-buffered data when there's no more to read.
...
When we had some data already in the CIODevice buffer, we should make sure
we always return that data, even if the attempt to ::read() even more data
fails. This was causing us to lose partial HTTP payloads.
2019-06-22 23:07:42 +02:00
Andreas Kling
7e1cb86da7
LibHTML: Make it possible to build LibHTML on the host.
...
- "make" builds the normal Serenity libhtml.a
- "make -f Makefile.host" builds a test program for the host machine.
2019-06-22 21:21:57 +02:00
Andreas Kling
7770d6a09d
LibCore: Run clang-format on everything.
2019-06-07 11:46:37 +02:00
Andreas Kling
98eeb8f22d
AK: Rename printf.cpp to PrintfImplementation.h.
2019-06-07 11:41:11 +02:00
Andreas Kling
ae4ac524ad
CIODevice: Update m_error if a write() fails.
2019-06-02 15:18:27 +02:00
Andreas Kling
cbd858544d
LibC: Move struct timeval to sys/time.h. #POSIX
2019-05-28 13:48:06 +02:00
Robin Burchell
c8fda23a03
LibCore/Userland: Introduce a simple tail implementation
...
Also introduce more seek modes on CIODevice, and an out param to find
the current position inside the file -- this means less syscalls (and
less potential races) than requesting it through a separate pos()
accessor or something.
2019-05-17 14:28:13 +02:00
Andreas Kling
1e0f9d325c
LibCore: Avoid a big malloc in CIODevice's internal buffering.
...
This heap allocation was totally avoidable and can be replaced by a stack
buffer instead. Dodges a bunch of mmap() traffic.
2019-05-14 16:36:29 +02:00
Andreas Kling
dbf7878998
LibCore: Using printf() inside CIODevices will now call CIODevice::printf().
...
Well this was confusing. Obviously this code should never be calling outside
to ::printf() anyway, so just use dbgprintf() instead.
2019-05-10 18:20:54 +02:00
Andreas Kling
7ce3b10568
CIODevice: Add some basic output facilities: write() and printf().
...
Being able to do file.printf() is extremely comfy, I have to say. :^)
2019-05-08 04:38:41 +02:00
Andreas Kling
7b3876383f
LibCore: CIODevice::seek() should reset EOF state.
2019-04-18 02:09:15 +02:00
Andreas Kling
b5759089d8
LibCore: Add CIODevice::seek().
2019-04-16 00:51:05 +02:00
Andreas Kling
cfd6e6cc36
LibCore: Move GIODevice hierarchy from LibGUI to LibCore.
2019-04-10 20:22:23 +02:00