System calls for binary protocol writing