diff options
| author | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2018-03-01 16:54:45 +0200 |
| commit | b786f20bbab5a59046aa78a2c6c2a11536497202 (patch) | |
| tree | 0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /module/libc0.m | |
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'module/libc0.m')
| -rw-r--r-- | module/libc0.m | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/module/libc0.m b/module/libc0.m new file mode 100644 index 0000000..1c3257c --- /dev/null +++ b/module/libc0.m @@ -0,0 +1,40 @@ +Libc0: module +{ + PATH: con "/dis/lib/libc0.dis"; + + isalnum: fn(c: int): int; + isalpha: fn(c: int): int; + isascii: fn(c: int): int; + iscntrl: fn(c: int): int; + isdigit: fn(c: int): int; + isgraph: fn(c: int): int; + islower: fn(c: int): int; + isprint: fn(c: int): int; + ispunct: fn(c: int): int; + isspace: fn(c: int): int; + isupper: fn(c: int): int; + isxdigit: fn(c: int): int; + + tolower: fn(c: int): int; + toupper: fn(c: int): int; + toascii: fn(c: int): int; + + strlen: fn(s: array of byte): int; + strcmp: fn(s1: array of byte, s2: array of byte): int; + strcpy: fn(s1: array of byte, s2: array of byte): array of byte; + strcat: fn(s1: array of byte, s2: array of byte): array of byte; + strncmp: fn(s1: array of byte, s2: array of byte, n: int): int; + strncpy: fn(s1: array of byte, s2: array of byte, n: int): array of byte; + strncat: fn(s1: array of byte, s2: array of byte, n: int): array of byte; + strdup: fn(s: array of byte): array of byte; + strchr: fn(s: array of byte, n: int): array of byte; + strrchr: fn(s: array of byte, n: int): array of byte; + + abs: fn(n: int): int; + min: fn(m: int, n: int): int; + max: fn(m: int, n: int): int; + + ls2aab: fn(argl: list of string): array of array of byte; + s2ab: fn(s: string): array of byte; + ab2s: fn(a: array of byte): string; +}; |
