summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-04-14 03:53:43 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-04-14 03:53:43 +0000
commitdfa10d283671a685b14221e81149497b4f0c83dc (patch)
tree1f25cd62b7595348cf63c5ff6e42601b88fd2c82
parentUpdate to newlib-1.15.0-rtems4.8-20070413.diff (diff)
downloadrtems-dfa10d283671a685b14221e81149497b4f0c83dc.tar.bz2
2007-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/src/usleep.c, libcsupport/src/readlink.c: Update API to SUSv3.
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libcsupport/src/readlink.c4
-rw-r--r--cpukit/posix/src/usleep.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index e0721fb965..4b2a58008a 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-14 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * posix/src/usleep.c, libcsupport/src/readlink.c:
+ Update API to SUSv3.
+
2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Unconditionally build src/sleep.c,
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index f2ec9781c5..238830a187 100644
--- a/cpukit/libcsupport/src/readlink.c
+++ b/cpukit/libcsupport/src/readlink.c
@@ -18,10 +18,10 @@
#include <rtems/libio_.h>
#include <rtems/seterr.h>
-int readlink(
+ssize_t readlink(
const char *pathname,
char *buf,
- int bufsize
+ size_t bufsize
)
{
rtems_filesystem_location_info_t loc;
diff --git a/cpukit/posix/src/usleep.c b/cpukit/posix/src/usleep.c
index 6753cfe713..af09f2cdc8 100644
--- a/cpukit/posix/src/usleep.c
+++ b/cpukit/posix/src/usleep.c
@@ -15,8 +15,8 @@
#include <rtems/score/tod.h>
-unsigned usleep(
- unsigned int useconds
+int usleep(
+ useconds_t useconds
)
{
struct timespec tp;