summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111761-4805/+0
| | | | | | | | | | | | 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.
* fstests/fsrdwr: Add block read/write test caseSebastian Huber2012-05-111-0/+194
|
* fstests/fsrdwr: Add truncate to zero test caseSebastian Huber2012-05-111-0/+32
|
* fstests/fsrdwr: Fix assertionsSebastian Huber2012-05-111-8/+8
|
* fstests/fsrdwr: Avoid copy and pasteSebastian Huber2012-05-111-49/+34
|
* dosfs: Remove fat_file_datasync()Sebastian Huber2012-05-116-0/+205
| | | | | | | | | | | | | | | The fat_file_datasync() read every cluster of the file into the cache and then synchronized it step-by-step. For unmodified buffers this is a non-operation. For modified buffers this will wake-up the swapout task which performs then a single buffer write operation. This is usually quite inefficient. Firstly we do single buffer writes, secondly we may perform a lot of unnecessary read operations (for huge files this is really bad), and thirdly this leads likely to cache evictions. The synchronization procedure is replaced by a simple rtems_bdbuf_sync_dev(). This has the side-effect that also buffers not related to the file are synchronized, but since the modified list is normally short this should be acceptable.
* Filesystem: PR1871: Fix O_APPENDSebastian Huber2012-05-111-1/+9
|
* Filesystem: PR1398: Fix lseek() mechanicSebastian Huber2012-05-112-34/+31
| | | | | | | | | | | | According to POSIX the lseek() function shall not, by itself, extend the size of a file. Remove the size field of rtems_libio_t. A file has only one size but may have multiple open file descriptors. Thus a file size field in the file descriptor may lead to inconsistencies. New default handlers rtems_filesystem_default_lseek_file() and rtems_filesystem_default_lseek_directory().
* spqreslib - Make global data extern in system.hJoel Sherrill2012-05-092-8/+12
| | | | | | Global data was declared in system.h but should have been extern in system.h and declared in init.c. There were duplicate symbol linking errors on at least powerpc/mpc8260ads.
* rbtree: API changes. Remove rbtree control node from RBTree_Next.Gedare Bloom2012-05-081-2/+2
| | | | | | | | | | | | The implementation of RBTree_Next was using an awkward construction to detect and avoid accessing the false root of the red-black tree. To deal with the false root, RBTree_Next was comparing node parents with the control node. Instead the false root can be detected by checking if the grandparent of a node exists; the grandparent of the tree's true root is NULL by definition so the root of the tree is found while walking up the tree by checking for the non-existence of a grandparent. This change propagates into the predecessor/successor and iterate functions.
* tm30 - Fix warning for Init needed prototypeJoel Sherrill2012-05-071-1/+5
|
* Revert: Remove CVS IdsJoel Sherrill2012-05-07484-0/+2249
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* samples/base_mp - Makefile.am did not set LINK_OBJSJoel Sherrill2012-05-042-2/+2
| | | | | | | | LINK_OBJS = instead of LINK_OBJS = $(mp01_node1_OBJECTS)
* mptests - Makefile.am did not set LINK_OBJSJoel Sherrill2012-05-0428-28/+28
| | | | | | | | LINK_OBJS = instead of LINK_OBJS = $(mp01_node1_OBJECTS)
* Filesystem: Remove per file descriptor semaphoreSebastian Huber2012-05-0410-18/+8
| | | | | | | | | The per file descriptor semaphore (field of rtems_libio_t) is unused in RTEMS. There is a considerable memory overhead due to that. A semaphore needs roughly 124 bytes which is huge compared to the approximately 72 bytes for the file descriptor structure itself. Device drivers can create their own synchronization primitives in the open handler on demand.
* Remove CVS-Ids.Ralf Corsépius2012-05-0416-41/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-044-12/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0434-166/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-04158-774/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0411-51/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0417-78/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0433-161/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0484-400/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0444-174/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0456-261/+0
|
* Remove CVS-Ids.Ralf Corsépius2012-05-0427-131/+0
|
* Remove.Ralf Corsépius2012-05-041-0/+0
|
* psxaio01/psxaio02 - Formatting correctionsJoel Sherrill2012-05-032-18/+18
| | | | | The file header was moved over one space. These two were the only files in the testsuite which did this.
* sp07/buffered_io.c add missing copyrightJoel Sherrill2012-05-031-1/+6
| | | | Date and ownership determined from file history.
* smp08 screen replacementJoel Sherrill2012-04-241-16/+29
|
* PR1908: consolidate libqos code and fix installed header locationGedare Bloom2012-04-231-1/+1
|
* rbheap: API changes and documentationSebastian Huber2012-04-181-38/+51
|
* PR1908: QoS library for CBS schedulerPetr Benes2012-04-156-0/+507
| | | | Add the lipqos and sptest.
* PR1908: QoS library for CBS schedulerPetr Benes2012-04-152-1/+2
| | | | | | | Since the CBS scheduler is inspired by AQuoSA project for Linux, additional API (qreslib) compliant with Linux has been created. Sptest for qreslib included.
* rbtree: PR2046: Replace rtems_rbtree_uniqueSebastian Huber2012-04-131-5/+3
|
* rbheap: New filesSebastian Huber2012-04-116-0/+605
| | | | | | | 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.
* rbtree: PR1995: API changeSebastian Huber2012-04-111-2/+2
| | | | | | | | | | | | | | | | New functions o _RBTree_Next_unprotected(), o _RBTree_Next(), o _RBTree_Successor_unprotected(), o _RBTree_Predecessor_unprotected(), o rtems_rbtree_successor_unprotected(), and o rtems_rbtree_predecessor_unprotected(). Change prototype of o _RBTree_Successor(), o _RBTree_Predecessor(), o rtems_rbtree_successor(), and o rtems_rbtree_predecessor().
* networking: socket to/from file descriptorSebastian Huber2012-04-036-0/+149
| | | | | | | | | | 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.
* PR1994: RBTree Compare Result ChangeGedare Bloom2012-03-291-5/+3
| | | | | Change the meaning of the compare result to simplify comparison of integer keys.
* confdefs: Add declaration for unlimited objects.Gedare Bloom2012-03-271-1/+2
| | | | | | | | | Adds to confdefs a way to specify rtems_resource_unlimited for classic and posix objects using a new macro CONFIGURE_OBJECTS_UNLIMITED. Use CONFIGURE_OBJECTS_ALLOCATION_SIZE to declare the allocation size for extending the set of objects at runtime. Updates the unlimited sample to demonstrate how to use the new macros. Also adds new documentation in the C User's Manual regarding configuring with unlimited objects.
* libtests/block06: Increase stack sizeSebastian Huber2012-03-261-0/+2
|
* PR2040: libtests/flashdisk01: New testSebastian Huber2012-03-148-0/+1534
|
* fstests/fsbdpart01: New testSebastian Huber2012-03-136-0/+281
|
* libblock: Add generic IMFS block device nodesSebastian Huber2012-03-136-1/+443
| | | | | | | | New functions o rtems_blkdev_create(), and o rtems_blkdev_create_partition(). New test libtests/block11.
* libblock: Change bdbuf APISebastian Huber2012-03-1325-207/+242
| | | | | | | | | | | | | | | | | | | | The functions o rtems_bdbuf_get(), o rtems_bdbuf_read(), o rtems_bdbuf_syncdev(), and o rtems_bdbuf_purge_dev(), use now the disk device instead of the device identifier. This makes bdbuf independent of rtems_disk_obtain() and rtems_disk_release(). It is the responsiblity of the file system to obtain the disk device. This also reduces the overhead to get a buffer. The key for the AVL tree uses now the disk device instead of the device identifier. The pointer is interpreted as an unsigned integer. This reduces the memory overhead and makes the comparison operation a bit faster. Removed function rtems_bdbuf_purge_major(). This function was too destructive and could have unpredictable side effects.
* libblock: New block IO control support functionsSebastian Huber2012-03-131-6/+74
|
* IMFS: Add make generic node supportSebastian Huber2012-03-136-0/+443
| | | | | | | | | | | | | | | | | | | | | | Generic nodes are an alternative to standard drivers in RTEMS. The handlers of a generic node are called with less overhead compared to the standard driver operations. The usage of file system node handlers enable more features like support for fsync() and fdatasync(). The generic nodes use the reference counting of the IMFS. This provides automatic node destruction when the last reference vanishes. Extend type IMFS_types_union by new type IMFS_generic_t. Extend enum IMFS_jnode_types_t by IMFS_GENERIC. Add functions o IMFS_make_generic_node(), o IMFS_is_imfs_instance(), o IMFS_generic_get_context_by_node(), o IMFS_generic_get_context_by_location(), and o IMFS_generic_get_context_by_iop(). New test fstests/fsimfsgeneric01.
* IMFS: Do not check for unsupported typesSebastian Huber2012-03-131-1/+23
| | | | | Allow creation of nodes with an unsupported type. Later the usage of such nodes will return an error status.
* Filesystem: Read-only file system checksSebastian Huber2012-03-136-8/+251
| | | | | | | o Make sure EROFS is indicated for write operations on a read-only file system. o Add error indication for read-only file systems in fchmod() and fchown() according to POSIX.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-1321-319/+631
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.