diff options
Diffstat (limited to 'nuttx/include/sys/stat.h')
-rw-r--r-- | nuttx/include/sys/stat.h | 27 |
1 files changed, 14 insertions, 13 deletions
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); |