wasm-micro-runtime/core/shared/platform
TianlongLiang 64b6c688a2
posix_file.c: Correct the dirfd argument that passes to fstatat (#3244)
This PR fixes the random failing test case `nofollow_errors` mentioned in
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3222

```C
// dirfd: This is the file descriptor of the directory relative to which the pathname is interpreted. 
int openat(int dirfd, const char *pathname, int flags, ...);
```
The value should be a directory handle instead of a file handle (which is always -1 in this context)
returned from `openat`.
2024-03-22 10:55:39 +08:00
..
alios Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
android Add vprintf override for android and esp-idf (#3174) 2024-02-22 17:02:46 +08:00
common posix_file.c: Correct the dirfd argument that passes to fstatat (#3244) 2024-03-22 10:55:39 +08:00
cosmopolitan cosmopolitan: Update compiler and update platform_internal.h (#3079) 2024-01-24 16:04:48 +08:00
darwin Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
ego Make a workaround for EGO when fstat returns NOT_SUPPORT (#1970) 2023-02-21 11:11:27 +08:00
esp-idf Fix compilation errors on esp-idf platform (#3224) 2024-03-14 21:31:44 +08:00
freebsd Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
include shared-platform: Remove dependency on shared-utils' bh_memory_remap_slow (#3153) 2024-02-17 13:44:33 +08:00
linux Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
linux-sgx Always allocate linear memory using mmap (#3052) 2024-02-02 22:17:44 +08:00
nuttx Zero the memory mapped from os_mmap in NuttX (#3132) 2024-02-05 15:45:22 +08:00
riot Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
rt-thread Enhancements on wasm function execution time statistic (#2985) 2024-01-17 09:51:54 +08:00
vxworks Allow using mmap for shared memory if hw bound check is disabled (#3029) 2024-01-16 22:15:55 +08:00
windows Implement the remaining Windows filesystem functions (#3166) 2024-02-28 11:02:42 +08:00
zephyr zephyr: Implement Alloc_With_System_Allocator (#3179) 2024-02-28 11:18:23 +08:00
README.md re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.