Commit Graph

559 Commits

Author SHA1 Message Date
Sebastian Huber
f87ede57a2 libnetworking: Fix close of active sockets
Send a special event to notify tasks waiting for a socket state change
in case this socket gets closed.  This prevents a use after free.

Close #785.
2015-01-20 07:11:58 +01:00
Marcos Diaz
8a7048ac5e Fixed dl01 and dl02 makefiles 2015-01-20 07:53:51 +11:00
Sebastian Huber
b3ed66a17f libtests/crypt01: Increase stack size 2015-01-09 14:03:32 +01:00
Sebastian Huber
a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Nick Withers
f42d4292cb Enable WebSocket support in the Mongoose HTTP server 2014-12-15 07:44:56 +01:00
Nick Withers
9d9c42601a Teach rtems_tarfs_load() about symlinks 2014-12-11 08:12:13 +01:00
Sebastian Huber
f3730d5660 libtests/complex: Avoid multiple definitions 2014-12-08 09:47:58 +01:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Sebastian Huber
e870941bb0 libmisc: More useful default configuration
The dummy.c was a de-facto default configuration.  Rename it to
default-configuration.c.  Use unlimited objects and the stack checker.
This makes it easier for new RTEMS users which will likely use this file
if they just work with the usual main() function as the application
entry point.  Provide proper arguments for main() using the BSP command
line.  Add spare user extensions and drivers.

Do not initialize the network by default.  Delete bspinit.c.
2014-12-05 07:47:06 +01:00
Sebastian Huber
f54e50339c libtests: Omit libdl tests if no RTEMS tools 2014-12-03 08:27:55 +01:00
Daniel Hellstrom
e7e92da52e DEVFS04: make test work on LEON3-FT GR712RC
The LEON3 BSP have support for up to 8 termios consoles, the
LEON3-FT GR712RC uses 6 UARTs.

This does not take into account the BSP maximum devices instead
it is hardcoded to 6. This patch increases it the maximum
devices of DEVFS04 from 6 to 10.
2014-12-02 13:47:37 +01:00
Sebastian Huber
80d99aa20c libtests/complex,math: Prevent optimizations
For constant arguments GCC calculates the values of the math library
functions at compile-time.

close #1741
2014-12-01 08:20:55 +01:00
Sebastian Huber
01557b0c6e libcsupport: Delete malloc statistics
Use the heap handler statistics instead.  Add heap walk option to MALLOC
shell command.

close #1367
2014-11-28 11:23:53 +01:00
Jennifer Averett
11b3ba1b02 capture01: Use capture engine print methods. 2014-11-24 14:04:54 -06:00
Joel Sherrill
6570876d0e termio05: Remove unreferenced files
The functionality was conditionally compiled into a shared file
and these were not removed.

close #1821
2014-11-23 10:40:14 -06:00
Joel Sherrill
163519a055 libtests/malloctest/init.c: Fix warning
posix_memalign() is prototyped to take a non-NULL parameter. But our
test is deliberately passing one in. With the -Wnon-null warning flag
enabled, we will always get warnings on this test unless we disable
that warning for this single test case.
2014-11-20 12:57:33 -06:00
Sebastian Huber
a634febae4 dl01,dl02: Avoid non-runnable $(EXEEXT) files 2014-11-20 11:36:07 +01:00
Sebastian Huber
e02d5dd9b3 Ensure security of default user environment 2014-11-20 10:30:24 +01:00
Sebastian Huber
fa028bb2ef shell: Do chroot() after successful login 2014-11-20 10:30:24 +01:00
Sebastian Huber
065d72ce7e shell: Get supplementary group IDs in login check 2014-11-20 10:30:23 +01:00
Sebastian Huber
ffa71f1cd0 libcsupport: Implement getgroups() 2014-11-20 10:30:22 +01:00
Sebastian Huber
acf9a8dd54 shell: Use crypt_r() in rtems_shell_login_check()
Use '*" to disable shell login instead of '!' according to the Linux man
page.  Use getpwnam_r() instead of getpwnam().  Do not access the user
environment directly.  Update the user environment only after a
successful login check.
2014-11-20 10:30:22 +01:00
Sebastian Huber
6935428a29 libcsupport: Avoid TOCTOU and format errors 2014-11-20 10:30:22 +01:00
Sebastian Huber
446632197c Add crypt_r(), etc.
Add crypt_add_format(), crypt_r(), crypt_md5_r(), crypt_sha256_r() and
crypt_sha512_r().
2014-11-20 10:30:21 +01:00
Sebastian Huber
1bcd037810 Add SHA256 and SHA512 support 2014-11-20 10:30:21 +01:00
Sebastian Huber
0510cfd8ed Add NXP PCA9548A 8-channel switch I2C driver 2014-11-20 10:30:17 +01:00
Sebastian Huber
67ac69fc3f Add NXP PCA9535 16-bit GPIO I2C driver 2014-11-20 10:30:12 +01:00
Sebastian Huber
cce4678047 Add generic EEPROM I2C device driver 2014-11-20 10:30:11 +01:00
Sebastian Huber
41c5f1b779 Add I2C driver framework
This I2C driver framework has some major differences compared to libi2c.

