From 3d160e45b64485aa5f231179bf61cdea8fc5c141 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 8 Jan 2013 00:04:12 +0000 Subject: Documentation update git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5491 42af7a65-404d-4744-a932-0658087f49c3 --- apps/ChangeLog.txt | 1 + nuttx/Documentation/NuttX.html | 2 +- nuttx/Documentation/NuttxPortingGuide.html | 2 +- nuttx/Documentation/NuttxUserGuide.html | 39 +++++++++++++++++++++++++++++- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index 0464c6198..cd15b430d 100644 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -460,4 +460,5 @@ updated to detect key release events. That is kind of tricky in the USB HID keyboard report data. * apps/examples/wlan: Remove non-functional example. + * apps/examples/ostest/vfork.c: Added a test of vfork(). diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index 876aa2a0a..21f732c97 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: January 4, 2012

+

Last Updated: January 4, 2013

diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 24b4852e0..48fafb89f 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: January 4, 2012

+

Last Updated: January 4, 2013

diff --git a/nuttx/Documentation/NuttxUserGuide.html b/nuttx/Documentation/NuttxUserGuide.html index d9dddf9be..5c76737e5 100644 --- a/nuttx/Documentation/NuttxUserGuide.html +++ b/nuttx/Documentation/NuttxUserGuide.html @@ -13,7 +13,7 @@

NuttX Operating System

User's Manual

by

Gregory Nutt

-

Last Updated: November 20, 2012

+

Last Updated: January 7, 2013

@@ -201,6 +201,7 @@ paragraphs.
  • 2.1.5 exit
  • 2.1.6 task_restart
  • 2.1.7 getpid
  • +
  • 2.1.8 vfork
  • 2.1.1 task_create

    @@ -613,6 +614,40 @@ level. Compatible with the POSIX interface of the same name.

    +

    2.1.8 vfork

    +

    + Function Prototype: +

    + +

    + Description: + The vfork() function has the same effect as fork(), except that the behavior is undefined if the process created by vfork() either modifies any data other than a variable of type pid_t used to store the return value from vfork(), or returns from the function in which vfork() was called, or calls any other function before successfully calling _exit() or one of the exec family of functions. +

    +

    + NOTE: + vfork() is not an independent NuttX feature, but is implemented in architecture-specific logic (using only helper functions from the NuttX core logic). + As a result, vfork() may not be available on all architectures. +
    +

    + Input Parameters: + None. +

    +

    + Returned Value: + Upon successful completion, vfork() returns 0 to the child process and returns + the process ID of the child process to the parent process. + Otherwise, -1 is returned to the parent, no child process is created, and errno is set to indicate the error. +

    + Assumptions/Limitations: +

    +

    + POSIX Compatibility: + Compatible with the Unix interface of the same name. +

    +
    @@ -6741,6 +6776,7 @@ int telldir(FAR DIR *dirp);
       #include <unistd.h>
       
      +pid_t   vfork(void);
       pid_t   getpid(void);
       void    _exit(int status) noreturn_function;
       unsigned int sleep(unsigned int seconds);
      @@ -8363,6 +8399,7 @@ notify a task when a message is available on a queue.
         
    • unistd.h, unistd.h
    • unlink
    • +
    • vfork
    • vfprintf
    • vprintf
    • vsprintf
    • -- cgit v1.2.3