From 9ba21bda5abae13e746ddad1a65d77ede4a84963 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 20 Jul 2008 20:58:32 +0000 Subject: Add mkfifo() git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@773 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/sys/stat.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'nuttx/include/sys') 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 * * 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 #include -/************************************************************ +/**************************************************************************** * 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); -- cgit v1.2.3