* 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
* add function write_file() * handle EAGIN & EWOULDBLOCK * don't handle errno
* 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>