Fixed UHCI port bits for big endian machines.
[cake.git] / compiler / clib / readlink.c
bloba858253f15081cb74a1ac670dbeb16c918b4c03c
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function getcwd().
6 */
8 #include <aros/debug.h>
10 #include <errno.h>
12 /*****************************************************************************
14 NAME */
15 #include <unistd.h>
17 ssize_t readlink(
19 /* SYNOPSIS */
20 const char *path,
21 char *buf,
22 size_t bufsiz)
24 /* FUNCTION
25 Places the contents of a symbolic link in a buffer of given size. No NUL
26 char is appended to the buffer.
28 INPUTS
29 path - the path to the symbolic link
30 buf - pointer to thebuffer where to store the symbolic link content
31 bufziz - the size of the buffer in bytes
33 RESULT
34 The call returns the count of characters placed in the buffer if it
35 succeeds, or a -1 if an error occurs, placing the error code in the
36 global variable errno.
39 # warning Implement readlink()
40 AROS_FUNCTION_NOT_IMPLEMENTED("arosc");
42 errno = ENOSYS;
43 return -1;