fix(c/libuv): Fix async_fs demo return 255 error & pointer not allocated error

Signed-off-by: hackerchai <i@hackerchai.com>

fix(c/libuv): Mv LLGoFiles declaration

Signed-off-by: hackerchai <i@hackerchai.com>

fix(c/libuv/demo): Fix return 255 error & pointer not allocated error

Signed-off-by: hackerchai <i@hackerchai.com>

refactor(c/libuv): Rewrite FsNew() logic

Signed-off-by: hackerchai <i@hackerchai.com>
This commit is contained in:
hackerchai
2024-07-30 15:19:31 +08:00
parent ceac95c81a
commit acd09d24d5
4 changed files with 55 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <uv.h>
uv_fs_t uv_fs_new() {
uv_fs_t req;
return req;
uv_fs_t* uv_fs_new() {
uv_fs_t* req = malloc(sizeof(uv_fs_t));
return req;
}