summaryrefslogtreecommitdiff
path: root/components/lwp
diff options
context:
space:
mode:
authorgeniusgogo <[email protected]>2023-12-16 18:06:47 +0800
committerGitHub <[email protected]>2023-12-16 18:06:47 +0800
commit6b22a0a2b7ed79cd2f64875bb7bcfd04b47d869f (patch)
tree3b30c6f7a5a02a42471706a09cd7249cbf384191 /components/lwp
parent465826711794e615fdc8b666c3e785148c3b9181 (diff)
dfsv2 code tidy. (#8374)
Diffstat (limited to 'components/lwp')
-rw-r--r--components/lwp/lwp.c6
-rw-r--r--components/lwp/lwp_ipc.c2
-rw-r--r--components/lwp/lwp_syscall.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/components/lwp/lwp.c b/components/lwp/lwp.c
index 0650cf130d..7e85aaff9e 100644
--- a/components/lwp/lwp.c
+++ b/components/lwp/lwp.c
@@ -1089,11 +1089,11 @@ static void lwp_copy_stdio_fdt(struct rt_lwp *lwp)
{
lwp_fdt->maxfd = 4;
d = fd_get(0);
- fd_associate(lwp_fdt, 0, d);
+ fdt_fd_associate_file(lwp_fdt, 0, d);
d = fd_get(1);
- fd_associate(lwp_fdt, 1, d);
+ fdt_fd_associate_file(lwp_fdt, 1, d);
d = fd_get(2);
- fd_associate(lwp_fdt, 2, d);
+ fdt_fd_associate_file(lwp_fdt, 2, d);
}
return;
diff --git a/components/lwp/lwp_ipc.c b/components/lwp/lwp_ipc.c
index c75e79cf4b..9ecce73733 100644
--- a/components/lwp/lwp_ipc.c
+++ b/components/lwp/lwp_ipc.c
@@ -961,7 +961,7 @@ static struct dfs_file *lwp_fd_get(int fdt_type, int fd)
{
fdt = dfs_fdtable_get();
}
- return fdt_fd_get(fdt, fd);
+ return fdt_get_file(fdt, fd);
}
static void lwp_fd_release(int fdt_type, int fd)
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c
index aeced80e6f..657dd01b89 100644
--- a/components/lwp/lwp_syscall.c
+++ b/components/lwp/lwp_syscall.c
@@ -2049,7 +2049,7 @@ static int lwp_copy_files(struct rt_lwp *dst, struct rt_lwp *src)
/* dup files */
for (i = 0; i < src_fdt->maxfd; i++)
{
- d_s = fdt_fd_get(src_fdt, i);
+ d_s = fdt_get_file(src_fdt, i);
if (d_s)
{
dst_fdt->fds[i] = d_s;