Lines Matching defs:fd
48 int dup(int fd)
57 if ((unsigned int)fd < CONFIG_NFILE_DESCRIPTORS)
59 /* 0,1,2 fd is not opened in system, no need to dup them, return fd directly */
61 if ((fd >= STDIN_FILENO) && (fd <= STDERR_FILENO))
63 return fd;
71 ret = fs_dupfd(fd, 3); /* 3: file start fd */
78 if ((unsigned int)fd < (unsigned int)(CONFIG_NFILE_DESCRIPTORS+CONFIG_NSOCKET_DESCRIPTORS))