Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-05-06 02:43:47 +0400
committerJeff Johnston <jjohnstn@redhat.com>2008-05-06 02:43:47 +0400
commit6c31adf67e5db7fe87d87d82d83d0de5c72ca484 (patch)
treeaa28c2834fac172cbdb93488304116754d6af493 /libgloss/spu
parent1e6db69571b7cd4c3394c3efd7dd59fd0322a08e (diff)
2008-05-05 Ken Werner <ken.werner@de.ibm.com>
* spu/readlink.c: Align readlink implementation to POSIX.
Diffstat (limited to 'libgloss/spu')
-rw-r--r--libgloss/spu/readlink.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libgloss/spu/readlink.c b/libgloss/spu/readlink.c
index ac7c59182..7a3dc9543 100644
--- a/libgloss/spu/readlink.c
+++ b/libgloss/spu/readlink.c
@@ -44,14 +44,8 @@ typedef struct
unsigned int pad2[3];
} syscall_readlink_t;
-/*
- * POSIX says readlink returns ssize_t, and has an size_t bufsiz, but
- * newlib has it prototyped as returning int, and int bufsiz. ssize_t,
- * size_t and int are ally currently 4 bytes for SPU, so just leave them
- * as ints for now.
- */
-int
-readlink (const char *path, char *buf, int bufsiz)
+ssize_t
+readlink (const char *path, char *buf, size_t bufsiz)
{
syscall_readlink_t sys;