DEADSOFTWARE

lseek
authorAlexander Shiryaev <aixp@mail.ru>
Fri, 9 Mar 2018 10:33:45 +0000 (13:33 +0300)
committerAlexander Shiryaev <aixp@mail.ru>
Fri, 9 Mar 2018 10:33:45 +0000 (13:33 +0300)
BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ
BlackBox/_Linux_/Lin/Mod/gen-Libc/custom
BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom

index fb0cd79689a411ad278a461207d329f6297f137d..2532cd6e10cd5c0995847db5140089c57bcd0bb5 100644 (file)
@@ -225,7 +225,6 @@ MODULE LinLibc ["libc.so%%libver%%"];
                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;
index 45cc61e6d783cfe425fc4cdcca730669601f6c45..1d052c1825d38907f3c01df9a1c7bfbdb9136683 100644 (file)
@@ -3,6 +3,8 @@
                        _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;
@@ -39,4 +41,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;
index 519abd5261d2815b44cea3b57b822985a679186f..ebfac0eddaa087e40ad743e41c9439a37560a400 100644 (file)
@@ -14,5 +14,7 @@
        (* POSIX.1 *)
                PROCEDURE [ccall] stat* (path: PtrSTR; VAR sp: stat_t): int;
 
+               PROCEDURE [ccall] lseek* (d: int; offset: off_t; whence: int): off_t;
+
        (* POSIX.1 *)
                PROCEDURE [ccall] sigsetjmp* (VAR env: sigjmp_buf; savemask: int): int;