From 14a5bc69504838d858fbb9981c9171d9fd625f10 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 17 Dec 2012 14:43:31 +0000 Subject: Integrate PATH traversal logic and binary format logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5441 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/Documentation/NuttXBinfmt.html | 139 +++++++++++++++++++++++++++-- nuttx/Documentation/NuttxPortingGuide.html | 8 +- 2 files changed, 137 insertions(+), 10 deletions(-) (limited to 'nuttx/Documentation') diff --git a/nuttx/Documentation/NuttXBinfmt.html b/nuttx/Documentation/NuttXBinfmt.html index 71c5b0a00..830a05caa 100644 --- a/nuttx/Documentation/NuttXBinfmt.html +++ b/nuttx/Documentation/NuttXBinfmt.html @@ -8,7 +8,7 @@

NuttX Binary Loader

-

Last Updated: October 30, 2012

+

Last Updated: December 17, 2012

@@ -141,7 +141,7 @@ struct binary_s { /* Information provided to the loader to load and bind a module */ - FAR const char *filename; /* Full path to the binary to be loaded */ + FAR const char *filename; /* Full path to the binary to be loaded1 */ FAR const char **argv; /* Argument list */ FAR const struct symtab_s *exports; /* Table of exported symbols */ int nexports; /* The number of symbols in exports[] */ @@ -164,6 +164,14 @@ struct binary_s }; + + +

+

Where the types binfmt_ctor_t and binfmt_dtor_t define the type of one C++ constructor or destructor:

@@ -175,15 +183,31 @@ typedef FAR void (*binfmt_dtor_t)(void);

2.3 Binary Loader Function Interfaces

+

+ Binary format management: +

+

+ Basic module management: +

+ +

+ PATH traversal logic: +

+

2.3.1 register_binfmt()

@@ -224,7 +248,15 @@ int load_module(FAR struct binary_s *bin);

Description:

Returned Value:

Description:

Input Parameters:

Returned Value:

+ +

2.3.8 exepath_init()

+

Function Prototype:

+ +

Description:

+ +

Input Parameters: None

+

Returned Value:

+ + +

2.3.9 exepath_next()

+

Function Prototype:

+ +

Description:

+ +

Input Parameters:

+ +

Returned Value:

+ + +

2.3.10- exepath_release()

+

Function Prototype:

+ +

Description:

+ +

Input Parameters:

+ +

Returned Value: None

diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 0ed46cba1..5361a2866 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: December 11, 2012

+

Last Updated: December 17, 2012

@@ -4163,6 +4163,12 @@ build CONFIG_BINFMT_DISABLE: By default, support for loadable binary formats is built. This logic may be suppressed be defining this setting. +
  • + CONFIG_BINFMT_EXEPATH: Use the contents of the PATH environment variable to locate executable files. Default: n +
  • +
  • + CONFIG_PATH_INITIAL: The initial value of the PATH variable. This is the colon-separated list of absolute paths. E.g., "/bin:/usr/bin:/sbin" +
  • CONFIG_BINFMT_CONSTRUCTORS: Build in support for C++ constructors in loaded modules.
  • -- cgit v1.2.3