mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
Add fcntl(F_DUPFD)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1995 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ int socket(int domain, int type, int protocol)
|
||||
|
||||
/* Everything looks good. Allocate a socket descriptor */
|
||||
|
||||
sockfd = sockfd_allocate();
|
||||
sockfd = sockfd_allocate(0);
|
||||
if (sockfd < 0)
|
||||
{
|
||||
err = ENFILE;
|
||||
|
||||
Reference in New Issue
Block a user