summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/rtems/sys
Commit message (Collapse)AuthorAgeFilesLines
* Move header filesSebastian Huber2015-07-295-690/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | During libgcc build the first include search path for <...> is "../newlib/libc/sys/rtems/include". Move all RTEMS specific header files to "libc/sys/rtems/include" so that they can be found. Later during libc build the header files in the previous location were somehow present, but for libgcc build they were invisible. This change is necessary to use <pthread.h> for the GCC thread model implementation. newlib/ChangeLog 2015-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de> libc/sys/rtems/machine/_types.h: Move to ... libc/sys/rtems/include/machine/_types.h: ... here. libc/sys/rtems/machine/limits.h: Move to ... libc/sys/rtems/include/machine/limits.h: ... here. libc/sys/rtems/machine/param.h: Move to ... libc/sys/rtems/include/machine/param.h: ... here. libc/sys/rtems/sys/cpuset.h: Move to ... libc/sys/rtems/include/sys/cpuset.h: ... here. libc/sys/rtems/sys/dirent.h: Move to ... libc/sys/rtems/include/sys/dirent.h: ... here. libc/sys/rtems/sys/param.h: Move to ... libc/sys/rtems/include/sys/param.h: ... here. libc/sys/rtems/sys/syslimits.h: Move to ... libc/sys/rtems/include/sys/syslimits.h: ... here. libc/sys/rtems/sys/utime.h: Move to ... libc/sys/rtems/include/sys/utime.h: ... here.
* * libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value soCorinna Vinschen2014-11-201-1/+1
| | | | that NGROUPS is even.
* * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.Corinna Vinschen2014-04-141-2/+2
| | | | (CPU_SET): Likewise.
* * libc/sys/rtems/sys/cpuset.h: Use __inline instead of inline.Corinna Vinschen2013-12-031-31/+30
|
* * libc/include/machine/_default_types.h: Move extern "C" afterCorinna Vinschen2013-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | header includes. Include <sys/features.h> for __GNUC_PREREQ__(). (__u?int.*_t): Define via GCC provided __U?INT.*_TYPE__ if available. (__intptr_t): Define. (__uintptr_t): Likewise. * libc/include/stdint.h: Include <machine/_default_types.h> instead of <_ansi.h>. (u?int.*_t): Define via __u?int.*_t provided by <machine/_default_types.h>. (u?int_fast.*_t): Define via GCC provided __U?INT_FAST.*_TYPE__ if available. (U?INT.*(MIN|MAX)): Define via GCC provided __U?INT.*(MIN|MAX)__ if available. (U?INT.*_C): Define via GCC provided __U?INT.*_C if available. * libc/include/sys/cdefs.h: Use <machine/_default_types.h> instead of <stdint.h>. * libc/sys/rtems/sys/cpuset.h: Likewise. * libc/sys/rtems/machine/_types.h: Include <stdint.h> for FreeBSD compatibility.
* 2013-11-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-271-65/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/rtems/cpusetalloc.c: New file. * libc/sys/rtems/cpusetfree.c: Likewise. * libc/sys/rtems/Makefile.am (lib_a_SOURCES): Add new files. * libc/sys/rtems/Makefile.in: Regenerate. * libc/sys/rtems/sys/cpuset.h: Delete #if 0 block. Include <stddef.h> for size_t. (_NCPUBITS): Avoid NBBY and assume 8 bits per char. (__cpuset_mask): Use int instead of size_t parameter for Linux compatibility. (__cpuset_index): Likewise. (__cpuset_alloc): Declare. (__cpuset_free): Likewise. (CPU_ALLOC_SIZE): Likewise. (CPU_ALLOC): Define. (CPU_FREE): Likewise. (CPU_ZERO_S): Likewise. (CPU_FILL_S): Likewise. (CPU_SET_S): Likewise. (CPU_CLR_S): Likewise. (CPU_ISSET_S): Likewise. (CPU_COUNT_S): Likewise. (CPU_AND_S): Likewise. (CPU_OR_S): Likewise. (CPU_XOR_S): Likewise. (CPU_NAND_S): Likewise. (CPU_EQUAL_S): Likewise. (CPU_ZERO): Use CPU_ZERO_S(). (CPU_FILL): Use CPU_FILL_S(). (CPU_SET): Use CPU_SET_S(). (CPU_CLR): Use CPU_CLR_S(). (CPU_ISSET): Use CPU_ISSET_S(). (CPU_COUNT): Use CPU_COUNT_S(). (CPU_AND): Use CPU_AND_S(). (CPU_OR): Use CPU_OR_S(). (CPU_XOR): Use CPU_XOR_S(). (CPU_NAND): Use CPU_NAND_S(). (CPU_EQUAL): Use CPU_EQUAL_S(). (CPU_CMP): Delete superfluous const qualifier. (CPU_EMPTY): Likewise.
* 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-11-211-0/+2
| | | | | | | | * libc/posix/readdir_r.c: Add restrict keyword. * libc/machine/spu/sys/dirent.h, libc/sys/decstation/sys/dirent.h, libc/sys/linux/sys/dirent.h, libc/sys/rtems/sys/dirent.h, libc/sys/sparc64/sys/dirent.h, libc/sys/sun4/sys/dirent.h, libc/sys/sysvi386/sys/dirent.h: Add readdir_r() prototype.
* 3013-11-19 Jennifer Averett <jennifer.averett@oarcorp.com>Joel Sherrill2013-11-191-0/+207
| | | | * libc/sys/rtems/sys/cpuset.h: New file.
* * libc/include/sys/unistd.h (MAXPATHLEN): Delete.Corinna Vinschen2013-10-181-2/+0
| | | | | | * libc/include/sys/param.h (MAXPATHLEN): Define. * libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise. * libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-23/+33
| | | | | * libc/libc/sys/rtems/sys/param.h: Update some parameters to the latest FreeBSD values.
* * libc/sys/rtems/sys/queue.h: Delete file.Corinna Vinschen2013-04-161-530/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/cdefs.h (__containerof): New define. (__DEQUALIFY): Likewise. * libc/include/sys/queue.h (TRACEBUF_INITIALIZER): Likewise. (TRACEBUF): Likewise. (LIST_FOREACH_SAFE): Likewise. (LIST_PREV): Likewise. (LIST_SWAP): Likewise. (QMD_LIST_CHECK_HEAD): Likewise. (QMD_LIST_CHECK_NEXT): Likewise. (QMD_LIST_CHECK_PREV): Likewise. (QMD_SAVELINK): Likewise. (QMD_TAILQ_CHECK_HEAD): Likewise. (QMD_TAILQ_CHECK_NEXT): Likewise. (QMD_TAILQ_CHECK_PREV): Likewise. (QMD_TAILQ_CHECK_TAIL): Likewise. (QMD_TRACE_ELEM): Likewise. (QMD_TRACE_HEAD): Likewise. (SLIST_FOREACH_PREVPTR): Likewise. (SLIST_FOREACH_SAFE): Likewise. (SLIST_REMOVE_AFTER): Likewise. (SLIST_SWAP): Likewise. (STAILQ_FOREACH_SAFE): Likewise. (STAILQ_REMOVE_AFTER): Likewise. (STAILQ_SWAP): Likewise. (TAILQ_FOREACH_REVERSE_SAFE): Likewise. (TAILQ_FOREACH_SAFE): Likewise. (TAILQ_SWAP): Likewise. (TRASHIT): Likewise. (SLIST_REMOVE): Use SLIST_REMOVE_AFTER(). (STAILQ_LAST): Use __containerof(). (STAILQ_REMOVE): Use STAILQ_REMOVE_AFTER().
* * libc/sys/rtems/sys/utime.h: Include <sys/types.h> to provide aCorinna Vinschen2012-02-091-0/+2
| | | | definition of time_h.
* 2011-07-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-07-261-1/+1
| | | | | * libc/sys/rtems/sys/dirent.h (scandir): Add const to "select" parameter.
* * libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.Corinna Vinschen2010-07-061-0/+4
| | | | | | * libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype. * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long rather than off_t.
* 2009-12-16 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2009-12-162-116/+4
| | | | | | | | | | | | | | * libc/sys/rtems/machine/_types.h: New (Derived from machine/_default_types.h). * libc/sys/rtems/crt0.c: Rework. Introduce macro RTEMS_STUB. * libc/sys/rtems/sys/param.h: Update copyright notice from FreeBSD. Remove HZ. Add #include <sys/priority.h> Remove priority handling (moved to sys/priority.h). Remove CLBYTES (Unused, abandoned in BSD). * libc/sys/rtems/sys/queue.h: Update copyright (from FreeBSD). Remove CIRCLEQ_*.
* 2008-11-17 Joel Sherrill <joel.sherrill@oarcorp.com>Jeff Johnston2008-11-171-1/+0
| | | | | * sys/rtems/include/limits.h: Add _POSIX2_RE_DUP_MAX. * sys/rtems/sys/param.h: sys/rtprio.h not needed.
* 2004-05-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2004-05-071-15/+1
| | | | | | | | | | | * libc/include/sys/param.h: Remove endian info and include <machine/endian.h> instead. * libc/include/machine/endian.h: New file. * libc/machine/arm/machine/endian.h: Ditto. * libc/machine/arm/machine/param.h: Ditto. * libc/sys/arm/sys/param.h: Removed. * libc/sys/sysvi386/sys/param.h: Ditto. * libc/sys/rtems/sys/param.h: Modified to include <machine/endian.h>.
* 2004-01-08 Joel Sherrill <joel@oarcorp.com>Jeff Johnston2004-01-082-0/+617
| | | | | | | | | | * libc/sys/rtems/sys/queue.h: New file. * libc/include/sys/signal.h: Reflect renumbering of signals to fit into 32-bit mask. * libc/include/sys/unistd.h: Add fdatasync() prototype. * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly required. In particular, add the reentrant variants of libc calls. * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.
* 2003-01-16 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2003-01-162-26/+29
| | | | | | | | | | | * libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h: Update to be in sync with what constants are defined in each file in the shared versions in libc/include. * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to autoconf can link programs. * libc/include/machine/types.h: Explicitly specify signed on intXX_t types to ensure they are signed.
* 2002-11-07 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2002-11-073-0/+348
| | | | | | | | | | | | | | * libc/sys/rtems/machine: New directory. * libc/sys/rtems/machine/limits.h, libc/sys/rtems/machine/param.h, libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h, libc/sys/rtems/sys/utime.h: New files added to make *-rtems newlib targets more BSD like when installed without requiring files to be overwritten at install point when RTEMS itself is installed. * Makefile.am: Pick up system dependent machine .h files such as might be found on a BSD-ish system. * Makefile.in: Regenerate. * libc/include/machine/types.h: When on an RTEMS target, define a few BSD flavor types.
* 2001-02-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-071-346/+0
| | | | * libc/sys/rtems/sys/types.h: Removed.
* 2000-12-11 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-126-480/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge RTEMS specific .h files into main libc/include. * libc/sys/rtems/include/signal.h: Removed. * libc/sys/rtems/include/time.h: Removed. * libc/sys/rtems/sys/features.h: Removed. * libc/sys/rtems/sys/sched.h: Removed. * libc/sys/rtems/sys/siginfo.h: Removed. * libc/sys/rtems/sys/signal.h: Removed. * libc/sys/rtems/sys/time.h: Removed. * libc/sys/rtems/sys/times.h: Removed. definitions for time_t and clock_t since these are no longer in time.h. * libc/include/pthread.h: New file. * libc/include/sys/sched.h: New file. * libc/include/sys/features.h: New file. * libc/include/time.h: Removed duplicate definition of clock_t and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality. * libc/sys/linux/sys/types.h: Changed to include * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_. * libc/include/sys/signal.h: Add more complete set of POSIX signal functionality including real-time and threaded signals. * libc/include/sys/types.h: Add clock_t, time_t, struct timespec, and struct itimerspec. Centralizing these makes things cleaner. RTEMS uses 64-bit dev_t. Added numerous primitive definitions for pthreads including macros, pthread_attr_t, pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, pthread_once_t, and pthread_t. * libc/include/sys/unistd.h: Added getlogin_r() prototype. If RTEMS follow POSIX on read(), write() and sbrk() prototype. Feature flags removed and moved to new file <sys/features.h>. Full set of POSIX sysconf() constants
* Mon May 15 14:26:00 2000 Joel Sherrill <joel@oarcorp.com>Ranjith Kumaran2000-05-151-0/+27
| | | | | * libc/sys/rtems/sys/time.h: Add macros for manipulating timeval structures.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-178-0/+851