minix/lib/libc/posix/_readlink.c

20 lines
344 B
C
Raw Normal View History

2005-10-31 15:28:19 +01:00
#include <lib.h>
#define readlink _readlink
#include <unistd.h>
2005-10-31 15:28:19 +01:00
#include <string.h>
2005-10-31 15:28:19 +01:00
PUBLIC int readlink(name, buffer, bufsiz)
_CONST char *name;
char *buffer;
size_t bufsiz;
{
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;
return(_syscall(VFS_PROC_NR, RDLNK, &m));
}