DEADSOFTWARE

lseek
authorAlexander Shiryaev <aixp@mail.ru>
Fri, 9 Mar 2018 10:37:49 +0000 (13:37 +0300)
committerAlexander Shiryaev <aixp@mail.ru>
Fri, 9 Mar 2018 10:37:49 +0000 (13:37 +0300)
BlackBox/_Linux_/Lin/Mod/Libc.txt

index c24a0654cc363eb3721d7800998bef8d6f4fa11f..b410fd8db944327c5d31436ee2d2d7226fca796c 100644 (file)
@@ -516,6 +516,8 @@ MODULE LinLibc ["libc.so.6"];
                        _STAT_VER_LINUX* = 3;
 
        TYPE
+               off64_t* = LONGINT;
+
                (* Ubuntu 17.10 /usr/include/i386-linux-gnu/bits/types/sigval_t.h: *)
                        sigval_t* = RECORD [union]
                                sival_int*: int;
@@ -552,6 +554,8 @@ MODULE LinLibc ["libc.so.6"];
 
        PROCEDURE [ccall] __xstat* (version: INTEGER; filename: PtrSTR; VAR buf: stat_t): INTEGER;
 
+       PROCEDURE [ccall] lseek64* (fd: int; offset: off64_t; whence: int): off64_t;
+
        PROCEDURE [ccall] sigsetjmp* ["__sigsetjmp"] (VAR env: sigjmp_buf; savemask: int): int;
 
 
@@ -639,7 +643,6 @@ MODULE LinLibc ["libc.so.6"];
                PROCEDURE [ccall] write* (d: int; buf: PtrVoid; nbytes: size_t): ssize_t;
                PROCEDURE [ccall] read* (d: int; buf: PtrVoid; nbytes: size_t): ssize_t;
                PROCEDURE [ccall] close* (d: int): int;
-               PROCEDURE [ccall] lseek* (d: int; offset: off_t; whence: int): off_t;
 
        (* POSIX.1 *)
                PROCEDURE [ccall] chmod* (path: PtrSTR; mode: mode_t): int;