OSDN Git Service

2008-05-05 Ken Werner <ken.werner@de.ibm.com>
authorjjohnstn <jjohnstn>
Mon, 5 May 2008 22:43:47 +0000 (22:43 +0000)
committerjjohnstn <jjohnstn>
Mon, 5 May 2008 22:43:47 +0000 (22:43 +0000)
        * spu/readlink.c: Align readlink implementation to POSIX.

libgloss/ChangeLog
libgloss/spu/readlink.c

index aa1f445..5146438 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-05  Ken Werner  <ken.werner@de.ibm.com>
+
+       * spu/readlink.c: Align readlink implementation to POSIX.
+       
 2008-04-25  Nick Clifton  <nickc@redhat.com>
 
        * arm/crt0.S: Allow assembly under ARMv7 ISA.  Support for
index ac7c591..7a3dc95 100644 (file)
@@ -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;