write() writes too many bytes?

From: Eric Buddington (eric@sparrow.nad.adelphia.net)
Date: Wed May 16 2001 - 22:03:12 EST


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/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:21 EST