From 9cb18e7230d253ef5714e11755745a8efbf93f39 Mon Sep 17 00:00:00 2001 From: Alexander Shiryaev Date: Wed, 17 Jan 2018 14:26:05 +0300 Subject: [PATCH] fileno added --- .../Lin/Mod/gen-Libc/Libc.txt.templ | 3 +++ BlackBox/_FreeBSD_/Lin/Mod/Libc.txt | 3 +++ BlackBox/_Linux_/Lin/Mod/Libc.odc | Bin 25584 -> 25649 bytes BlackBox/_Linux_/Lin/Mod/Libc.txt | 1 + BlackBox/_OpenBSD_/Lin/Mod/Libc.txt | 3 +++ 5 files changed, 10 insertions(+) diff --git a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ index 3e156fd..5851681 100644 --- a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ +++ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ @@ -194,6 +194,9 @@ MODULE LinLibc ["libc.so%%libver%%"]; (* ANSI C 89, XPG4 *) PROCEDURE [ccall] fseek* (stream: PtrFILE; offset: long; whence: int): int; + (* POSIX.1 *) + PROCEDURE [ccall] fileno* (stream: PtrFILE): int; + (* POSIX.1 *) PROCEDURE [ccall] rename* (from, to: PtrSTR): int; PROCEDURE [ccall] mkdir* (path: PtrSTR; mode: mode_t): int; diff --git a/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt b/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt index 85e53d1..b418f76 100644 --- a/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt +++ b/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt @@ -660,6 +660,9 @@ MODULE LinLibc ["libc.so.7"]; (* ANSI C 89, XPG4 *) PROCEDURE [ccall] fseek* (stream: PtrFILE; offset: long; whence: int): int; + (* POSIX.1 *) + PROCEDURE [ccall] fileno* (stream: PtrFILE): int; + (* POSIX.1 *) PROCEDURE [ccall] rename* (from, to: PtrSTR): int; PROCEDURE [ccall] mkdir* (path: PtrSTR; mode: mode_t): int; diff --git a/BlackBox/_Linux_/Lin/Mod/Libc.odc b/BlackBox/_Linux_/Lin/Mod/Libc.odc index f53d5c4dbdcf74903bb111aa04db09f05946adc8..63a42af64233b4f03c230feb4b7782d2594d1db5 100644 GIT binary patch delta 104 zcmexxoN?m`#tHR|>n1kDasEkSVBln6VE8iexhvzm$-0d8!itFu4E#VLNgxdYW}E97 z4fq*1P5zjaGFe1WliL_5&T0yhbl7YsnC-}ynUk8Auce?-TvC*pn7g?ls6Y?^7M&bZ delta 75 zcmdmZg7L#~#tHR|xf2`WICm#8FmN(3Fl?Uq+?6qQvM!^&@Ph;f27aK>4Im8xI-Bbm Z4fq*XOx_^S%UHPCLonNM^Q$0tK>&F_7ES;F diff --git a/BlackBox/_Linux_/Lin/Mod/Libc.txt b/BlackBox/_Linux_/Lin/Mod/Libc.txt index fdc3d67..768363f 100644 --- a/BlackBox/_Linux_/Lin/Mod/Libc.txt +++ b/BlackBox/_Linux_/Lin/Mod/Libc.txt @@ -420,6 +420,7 @@ MODULE LinLibc ["libc.so.6"]; PROCEDURE [ccall] fopen* (filename, mode: PtrSTR): PtrFILE; PROCEDURE [ccall] fdopen* (fildes: INTEGER; mode: PtrSTR): PtrFILE; PROCEDURE [ccall] feof* (fp: PtrFILE): INTEGER; + PROCEDURE [ccall] fileno* (stream: PtrFILE): INTEGER; PROCEDURE [ccall] fread* (ptr: PtrVoid; size, nobj: size_t; stream: PtrFILE): size_t; PROCEDURE [ccall] fseek* (stream: PtrFILE; offset, origin: INTEGER): INTEGER; PROCEDURE [ccall] free* (p: PtrVoid); diff --git a/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt b/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt index aa872b6..d563b77 100644 --- a/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt +++ b/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt @@ -671,6 +671,9 @@ MODULE LinLibc ["libc.so.90"]; (* ANSI C 89, XPG4 *) PROCEDURE [ccall] fseek* (stream: PtrFILE; offset: long; whence: int): int; + (* POSIX.1 *) + PROCEDURE [ccall] fileno* (stream: PtrFILE): int; + (* POSIX.1 *) PROCEDURE [ccall] rename* (from, to: PtrSTR): int; PROCEDURE [ccall] mkdir* (path: PtrSTR; mode: mode_t): int; -- 2.29.2