File indexing completed on 2025-05-11 08:24:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifdef HAVE_CONFIG_H
0016 #include "config.h"
0017 #endif
0018
0019 #include <stdio.h>
0020
0021 #include <rtems.h>
0022 #include <rtems/shell.h>
0023 #include "internal.h"
0024
0025 static int rtems_shell_rtems_main_alias(int argc, char **argv)
0026 {
0027 if (argc<3) {
0028 fprintf(stderr,"too few arguments\n");
0029 return 1;
0030 }
0031
0032 if (!rtems_shell_alias_cmd(argv[1],argv[2])) {
0033 fprintf(stderr,"unable to make an alias(%s,%s)\n",argv[1],argv[2]);
0034 }
0035 return 0;
0036 }
0037
0038 rtems_shell_cmd_t rtems_shell_ALIAS_Command = {
0039 .name = "alias",
0040 .usage = "alias old new",
0041 .topic = "misc",
0042 .command = rtems_shell_rtems_main_alias,
0043 .mode = S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
0044 };