mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Rename net_clone/net_dupsd[2] to psock_dup2/net_dup[2] like vfs
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user