This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch,rtems] Add posix_memalign
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Tue, 22 Sep 2009 05:18:06 +0200
- Subject: [patch,rtems] Add posix_memalign
Hi,
RTEMS supports posix_memalign and there would need
posix_memalign in newlib's stdlib.h.
The patch below is what RTEMS currently uses in its newlib-patches.
Ralf
2009-09-22 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* libc/include/stdlib.h: Add posix_memalign.
diff -u -r1.35 stdlib.h
--- libc/include/stdlib.h 3 Jul 2009 12:03:25 -0000 1.35
+++ libc/include/stdlib.h 22 Sep 2009 02:57:50 -0000
@@ -189,6 +189,10 @@
int _EXFUN(_unsetenv_r,(struct _reent *, const char *__string));
#endif
+#ifdef __rtems__
+int _EXFUN(posix_memalign,(void **, size_t, size_t));
+#endif
+
#endif /* ! __STRICT_ANSI__ */
char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));