Commit Graph

32417 Commits

Author SHA1 Message Date
Sebastian Huber
e292beba32 termios: Move default lock functions
Move rtems_termios_device_lock_acquire_default() and
rtems_termios_device_lock_release_default() to a file separate from the
general Termios support.  This avoids complex dependencies in printk()
only scenarios.
2018-11-07 11:09:51 +01:00
Sebastian Huber
d1f7204649 config: Fix CONFIGURE_DISABLE_NEWLIB_REENTRANCY
Move the __getreent() variant using the global reentrancy structure to
librtemscpu.a.  This avoids a definition of __getreent() in the
configuration module if CONFIGURE_DISABLE_NEWLIB_REENTRANCY is defined.
This avoids all the dependencies which would be exposed by a reference
to the global reentrancy structure.

This change is only possible since the default configuration moved to
librtemsdefaultconfig.a recently.
2018-11-07 07:52:55 +01:00
Sebastian Huber
e71c097ac3 spconfig02: Check object methods in default config
Ensure that the creation of Classic API objects fails with the expected
status code in the default configuration.

Ensure that the deletion of Classic API objects fails with the expected
status code in the default configuration if the identifier is invalid.

Ensure that only the expected objects are present in the default
configuration via rtems_object_get_classic_name().
2018-11-07 07:52:51 +01:00
Sebastian Huber
a818d13cc0 build: Remove superfluous psxtmonce01/Makefile.am 2018-11-07 07:44:07 +01:00
Zenon
99d6172f06 Correct minor spelling and grammar errors
This work was performed as a GCI 2018 task.
2018-11-06 18:51:32 -06:00
Himanshu40
9bb395167a psxtmonce01: New test written by Himanshu40 as part of GCI2018 2018-11-06 18:36:08 -06:00
Sebastian Huber
878487b024 score: Optimize Objects_Information
Reduce structure internal padding.  Group members used by _Objects_Get()
together.  Reduce size of some members.

Format and simplify _Objects_Extend_information().
2018-11-06 13:36:11 +01:00
Gedare Bloom
d7c51da558 altera-cyclone-v: tweak ingroup 2018-11-05 15:48:20 -05:00
ABR290B
3b930548a2 arm/altera-cyclone-v: update doxygen (GCI 2018) 2018-11-05 15:46:25 -05:00
Sebastian Huber
fa0adf3618 ftpd: Avoid TOCTOU problem
Assume that opendir() returns only non-NULL if we actually open a
directory.

Update #3530.
2018-10-30 13:27:03 +01:00
Sebastian Huber
8c3cd1e81b ftpd: Deal with too long command lines
Update #3530.
2018-10-30 13:27:03 +01:00
Sebastian Huber
706802f870 ftpd: Make send_dirline() more robust
Account for large file names.

Update #3530.
2018-10-30 13:27:03 +01:00
Sebastian Huber
7e2aabd751 config: Fix check networking
This Autoconf macro used cache variables which are not longer present.

Update #3409.
2018-10-30 13:27:03 +01:00
Sebastian Huber
bb3484c9ec posix: Enable more sptests test cases by default
Update #2514.
2018-10-29 10:52:48 +01:00
Sebastian Huber
8dc1ed135a posix: Enable more psxtests by default
Update #2514.
2018-10-29 10:52:48 +01:00
Sebastian Huber
24f3e8fd5b posix: Enable more smptests tests by default
Update #2514.
2018-10-29 10:52:48 +01:00
Sebastian Huber
ef16a111c7 posix: Enable psxtmtests tests by default
Update #2514.
2018-10-29 10:52:48 +01:00
Sebastian Huber
54f3588831 posix: Provide threads by default
Update #2514.
2018-10-29 10:52:45 +01:00
Sebastian Huber
033f31c8af posix: Hide POSIX_API_Control by default
Update #2514.
2018-10-29 10:33:38 +01:00
Sebastian Huber
fe7aefd516 posix: Provide message queues by default
Update #2514.
2018-10-29 10:33:37 +01:00
Sebastian Huber
701057e0b9 posix: Provide shared memory objects by default
Update #2514.
2018-10-29 10:33:37 +01:00
Sebastian Huber
9318cfb050 posix: Provide named semaphores by default
Update #2514.
2018-10-29 10:33:37 +01:00
Sebastian Huber
e97806a5ff posix: Split posix_api_configuration_table
Use separate configuration variables to avoid false dependencies.

Update #2514.
2018-10-29 10:33:37 +01:00
Sebastian Huber
55b69ed28e Move default config to librtemsdefaultconfig.a
An RTEMS application default configuration is contained in
cpukit/libmisc/dummy/default-configuration.c.  This default
configuration was contained in librtemscpu.a.  This had at least two
problems:

