mlib update: new isnan()/isnanf() implementation
[tangerine.git] / compiler / clib / readlink.c
blobd8fb980601581ed97b40a58f0832a9bdd5e6ccc6
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 int readlink(
19 /* SYNOPSIS */
20 const char *path,
21 char *buf,
22 int 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;