Module: xenomai-forge Branch: rtdm-api-waitqueues Commit: 1ce3308baaf1bec858b26809456750ab23d4415d URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=1ce3308baaf1bec858b26809456750ab23d4415d
Author: Philippe Gerum <r...@xenomai.org> Date: Wed Apr 16 10:45:21 2014 +0200 include/cobalt,mercury: introduce core-specific limits.h --- include/cobalt/boilerplate/Makefile.am | 1 + include/cobalt/boilerplate/Makefile.in | 1 + include/cobalt/boilerplate/limits.h | 23 +++++++++++++++++++++++ include/cobalt/uapi/kernel/Makefile.am | 1 + include/cobalt/uapi/kernel/Makefile.in | 1 + include/cobalt/uapi/kernel/limits.h | 23 +++++++++++++++++++++++ include/cobalt/uapi/kernel/types.h | 4 ++-- include/mercury/boilerplate/Makefile.am | 1 + include/mercury/boilerplate/Makefile.in | 1 + include/mercury/boilerplate/limits.h | 23 +++++++++++++++++++++++ 10 files changed, 77 insertions(+), 2 deletions(-) diff --git a/include/cobalt/boilerplate/Makefile.am b/include/cobalt/boilerplate/Makefile.am index 6199dd3..cbf76d1 100644 --- a/include/cobalt/boilerplate/Makefile.am +++ b/include/cobalt/boilerplate/Makefile.am @@ -1,6 +1,7 @@ includesubdir = $(includedir)/cobalt/boilerplate includesub_HEADERS = \ + limits.h \ signal.h \ trace.h \ wrappers.h diff --git a/include/cobalt/boilerplate/Makefile.in b/include/cobalt/boilerplate/Makefile.in index faa0ada..c557bbb 100644 --- a/include/cobalt/boilerplate/Makefile.in +++ b/include/cobalt/boilerplate/Makefile.in @@ -338,6 +338,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ includesubdir = $(includedir)/cobalt/boilerplate includesub_HEADERS = \ + limits.h \ signal.h \ trace.h \ wrappers.h diff --git a/include/cobalt/boilerplate/limits.h b/include/cobalt/boilerplate/limits.h new file mode 100644 index 0000000..ae49324 --- /dev/null +++ b/include/cobalt/boilerplate/limits.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2014 Philippe Gerum <r...@xenomai.org>. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#ifndef _COBALT_BOILERPLATE_LIMITS_H +#define _COBALT_BOILERPLATE_LIMITS_H + +#include <cobalt/uapi/kernel/limits.h> + +#endif /* _COBALT_BOILERPLATE_LIMITS_H */ diff --git a/include/cobalt/uapi/kernel/Makefile.am b/include/cobalt/uapi/kernel/Makefile.am index 3383c89..e98a735 100644 --- a/include/cobalt/uapi/kernel/Makefile.am +++ b/include/cobalt/uapi/kernel/Makefile.am @@ -2,6 +2,7 @@ includesubdir = $(includedir)/cobalt/uapi/kernel includesub_HEADERS = \ heap.h \ + limits.h \ synch.h \ thread.h \ trace.h \ diff --git a/include/cobalt/uapi/kernel/Makefile.in b/include/cobalt/uapi/kernel/Makefile.in index 0a834ff..1d2c556 100644 --- a/include/cobalt/uapi/kernel/Makefile.in +++ b/include/cobalt/uapi/kernel/Makefile.in @@ -339,6 +339,7 @@ top_srcdir = @top_srcdir@ includesubdir = $(includedir)/cobalt/uapi/kernel includesub_HEADERS = \ heap.h \ + limits.h \ synch.h \ thread.h \ trace.h \ diff --git a/include/cobalt/uapi/kernel/limits.h b/include/cobalt/uapi/kernel/limits.h new file mode 100644 index 0000000..22017c5 --- /dev/null +++ b/include/cobalt/uapi/kernel/limits.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2014 Philippe Gerum <r...@xenomai.org>. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#ifndef _COBALT_UAPI_KERNEL_LIMITS_H +#define _COBALT_UAPI_KERNEL_LIMITS_H + +#define XNOBJECT_NAME_LEN 32 + +#endif /* !_COBALT_UAPI_KERNEL_LIMITS_H */ diff --git a/include/cobalt/uapi/kernel/types.h b/include/cobalt/uapi/kernel/types.h index fc672a8..f9b79b3 100644 --- a/include/cobalt/uapi/kernel/types.h +++ b/include/cobalt/uapi/kernel/types.h @@ -18,6 +18,8 @@ #ifndef _COBALT_UAPI_KERNEL_TYPES_H #define _COBALT_UAPI_KERNEL_TYPES_H +#include <cobalt/uapi/kernel/limits.h> + typedef unsigned long long xnticks_t; typedef long long xnsticks_t; @@ -36,6 +38,4 @@ typedef unsigned long xnhandle_t; #define XN_HANDLE_SPARE3 ((xnhandle_t)0x80000000) #define XN_HANDLE_SPARE_MASK ((xnhandle_t)0xf0000000) -#define XNOBJECT_NAME_LEN 32 - #endif /* !_COBALT_UAPI_KERNEL_TYPES_H */ diff --git a/include/mercury/boilerplate/Makefile.am b/include/mercury/boilerplate/Makefile.am index 6f77a9c..e285a69 100644 --- a/include/mercury/boilerplate/Makefile.am +++ b/include/mercury/boilerplate/Makefile.am @@ -1,6 +1,7 @@ includesubdir = $(includedir)/mercury/boilerplate includesub_HEADERS = \ + limits.h \ signal.h \ trace.h \ wrappers.h diff --git a/include/mercury/boilerplate/Makefile.in b/include/mercury/boilerplate/Makefile.in index 7ad181c..f8aac21 100644 --- a/include/mercury/boilerplate/Makefile.in +++ b/include/mercury/boilerplate/Makefile.in @@ -338,6 +338,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ includesubdir = $(includedir)/mercury/boilerplate includesub_HEADERS = \ + limits.h \ signal.h \ trace.h \ wrappers.h diff --git a/include/mercury/boilerplate/limits.h b/include/mercury/boilerplate/limits.h new file mode 100644 index 0000000..ef62334 --- /dev/null +++ b/include/mercury/boilerplate/limits.h @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2014 Philippe Gerum <r...@xenomai.org>. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#ifndef _MERCURY_BOILERPLATE_LIMITS_H +#define _MERCURY_BOILERPLATE_LIMITS_H + +#define XNOBJECT_NAME_LEN 32 + +#endif /* _MERCURY_BOILERPLATE_LIMITS_H */ _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git