too small returns ENOMEM, and that reading it into a buffer that is large enough returns the expected sizeof(int) bytes of data.