mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user