X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=BlackBox%2F_FreeBSDLinuxOpenBSD_%2FLin%2FMod%2Fgen-Libc%2FLibc.txt.templ;h=3e156fd12fe7f345a22f5538aae7f8e8133adcc1;hb=4fafe12bb092834966700b01b6b9e4a3f0f44ec2;hp=dbcef0cc5b899da1c0a6426b8d513c81849fae5c;hpb=ec6d9e2f93d6f6d6638260962fea572ca80e328e;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 dbcef0c..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; @@ -225,11 +227,19 @@ MODULE LinLibc ["libc.so%%libver%%"]; PROCEDURE [ccall] fchmod* (fd: int; mode: mode_t): int; (* POSIX.1 *) - PROCEDURE [ccall] sysconf* (name: int): long; + 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;