From 1917111f84110463d2aa92ba31e54fe9d881c5cd Mon Sep 17 00:00:00 2001 From: Alexander Shiryaev Date: Fri, 9 Mar 2018 13:33:45 +0300 Subject: [PATCH] lseek --- .../_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ | 1 - BlackBox/_Linux_/Lin/Mod/gen-Libc/custom | 4 ++++ BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ index fb0cd79..2532cd6 100644 --- a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ +++ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ @@ -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; diff --git a/BlackBox/_Linux_/Lin/Mod/gen-Libc/custom b/BlackBox/_Linux_/Lin/Mod/gen-Libc/custom index 45cc61e..1d052c1 100644 --- a/BlackBox/_Linux_/Lin/Mod/gen-Libc/custom +++ b/BlackBox/_Linux_/Lin/Mod/gen-Libc/custom @@ -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; diff --git a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom index 519abd5..ebfac0e 100644 --- a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom +++ b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/custom @@ -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; -- 2.29.2