tags 519230 fixed-upstream
thanks

Hi,

On Wed, Mar 11, 2009 at 8:12 PM, Tanaka Akira <a...@fsij.org> wrote:
> 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.

Yes.

>  SUSv3:
>  long telldir(DIR *dirp);
>
> Also the header file declare it returns long.

Yes.

>  % 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));

Yes.

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

True.  But there is a bit more to the story.  In glibc 2.1.1 and
earlier (which would have been current when the man page was written),
the type really was 'off_t' in both cases.  With glibc 2.1.2 and
later, we have the current 'long'.

So, I changed the types in both SYNOPSIS sections, and added a NOTES
section to each page describing the old type definitions.

The changes will be in upstream 3.20.

Thanks for the report!

Cheers,

Michael



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