From: Alexander Shiryaev Date: Wed, 17 Jan 2018 07:00:19 +0000 (+0300) Subject: chmod, system, popen, pclose X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cb77c1eed98f6467672287f7bc6e3017f50c266f;p=bbcp.git chmod, system, popen, pclose --- diff --git a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ index 08993f4..f694b5e 100644 --- a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ +++ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ @@ -220,11 +220,16 @@ MODULE LinLibc ["libc.so%%libver%%"]; 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; + (* POSIX.1 *) PROCEDURE [ccall] sysconf* (name: int): long; - PROCEDURE [ccall] system* (cmd: PtrSTR): INTEGER; - PROCEDURE [ccall] popen* (cmd, mode: PtrSTR): INTEGER; + (* POSIX.2 *) + PROCEDURE [ccall] system* (string: PtrSTR): int; + PROCEDURE [ccall] popen* (command, type: PtrSTR): PtrFILE; + PROCEDURE [ccall] pclose* (stream: PtrFILE): int; END LinLibc. diff --git a/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt b/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt index d05f602..d9691ee 100644 --- a/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt +++ b/BlackBox/_FreeBSD_/Lin/Mod/Libc.txt @@ -688,10 +688,16 @@ MODULE LinLibc ["libc.so.7"]; 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; + (* POSIX.1 *) PROCEDURE [ccall] sysconf* (name: int): long; - PROCEDURE [ccall] system* (cmd: PtrSTR): INTEGER; - PROCEDURE [ccall] popen* (cmd, mode: PtrSTR): INTEGER; + (* POSIX.2 *) + PROCEDURE [ccall] system* (string: PtrSTR): int; + + PROCEDURE [ccall] popen* (command, type: PtrSTR): PtrFILE; + PROCEDURE [ccall] pclose* (stream: PtrFILE): int; END LinLibc. diff --git a/BlackBox/_Linux_/Lin/Mod/Libc.odc b/BlackBox/_Linux_/Lin/Mod/Libc.odc index 4ce115e..cc50740 100644 Binary files a/BlackBox/_Linux_/Lin/Mod/Libc.odc and b/BlackBox/_Linux_/Lin/Mod/Libc.odc differ diff --git a/BlackBox/_Linux_/Lin/Mod/Libc.txt b/BlackBox/_Linux_/Lin/Mod/Libc.txt index 51748f9..283989c 100644 --- a/BlackBox/_Linux_/Lin/Mod/Libc.txt +++ b/BlackBox/_Linux_/Lin/Mod/Libc.txt @@ -473,7 +473,9 @@ MODULE LinLibc ["libc.so.6"]; PROCEDURE [ccall] sigprocmask* (how: INTEGER; set: Ptrsigset_t; oldset: Ptrsigset_t): INTEGER; - PROCEDURE [ccall] system* (cmd: PtrSTR): INTEGER; - PROCEDURE [ccall] popen* (cmd, mode: PtrSTR): INTEGER; + PROCEDURE [ccall] system* (string: PtrSTR): INTEGER; + + PROCEDURE [ccall] popen* (command, type: PtrSTR): PtrFILE; + PROCEDURE [ccall] pclose* (stream: PtrFILE): INTEGER; END LinLibc. diff --git a/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt b/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt index b8b2d0d..8d597af 100644 --- a/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt +++ b/BlackBox/_OpenBSD_/Lin/Mod/Libc.txt @@ -688,10 +688,16 @@ MODULE LinLibc ["libc.so.90.0"]; 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; + (* POSIX.1 *) PROCEDURE [ccall] sysconf* (name: int): long; - PROCEDURE [ccall] system* (cmd: PtrSTR): INTEGER; - PROCEDURE [ccall] popen* (cmd, mode: PtrSTR): INTEGER; + (* POSIX.2 *) + PROCEDURE [ccall] system* (string: PtrSTR): int; + + PROCEDURE [ccall] popen* (command, type: PtrSTR): PtrFILE; + PROCEDURE [ccall] pclose* (stream: PtrFILE): int; END LinLibc. diff --git a/BlackBox/_OpenBSD_/blackbox b/BlackBox/_OpenBSD_/blackbox index 3042706..21af521 100755 Binary files a/BlackBox/_OpenBSD_/blackbox and b/BlackBox/_OpenBSD_/blackbox differ diff --git a/BlackBox/_OpenBSD_/dev0 b/BlackBox/_OpenBSD_/dev0 index e9c8157..44bc02b 100755 Binary files a/BlackBox/_OpenBSD_/dev0 and b/BlackBox/_OpenBSD_/dev0 differ