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 #include <unistd.h>
0021
0022 #include <rtems.h>
0023 #include <rtems/shell.h>
0024 #include "internal.h"
0025
0026 static int rtems_shell_main_pwd(
0027 int argc RTEMS_UNUSED,
0028 char *argv[] RTEMS_UNUSED
0029 )
0030 {
0031 char dir[1024];
0032
0033 getcwd(dir,1024);
0034 puts(dir);
0035 return 0;
0036 }
0037
0038 rtems_shell_cmd_t rtems_shell_PWD_Command = {
0039 "pwd",
0040 "pwd # print work directory",
0041 "files",
0042 rtems_shell_main_pwd,
0043 NULL,
0044 NULL
0045 };