dup() and dup2() support for socket descriptors

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1884 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-06-15 18:58:22 +00:00
parent 613d405fd4
commit fdf76b48bc
23 changed files with 948 additions and 126 deletions
+3 -4
View File
@@ -50,17 +50,16 @@
static int stdinstream_getc(FAR struct lib_instream_s *this)
{
FAR struct lib_stdinstream_s *sthis = (FAR struct lib_stdinstream_s *)this;
int ret;
if (this)
{
ret = getc(sthis->stream);
int ret = getc(sthis->stream);
if (ret != EOF)
{
this->nget++;
}
return ret;
}
return ret;
return EOF;
}
/****************************************************************************