File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,13 @@ int fh_switch(int operation) {
11
11
}
12
12
13
13
int file_handler_find (char * filename , union FFSFileEntry * entry ) {
14
+ // search for filename case insensitive as keyboard driver currently
15
+ // doesn't support shift or caps lock.
14
16
int file_id = 0 ;
15
17
while (file_id < FS_FFS_FILEENTRY_COUNT ) {
16
18
int err = fetch_file_entry (
17
19
FFS_UNIQUE_PARITION_ID , file_id , entry );
18
- if (!err && strcmp (filename , entry -> content .filename )== 0 ) {
20
+ if (!err && strcmpi (filename , entry -> content .filename )== 0 ) {
19
21
// match
20
22
return file_id ;
21
23
}
Original file line number Diff line number Diff line change 3
3
#include <string.h>
4
4
5
5
void process (char filename []) {
6
- printf ("file: %s\n" , filename );
7
-
8
6
FILE * handler = fopen (filename , "r" );
9
7
if (handler == NULL ) {
10
- printf ("file open: failed: %s \n" , filename );
8
+ printf ("failed to open '%s' file. \n" , filename );
11
9
return ;
12
10
}
13
- puts ("content: \n" );
14
11
char buffer [80 ];
15
12
for (size_t i = 0 ; i < 20 ; i ++ ) {
16
13
if (!fgets (buffer , sizeof (buffer ), handler )) {
Original file line number Diff line number Diff line change 4
4
5
5
QEMU_SCREENSHOT_NAME=" cat_test.ppm"
6
6
7
- python3 -m tests.qemu.monitor -p ${MONITOR_PORT:? } -sc run cat
7
+ python3 -m tests.qemu.monitor -p ${MONITOR_PORT:? } -sc run cat readme.md
8
8
9
9
test_create_screen_dump
10
10
test_screen_content $LINENO " Experimental OS"
You can’t perform that action at this time.
0 commit comments