Commit Graph

88 Commits

Author SHA1 Message Date
Sebastian Huber
175263ec91 libfdt: Initial import
Import from:

git://git.kernel.org/pub/scm/utils/dtc/dtc.git

Commit:

604e61e081e3c6c8fa1a8189c71cb3908a5bbc1e

Date:

2015-09-29T09:09:08Z
2015-10-16 07:46:56 +02: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
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
Sebastian Huber
e02d5dd9b3 Ensure security of default user environment 2014-11-20 10:30:24 +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
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
Chris Johns
540b7b4178 libtests: Add libdl test dl02.
Loads 2 interdependent ELF object files.
2014-11-04 16:31:50 +11: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
82d137ae21 capture01: New non-interactive test for capture engine. 2014-07-11 09:49:55 -05:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Sebastian Huber
3ccfd98bc1 libtests/newlib01: New test 2014-04-01 14:10:22 +02:00
Daniel Ramirez
7cf81ba4aa libtests: added test to confirm patch fixes bug 2014-01-09 10:07:49 -05:00
Sebastian Huber
390e987eb3 libblock: PR2145: Limit maximum read-ahead blocks
This helps to prevent stack overflows due to configuration errors.
2013-09-16 10:54:51 +02:00
Ralf Kirchner
2ee8b15863 libtests: Add new test: utf8proc01
utf8proc is a library for processing UTF-8 encoded Unicode strings.
Some features are Unicode normalization, stripping of default ignorable characters, case folding and detection of grapheme cluster boundaries.
For now utf8proc is intended for normalizing and folding strings for comparison purposes within the UTF-8 support of the FAT file system.
This test will call interface methods of library utf8proc in order to make sure they compiled and linked ok.
The library is third party, thus it should be sufficient for us to make sure we can build it correctly.
2013-06-03 17:28:41 +02:00
Sebastian Huber
dfd1508168 libtests/exit02: New test 2013-04-23 14:32:40 +02:00
Sebastian Huber
49120e8b21 libtests/exit01: New test 2013-04-23 14:32:40 +02:00
Sebastian Huber
f95d74a4ad libtests/md501: New test 2012-12-16 17:33:57 +01:00
Ralf Kirchner
7fab7fc0cf libblock: Add sparse disk 2012-12-05 15:26:47 +01:00
Sebastian Huber
0d68d8f2e9 libtests/block16: New test 2012-10-26 21:29:36 +02:00
Joel Sherrill
cb7b57e174 mghttpd: Requires POSIX to build server and tests
Formerly, mghttpd was conditional only on networking being
enabled. It uses on pthread and must also be conditional
on POSIX threads support being enabled.
2012-10-03 11:09:32 -05:00
Christian Mauderer
0eb5bfba3c libtests/mghttpd01: New test 2012-07-12 09:51:45 +02:00
Sebastian Huber
f12249ff05 libblock: Fix continuous blocks write request 2012-07-02 16:15:54 +02:00
Sebastian Huber
9f527308d7 libblock: Add block device statistics 2012-06-12 10:12:40 +02:00
Sebastian Huber
39ee704e75 libblock: Add read-ahead task
Read-ahead requests were previously executed in the context of the
reading task.  This blocks the reading task until the complete read
with read-ahead transfer is finished.  A read-ahead task is introduced
to off-load the read-ahead transfer.  This allows the reading task to
work with the requested block more quickly.  The read-ahead is triggered
after two misses of ascending consecutive blocks or a read hit of a
block read by the most-recent read-ahead transfer.  The read-ahead
feature is configurable and can be disabled.
2012-06-04 09:54:31 +02:00
Sebastian Huber
3c462734ba libblock: Fix purge device tree traversal 2012-05-14 16:57:59 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
820d82ed8a Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Sebastian Huber
e75263083e rbheap: New files
In the Red-Black Tree Heap the administration data structures are not
contained in the managed memory area.  This can be used for example in a
task stack allocator which protects the task stacks from access by other
tasks.
2012-04-11 11:24:19 +02:00
Sebastian Huber
58f665583e networking: socket to/from file descriptor
o Move rtems_bsdnet_fdToSocket() and rtems_bsdnet_makeFdForSocket() to
   "cpukit/libnetworking/rtems/rtems_syscall.c".
 o The rtems_bsdnet_makeFdForSocket() function is now static.
 o Check in rtems_bsdnet_fdToSocket() function that the file descriptor
   uses the socket handlers, otherwise an error status will be returned
   and errno set to ENOTSOCK.
 o New test libtests/syscall01.
2012-04-03 16:21:23 +02:00
Sebastian Huber
23ed785839 PR2040: libtests/flashdisk01: New test 2012-03-14 11:14:38 +01:00
Sebastian Huber
01211720ec libblock: Add generic IMFS block device nodes
New functions
 o rtems_blkdev_create(), and
 o rtems_blkdev_create_partition().

New test libtests/block11.
2012-03-13 12:24:18 +01:00
Sebastian Huber
2a6ed0aac2 2011-05-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* ftp01/.cvsignore, ftp01/Makefile.am, ftp01/ftp01.doc,
	ftp01/ftp01.scn, ftp01/init.c: New files.
	* Makefile.am, configure.ac: Reflect changes above.
