02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5<br />

Shell<br />

you. If there are multiple options, it prints them for you and then reprints your<br />

entry. For example, entering an ambiguous request generates the following result:<br />

-> /usr/Tor [CTRL+D]<br />

<strong>Tornado</strong>/ TorClass/<br />

-> /usr/Tor<br />

You can add one or more letters and then type CTRL+D again until the path or<br />

symbol is complete.<br />

5<br />

Synopsis Printing<br />

Once you have typed the complete function name, typing CTRL+D again prints the<br />

function synopsis and then reprints the function name ready for your input:<br />

-> _taskIdDefault [CTRL+D]<br />

taskIdDefault() - set the default task ID (WindSh)<br />

int taskIdDefault<br />

(<br />

int tid /* user-supplied task ID; if 0, return default */<br />

)<br />

-> _taskIdDefault<br />

If the routine exists on both host and target, the WindSh synopsis is printed. To<br />

print the target synopsis of a function add the meta character @ before the function<br />

name.<br />

You can extend the synopsis printing function to include your own routines. To do<br />

this, follow these steps:<br />

1. Create the files that include the new routines following WRS Coding<br />

Conventions. (See VxWorks Programmer’s Guide: Coding Conventions.)<br />

2. Include these files in your project. (See Creating, Adding, and Removing<br />

Application Files, p.102.)<br />

3. Add the file names to the DOC_FILES macro in your makefile.<br />

4. Go to the top of your project tree and run “make synopsis”:<br />

-> cd $WIND_BASE/target/src/projectX<br />

-> make synopsis<br />

This adds a file projectX to the host/resource/synopsis directory.<br />

153

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!