1
0
Fork 0
forked from nuttx/nuttx-update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1256 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-11-16 16:36:30 +00:00
parent 5a10c4845a
commit 85911f6a9d
11 changed files with 127 additions and 127 deletions

View file

@ -1,7 +1,7 @@
/************************************************************
* assert.h
/****************************************************************************
* include/assert.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 __ASSERT_H
#define __ASSERT_H
#ifndef __INCLUDE_ASSERT_H
#define __INCLUDE_ASSERT_H
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <sys/types.h>
#include <nuttx/compiler.h>
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
****************************************************************************/
/* Macro Name: ASSERT, ASSERTCODE, et al. */
@ -91,13 +91,13 @@
#endif
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Global Function Prototypes
************************************************************/
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
@ -120,4 +120,4 @@ EXTERN void up_assert_code(int error_code);
}
#endif
#endif /* __ASSERT_H */
#endif /* __INCLUDE_ASSERT_H */

View file

@ -1,7 +1,7 @@
/************************************************************
* ctype.h
/****************************************************************************
* include/ctype.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.
*
@ -33,8 +33,8 @@
*
************************************************************/
#ifndef __CTYPE_H
#define __CTYPE_H
#ifndef __INCLUDE_CTYPE_H
#define __INCLUDE_CTYPE_H
/* There is no consistent ctype implementation, just a
* smattering of functions. Individually, they are okay, but
@ -42,17 +42,17 @@
* if used extensively.
*/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
#include <sys/types.h>
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
/************************************************************
/****************************************************************************
* Function: isspace
*
* Description:
@ -67,7 +67,7 @@
((c) == ' ' || (c) == '\t' || (c) == '\n' || \
(c) == '\r' || (c) == '\f' || c== '\v')
/************************************************************
/****************************************************************************
* Function: isascii
*
* Description:
@ -78,7 +78,7 @@
#define isascii(c) ((c) >= 0 && (c) <= 0x7f);
/************************************************************
/****************************************************************************
* Function: isprint
*
* Description:
@ -88,7 +88,7 @@
#define isprint(c) ((c) >= 0x20 && (c) < 0x7f)
/************************************************************
/****************************************************************************
* Function: isgraph
*
* Description:
@ -98,7 +98,7 @@
#define isgraph(c) ((c) > 0x20 && (c) < 0x7f)
/************************************************************
/****************************************************************************
* Function: iscntrl
*
* Description:
@ -108,7 +108,7 @@
#define iscontrol(c) (!isprint(c))
/************************************************************
/****************************************************************************
* Function: islower
*
* Description:
@ -118,7 +118,7 @@
#define islower(c) ((c) >= 'a' && (c) <= 'z')
/************************************************************
/****************************************************************************
* Function: isupper
*
* Description:
@ -128,7 +128,7 @@
#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
/************************************************************
/****************************************************************************
* Function: isalpha
*
* Description:
@ -138,7 +138,7 @@
#define isalpha(c) (islower(c) || isupper(c))
/************************************************************
/****************************************************************************
* Function: isdigit
*
* Description:
@ -148,7 +148,7 @@
#define isdigit(c) ((c) >= '0' && (c) <= '9')
/************************************************************
/****************************************************************************
* Function: isalnum
*
* Description:
@ -158,7 +158,7 @@
#define isalnum(c) (isalpha(c) || isdigit(c))
/************************************************************
/****************************************************************************
* Function: ispunct
*
* Description:
@ -169,7 +169,7 @@
#define ispunct(c) (isgraph(c) && !isalnum(c))
/************************************************************
/****************************************************************************
* Function: isxdigit
*
* Description:
@ -183,7 +183,7 @@
((c) >= 'a' && (c) <= 'f') || \
((c) >= 'A' && (c) <= 'F'))
/************************************************************
/****************************************************************************
* Function: toupper
*
* Description:
@ -194,7 +194,7 @@
#define toupper(c) \
(((c) >= 'a' && (c) <= 'z') ? ((c) - 'a' + 'A') : (c))
/************************************************************
/****************************************************************************
* Function: tolower
*
* Description:
@ -205,11 +205,11 @@
#define tolower(c) \
(((c) >= 'A' && (c) <= 'Z') ? ((c) - 'A' + 'a') : (c))
/************************************************************
/****************************************************************************
* Public Type Definitions
************************************************************/
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
@ -225,4 +225,4 @@ extern "C" {
}
#endif
#endif /* __CTYPE_H */
#endif /* __INCLUDE_CTYPE_H */

View file

@ -1,7 +1,7 @@
/************************************************************
* dirent.h
/****************************************************************************
* include/dirent.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,22 +31,22 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
#ifndef __DIRENT_H
#define __DIRENT_H
#ifndef __INCLUDE_DIRENT_H
#define __INCLUDE_DIRENT_H
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <limits.h>
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
****************************************************************************/
/* File type code for the d_type field in dirent struct.
* Note that because of the simplified filesystem organization
@ -63,9 +63,9 @@
#define DIRENT_ISBLK(dtype) (((dtype) & DTYPE_BLK) != 0 )
#define DIRENT_ISDIRECTORY(dtype) (((dtype) & DTYPE_DIRECTORY) != 0 )
/************************************************************
/****************************************************************************
* Public Type Definitions
************************************************************/
****************************************************************************/
/* The POSIX specification requires that the caller of readdir_r
* provide storage "large enough for a dirent with the d_name
@ -81,13 +81,13 @@ struct dirent
typedef void DIR;
/************************************************************
/****************************************************************************
* Public Variables
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Public Function Prototypes
************************************************************/
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
@ -113,4 +113,4 @@ EXTERN int telldir(FAR DIR *dirp);
}
#endif
#endif /* __DIRENT_H */
#endif /* __INCLUDE_DIRENT_H */

View file

@ -1,7 +1,7 @@
/********************************************************************************
* fcntl.h
* include/fcntl.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.
*
@ -33,8 +33,8 @@
*
********************************************************************************/
#ifndef __FCNTL_H
#define __FCNTL_H
#ifndef __INCLUDE_FCNTL_H
#define __INCLUDE_FCNTL_H
/********************************************************************************
* Included Files
@ -146,4 +146,4 @@ EXTERN int fcntl(int fd, int cmd, ...);
}
#endif
#endif /* __FCNTL_H */
#endif /* __INCLUDE_FCNTL_H */

View file

@ -1,7 +1,7 @@
/****************************************************************************
* libgen.h
* include/libgen.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.
*
@ -33,8 +33,8 @@
*
****************************************************************************/
#ifndef __LIBGEN_H
#define __LIBGEN_H
#ifndef __INCLUDE_LIBGEN_H
#define __INCLUDE_LIBGEN_H
/****************************************************************************
* Included Files
@ -63,4 +63,4 @@ EXTERN char *dirname(char *path);
}
#endif
#endif /* __LIBGEN_H */
#endif /* __INCLUDE_LIBGEN_H */

View file

@ -1,7 +1,7 @@
/********************************************************************************
* limits.h
* include/limits.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.
*
@ -33,8 +33,8 @@
*
********************************************************************************/
#ifndef __LIMITS_H
#define __LIMITS_H
#ifndef __INCLUDE_LIMITS_H
#define __INCLUDE_LIMITS_H
/********************************************************************************
* Included Files
@ -191,4 +191,4 @@
#define SEM_NSEMS_MAX _POSIX_SEM_NSEMS_MAX
#define SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX
#endif /* __LIMITS_H */
#endif /* __INCLUDE_LIMITS_H */

View file

@ -1,7 +1,7 @@
/********************************************************************************
* mqueue.h
* ionclude/mqueue.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.
*
@ -33,8 +33,8 @@
*
********************************************************************************/
#ifndef __MQUEUE_H
#define __MQUEUE_H
#ifndef __INCLUDE_MQUEUE_H
#define __INCLUDE_MQUEUE_H
/********************************************************************************
* Included Files
@ -106,5 +106,5 @@ EXTERN int mq_getattr(mqd_t mqdes, struct mq_attr *mq_stat);
}
#endif
#endif /* __MQUEUE_H */
#endif /* __INCLUDE_MQUEUE_H */

View file

@ -1,7 +1,7 @@
/********************************************************************************
* sched.h
* include/sched.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.
*
@ -33,8 +33,8 @@
*
********************************************************************************/
#ifndef __SCHED_H
#define __SCHED_H
#ifndef __INCLUDE_SCHED_H
#define __INCLUDE_SCHED_H
/********************************************************************************
* Included Files
@ -145,4 +145,4 @@ EXTERN void sched_note_switch(FAR _TCB *pFromTcb, FAR _TCB *pToTcb);
#endif
#endif /* __ASSEMBLY__ */
#endif /* __SCHED_H */
#endif /* __INCLUDE_SCHED_H */

View file

@ -1,7 +1,7 @@
/************************************************************
* stdlib.h
/****************************************************************************
* include/stdlib.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 __STDLIB_H
#define __STDLIB_H
#ifndef __INCLUDE_STDLIB_H
#define __INCLUDE_STDLIB_H
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
****************************************************************************/
/* The C standard specifies two constants, EXIT_SUCCESS and
* EXIT_FAILURE, that may be passed to exit() to indicate
@ -64,9 +64,9 @@
# define environ get_environ_ptr()
#endif
/************************************************************
/****************************************************************************
* Global Type Definitions
************************************************************/
****************************************************************************/
struct mallinfo
{
@ -80,13 +80,13 @@ struct mallinfo
* by free (not in use) chunks.*/
};
/************************************************************
/****************************************************************************
* Global Function Prototypes
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Global Function Prototypes
************************************************************/
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
@ -144,4 +144,4 @@ EXTERN int mallinfo(struct mallinfo *info);
}
#endif
#endif /* __STDLIB_H */
#endif /* __INCLUDE_STDLIB_H */

View file

@ -1,7 +1,7 @@
/************************************************************
* string.h
/****************************************************************************
* include/string.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,25 +31,25 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
#ifndef __STRING_H
#define __STRING_H
#ifndef __INCLUDE_STRING_H
#define __INCLUDE_STRING_H
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <stddef.h> /* For size_t */
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Global Function Prototypes
************************************************************/
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
@ -93,4 +93,4 @@ EXTERN void *memmove(void *dest, const void *src, size_t count);
#if defined(__cplusplus)
}
#endif
#endif /* __STRING_H */
#endif /* __INCLUDE_STRING_H */

View file

@ -1,7 +1,7 @@
/********************************************************************************
* time.h
* include/time.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.
*
@ -33,8 +33,8 @@
*
********************************************************************************/
#ifndef _TIME_H_
#define _TIME_H_
#ifndef __INCLUDE_TIME_H
#define __INCLUDE_TIME_H
/********************************************************************************
* Included Files
@ -158,4 +158,4 @@ EXTERN int timer_getoverrun(timer_t timerid);
}
#endif
#endif /* _TIME_H_ */
#endif /* __INCLUDE_TIME_H */