1. Application configuration errors may have pulled in the default
   configuration which in turn lead to multiply define symbols error.
   This was quite confusing.  You had to consult the linker map file to
   figure out what cased the pull in of the default configuration.  You
   needed to know what a linker map file is and how you generate it with
   your build system.  This was not very user friendly.

2. It prevented the use of default configuration items for each subsystem
   in librtemscpu.a.  This may be used to reduce the size of the
   configuration itself.

Move the default configuration to the separate library
librtemsdefaultconfig.a.

Close #3551.
2018-10-29 10:33:37 +01:00
Sebastian Huber
7038271845 Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES
Enable support for string objects names unconditionally.  Add const
qualifier throughout.  Split _Objects_Namespace_remove() into
_Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string()
to avoid an unnecessary dependency on _Workspace_Free().

Update #2514.
2018-10-29 10:33:33 +01:00
Sebastian Huber
5090a71bf8 score: Remove bogus thread object name support
Update #2514.
2018-10-29 07:08:34 +01:00
Sebastian Huber
0dbf67b66e posix: Provide aio_suspend() by default
Update #2514.
2018-10-29 07:08:34 +01:00
Sebastian Huber
135cb10efa posix: Provide more functions by default
Update #2514.
2018-10-25 10:04:14 +02:00
Sebastian Huber
4a7be22b5a posix: Fix build with POSIX API disabled
Update #2514.
2018-10-25 10:03:46 +02:00
Sebastian Huber
24b58072ff config: Modify CONFIGURE_INTERRUPT_STACK_SIZE
Use CPU_STACK_MINIMUM_SIZE instead of CONFIGURE_MINIMUM_TASK_STACK_SIZE
to set the default value.

Close #3480.
2018-10-24 10:19:14 +02:00
Sebastian Huber
4b801acc20 posix: Provide simple thread functions by default
Update #2514.
2018-10-24 10:19:14 +02:00
Sebastian Huber
c1ce9a20f3 posix: Provide get thread attributes by default
Update #2514.
2018-10-24 10:19:14 +02:00
Sebastian Huber
522d4b9186 malloctest: Hide NULL pointer from compiler
Disabling a warning does not prevent the compiler from reasoning what it
is supposed to do with a somewhat undefined function call.
2018-10-24 10:19:14 +02:00
Sebastian Huber
01595a4f32 bsp/imx: Adjust workspace according to device tree 2018-10-24 10:19:14 +02:00
Sebastian Huber
8ba76b9e28 tmonetoone: Add yield test case 2018-10-22 08:08:10 +02:00
Sebastian Huber
8d816221c1 posix: Provide non-thread functions by default
Update #2514.
2018-10-22 08:08:10 +02:00
Sebastian Huber
0b2808ce0b posix: Provide scheduler support by default
Update #2514.
2018-10-22 08:08:10 +02:00
Sebastian Huber
dd804bb16f posix: Provide cancel state/type by default
Sort POSIX sources lexicographically in Makefile.am

Update #2514.
2018-10-22 08:08:10 +02:00
Sebastian Huber
6da1bb046d Remove superfluous configure checks
The results of these checks are unused, covered by other checks or check
obvious things.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
167654e7f0 Remove checks for flockfile(), etc. declarations
Declarations provided by Newlib since 2002.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
f59edebf7e Remove getcwd()
This function is provided by Newlib since 2000.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
79d145a7a2 Remove optional getrusage() declaration
Declaration provided by Newlib since 2014.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
e161767e51 Remove ttyname()
This function is provided by Newlib since 2000.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
658ec757cf Remove __assert()
This function is provided by Newlib since 2000.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
87a9900f30 Remove isatty()
These functions are provided by Newlib since 2000.

Update #3409.
2018-10-22 08:06:06 +02:00
Sebastian Huber
3cf12c9c6a Remove strlcat(), strlcpy(), strsep(), readdir_r()
These functions are provided by Newlib since 2002.

Update #3409.
2018-10-22 08:06:05 +02:00
Sebastian Huber
1ad26cdcf7 Support O_NOFOLLOW open() flag
Close #3546.
2018-10-22 08:06:05 +02:00
Sebastian Huber
3825926601 Support O_CLOEXEC open() flag
Make sure this flag is ignored and does not prevent a successful open.

Close #3547.
2018-10-22 08:06:05 +02:00
Sebastian Huber
92e0eedc0a psxreaddir: Adjust test due to opendir() changes
Update #3545.
2018-10-22 08:06:05 +02:00
Joel Sherrill
b4043ead0b check-networking.m4: Disable legacy stack for x86_64 and epiphany
x86_64 is 64-bits and too new for the legacy stack to support.
epiphany is a small target and cannot compile the legacy (or new) stack.
2018-10-18 12:05:41 -05:00