mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 13:08:36 +08:00
2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am, configure.ac, psx01/Makefile.am, psx02/Makefile.am, psx03/Makefile.am, psx04/Makefile.am, psx05/Makefile.am, psx06/Makefile.am, psx07/Makefile.am, psx08/Makefile.am, psx09/Makefile.am, psx10/Makefile.am, psx11/Makefile.am, psx12/Makefile.am, psx13/Makefile.am, psx14/Makefile.am, psxalarm01/Makefile.am, psxautoinit01/Makefile.am, psxautoinit02/Makefile.am, psxbarrier01/Makefile.am, psxcancel/Makefile.am, psxcancel01/Makefile.am, psxchroot01/Makefile.am, psxcleanup/Makefile.am, psxcleanup01/Makefile.am, psxclock/Makefile.am, psxcond01/Makefile.am, psxenosys/Makefile.am, psxfatal01/Makefile.am, psxfatal02/Makefile.am, psxfile01/Makefile.am, psxfile02/init.c, psxfile02/psxfile02.doc, psxfile02/psxfile02.scn, psxintrcritical01/Makefile.am, psxitimer/Makefile.am, psxkey01/Makefile.am, psxkey02/Makefile.am, psxkey03/Makefile.am, psxmount/Makefile.am, psxmsgq01/Makefile.am, psxmsgq02/Makefile.am, psxmsgq03/Makefile.am, psxmsgq04/Makefile.am, psxmutexattr01/Makefile.am, psxobj01/Makefile.am, psxpasswd01/Makefile.am, psxrdwrv/Makefile.am, psxreaddir/Makefile.am, psxrwlock01/Makefile.am, psxsem01/Makefile.am, psxsignal01/Makefile.am, psxsignal02/Makefile.am, psxsignal03/Makefile.am, psxsignal04/Makefile.am, psxsignal05/Makefile.am, psxspin01/Makefile.am, psxspin02/Makefile.am, psxstack01/Makefile.am, psxstat/Makefile.am, psxsysconf/Makefile.am, psxtime/Makefile.am, psxtimer01/Makefile.am, psxtimer02/Makefile.am, psxualarm/Makefile.am, psxusleep/Makefile.am: Add test for fd greater than number of file descriptors configured.
This commit is contained in:
@@ -1,3 +1,34 @@
|
||||
2010-06-23 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, psx01/Makefile.am, psx02/Makefile.am,
|
||||
psx03/Makefile.am, psx04/Makefile.am, psx05/Makefile.am,
|
||||
psx06/Makefile.am, psx07/Makefile.am, psx08/Makefile.am,
|
||||
psx09/Makefile.am, psx10/Makefile.am, psx11/Makefile.am,
|
||||
psx12/Makefile.am, psx13/Makefile.am, psx14/Makefile.am,
|
||||
psxalarm01/Makefile.am, psxautoinit01/Makefile.am,
|
||||
psxautoinit02/Makefile.am, psxbarrier01/Makefile.am,
|
||||
psxcancel/Makefile.am, psxcancel01/Makefile.am,
|
||||
psxchroot01/Makefile.am, psxcleanup/Makefile.am,
|
||||
psxcleanup01/Makefile.am, psxclock/Makefile.am,
|
||||
psxcond01/Makefile.am, psxenosys/Makefile.am, psxfatal01/Makefile.am,
|
||||
psxfatal02/Makefile.am, psxfile01/Makefile.am, psxfile02/init.c,
|
||||
psxfile02/psxfile02.doc, psxfile02/psxfile02.scn,
|
||||
psxintrcritical01/Makefile.am, psxitimer/Makefile.am,
|
||||
psxkey01/Makefile.am, psxkey02/Makefile.am, psxkey03/Makefile.am,
|
||||
psxmount/Makefile.am, psxmsgq01/Makefile.am, psxmsgq02/Makefile.am,
|
||||
psxmsgq03/Makefile.am, psxmsgq04/Makefile.am,
|
||||
psxmutexattr01/Makefile.am, psxobj01/Makefile.am,
|
||||
psxpasswd01/Makefile.am, psxrdwrv/Makefile.am,
|
||||
psxreaddir/Makefile.am, psxrwlock01/Makefile.am,
|
||||
psxsem01/Makefile.am, psxsignal01/Makefile.am,
|
||||
psxsignal02/Makefile.am, psxsignal03/Makefile.am,
|
||||
psxsignal04/Makefile.am, psxsignal05/Makefile.am,
|
||||
psxspin01/Makefile.am, psxspin02/Makefile.am, psxstack01/Makefile.am,
|
||||
psxstat/Makefile.am, psxsysconf/Makefile.am, psxtime/Makefile.am,
|
||||
psxtimer01/Makefile.am, psxtimer02/Makefile.am,
|
||||
psxualarm/Makefile.am, psxusleep/Makefile.am: Add test for fd greater
|
||||
than number of file descriptors configured.
|
||||
|
||||
2010-06-23 Jennifer Averett <Jennifer.Averett@OARcorp.com>
|
||||
|
||||
* psxfile02/psxfile02.doc: Filled in documentation information.
|
||||
|
||||
@@ -10,8 +10,8 @@ SUBDIRS += psxhdrs psx01 psx02 psx03 psx04 psx05 psx06 psx07 psx08 psx09 \
|
||||
psx10 psx11 psx12 psx13 psx14 psxalarm01 \
|
||||
psxautoinit01 psxautoinit02 psxbarrier01 \
|
||||
psxcancel psxcancel01 psxcleanup psxcleanup01 \
|
||||
psxcond01 psxenosys psxkey01 psxkey02 \
|
||||
psxkey03 psxitimer psxmsgq01 psxmsgq02 psxmsgq03 psxmsgq04 \
|
||||
psxcond01 psxenosys psxkey01 psxkey02 psxkey03 psxload01 \
|
||||
psxitimer psxmsgq01 psxmsgq02 psxmsgq03 psxmsgq04 \
|
||||
psxmutexattr01 psxobj01 psxrwlock01 psxsem01 psxsignal01 psxsignal02 \
|
||||
psxsignal03 psxsignal04 psxsignal05 psxspin01 psxspin02 psxsysconf \
|
||||
psxtime psxtimer01 psxtimer02 psxualarm psxusleep psxfatal01 psxfatal02 \
|
||||
|
||||
@@ -22,6 +22,8 @@ RTEMS_CANONICALIZE_TOOLS
|
||||
|
||||
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||
|
||||
RTEMS_OBJECT_FORMAT
|
||||
|
||||
AM_CONDITIONAL([HAS_NETWORKING],[test "$HAS_NETWORKING" = "yes"])
|
||||
|
||||
RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
|
||||
@@ -94,6 +96,7 @@ psxitimer/Makefile
|
||||
psxkey01/Makefile
|
||||
psxkey02/Makefile
|
||||
psxkey03/Makefile
|
||||
psxload01/Makefile
|
||||
psxmount/Makefile
|
||||
psxmsgq01/Makefile
|
||||
psxmsgq02/Makefile
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx03_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx04_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx05_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx06_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx07_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx08_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx09_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx10_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx11_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx12_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx13_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psx14_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxalarm01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxautoinit01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -16,7 +16,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxautoinit02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxbarrier01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxcancel_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxcancel01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxchroot01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxcleanup_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxcleanup01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxclock_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxcond01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxenosys_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxfatal01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxfatal02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxfile01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <rtems/imfs.h>
|
||||
#include <reent.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio.h>
|
||||
@@ -25,31 +26,83 @@
|
||||
#include <tmacros.h>
|
||||
#include "test_support.h"
|
||||
|
||||
int _fcntl_r(
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
int fd,
|
||||
int cmd,
|
||||
int arg
|
||||
);
|
||||
void do_with_fd(
|
||||
int fd,
|
||||
const char *description
|
||||
)
|
||||
{
|
||||
struct stat stat_buff;
|
||||
struct iovec vec[4];
|
||||
off_t res;
|
||||
int status;
|
||||
|
||||
off_t _lseek_r(
|
||||
struct _reent *ptr __attribute__((unused)),
|
||||
int fd,
|
||||
off_t offset,
|
||||
int whence
|
||||
);
|
||||
printf("ftruncate %s\n", description);
|
||||
status = ftruncate(fd, 40);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("_fcntl_r %s\n", description);
|
||||
status = _fcntl_r( NULL, fd, F_SETFD, 1 );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("fdatasync %s\n", description);
|
||||
status = fdatasync( fd );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("fstat %s\n", description);
|
||||
status = fstat( fd, &stat_buff );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("fsync %s\n", description);
|
||||
status = fsync( fd );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("ioctl %s\n", description);
|
||||
status = ioctl( fd, 0 );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("_lseek_r %s\n", description);
|
||||
res = _lseek_r (NULL, fd, 0, SEEK_SET);
|
||||
rtems_test_assert( res == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("readv %s\n", description);
|
||||
status = readv(fd, vec, 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("writev %s\n", description);
|
||||
status = writev(fd, vec, 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
printf("write %s\n", description);
|
||||
status = write(fd, "1234", 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
}
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
{
|
||||
int fd;
|
||||
struct stat stat_buff;
|
||||
struct iovec vec[4];
|
||||
off_t res;
|
||||
int status;
|
||||
int status;
|
||||
int fd;
|
||||
|
||||
puts( "\n\n*** PSXFILE02 TEST ***" );
|
||||
|
||||
@@ -69,68 +122,9 @@ rtems_task Init(
|
||||
status = close( fd );
|
||||
rtems_test_assert( !status );
|
||||
|
||||
puts("ftruncate an unopened file");
|
||||
status = ftruncate(fd, 40);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("_fcntl_r unopened file");
|
||||
status = _fcntl_r( NULL, fd, F_SETFD, 1 );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("fdatasync unopened file");
|
||||
status = fdatasync( fd );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("fstat unopened file");
|
||||
status = fstat( fd, &stat_buff );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("fsync unopened file");
|
||||
status = fsync( fd );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("ioctl unopened file");
|
||||
status = ioctl( fd, 0 );
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("_lseek_r unopened file");
|
||||
res = _lseek_r (NULL, fd, 0, SEEK_SET);
|
||||
rtems_test_assert( res == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("readv unopened file");
|
||||
status = readv(fd, vec, 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("writev unopened file");
|
||||
status = writev(fd, vec, 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
puts("write unopened file");
|
||||
status = write(fd, "1234", 4);
|
||||
rtems_test_assert( status == -1 );
|
||||
printf( "%d: %s\n", errno, strerror( errno ) );
|
||||
rtems_test_assert( errno == EBADF );
|
||||
|
||||
|
||||
|
||||
do_with_fd( fd, "an unopened file" );
|
||||
puts("");
|
||||
do_with_fd( 1000, "a too large file descriptor" );
|
||||
|
||||
puts( "*** END OF PSXFILE02 TEST ***" );
|
||||
|
||||
@@ -142,7 +136,7 @@ rtems_task Init(
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
|
||||
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 6
|
||||
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
|
||||
@@ -31,5 +31,8 @@ directives:
|
||||
|
||||
concepts:
|
||||
|
||||
+ Verify failure when a previously opened, but now closed file descriptor is passed in.
|
||||
+ Verify failure when a previously opened, but now closed file
|
||||
descriptor is used.
|
||||
+ Verify failure when an out of range file descriptor (above the
|
||||
number configured) is used.
|
||||
|
||||
|
||||
@@ -23,4 +23,25 @@ writev unopened file
|
||||
9: Bad file number
|
||||
write unopened file
|
||||
9: Bad file number
|
||||
|
||||
ftruncate a too large file descriptor
|
||||
9: Bad file number
|
||||
_fcntl_r a too large file descriptor
|
||||
9: Bad file number
|
||||
fdatasync a too large file descriptor
|
||||
9: Bad file number
|
||||
fstat a too large file descriptor
|
||||
9: Bad file number
|
||||
fsync a too large file descriptor
|
||||
9: Bad file number
|
||||
ioctl a too large file descriptor
|
||||
9: Bad file number
|
||||
_lseek_r a too large file descriptor
|
||||
9: Bad file number
|
||||
readv a too large file descriptor
|
||||
9: Bad file number
|
||||
writev a too large file descriptor
|
||||
9: Bad file number
|
||||
write a too large file descriptor
|
||||
9: Bad file number
|
||||
*** END OF PSXFILE02 TEST ***
|
||||
|
||||
@@ -15,7 +15,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxintrcritical01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../sptests/spintrcritical_support
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxitimer_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -15,7 +15,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxkey01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxkey02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxkey03_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmount_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -15,7 +15,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmsgq01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmsgq02_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -15,7 +15,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmsgq03_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -15,7 +15,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmsgq04_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxmutexattr01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -14,7 +14,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxobj01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxpasswd01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxrdwrv_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
@@ -13,7 +13,6 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../automake/compile.am
|
||||
include $(top_srcdir)/../automake/leaf.am
|
||||
|
||||
psxreaddir_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
|
||||
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/include
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user