summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-13 15:45:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-13 15:45:43 +0000
commit8d8daef461194021e0df6cdc3140a1d124d140e4 (patch)
tree3d3003c4a9653732b3810e2d2e1913bd34422cdf /cpukit/posix
parent2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-8d8daef461194021e0df6cdc3140a1d124d140e4.tar.bz2
2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/preinstall.am, posix/preinstall.am, posix/src/aio.c, posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c, posix/src/clockgettime.c, posix/src/clocksetenableattr.c, posix/src/clocksettime.c, posix/src/devctl.c, posix/src/pthreadcreate.c, posix/src/pthreadgetcpuclockid.c, posix/src/types.c, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Eliminate POSIX_NOT_IMPLEMENTED(). Return ENOSYS instead.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/preinstall.am16
-rw-r--r--cpukit/posix/src/aio.c19
-rw-r--r--cpukit/posix/src/clockgetcpuclockid.c2
-rw-r--r--cpukit/posix/src/clockgetenableattr.c2
-rw-r--r--cpukit/posix/src/clockgettime.c2
-rw-r--r--cpukit/posix/src/clocksetenableattr.c2
-rw-r--r--cpukit/posix/src/clocksettime.c4
-rw-r--r--cpukit/posix/src/devctl.c4
-rw-r--r--cpukit/posix/src/pthreadcreate.c2
-rw-r--r--cpukit/posix/src/pthreadgetcpuclockid.c3
-rw-r--r--cpukit/posix/src/types.c15
11 files changed, 36 insertions, 35 deletions
diff --git a/cpukit/posix/preinstall.am b/cpukit/posix/preinstall.am
index 5531e7c852..aeaf59f589 100644
--- a/cpukit/posix/preinstall.am
+++ b/cpukit/posix/preinstall.am
@@ -8,10 +8,20 @@ endif
PREINSTALL_DIRS =
DISTCLEANFILES = $(PREINSTALL_DIRS)
+all-local: $(TMPINSTALL_FILES)
+
+TMPINSTALL_FILES =
+CLEANFILES = $(TMPINSTALL_FILES)
+
all-am: $(PREINSTALL_FILES)
PREINSTALL_FILES =
-CLEANFILES = $(PREINSTALL_FILES)
+CLEANFILES += $(PREINSTALL_FILES)
+
+$(PROJECT_LIB)/$(dirstamp):
+ @$(MKDIR_P) $(PROJECT_LIB)
+ @: > $(PROJECT_LIB)/$(dirstamp)
+PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
$(PROJECT_INCLUDE)/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)
@@ -19,6 +29,10 @@ $(PROJECT_INCLUDE)/$(dirstamp):
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
if LIBPOSIX
+$(PROJECT_LIB)/libposix.a: libposix.a $(PROJECT_LIB)/$(dirstamp)
+ $(INSTALL_DATA) $< $(PROJECT_LIB)/libposix.a
+TMPINSTALL_FILES += $(PROJECT_LIB)/libposix.a
+
if HAS_PTHREADS
$(PROJECT_INCLUDE)/sched.h: include/sched.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sched.h
diff --git a/cpukit/posix/src/aio.c b/cpukit/posix/src/aio.c
index f993a5f2d5..692a3cdf60 100644
--- a/cpukit/posix/src/aio.c
+++ b/cpukit/posix/src/aio.c
@@ -7,12 +7,11 @@
#endif
#include <aio.h>
+#include <errno.h>
#include <rtems/system.h>
#include <rtems/seterr.h>
-int POSIX_NOT_IMPLEMENTED();
-
/*PAGE
*
* 6.7.2 Asynchronous Read, P1003.1b-1993, p. 154
@@ -22,7 +21,7 @@ int aio_read(
struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -34,7 +33,7 @@ int aio_write(
struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -49,7 +48,7 @@ int lio_listio(
struct sigevent *sig
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -61,7 +60,7 @@ int aio_error(
const struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -74,7 +73,7 @@ int aio_return(
const struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -87,7 +86,7 @@ int aio_cancel(
struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -101,7 +100,7 @@ int aio_suspend(
const struct timespec *timeout
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -114,5 +113,5 @@ int aio_fsync(
struct aiocb *aiocbp
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/clockgetcpuclockid.c b/cpukit/posix/src/clockgetcpuclockid.c
index 436c976d05..9623eba741 100644
--- a/cpukit/posix/src/clockgetcpuclockid.c
+++ b/cpukit/posix/src/clockgetcpuclockid.c
@@ -27,5 +27,5 @@ int clock_getcpuclockid(
clockid_t *clock_id
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/clockgetenableattr.c b/cpukit/posix/src/clockgetenableattr.c
index aae7b2a898..53e121deb9 100644
--- a/cpukit/posix/src/clockgetenableattr.c
+++ b/cpukit/posix/src/clockgetenableattr.c
@@ -27,5 +27,5 @@ int clock_getenable_attr(
int *attr
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/clockgettime.c b/cpukit/posix/src/clockgettime.c
index 938b6f87e3..91e3c96d73 100644
--- a/cpukit/posix/src/clockgettime.c
+++ b/cpukit/posix/src/clockgettime.c
@@ -49,7 +49,7 @@ int clock_gettime(
#ifdef _POSIX_THREAD_CPUTIME
case CLOCK_THREAD_CPUTIME:
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
break;
#endif
default:
diff --git a/cpukit/posix/src/clocksetenableattr.c b/cpukit/posix/src/clocksetenableattr.c
index 8e40fd67b1..386e9d0c27 100644
--- a/cpukit/posix/src/clocksetenableattr.c
+++ b/cpukit/posix/src/clocksetenableattr.c
@@ -27,5 +27,5 @@ int clock_setenable_attr(
int attr
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/clocksettime.c b/cpukit/posix/src/clocksettime.c
index c733e6f378..f625d99c28 100644
--- a/cpukit/posix/src/clocksettime.c
+++ b/cpukit/posix/src/clocksettime.c
@@ -42,13 +42,13 @@ int clock_settime(
#ifdef _POSIX_CPUTIME
case CLOCK_PROCESS_CPUTIME:
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
break;
#endif
#ifdef _POSIX_THREAD_CPUTIME
case CLOCK_THREAD_CPUTIME:
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
break;
#endif
default:
diff --git a/cpukit/posix/src/devctl.c b/cpukit/posix/src/devctl.c
index 9800a109eb..ab6dc6bc4b 100644
--- a/cpukit/posix/src/devctl.c
+++ b/cpukit/posix/src/devctl.c
@@ -7,8 +7,10 @@
#endif
#include <devctl.h>
+#include <errno.h>
#include <rtems/system.h>
+#include <rtems/seterr.h>
/*PAGE
*
@@ -22,5 +24,5 @@ int devctl(
int *dev_info_ptr
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index b2b1ed128b..2423bda4d3 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -58,7 +58,7 @@ int pthread_create(
#if 0
int cputime_clock_allowed; /* see time.h */
- POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
/*
diff --git a/cpukit/posix/src/pthreadgetcpuclockid.c b/cpukit/posix/src/pthreadgetcpuclockid.c
index 7769e4b7c6..65a4c9bc99 100644
--- a/cpukit/posix/src/pthreadgetcpuclockid.c
+++ b/cpukit/posix/src/pthreadgetcpuclockid.c
@@ -19,11 +19,12 @@
#include <errno.h>
#include <rtems/system.h>
+#include <rtems/seterr.h>
int pthread_getcpuclockid(
pthread_t pid,
clockid_t *clock_id
)
{
- return POSIX_NOT_IMPLEMENTED();
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}
diff --git a/cpukit/posix/src/types.c b/cpukit/posix/src/types.c
index 89fc961947..52e5841e3b 100644
--- a/cpukit/posix/src/types.c
+++ b/cpukit/posix/src/types.c
@@ -17,18 +17,3 @@
#include <rtems/score/object.h>
#include <rtems/seterr.h>
-/*
- * TEMPORARY
- */
-
-#include <assert.h>
-
-int POSIX_NOT_IMPLEMENTED()
-{
- assert( 0 );
- return 0;
-}
-
-/*
- * END OF TEMPORARY
- */