summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-14 23:01:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-12-14 23:01:43 +0000
commite22d644abe550997c3de19a9a40e68799c2a67da (patch)
treeb589a9bc5417a729b4f8688e7478d620eed31d3f /c
parentRenamed ASFLAGS to ASMFLAGS for consistency per suggestion from Ralf Corsepiu... (diff)
downloadrtems-e22d644abe550997c3de19a9a40e68799c2a67da.tar.bz2
Corrected prototype to confirm to POSIX 1003.1b.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/libcsupport/src/read.c7
-rw-r--r--c/src/exec/libcsupport/src/write.c7
-rw-r--r--c/src/lib/libc/read.c7
-rw-r--r--c/src/lib/libc/write.c7
4 files changed, 8 insertions, 20 deletions
diff --git a/c/src/exec/libcsupport/src/read.c b/c/src/exec/libcsupport/src/read.c
index 1ed6a0bd00..52f61d9b50 100644
--- a/c/src/exec/libcsupport/src/read.c
+++ b/c/src/exec/libcsupport/src/read.c
@@ -14,13 +14,10 @@
#include "libio_.h"
-/* XXX newlib has the prototype for this wrong. It will be a bit painful */
-/* XXX to fix so we are choosing to delay fixing this. */
-
-int read(
+ssize_t read(
int fd,
void *buffer,
- unsigned32 count
+ size_t count
)
{
int rc; /* XXX change to a size_t when prototype is fixed */
diff --git a/c/src/exec/libcsupport/src/write.c b/c/src/exec/libcsupport/src/write.c
index 3de21f0d0f..4b4d076185 100644
--- a/c/src/exec/libcsupport/src/write.c
+++ b/c/src/exec/libcsupport/src/write.c
@@ -22,13 +22,10 @@
* to the file associated with the open file descriptor, fildes.
*/
-/* XXX newlib has the prototype for this wrong. It will be a bit painful */
-/* XXX to fix so we are choosing to delay fixing this. */
-
-int write( /* XXX this should return a ssize_t */
+ssize_t write(
int fd,
const void *buffer,
- unsigned32 count /* XXX this should be a size_t */
+ size_t count
)
{
rtems_status_code rc;
diff --git a/c/src/lib/libc/read.c b/c/src/lib/libc/read.c
index 1ed6a0bd00..52f61d9b50 100644
--- a/c/src/lib/libc/read.c
+++ b/c/src/lib/libc/read.c
@@ -14,13 +14,10 @@
#include "libio_.h"
-/* XXX newlib has the prototype for this wrong. It will be a bit painful */
-/* XXX to fix so we are choosing to delay fixing this. */
-
-int read(
+ssize_t read(
int fd,
void *buffer,
- unsigned32 count
+ size_t count
)
{
int rc; /* XXX change to a size_t when prototype is fixed */
diff --git a/c/src/lib/libc/write.c b/c/src/lib/libc/write.c
index 3de21f0d0f..4b4d076185 100644
--- a/c/src/lib/libc/write.c
+++ b/c/src/lib/libc/write.c
@@ -22,13 +22,10 @@
* to the file associated with the open file descriptor, fildes.
*/
-/* XXX newlib has the prototype for this wrong. It will be a bit painful */
-/* XXX to fix so we are choosing to delay fixing this. */
-
-int write( /* XXX this should return a ssize_t */
+ssize_t write(
int fd,
const void *buffer,
- unsigned32 count /* XXX this should be a size_t */
+ size_t count
)
{
rtems_status_code rc;