Commit Graph

29 Commits

Author SHA1 Message Date
Isaac Andrade f072136c04 Implement POSIX linux support for poll and netinet_tcp. Incomplete support for netinet/in. 2024-09-02 21:59:03 -06:00
Isaac Andrade 35f961d80f Add POSIX Linux support for net_if and netdb. 2024-09-02 14:25:32 -06:00
Isaac Andrade a248d49f34 Add Linux support for POSIX limits. 2024-09-02 14:04:05 -06:00
Isaac Andrade 186565b0c1 Simplify the implementation of POSIX langinfo for Linux:
No need for the enum runtime checks. Constant values were set manually
and comments were added to help locate their origin.
2024-08-30 20:34:12 -06:00
Isaac Andrade 575aedc3bf Implement POSIX support for Linux for the following facilities:
- fnmatch
- grp
- langinfo
- locale
2024-08-30 19:45:56 -06:00
Isaac Andrade 3557955f53 Align the dirent struct for linux 2024-08-29 20:17:39 -06:00
Isaac Andrade 4577d541ec Add contants RTLD contants on os_linux and posix (dlfcn). 2024-08-28 22:15:11 -06:00
Isaac Andrade f0e631cfa3 Use native types on linux POSIX structs. 2024-08-28 19:08:48 -06:00
Isaac Andrade 7d94810d01 Fix ino_t and ino_t32 types for POSIX linux. 2024-08-26 22:12:05 -06:00
Isaac Andrade e0b78476c5 Fix else when clause. 2024-08-23 20:18:26 -06:00
Isaac Andrade 2794eb31d9 On Linux POSIX, ENOTSUP and EOPNOTSUPP have the same value. 2024-08-23 20:08:59 -06:00
Isaac Andrade d8e4a1b93f Fix comment typo on POSIX ENOTSUP constant.
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-08-23 20:02:44 -06:00
Isaac Andrade 9c06898303 Add comma to last dirent struct member. 2024-08-23 20:01:15 -06:00
Isaac Andrade 90aa7dff04 Add POSIX dirent struct for Linux. 2024-08-23 19:56:45 -06:00
Isaac Andrade ef06cd93cc Initial implementation of linux-specifig dirent struct. 2024-08-20 20:35:56 -06:00
Isaac Andrade c0521c6d99 Add linux support for errno. 2024-08-20 20:35:28 -06:00
Vitalii Kravchenko 14169ae5b4 A couple of foundation binding. Vet tabs. 2024-08-21 00:09:09 +01:00
Isaac Andrade 6df51b42a8 Fix termios NCCS size on linux. 2024-08-19 15:32:55 -06:00
Isaac Andrade 3228178d87 Add support for Linux on os/sys/posix termios. 2024-08-19 14:56:37 -06:00
Laytan Laats f7d7d65bc0 fix open bindings
`open` specifies the `mode` argument as vararg (presumably to make it
optional). varargs actually have rules about casting, in this case the
rule that any integer arg of size <= 4 has to be casted to `i32` before
passing it.

Not doing that implicit cast makes the permissions wrong or not apply at
all.
2024-08-16 22:54:53 +02:00
Laytan Laats b07d0b38b1 os2: improve absolute/full path handling for posix 2024-08-14 01:45:23 +02:00
Laytan Laats 67ea7bb65a posix: address some freebsd feedback 2024-08-14 01:44:37 +02:00
Laytan Laats e05fddc001 posix: fix file type checks in stat 2024-08-14 01:44:37 +02:00
Laytan Laats 4a61bac100 posix: fix test on netbsd 2024-08-14 01:44:37 +02:00
Laytan Laats 726891588f posix: more tests 2024-08-14 01:44:37 +02:00
Laytan Laats 2a5ceff667 posix: move doc 2024-08-14 01:44:37 +02:00
Laytan Laats ffff3c3c88 posix: fix foreign import of dl for free/netbsd 2024-08-14 01:44:37 +02:00
Laytan Laats a4d459f651 os2: initial implementation for Darwin&BSDs, process API is only thing incomplete 2024-08-14 01:44:37 +02:00
Laytan Laats efe68c2e24 posix: add package 2024-08-14 01:44:35 +02:00