DEADSOFTWARE

OpenBSD Libc updated
[bbcp.git] / BlackBox / _OpenBSD_ / Lin / Mod / LibW.txt
1 MODULE LinLibW ["libc.so.90"];
3 (*
4 OpenBSD 6.2
5 i386
6 *)
8 IMPORT Libc := LinLibc;
10 CONST
11 LC_ALL* = 0;
12 LC_COLLATE* = 1;
13 LC_CTYPE* = 2;
14 LC_MONETARY* = 3;
15 LC_NUMERIC* = 4;
16 LC_TIME* = 5;
17 LC_MESSAGES* = 6;
19 TYPE
20 (* int, wchar_t, wint_t, size_t, mbstate_t *)
21 int* = INTEGER;
22 wchar_t* = INTEGER;
23 wint_t* = INTEGER;
24 size_t* = INTEGER;
25 mbstate_t* = ARRAY [untagged] 32 OF INTEGER;
27 PtrWSTR* = POINTER [untagged] TO ARRAY [untagged] OF wchar_t;
29 PROCEDURE [ccall] setlocale* (category: int; locale: Libc.PtrSTR): Libc.PtrSTR;
31 PROCEDURE [ccall] mbsinit* (VAR [nil] ps: mbstate_t): int;
33 PROCEDURE [ccall] wctomb* (s: Libc.PtrSTR; wchar: wchar_t): int;
34 PROCEDURE [ccall] wcstombs* (s: Libc.PtrSTR; pwcs: PtrWSTR; n: size_t): size_t;
36 PROCEDURE [ccall] wcrtomb* (s: Libc.PtrSTR; wc: wchar_t; VAR [nil] ps: mbstate_t): size_t;
37 PROCEDURE [ccall] wcsrtombs* (dst: Libc.PtrSTR; VAR src: PtrWSTR; len: size_t; VAR [nil] ps: mbstate_t): size_t;
38 PROCEDURE [ccall] wcsnrtombs* (dst: Libc.PtrSTR; VAR src: PtrWSTR; nwc: size_t; len: size_t; VAR [nil] ps: mbstate_t): size_t;
40 PROCEDURE [ccall] mbtowc* (pwc: PtrWSTR; s: Libc.PtrSTR; n: size_t): int;
41 PROCEDURE [ccall] mbstowcs* (pwcs: PtrWSTR; s: Libc.PtrSTR; n: size_t): size_t;
42 PROCEDURE [ccall] mblen* (s: Libc.PtrSTR; n: size_t): int;
44 PROCEDURE [ccall] mbrtowc* (wc: PtrWSTR; s: Libc.PtrSTR; n: size_t; VAR [nil] mbs: mbstate_t): size_t;
45 PROCEDURE [ccall] mbsrtowcs* (dst: PtrWSTR; VAR src: Libc.PtrSTR; len: size_t; VAR [nil] ps: mbstate_t): size_t;
46 PROCEDURE [ccall] mbsnrtowcs* (dst: PtrWSTR; VAR src: Libc.PtrSTR; nmc: size_t; len: size_t; VAR [nil] ps: mbstate_t): size_t;
47 PROCEDURE [ccall] mbrlen* (s: Libc.PtrSTR; n: size_t; VAR [nil] ps: mbstate_t): size_t;
49 PROCEDURE [ccall] iswalpha* (wc: wint_t): int;
50 PROCEDURE [ccall] iswlower* (wc: wint_t): int;
51 PROCEDURE [ccall] iswupper* (wc: wint_t): int;
52 PROCEDURE [ccall] towlower* (wc: wint_t): wint_t;
53 PROCEDURE [ccall] towupper* (wc: wint_t): wint_t;
55 PROCEDURE [ccall] wprintf* (fmt: PtrWSTR): int;
56 PROCEDURE [ccall] fputws* (ws: PtrWSTR; fp: Libc.PtrFILE): int;
57 PROCEDURE [ccall] fgetws* (ws: PtrWSTR; n: int; fp: Libc.PtrFILE): PtrWSTR;
59 END LinLibW.