Change-Id: Ic6b036d050943fb5f0af8553c081ca75362167e8
The code is from NetBSD, with the -n and -h options removed to make porting easy. Also, removed support for the BLOCKSIZE environment variable for the same reason. Change-Id: Ib927ff3527e02802785fdd7f75bab1f05222918e