From c421cdd92d8abebc5de9a343df2a301df05284cd Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 26 Jul 2008 15:09:21 +0000 Subject: [PATCH] Pipe/FIFO info git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@782 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NuttxUserGuide.html | 146 ++++++++++++++++++++++++++++-- 1 file changed, 139 insertions(+), 7 deletions(-) diff --git a/Documentation/NuttxUserGuide.html b/Documentation/NuttxUserGuide.html index c69987f8cb..b3b144cf9d 100644 --- a/Documentation/NuttxUserGuide.html +++ b/Documentation/NuttxUserGuide.html @@ -5843,6 +5843,8 @@ interface of the same name.

2.11 File System Interfaces

+

Overview

+

Overview. NuttX includes an optional, scalable file system. This file-system may be omitted altogther; NuttX does not depend on the presence @@ -5898,7 +5900,7 @@ interface of the same name. in a file-system-like name space.

-

2.11.1 Driver Operations

+

2.11.2 Driver Operations

-

2.11.2 Directory Operations

+

2.11.3 Directory Operations

-

2.11.3 Standard I/O

+

2.11.4 Standard I/O

+

2.11.4 Pipes and FIFOs

+ +

2.11.4.1 pipe

+

+ Function Prototype: +

+
+  #include 
+  int pipe(int filedes[2]);
+
+

+ Description: +

+

+

+ Input Parameters: +

+

+

+

+ Returned Values: +

+

+ +

2.11.4.2 mkfifo

+

+ Function Prototype: +

+
+  #include 
+  int mkfifo(FAR const char *pathname, mode_t mode);
+
+

+ Description: +

+

+

+ Input Parameters: +

+

+

+ Returned Values: +

    +

    + 0 is returned on success; otherwise, -1 is returned with errno set appropriately. +

    +
+

+ +

2.10.4 setenv

+

+ Function Prototype: +

+
+  #include 
+  int setenv(const char *name, const char *value, int overwrite);
+
+

+ Description: +

    +

    + The setenv() function adds the variable name to the environment with the + specified value if the variable name does not exist. If the name + does exist in the environment, then its value is changed to value if overwrite + is non-zero; if overwrite is zero, then the value of name is unaltered. +

    +
+

+

+ Input Parameters: +

    +
  • + name + The name of the variable to change. +
  • +
  • + value + The new value of the variable. +
  • +
  • + value + Replace any existing value if non-zero. +
  • +
+

+

+ Returned Values: +

    +

    + Zero on success. +

    +
+

+

2.12 Network Interfaces

NuttX includes a simple interface layer based on uIP (see http://www.sics.se). NuttX supports subset of a standard socket interface to uIP. @@ -6811,7 +6940,8 @@ notify a task when a message is available on a queue.

  • Directory operations
  • Driver operations
  • exit
  • -
  • File system interfaces
  • +
  • File system, interfaces
  • +
  • File system, overview
  • getpid
  • getsockopt
  • gmtime_r
  • @@ -6820,6 +6950,7 @@ notify a task when a message is available on a queue.
  • listen
  • localtime_r
  • Named Message Queue Interfaces +
  • mkfifo
  • mktime
  • mq_close
  • mq_getattr
  • @@ -6832,7 +6963,8 @@ notify a task when a message is available on a queue.
  • mq_timedsend
  • mq_unlink
  • Network Interfaces
  • -
  • OS Interfaces +
  • OS Interfaces
  • +
  • pipe
  • Pthread Interfaces
  • pthread_attr_destroy
  • pthread_attr_getinheritsched
  • @@ -6874,9 +7006,9 @@ notify a task when a message is available on a queue.
  • pthread_mutexattr_gettype
  • pthread_mutexattr_init
  • pthread_mutexattr_setpshared
  • -
  • pthread_mutexattr_settype
  • +
  • pthread_mutexattr_settype
  • pthread_mutex_destroy
  • pthread_mutex_init
  • pthread_mutex_lock