2005-10-31 15:28:19 +01:00
|
|
|
#include <lib.h>
|
2005-11-01 14:13:31 +01:00
|
|
|
#define readlink _readlink
|
2005-06-17 13:43:24 +02:00
|
|
|
#include <unistd.h>
|
2005-10-31 15:28:19 +01:00
|
|
|
#include <string.h>
|
2005-06-17 13:43:24 +02:00
|
|
|
|
2005-10-31 15:28:19 +01:00
|
|
|
PUBLIC int readlink(name, buffer, bufsiz)
|
|
|
|
_CONST char *name;
|
|
|
|
char *buffer;
|
|
|
|
size_t bufsiz;
|
2005-06-17 13:43:24 +02:00
|
|
|
{
|
2005-10-31 15:28:19 +01:00
|
|
|
message m;
|
|
|
|
|
|
|
|
m.m1_i1 = strlen(name) + 1;
|
|
|
|
m.m1_i2 = bufsiz;
|
|
|
|
m.m1_p1 = (char *) name;
|
|
|
|
m.m1_p2 = (char *) buffer;
|
|
|
|
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(VFS_PROC_NR, RDLNK, &m));
|
2005-06-17 13:43:24 +02:00
|
|
|
}
|