Changeset 435 for trunk/user/ksh
- Timestamp:
- Feb 20, 2018, 5:32:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/ksh/ksh.c
r434 r435 484 484 unsigned int lid; 485 485 unsigned int pid; 486 unsigned int txt_id; 486 487 487 488 if( strcmp( argv[1] , "vmm" ) == 0 ) … … 526 527 cxy = atoi(argv[2]); 527 528 528 if( display_ process( cxy ) )529 if( display_cluster_processes( cxy ) ) 529 530 { 530 531 printf(" error: illegal argument cxy = %x\n", cxy ); 531 532 } 532 533 } 534 else if( strcmp( argv[1] , "txt" ) == 0 ) 535 { 536 if( argc != 3 ) 537 { 538 printf(" usage: display txt txt_id\n"); 539 return; 540 } 541 542 txt_id = atoi(argv[2]); 543 544 if( display_txt_processes( txt_id ) ) 545 { 546 printf(" error: illegal argument txt_id = %x\n", txt_id ); 547 } 548 } 533 549 else if( strcmp( argv[1] , "vfs" ) == 0 ) 534 550 { … … 553 569 else 554 570 { 555 printf(" usage display (vmm/sched/process/vfs/chdev) [cxy] [lid]\n");571 printf(" usage: display (vmm/sched/process/vfs/chdev/txt) [arg2] [arg3]\n"); 556 572 } 557 573 } … … 563 579 ksh_cmd_t cmd[] = 564 580 { 565 { "cat", "display file content", cmd_cat },566 { "cd", "change current directory", cmd_cd },567 { "cp", "replicate a file in file system", cmd_cp },568 { "fg", "put a process in foreground", cmd_fg },569 { "display", "display vmm/sched/process/vfs/chdev ",cmd_display },570 { "load", "load an user application", cmd_load },571 { "help", "list available commands", cmd_help },572 { "kill", "kill an application (all threads)", cmd_kill },573 { "log", "list registered commands", cmd_log },574 { "ls", "list directory entries", cmd_ls },575 { "mkdir", "create a new directory", cmd_mkdir },576 { "mv", "move a file in file system", cmd_mv },577 { "pwd", "print current working directory", cmd_pwd },578 { "rm", "remove a file from file system", cmd_rm },579 { "rmdir", "remove a directory from file system", cmd_rmdir },580 { NULL, NULL, NULL}581 { "cat", "display file content", cmd_cat }, 582 { "cd", "change current directory", cmd_cd }, 583 { "cp", "replicate a file in file system", cmd_cp }, 584 { "fg", "put a process in foreground", cmd_fg }, 585 { "display", "display vmm/sched/process/vfs/chdev/txt", cmd_display }, 586 { "load", "load an user application", cmd_load }, 587 { "help", "list available commands", cmd_help }, 588 { "kill", "kill an application (all threads)", cmd_kill }, 589 { "log", "list registered commands", cmd_log }, 590 { "ls", "list directory entries", cmd_ls }, 591 { "mkdir", "create a new directory", cmd_mkdir }, 592 { "mv", "move a file in file system", cmd_mv }, 593 { "pwd", "print current working directory", cmd_pwd }, 594 { "rm", "remove a file from file system", cmd_rm }, 595 { "rmdir", "remove a directory from file system", cmd_rmdir }, 596 { NULL, NULL, NULL } 581 597 }; 582 598
Note: See TracChangeset
for help on using the changeset viewer.