summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-20 20:58:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-20 20:58:32 +0000
commit9ba21bda5abae13e746ddad1a65d77ede4a84963 (patch)
tree7f9afef5feb281d4e5ac0acc01233ed2c313dc6d /nuttx/include
parent1b383382a407f332ced6310910455422f4b34ebd (diff)
downloadpx4-nuttx-9ba21bda5abae13e746ddad1a65d77ede4a84963.tar.gz
px4-nuttx-9ba21bda5abae13e746ddad1a65d77ede4a84963.tar.bz2
px4-nuttx-9ba21bda5abae13e746ddad1a65d77ede4a84963.zip
Add mkfifo()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@773 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/fat.h6
-rw-r--r--nuttx/include/nuttx/fs.h2
-rw-r--r--nuttx/include/sys/stat.h27
3 files changed, 17 insertions, 18 deletions
diff --git a/nuttx/include/nuttx/fat.h b/nuttx/include/nuttx/fat.h
index 720e64547..f45725e0a 100644
--- a/nuttx/include/nuttx/fat.h
+++ b/nuttx/include/nuttx/fat.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * nuttx/fat.h
+ * include/nuttx/fat.h
*
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
@@ -75,9 +75,7 @@ extern "C" {
#define EXTERN extern
#endif
-/* Non-standard functions to get and set FAT fire/directgory
- * attributes
- */
+/* Non-standard functions to get and set FAT file/directory attributes */
EXTERN int fat_getattrib(const char *path, fat_attrib_t *attrib);
EXTERN int fat_setattrib(const char *path, fat_attrib_t setbits, fat_attrib_t clearbits);
diff --git a/nuttx/include/nuttx/fs.h b/nuttx/include/nuttx/fs.h
index 355a13047..713d9ac9f 100644
--- a/nuttx/include/nuttx/fs.h
+++ b/nuttx/include/nuttx/fs.h
@@ -1,5 +1,5 @@
/****************************************************************************
- * nutts/fs.h
+ * include/nuttx/fs.h
*
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
diff --git a/nuttx/include/sys/stat.h b/nuttx/include/sys/stat.h
index 20fbc3a59..0377a53ff 100644
--- a/nuttx/include/sys/stat.h
+++ b/nuttx/include/sys/stat.h
@@ -1,7 +1,7 @@
-/************************************************************
- * sys/stat.h
+/****************************************************************************
+ * include/sys/stat.h
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,21 +31,21 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
#ifndef __SYS_STAT_H
#define __SYS_STAT_H
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <sys/types.h>
#include <time.h>
-/************************************************************
+/****************************************************************************
* Definitions
- ************************************************************/
+ ****************************************************************************/
/* mode_t bit settings (most of these do not apply to Nuttx).
* This assumes that the full size of a mode_t is 16-bits.
@@ -91,9 +91,9 @@
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
-/************************************************************
+/****************************************************************************
* Type Definitions
- ************************************************************/
+ ****************************************************************************/
/* This is the simplified struct stat as returned by fstat().
* This structure provides information about a specific file
@@ -111,9 +111,9 @@ struct stat
time_t st_ctime; /* Time of last status change */
};
-/************************************************************
+/****************************************************************************
* Global Function Prototypes
- ************************************************************/
+ ****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
@@ -124,6 +124,7 @@ extern "C" {
#endif
EXTERN int mkdir(FAR const char *pathname, mode_t mode);
+EXTERN int mkfifo(FAR const char *pathname, mode_t mode);
EXTERN int stat(const char *path, FAR struct stat *buf);
EXTERN int fstat(int fd, FAR struct stat *buf);