* It is compatible to the Linux I2C user-space API.

* It uses generic IMFS nodes and thus reduces the levels of indirection.

* The drivers don't have to mess around with minor numbers to get their
  state information.

* No arbitrary bus controller model is assumed.  The main task of an I2C
  bus controller driver is to process I2C messages.  How this is done is
  private to the driver.

* Scatter/gather operations are supported (I2C_M_NOSTART).
2014-11-20 10:30:06 +01:00
Sebastian Huber
3eade71044 libtests/top: End test after some time if no input 2014-11-20 08:54:10 +01:00
Chris Johns
f98abbe0eb libdl: Disable building libdl for the NIOS2. No relocation support.
This should have been added.
2014-11-06 13:09:54 +11:00
Chris Johns
540b7b4178 libtests: Add libdl test dl02.
Loads 2 interdependent ELF object files.
2014-11-04 16:31:50 +11:00
Chris Johns
d52c9e4d71 libtests: Update dl01 documentation. 2014-11-04 16:30:08 +11:00
Joel Sherrill
c58f90bfe8 dl01/dl-load.c: Add missing const 2014-11-02 18:54:55 -06:00
Chris Johns
ae5fe7e6bc cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
2014-10-31 11:04:15 +11:00
Jennifer Averett
410bcdfe5f top: Add new test. 2014-10-28 08:09:37 -05:00
Jennifer Averett
254b7db0bc capture01: Remove capture task tracking.
This involved adding a new variable record to the capture buffer
and modifing the trace method to read those records.
2014-10-27 14:02:36 -05:00
Sebastian Huber
7fd5e89c96 termios: Partially hide rtems_termios_tty
Move interrupt lock to device context and expose only this structure to
the read, write and set attributes device handler.  This makes these
device handler independent of the general Termios infrastructure
suitable for direct use in printk() support.
2014-10-07 16:35:13 +02:00
Sebastian Huber
a830cb864d termios: Separate flow control from normal handler 2014-10-07 16:27:51 +02:00
Sebastian Huber
5cb5342c49 libtests/capture01: Fix test name 2014-09-01 13:28:30 +02:00
Sebastian Huber
979d95e470 libtests/capture01: Force error if SMP enabled
This prevents infinite test runs on SMP due to the recursive interrupt
lock acquire.
2014-09-01 10:08:12 +02:00
Sebastian Huber
4030cccfef tests: Add documentation 2014-09-01 11:01:04 +02:00
Sebastian Huber
60fe374247 rbtree: Add and use RBTree_Compare_result 2014-08-05 09:30:37 +02:00
Jennifer Averett
648c86c26a capture01: Add include of assert.h. 2014-07-14 13:12:31 -05:00
Jennifer Averett
82d137ae21 capture01: New non-interactive test for capture engine. 2014-07-11 09:49:55 -05:00
Sebastian Huber
93726e5205 termios: Add rtems_termios_set_best_baud() 2014-07-09 15:56:43 +02:00
Sebastian Huber
a0fb29fb80 termios: PR1279: Use first open status 2014-07-09 12:07:49 +02:00
Sebastian Huber
32fc6a3490 termios: PR1279: Use set attributes status 2014-07-09 12:07:49 +02:00
Sebastian Huber
ef8c00bc88 termios: PR2153: New low-level device API
Add a new low-level device API to Termios that passes the TTY structure
to the low-level device functions.  This greatly simplifies the
low-level device drivers since they are no longer forced to derive their
private data from the minor number.

It makes it possible to use the TTY low-level lock in the device driver
low-level functions which is necessary for proper SMP support.  For
example to set the attributes it is often necessary to perform a
read-modify-write operation on a control register used also by interrupt
routines.

A compatibility layer is provided to support device drivers using the
old callback functions so it is not necessary to modify existing device
drivers.
2014-07-09 11:55:00 +02:00
Joel Sherrill
3324383ce0 testsuites: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00