Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* minor doc fix
@ 2008-07-30 15:55 Bart Veer
  2008-07-30 17:55 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Bart Veer @ 2008-07-30 15:55 UTC (permalink / raw)
  To: gdb-patches

Current docs for the remote protocol file I/O extension state that a
struct timeval is 8 bytes. It is actually 12, a 4-byte time_t tv_sec
and an 8-byte long tv_usec. It is not clear why tv_usec was made a
long rather than an int, but that is what has been implemented in
remote_fileio_to_fio_timeval() and hence what current server
implementations expect.

Bart

2008-07-30  Bart Veer  <bartv@ecoscentric.com>

	* gdb.texinfo: gettimeofday() involves a 12-byte transfer, not 8
	bytes.

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.509
diff -u -p -r1.509 gdb.texinfo
--- gdb.texinfo	18 Jul 2008 20:55:33 -0000	1.509
+++ gdb.texinfo	30 Jul 2008 14:55:06 -0000
@@ -26636,7 +26636,7 @@ struct timeval @{
 
 The integral datatypes conform to the definitions given in the
 appropriate section (see @ref{Integral Datatypes}, for details) so this
-structure is of size 8 bytes.
+structure is of size 12 bytes.
 
 @node Constants
 @subsection Constants
	


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

end of thread, other threads:[~2008-07-30 20:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-30 15:55 minor doc fix Bart Veer
2008-07-30 17:55 ` Eli Zaretskii
2008-07-30 18:17   ` Bart Veer
2008-07-30 18:34     ` Eli Zaretskii
2008-07-30 18:49       ` Daniel Jacobowitz
2008-07-30 19:08         ` Eli Zaretskii
2008-07-30 19:15           ` Daniel Jacobowitz
2008-07-30 20:28       ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox