2008-05-05 Ken Werner <ken.werner@de.ibm.com>
* spu/readlink.c: Align readlink implementation to POSIX.
This commit is contained in:
parent
1e6db69571
commit
6c31adf67e
|
@ -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>
|
2008-04-25 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* arm/crt0.S: Allow assembly under ARMv7 ISA. Support for
|
* arm/crt0.S: Allow assembly under ARMv7 ISA. Support for
|
||||||
|
|
|
@ -44,14 +44,8 @@ typedef struct
|
||||||
unsigned int pad2[3];
|
unsigned int pad2[3];
|
||||||
} syscall_readlink_t;
|
} syscall_readlink_t;
|
||||||
|
|
||||||
/*
|
ssize_t
|
||||||
* POSIX says readlink returns ssize_t, and has an size_t bufsiz, but
|
readlink (const char *path, char *buf, size_t bufsiz)
|
||||||
* 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;
|
syscall_readlink_t sys;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue