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:
Diffstat (limited to 'libgloss/spu/readlink.c')
-rw-r--r--libgloss/spu/readlink.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libgloss/spu/readlink.c b/libgloss/spu/readlink.c
index 7a3dc9543..ac7c59182 100644
--- a/libgloss/spu/readlink.c
+++ b/libgloss/spu/readlink.c
@@ -44,8 +44,14 @@ typedef struct
unsigned int pad2[3];
} syscall_readlink_t;
-ssize_t
-readlink (const char *path, char *buf, size_t bufsiz)
+/*
+ * 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)
{
syscall_readlink_t sys;