source: trunk/minix/lib/posix/_readlink.c@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 335 bytes
Line 
1#include <lib.h>
2#define readlink _readlink
3#include <unistd.h>
4#include <string.h>
5
6PUBLIC int readlink(name, buffer, bufsiz)
7_CONST char *name;
8char *buffer;
9size_t bufsiz;
10{
11 message m;
12
13 m.m1_i1 = strlen(name) + 1;
14 m.m1_i2 = bufsiz;
15 m.m1_p1 = (char *) name;
16 m.m1_p2 = (char *) buffer;
17
18 return(_syscall(FS, RDLNK, &m));
19}
Note: See TracBrowser for help on using the repository browser.