From dfa10d283671a685b14221e81149497b4f0c83dc Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 14 Apr 2007 03:53:43 +0000 Subject: [PATCH] =?UTF-8?q?2007-04-14=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * posix/src/usleep.c, libcsupport/src/readlink.c: Update API to SUSv3. --- cpukit/ChangeLog | 5 +++++ cpukit/libcsupport/src/readlink.c | 4 ++-- cpukit/posix/src/usleep.c | 4 ++-- 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 + + * posix/src/usleep.c, libcsupport/src/readlink.c: + Update API to SUSv3. + 2007-04-13 Ralf Corsépius * 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 #include -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 -unsigned usleep( - unsigned int useconds +int usleep( + useconds_t useconds ) { struct timespec tp;