Branch: Tag:

2014-09-23

2014-09-23 10:54:37 by Per Hedbor <ph@opera.com>

Added more direct mapping to seek.

Also added SEEK_DATA and SEEK_HOLE support if they are supported by
the OS (solaris, freebsd, linux).

In order to keep compatibility the SEEK_<whatever> constants are
actually strings.

Deprecated the old seek( offset, multiplier, adder ) version of seek
(which was, according to the documentation, obsolete before year
2000).

50:   #endif /* HAVE_FSYNC */      /* function(int,int|void,int|void:int) */ - FILE_FUNC("seek",file_seek, tFunc(tInt tOr(tInt,tVoid) tOr(tInt,tVoid),tInt)) + FILE_FUNC("seek",file_seek, +  tOr(tFunc(tInt tOr(tNStr(tInt05),tVoid),tInt), +  tAttr("deprecated",tFunc(tInt tInt tOr(tInt,tVoid),tInt))))   /* function(:int) */   FILE_FUNC("tell",file_tell, tFunc(tNone,tInt))   /* function(int:int) */