public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Doc fix for telldir/seekdir
@ 2005-02-14 22:11 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2005-02-14 22:11 UTC (permalink / raw)
  To: libc-hacker

The file positions that telldir and seekdir operate on are of type long,
not off_t.

Andreas.

2005-02-14  Andreas Schwab  <schwab@suse.de>

	* manual/filesys.texi (Random Access Directory): Fix type of file
	position value for telldir and seekdir.
	(Attribute Meanings): Fix typo.

--- manual/filesys.texi.~1.96.~	2003-11-10 09:58:21.000000000 +0100
+++ manual/filesys.texi	2005-02-14 23:03:15.326678928 +0100
@@ -531,7 +531,7 @@ added or removed since you last called @
 
 @comment dirent.h
 @comment BSD
-@deftypefun off_t telldir (DIR *@var{dirstream})
+@deftypefun long int telldir (DIR *@var{dirstream})
 The @code{telldir} function returns the file position of the directory
 stream @var{dirstream}.  You can use this value with @code{seekdir} to
 restore the directory stream to that position.
@@ -539,7 +539,7 @@ restore the directory stream to that pos
 
 @comment dirent.h
 @comment BSD
-@deftypefun void seekdir (DIR *@var{dirstream}, off_t @var{pos})
+@deftypefun void seekdir (DIR *@var{dirstream}, long int @var{pos})
 The @code{seekdir} function sets the file position of the directory
 stream @var{dirstream} to @var{pos}.  The value @var{pos} must be the
 result of a previous call to @code{telldir} on this particular stream;
@@ -1740,7 +1740,7 @@ is transparently replaced by @code{ino64
 @deftp {Data Type} ino64_t
 This is an arithmetic data type used to represent file serial numbers
 for the use in LFS.  In the GNU system, this type is equivalent to
-@code{unsigned long longint}.
+@code{unsigned long long int}.
 
 When compiling with @code{_FILE_OFFSET_BITS == 64} this type is
 available under the name @code{ino_t}.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-14 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-14 22:11 Doc fix for telldir/seekdir Andreas Schwab

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 read-only IMAP folder(s) and NNTP newsgroup(s).