write() writes too many bytes?

Eric Buddington (eric@sparrow.nad.adelphia.net)
Wed, 16 May 2001 23:03:12 -0400


OK, I know this is bizarre and probably some goof on my part, but it
is just too weird for me to guess at further:

My program write()s 2- and 4- byte chunks or data to a file (for a WAV
header). When the data being written contains an 0xff byte, it is
apparently written to disk as 2 bytes: 0x81ff.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/