* no need to malloc one extra byte * combine two read_file into a faster one * cleanup #include * use resize * apply suggestions from review * space * rebase master old-commit-hash: fe2f63849a
fe2f63849a
* add function write_file() * handle EAGIN & EWOULDBLOCK * don't handle errno old-commit-hash: 6476207009
6476207009
old-commit-hash: 963c00db09
963c00db09
* pigeon abstraction layer * Fix string literals * more generic pigeon class * add TTYpigon * nicer tty error handling * close tty fd on pigeon delete * pigeon receive return std::string * use sizeof * max receive size to prevent infinite loop * remove namespace * add unistd include for usleep * fix is pigeon * Handle tty error in opening * fix printing binary strings with dump.py * fix pigeon build on macos * Handle errors seperately Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 502cc665e0
502cc665e0