Package: manpages-dev
Version: 2.39-1

telldir(3)'s SYNOPSIS section describes telldir returns
off_t as follows.

  off_t telldir(DIR *dir);

But Single Unix Specification version 3 describes it returns
long.

  SUSv3:
  long telldir(DIR *dirp);

Also the header file declare it returns long.

  % grep telldir /usr/include/dirent.h 
  extern long int telldir (DIR *__dirp) __THROW __nonnull ((1));

seekdir(3) has same issue.  SYNOPSIS uses off_t.

  void seekdir(DIR *dir, off_t offset);

But SUSv3 and the header file uses long.

  SUSv3:
  void seekdir(DIR *dirp, long loc);

  % grep seekdir /usr/include/dirent.h
  extern void seekdir (DIR *__dirp, long int __pos) __THROW __nonnull ((1));

So I think off_t in telldir(3) and seekdir(3) is a bug and
should be replaced by long.
-- 
Tanaka Akira



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to