Rename net_clone/net_dupsd[2] to psock_dup2/net_dup[2] like vfs

This commit is contained in:
Xiang Xiao
2020-01-31 16:44:28 +08:00
committed by Gregory Nutt
parent 2def8035db
commit 9f9566c0eb
11 changed files with 93 additions and 170 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ int dup(int fd)
{
/* Yes.. dup the socket descriptor. The errno value is not set. */
ret = net_dupsd(fd, CONFIG_NFILE_DESCRIPTORS);
ret = net_dup(fd, CONFIG_NFILE_DESCRIPTORS);
}
else
#endif
+1 -1
View File
@@ -82,7 +82,7 @@ int dup2(int fd1, int fd2)
{
/* Yes.. dup the socket descriptor. The errno value is not set. */
ret = net_dupsd2(fd1, fd2);
ret = net_dup2(fd1, fd2);
}
else
{