Copyright (C) 2000-2012 |
Manpages READLINKSection: Linux Programmer's Manual (2)Updated: 1997-08-21 Index Return to Main Contents NAMEreadlink - read value of a symbolic linkSYNOPSIS#include <unistd.h>int readlink(const char *path, char *buf, size_t bufsiz); DESCRIPTIONreadlink places the contents of the symbolic link path in the buffer buf, which has size bufsiz. readlink does not append a NUL character to buf. It will truncate the contents (to a length of bufsiz characters), in case the buffer is too small to hold all of the contents.RETURN VALUEThe call returns the count of characters placed in the buffer if it succeeds, or a -1 if an error occurs, placing the error code in errno.ERRORS
CONFORMING TOX/OPEN, 4.4BSD (the readlink function call appeared in 4.2BSD).SEE ALSOstat(2), lstat(2), symlink(2)
IndexThis document was created by man2html, using the manual pages. Time: 01:45:14 GMT, January 21, 2025 |