source: ada-examples/shell/commands.ads @ c53f12b

ada-examples-4-10-branch
Last change on this file since c53f12b was c53f12b, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 2, 2011 at 7:08:06 PM

2011-02-02 Joel Sherrill <joel.sherrill@…>

  • commands.adb, commands.ads, rtems_shell.ads, shell.adb: Add getopt_r Package and example command.
  • command_line_arguments.adb, command_line_arguments.ads, getopt_r.adb, getopt_r.ads: New files.
  • Property mode set to 100644
File size: 701 bytes
Line 
1--
2--  $Id$
3--
4
5with RTEMS_Shell;            use RTEMS_Shell;
6with Command_Line_Arguments; use Command_Line_Arguments;
7with Interfaces.C;           use Interfaces.C;
8with Interfaces.C.Strings;   use Interfaces.C.Strings;
9
10package Commands is
11
12   function Prompt return String;
13   function C_Prompt return chars_ptr;
14   pragma Convention (C, C_Prompt);
15
16   function Command_Test_Arguments
17     (ArgC : Argument_Count_Type;
18      ArgV : Argument_Vector_Type)
19      return int;
20   pragma Convention (C, Command_Test_Arguments);
21
22   function Command_Getopt_R
23     (ArgC : Argument_Count_Type;
24      ArgV : Argument_Vector_Type)
25      return int;
26   pragma Convention (C, Command_Getopt_R);
27
28end Commands;
Note: See TracBrowser for help on using the repository browser.