forked from Imagelibrary/rtems
2004-11-22 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/ttyname_r.c: Remove warning for using _fstat.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2004-11-22 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* libcsupport/src/ttyname_r.c: Remove warning for using _fstat.
|
||||||
|
|
||||||
2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2004-11-22 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* aclocal/enable-itron.m4, aclocal/check-itron.m4:
|
* aclocal/enable-itron.m4, aclocal/check-itron.m4:
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ int ttyname_r(
|
|||||||
rtems_set_errno_and_return_minus_one(EBADF);
|
rtems_set_errno_and_return_minus_one(EBADF);
|
||||||
|
|
||||||
/* Must be a character device. */
|
/* Must be a character device. */
|
||||||
if (_fstat (fd, &sb) || !S_ISCHR (sb.st_mode))
|
if (fstat (fd, &sb) || !S_ISCHR (sb.st_mode))
|
||||||
rtems_set_errno_and_return_minus_one(EBADF);
|
rtems_set_errno_and_return_minus_one(EBADF);
|
||||||
|
|
||||||
if ((dp = opendir (_PATH_DEV)) == NULL)
|
if ((dp = opendir (_PATH_DEV)) == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user