linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: write() writes too many bytes?
@ 2001-05-17 23:51 Eric Buddington
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Buddington @ 2001-05-17 23:51 UTC (permalink / raw)
  To: linux-kernel

My apologies for bothering the list with this cool-sounding but bogus
problem; I only sent it accidentally (I discovered my mistake while
writing the original) and followed with a retraction which I stupidly
sent to the old rutgers address. Wish I had sent the original there,
too.

I was fooled by characters inserted by emacs when I loaded up the file
to look at it. I loaded it as text, then converted to hex. Emacs had
already added some '^'s to denote escape characters, and left them in.
My mistake.

-Eric

> 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.

----- End forwarded message -----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* write() writes too many bytes?
@ 2001-05-17  3:03 Eric Buddington
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Buddington @ 2001-05-17  3:03 UTC (permalink / raw)
  To: linux-kernel

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-17 23:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-17 23:51 write() writes too many bytes? Eric Buddington
  -- strict thread matches above, loose matches on Subject: below --
2001-05-17  3:03 Eric Buddington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).