source:
trunk/minix/lib/posix/_readlink.c@
20
| Last change on this file since 20 was 9, checked in by , 15 years ago | |
|---|---|
| File size: 335 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | #include <lib.h> |
| 2 | #define readlink _readlink | |
| 3 | #include <unistd.h> | |
| 4 | #include <string.h> | |
| 5 | ||
| 6 | PUBLIC int readlink(name, buffer, bufsiz) | |
| 7 | _CONST char *name; | |
| 8 | char *buffer; | |
| 9 | size_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.