index 8d597af444d398dbfc9e6a76ed9f46c7c3b62a1b..d563b77bee3db5b409deae5ff4db304e5021ef5d 100644 (file)
-MODULE LinLibc ["libc.so.90.0"];
+MODULE LinLibc ["libc.so.90"];
(*
- OpenBSD 6.0
+ OpenBSD 6.2
i386
*)
EIDRM* = 89; (* Identifier removed *)
ENOMSG* = 90; (* No message of desired type *)
ENOTSUP* = 91; (* Not supported *)
+ EBADMSG* = 92; (* Bad message *)
+ ENOTRECOVERABLE* = 93; (* State not recoverable *)
+ EOWNERDEAD* = 94; (* Previous owner died *)
+ EPROTO* = 95; (* Protocol error *)
ENOTBLK* = 15; (* Block device required *)
ESOCKTNOSUPPORT* = 44; (* Socket type not supported *)
EPFNOSUPPORT* = 46; (* Protocol family not supported *)
ENOATTR* = 83; (* Attribute not found *)
ENOMEDIUM* = 85; (* No medium found *)
EMEDIUMTYPE* = 86; (* Wrong medium type *)
- ELAST* = 91; (* Must be equal largest errno *)
+ ELAST* = 95; (* Must be equal largest errno *)
ERESTART* = -1; (* restart syscall *)
EJUSTRETURN* = -2; (* don't modify regs, just return *)
+ WAIT_ANY* = -1; (* any process *)
+ WAIT_MYPGRP* = 0; (* any process in my process group *)
+ WCONTINUED* = {3}; (* report a job control continued process *)
+ WNOHANG* = {0}; (* don't hang in wait *)
+ WUNTRACED* = {1}; (* tell about stopped, untraced children *)
+
+
NAME_MAX* = 255;
SEEK_SET* = 0;
(* 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;
(* POSIX.1 *)
PROCEDURE [ccall] chmod* (path: PtrSTR; mode: mode_t): int;
+ 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;