summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-30 17:28:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-30 17:28:54 +0000
commit77456adfeebf170d6fb0cb3a37dd261eb0ed7874 (patch)
tree522d33536036441c2ca447469c18a82577f90f51 /nuttx/include
parent26df12213a8c393ec272a87dea789e4b6b2aad73 (diff)
downloadpx4-nuttx-77456adfeebf170d6fb0cb3a37dd261eb0ed7874.tar.gz
px4-nuttx-77456adfeebf170d6fb0cb3a37dd261eb0ed7874.tar.bz2
px4-nuttx-77456adfeebf170d6fb0cb3a37dd261eb0ed7874.zip
Add definitions to stdlib.h; update README
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4071 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/stdlib.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/include/stdlib.h b/nuttx/include/stdlib.h
index ff28d8093..febdd7025 100644
--- a/nuttx/include/stdlib.h
+++ b/nuttx/include/stdlib.h
@@ -1,7 +1,7 @@
/****************************************************************************
* include/stdlib.h
*
- * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -51,12 +51,26 @@
/* The C standard specifies two constants, EXIT_SUCCESS and
* EXIT_FAILURE, that may be passed to exit() to indicate
- * successfuol or unsucessful termination, respectively.
+ * successful or unsucessful termination, respectively.
*/
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
+/* The NULL pointer should be defined in this file but is currently defined
+ * in sys/types.h.
+ */
+
+/* Maximum value returned by rand() */
+
+#define MAX_RAND 32767
+
+/* Integer expression whose value is the maximum number of bytes in a
+ * character specified by the current locale.
+ */
+
+#define MB_CUR_MAX 1
+
/* The environ variable, normally 'extern char **environ;' is
* not implemented as a function call. However, get_environ_ptr()
* can be used in its place.