mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 17:31:01 +08:00
Minor fixes to make screen match a bit better.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*************** End of Dump ***************
|
||||
stat of /dev/console
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 3
|
||||
....st_ino 3 may vary by small amount
|
||||
....mode = 00020771
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -52,8 +52,9 @@ mknod /tmp/joel
|
||||
|
||||
(10)the first write!!!
|
||||
|
||||
stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
....st_ino 10
|
||||
stat( /tmp/joel ) returned
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 10 may vary by small amount
|
||||
....mode = 00100700
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -81,8 +82,9 @@ mknod /tmp/joel
|
||||
(513)the first write!!!
|
||||
|
||||
(139743)
|
||||
stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
....st_ino 11
|
||||
stat( /tmp/joel ) returned
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 11 may vary by small amount
|
||||
....mode = 00100700
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -93,7 +95,7 @@ stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
stat of /tmp/j
|
||||
stat(/tmp/j) returned -1 (errno=2)
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 3
|
||||
....st_ino 3 may vary by small amount
|
||||
....mode = 00020771
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -109,7 +111,7 @@ fprintf to /tmp/j
|
||||
(4) 26 characters written to the file
|
||||
(5) 26 characters written to the file
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -123,7 +125,7 @@ This is call 3 to fprintf
|
||||
This is call 4 to fprintf
|
||||
This is call 5 to fprintf
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -149,7 +151,7 @@ This is call 5 to fprintf
|
||||
*************** End of Dump ***************
|
||||
truncate /tmp/j to length of 40
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
|
||||
@@ -77,7 +77,8 @@ void dump_statbuf( struct stat *buf )
|
||||
rtems_filesystem_split_dev_t( buf->st_rdev, major2, minor2 );
|
||||
|
||||
printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 );
|
||||
printf( "....st_ino %x\n", buf->st_ino );
|
||||
printf( "....st_ino %x may vary by small amount\n",
|
||||
(unsigned int) buf->st_ino );
|
||||
printf( "....mode = %08o\n", buf->st_mode );
|
||||
printf( "....nlink = %d\n", buf->st_nlink );
|
||||
|
||||
@@ -112,6 +113,7 @@ void stat_a_file(
|
||||
if ( status == -1 ) {
|
||||
printf( ": %s\n", strerror( errno ) );
|
||||
} else {
|
||||
puts("");
|
||||
dump_statbuf( &statbuf );
|
||||
}
|
||||
|
||||
@@ -133,7 +135,7 @@ int main(
|
||||
{
|
||||
int status;
|
||||
int max_size;
|
||||
int fd, fd1;
|
||||
int fd;
|
||||
int i;
|
||||
struct stat buf;
|
||||
char buffer[128];
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*************** End of Dump ***************
|
||||
stat of /dev/console
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 3
|
||||
....st_ino 3 may vary by small amount
|
||||
....mode = 00020771
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -52,8 +52,9 @@ mknod /tmp/joel
|
||||
|
||||
(10)the first write!!!
|
||||
|
||||
stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
....st_ino 10
|
||||
stat( /tmp/joel ) returned
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 10 may vary by small amount
|
||||
....mode = 00100700
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -81,8 +82,9 @@ mknod /tmp/joel
|
||||
(513)the first write!!!
|
||||
|
||||
(139743)
|
||||
stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
....st_ino 11
|
||||
stat( /tmp/joel ) returned
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 11 may vary by small amount
|
||||
....mode = 00100700
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -93,7 +95,7 @@ stat( /tmp/joel ) returned st_dev (0x0:0x0)
|
||||
stat of /tmp/j
|
||||
stat(/tmp/j) returned -1 (errno=2)
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 3
|
||||
....st_ino 3 may vary by small amount
|
||||
....mode = 00020771
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -109,7 +111,7 @@ fprintf to /tmp/j
|
||||
(4) 26 characters written to the file
|
||||
(5) 26 characters written to the file
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -123,7 +125,7 @@ This is call 3 to fprintf
|
||||
This is call 4 to fprintf
|
||||
This is call 5 to fprintf
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
@@ -149,7 +151,7 @@ This is call 5 to fprintf
|
||||
*************** End of Dump ***************
|
||||
truncate /tmp/j to length of 40
|
||||
....st_dev (0x0:0x0)
|
||||
....st_ino 12
|
||||
....st_ino 12 may vary by small amount
|
||||
....mode = 00100660
|
||||
....nlink = 1
|
||||
....uid = 0
|
||||
|
||||
@@ -77,7 +77,8 @@ void dump_statbuf( struct stat *buf )
|
||||
rtems_filesystem_split_dev_t( buf->st_rdev, major2, minor2 );
|
||||
|
||||
printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 );
|
||||
printf( "....st_ino %x\n", buf->st_ino );
|
||||
printf( "....st_ino %x may vary by small amount\n",
|
||||
(unsigned int) buf->st_ino );
|
||||
printf( "....mode = %08o\n", buf->st_mode );
|
||||
printf( "....nlink = %d\n", buf->st_nlink );
|
||||
|
||||
@@ -112,6 +113,7 @@ void stat_a_file(
|
||||
if ( status == -1 ) {
|
||||
printf( ": %s\n", strerror( errno ) );
|
||||
} else {
|
||||
puts("");
|
||||
dump_statbuf( &statbuf );
|
||||
}
|
||||
|
||||
@@ -133,7 +135,7 @@ int main(
|
||||
{
|
||||
int status;
|
||||
int max_size;
|
||||
int fd, fd1;
|
||||
int fd;
|
||||
int i;
|
||||
struct stat buf;
|
||||
char buffer[128];
|
||||
|
||||
Reference in New Issue
Block a user