2011-05-06 09:08:07 +00:00
Joel Sherrill
3d4f74955c 2011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add test for Mouse Parser Engine
	(Microsoft Mouse paths) and Serial Mouse Driver.
	* mouse01/.cvsignore, mouse01/Makefile.am, mouse01/init.c,
	mouse01/mouse01.doc, mouse01/mouse01.scn, mouse01/msmouse.c,
	mouse01/serial_mouse_config.c: New files.
2011-03-14 16:18:10 +00:00
Ralf Corsepius
e9c71fc0e3 Add mathf/, mathl/. 2011-02-02 14:02:10 +00:00
Ralf Corsepius
0a0e7a9a41 2010-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Add complex, math subdirs.
	* configure.ac: Add complex, math subdirs.
2010-11-30 13:55:09 +00:00
Sebastian Huber
b89e4cd89c 2010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
* gxx01/gxx_wrappers.h, gxx02/.cvsignore, gxx02/Makefile.am,
	gxx02/gxx02.doc, gxx02/gxx02.scn, gxx02/init.c: Removed files.
	* Makefile.am, configure.ac: Reflect changes above.
	* gxx01/init.c: Removed fatal error test case.
2010-08-23 08:32:52 +00:00
Joel Sherrill
58c5a9b59e 2010-08-06 Bharath Suri <bharath.s.jois@gmail.com>
PR 1654/testing
	* deviceio01/init.c, deviceio01/deviceio01.doc,
	deviceio01/deviceio01.scn, deviceio01/test_driver.c,
	deviceio01/test_driver.h, deviceio01/Makefile.am: New test added.
	* Makefile.am, configure.ac: Changes to added above test.
	* tar02/init.c, tar02/tar02.scn: New test case added: IMFS_dump().
2010-08-07 00:24:48 +00:00
Joel Sherrill
d0e825d0b9 2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add test for rtems_print_buffer().
	* dumpbuf01/.cvsignore, dumpbuf01/Makefile.am, dumpbuf01/dumpbuf01.doc,
	dumpbuf01/dumpbuf01.scn, dumpbuf01/init.c: New files.
2010-08-02 18:17:11 +00:00
Joel Sherrill
270434cc4a 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1532/testing
	* Makefile.am, configure.ac: Add initial tests for untar capabilities.
	* tar01/.cvsignore, tar01/Makefile.am, tar01/init.c, tar01/tar01.doc,
	tar01/tar01.scn, tar02/.cvsignore, tar02/Makefile.am, tar02/init.c,
	tar02/tar02.doc, tar02/tar02.scn: New files.
2010-07-27 18:16:50 +00:00
Joel Sherrill
ad7e2f02f0 2010-07-27 Bharath Suri <bharath.s.jois@gmail.com>
PR 1631/testing
	* gxx02/init.c, gxx02/gxx02.scn, gxx02/gxx02.doc,
	gxx02/Makefile.am, gxx02/gxx_wrappers.h: New test added
	* Makefile.am, configure.ac: Changes to accommodate new tests
2010-07-27 14:45:10 +00:00
Joel Sherrill
8e8775dbad 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1632/testing
	* Makefile.am, configure.ac: Make dedicated fatal error test for
	/dev/null already registered. Using code from Bharath in new test
	framework.
	* devnullfatal01/.cvsignore, devnullfatal01/Makefile.am,
	devnullfatal01/devnullfatal01.doc, devnullfatal01/devnullfatal01.scn,
	devnullfatal01/testcase.h: New files.
2010-07-27 13:57:17 +00:00
Joel Sherrill
b28cb82e4f 2010-07-22 Bharath Suri <bharath.s.jois@gmail.com>
* devfs02/init.c, devfs02/devfs02.doc, devfs02/devfs02.scn,
	devfs02/Makefile.am: New tests added
	* devfs03/init.c, devfs03/devfs03.doc, devfs03/devfs03.scn,
	devfs03/Makefile.am: New tests added
	* devfs04/init.c, devfs04/devfs04.doc, devfs04/devfs04.scn,
	devfs04/Makefile.am: New tests added
	* Makefile.am, configure.ac: Changes to accommodate the above
	newly added tests.
2010-07-22 11:54:10 +00:00
Joel Sherrill
78da8ac396 2010-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, termios06/init.c: Add initial tests for
	XON/XOFF and VMIN/VMAX cases.
	* termios07/.cvsignore, termios07/Makefile.am, termios07/init.c,
	termios07/termios07.doc, termios07/termios07.scn,
	termios08/.cvsignore, termios08/Makefile.am, termios08/init.c,
	termios08/termios08.doc, termios08/termios08.scn: New files.
2010-07-19 13:54:47 +00:00
Joel Sherrill
741343ad8e 2010-07-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add tar test for error cases.
	* tar03/.cvsignore, tar03/Makefile.am, tar03/init.c, tar03/tar03.doc,
	tar03/tar03.scn: New files.
2010-07-19 13:12:40 +00:00
Joel Sherrill
216715075b 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise devFS_Show().
	* devfs01/.cvsignore, devfs01/Makefile.am, devfs01/devfs01.doc,
	devfs01/devfs01.scn, devfs01/init.c: New files.
2010-07-14 23:53:49 +00:00