4.104.115
Last change
on this file since 0893220 was
031deada,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/02/09 at 13:04:13
|
Add attribute((unused)) to unused function args.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * PWD Shell Command Implmentation |
---|
3 | * |
---|
4 | * Author: Fernando RUIZ CASAS |
---|
5 | * Work: fernando.ruiz@ctv.es |
---|
6 | * Home: correo@fernando-ruiz.com |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #ifdef HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <stdio.h> |
---|
20 | #include <unistd.h> |
---|
21 | |
---|
22 | #include <rtems.h> |
---|
23 | #include <rtems/shell.h> |
---|
24 | #include "internal.h" |
---|
25 | |
---|
26 | int rtems_shell_main_pwd( |
---|
27 | int argc __attribute__((unused)), |
---|
28 | char *argv[] __attribute__((unused)) |
---|
29 | ) |
---|
30 | { |
---|
31 | char dir[1024]; |
---|
32 | |
---|
33 | getcwd(dir,1024); |
---|
34 | puts(dir); |
---|
35 | return 0; |
---|
36 | } |
---|
37 | |
---|
38 | rtems_shell_cmd_t rtems_shell_PWD_Command = { |
---|
39 | "pwd", /* name */ |
---|
40 | "pwd # print work directory", /* usage */ |
---|
41 | "files", /* topic */ |
---|
42 | rtems_shell_main_pwd, /* command */ |
---|
43 | NULL, /* alias */ |
---|
44 | NULL /* next */ |
---|
45 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.