DEADSOFTWARE

libc interface updated
[bbcp.git] / BlackBox / _FreeBSDLinuxOpenBSD_ / Lin / Mod / gen-Libc / Libc.txt.templ
index 08993f4d271bb429e30430c076c7497df8788300..3e156fd12fe7f345a22f5538aae7f8e8133adcc1 100644 (file)
@@ -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.