Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005915OCamlstandard librarypublic2013-02-05 03:292013-03-24 15:34
Assigned To 
StatusclosedResolutionno change required 
Platformall POSIX compliant onesOSOS Version
Product Version4.00.1 
Target VersionFixed in Version 
Summary0005915: No ftell in the Unix module while there is an lseek

It is a little cumbersome for system programming that there is no ftell in the Unix module.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
berenger (reporter)
2013-02-05 03:31

If it has a chance for inclusion in the source tree, I can provide a patch
to add it, so that lseek feels less lonely.
chambart (developer)
2013-02-07 10:56

The unix library uses file descriptors, not streams. ftell is a stream function.

If you want to know the current offset of a file descritor, use:

lseek fd 0 SEEK_CUR
berenger (reporter)
2013-02-08 01:56

I see. Thanks!
It's OK to close my stupid request then.

- Issue History
Date Modified Username Field Change
2013-02-05 03:29 berenger New Issue
2013-02-05 03:31 berenger Note Added: 0008819
2013-02-07 10:56 chambart Note Added: 0008826
2013-02-08 01:56 berenger Note Added: 0008829
2013-03-24 15:34 xleroy Status new => closed
2013-03-24 15:34 xleroy Resolution open => no change required
2017-02-23 16:43 doligez Category OCaml standard library => standard library

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker