summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-10 14:42:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-10 14:42:30 +0000
commit4150a6cc39852cfe651471821eb9f1e23f1d3af2 (patch)
tree4b1c21e5f981c4220ad792e3b28388b624445142 /nuttx/include
parent45b002bb5758b99e1db1291171ef7106d29b7424 (diff)
downloadpx4-nuttx-4150a6cc39852cfe651471821eb9f1e23f1d3af2.tar.gz
px4-nuttx-4150a6cc39852cfe651471821eb9f1e23f1d3af2.tar.bz2
px4-nuttx-4150a6cc39852cfe651471821eb9f1e23f1d3af2.zip
Add to nsh, add limits.h, gets, strtok, strtok_r
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@54 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/limits.h49
-rw-r--r--nuttx/include/stdio.h1
-rw-r--r--nuttx/include/string.h1
3 files changed, 51 insertions, 0 deletions
diff --git a/nuttx/include/limits.h b/nuttx/include/limits.h
new file mode 100644
index 000000000..bb043c442
--- /dev/null
+++ b/nuttx/include/limits.h
@@ -0,0 +1,49 @@
+/************************************************************
+ * limits.h
+ *
+ * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * 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
+ * used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ************************************************************/
+
+#ifndef __LIMITS_H
+#define __LIMITS_H
+
+/************************************************************
+ * Included Files
+ ************************************************************/
+
+#include <arch/limits.h>
+
+/************************************************************
+ * Definitions
+ ************************************************************/
+
+#endif /* __LIMITS_H */
diff --git a/nuttx/include/stdio.h b/nuttx/include/stdio.h
index 426b23714..58f398b46 100644
--- a/nuttx/include/stdio.h
+++ b/nuttx/include/stdio.h
@@ -224,6 +224,7 @@ EXTERN size_t fread(void *ptr, size_t size, size_t n_items,
EXTERN int fseek(FILE *stream, long int offset, int whence);
EXTERN size_t fwrite(const void *ptr, size_t size,
size_t n_items, FILE *stream);
+EXTERN char *gets(char *s);
EXTERN int printf(const char *format, ...);
EXTERN int puts(const char *s);
diff --git a/nuttx/include/string.h b/nuttx/include/string.h
index a5c1a1a9e..38163eb03 100644
--- a/nuttx/include/string.h
+++ b/nuttx/include/string.h
@@ -75,6 +75,7 @@ EXTERN size_t strspn(const char *, const char *);
EXTERN size_t strcspn(const char *, const char *);
EXTERN char *strstr(const char *, const char *);
EXTERN char *strtok(char *, const char *);
+EXTERN char *strtok_r(char *, const char *, char **);
EXTERN void *memset(void *s, int c, size_t n);
EXTERN void *memcpy(void *dest, const void *src, size_t n);