removed assert() for stat on non-devices. Now it returns -1. This

makes gnat pass about 55 more tests in the acvc.
This commit is contained in:
Joel Sherrill
1997-01-08 16:21:38 +00:00
parent 1019ae4c4d
commit c6126e57fb

View File

@@ -50,8 +50,7 @@ int __isatty(int _fd)
int stat( const char *path, struct stat *buf ) int stat( const char *path, struct stat *buf )
{ {
if ( strncmp( "/dev/", path, 5 ) ) { if ( strncmp( "/dev/", path, 5 ) ) {
puts( "stat -- non-devices not supported" ); return -1;
assert( 0 );
} }
return __fstat( 0, buf ); return __fstat( 0, buf );
} }