From fccd51cdac5fa6f861349b98aeae56a3d75e71bb Mon Sep 17 00:00:00 2001
From: patacongo Last Updated: January 4, 2012 Last Updated: January 4, 2013 Last Updated: January 4, 2012 Last Updated: January 4, 2013 User's Manual by Gregory Nutt
- Last Updated: November 20, 2012 Last Updated: January 7, 2013
diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html
index 24b4852e03..48fafb89f5 100644
--- a/Documentation/NuttxPortingGuide.html
+++ b/Documentation/NuttxPortingGuide.html
@@ -12,7 +12,7 @@
NuttX RTOS
-
NuttX RTOS Porting Guide
- NuttX Operating System
2.1.1 task_create
@@ -613,6 +614,40 @@ level.
Compatible with the POSIX interface of the same name.
+ Function Prototype: +
++#include <unistd.h> +pid_t vfork(void); ++
+ 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. |