summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites/psxtests/psx[n-z]*: Change license to BSD-2Joel Sherrill2022-04-121-3/+22
| | | | Updates #3053.
* Fix format warnings due to ino_t changesSebastian Huber2019-01-101-1/+1
|
* psxreaddir: Adjust test due to opendir() changesSebastian Huber2018-10-221-0/+6
| | | | Update #3545.
* tests/psxtests: Use <rtems/test.h>Sebastian Huber2014-03-251-2/+4
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* psxtests - Eliminate missing prototype warningsJoel Sherrill2012-05-111-4/+18
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+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.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-131-13/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-251-7/+7
| | | | | * psxreaddir/test.c: Remove bogus casts. Fix fprintf format strings.
* 2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-05-061-1/+1
| | | | | * psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests broken in warning pass.
* 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-05-051-3/+6
| | | | | | * psx04/task3.c, psxfile01/test.c, psxhdrs/Makefile.am, psxmsgq01/init.c, psxreaddir/test.c, psxsignal01/init.c, psxtimes01/init.c, psxualarm/init.c: Remove warnings.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-221-0/+4
|
* 2010-06-02 Chris Johns <chrisj@rtems.org>Chris Johns2010-06-021-9/+5
| | | | | * psxfile01/test.c, psxmount/test.c, psxreaddir/test.c, psxstat/test.c: Update to the new mount API.
* 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-04-251-1/+3
| | | | | | * psxreaddir/psxreaddir.scn, psxreaddir/test.c: Do not test for rewinddir(NULL) since we are now using newlib's implementation and it does not check for NULL. This causes a fault on some targets.
* 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-12-081-28/+31
| | | | | | | | | | | | | | | | | | | | | | | * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx03/task.c, psx04/init.c, psx04/task1.c, psx04/task2.c, psx04/task3.c, psx05/init.c, psx05/task.c, psx05/task2.c, psx05/task3.c, psx06/init.c, psx06/task.c, psx06/task2.c, psx07/init.c, psx08/init.c, psx08/task2.c, psx08/task3.c, psx09/init.c, psx10/init.c, psx10/task.c, psx10/task2.c, psx10/task3.c, psx11/init.c, psx11/task.c, psx12/init.c, psxalarm01/init.c, psxbarrier01/test.c, psxcancel01/init.c, psxchroot01/test.c, psxclock/init.c, psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, psxfile01/test_write.c, psxitimer/init.c, psxkey01/task.c, psxkey02/init.c, psxkey03/init.c, psxmount/test.c, psxmsgq01/init.c, psxmsgq03/init.c, psxmsgq04/init.c, psxreaddir/test.c, psxrwlock01/test.c, psxsem01/init.c, psxsignal01/init.c, psxsignal01/task1.c, psxsignal02/init.c, psxsignal03/init.c, psxsignal05/init.c, psxspin01/test.c, psxspin02/test.c, psxstack01/init.c, psxstat/test.c, psxtime/test.c, psxualarm/init.c: Use rtems_test_assert() consistently instead of system assert(). rtems_test_assert() is designed to integrate into the RTEMS test suite infrastructure.
* 2009-01-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-11-011-2/+1
| | | | * psxreaddir/test.c: Apply PRI* macros to print struct stat fields.
* Remove __P (unused anachronism).Ralf Corsepius2009-10-301-4/+0
|
* Remove unused vars.Ralf Corsepius2009-10-251-1/+1
| | | | Add missing prototypes.
* 2005-04-26 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-04-261-1/+2
| | | | * psxreaddir/test.c: Eliminate warnings.
* Remove stray white spaces.Ralf Corsepius2004-04-161-13/+13
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-1/+0
|
* 2004-04-01 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-011-1/+1
| | | | | | | * psxcancel/init.c: Include <rtems/console.h> instead of <console.h>. * psxmount/test.c: Include <rtems/imfs.h> instead of <imfs.h>. * psxreaddir/test.c: Include <rtems/imfs.h> instead of <imfs.h>. * psxstat/test.c: Include <rtems/imfs.h> instead of <imfs.h>.
* 2003-06-12 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-06-121-4/+6
| | | | * psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
* 2003-05-29 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-05-291-2/+2
| | | | | | * psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c, psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c, psxtimer/psxtimer.c: Removed warnings.
* 2002-08-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-08-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | * Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support. * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, psxtime/test.c, psxtimer/psxtimer.c: Modified.
* 2001-04-20 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2001-04-201-4/+4
| | | | | | | | * psx04/init.c, psx04/psx04.scn, psx07/init.c, psx07/psx07.scn, psxfile01/psxfile01.scn, psxmsgq01/psxmsgq01.scn, psxreaddir/test.c, psxstat/psxstat.scn, psxstat/test.c, psxtime/psxtime.scn, psxtimer/psxtimer.scn: Various adjustments so test output matches screens more reliably.
* 2000-11-17 Jennifer Averret <jennifer@OARcorp.com>Jennifer Averett2000-11-171-1/+52
| | | | | | | | * psxmount/test.c, psxmount/psxmount.scn: Improve output to report expected error condition in one case. * psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise readdir() of root of mounted filesystem. Also corrected the screen file for some mistakes noticed in this effort.
* Added more proper checking of F_GETFL and F_SETFL.Joel Sherrill1999-11-021-5/+17
| | | | | | Disabled test of F_DUPFD since it does not work. Added comment to indicate that seekdir(NULL) was being called.
* Removed unneeded include of libio_.h.Joel Sherrill1999-01-311-2/+0
|
* Cleaned up test.Jennifer Averett1998-12-031-11/+34
| | | | Updated scn files to match present expected test output.
* Added tests in support of the file system infrastructure.Joel Sherrill1998-11-231-0/+416