X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=BlackBox%2F_FreeBSDLinuxOpenBSD_%2FLin%2FMod%2Fgen-Libc%2FLibc.txt.templ;h=3e156fd12fe7f345a22f5538aae7f8e8133adcc1;hb=4fafe12bb092834966700b01b6b9e4a3f0f44ec2;hp=08993f4d271bb429e30430c076c7497df8788300;hpb=478c451ff9df56681c9e011ecd28b329a23995b9;p=bbcp.git diff --git a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ index 08993f4..3e156fd 100644 --- a/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ +++ b/BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Libc/Libc.txt.templ @@ -43,6 +43,8 @@ MODULE LinLibc ["libc.so%%libver%%"]; (* ENOENT, EEXIST, EACCES, ENOMEM, EDQUOT, EMFILE, ENOTDIR (int) *) %%defs-errno%% +%%defs-wait%% + NAME_MAX* = %%namemax%%; SEEK_SET* = 0; @@ -221,10 +223,24 @@ MODULE LinLibc ["libc.so%%libver%%"]; PROCEDURE [ccall] lseek* (d: int; offset: off_t; whence: int): off_t; (* POSIX.1 *) - PROCEDURE [ccall] sysconf* (name: int): long; + PROCEDURE [ccall] chmod* (path: PtrSTR; mode: mode_t): int; + PROCEDURE [ccall] fchmod* (fd: int; mode: mode_t): int; - PROCEDURE [ccall] system* (cmd: PtrSTR): INTEGER; - PROCEDURE [ccall] popen* (cmd, mode: PtrSTR): INTEGER; + (* POSIX.1 *) + PROCEDURE [ccall] fork* (): pid_t; + PROCEDURE [ccall] waitpid* (wpid: pid_t; VAR [nil] status: int; options: intFlags): pid_t; + + (* POSIX.1 *) + PROCEDURE [ccall] execv* (path: PtrSTR; argv: POINTER [untagged] TO ARRAY [untagged] OF PtrSTR): int; + PROCEDURE [ccall] execvp* (file: PtrSTR; argv: POINTER [untagged] TO ARRAY [untagged] OF PtrSTR): int; + + (* POSIX.2 *) + PROCEDURE [ccall] system* (string: PtrSTR): int; + + (* POSIX.1 *) + PROCEDURE [ccall] sysconf* (name: int): long; + PROCEDURE [ccall] popen* (command, type: PtrSTR): PtrFILE; + PROCEDURE [ccall] pclose* (stream: PtrFILE): int; END LinLibc.