Annotation of 43BSDReno/lib/libc/sys/readlink.2, revision 1.1

1.1     ! root        1: .\" Copyright (c) 1983 The Regents of the University of California.
        !             2: .\" All rights reserved.
        !             3: .\"
        !             4: .\" Redistribution and use in source and binary forms are permitted provided
        !             5: .\" that: (1) source distributions retain this entire copyright notice and
        !             6: .\" comment, and (2) distributions including binaries display the following
        !             7: .\" acknowledgement:  ``This product includes software developed by the
        !             8: .\" University of California, Berkeley and its contributors'' in the
        !             9: .\" documentation or other materials provided with the distribution and in
        !            10: .\" all advertising materials mentioning features or use of this software.
        !            11: .\" Neither the name of the University nor the names of its contributors may
        !            12: .\" be used to endorse or promote products derived from this software without
        !            13: .\" specific prior written permission.
        !            14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            17: .\"
        !            18: .\"    @(#)readlink.2  6.7 (Berkeley) 6/23/90
        !            19: .\"
        !            20: .TH READLINK 2 "June 23, 1990"
        !            21: .UC 5
        !            22: .SH NAME
        !            23: readlink \- read value of a symbolic link
        !            24: .SH SYNOPSIS
        !            25: .nf
        !            26: .ft B
        !            27: cc = readlink(path, buf, bufsiz)
        !            28: int cc;
        !            29: char *path, *buf;
        !            30: int bufsiz;
        !            31: .fi
        !            32: .ft R
        !            33: .SH DESCRIPTION
        !            34: .I Readlink
        !            35: places the contents of the symbolic link
        !            36: .I name
        !            37: in the buffer
        !            38: .I buf,
        !            39: which has size
        !            40: .IR bufsiz . 
        !            41: The contents of the link are not null terminated when returned.
        !            42: .SH "RETURN VALUE
        !            43: The call returns the count of characters placed in the buffer
        !            44: if it succeeds, or a \-1 if an error occurs, placing the error
        !            45: code in the global variable \fIerrno\fP.
        !            46: .SH "ERRORS
        !            47: .I Readlink
        !            48: will fail if:
        !            49: .TP 15
        !            50: [ENOTDIR]
        !            51: A component of the path prefix is not a directory.
        !            52: .TP 15
        !            53: [EINVAL]
        !            54: The pathname contains a character with the high-order bit set.
        !            55: .TP 15
        !            56: [ENAMETOOLONG]
        !            57: A component of a pathname exceeded 255 characters,
        !            58: or an entire path name exceeded 1023 characters.
        !            59: .TP 15
        !            60: [ENOENT]
        !            61: The named file does not exist.
        !            62: .TP 15
        !            63: [EACCES]
        !            64: Search permission is denied for a component of the path prefix.
        !            65: .TP 15
        !            66: [ELOOP]
        !            67: Too many symbolic links were encountered in translating the pathname.
        !            68: .TP 15
        !            69: [EINVAL]
        !            70: The named file is not a symbolic link.
        !            71: .TP 15
        !            72: [EIO]
        !            73: An I/O error occurred while reading from the file system.
        !            74: .TP 15
        !            75: [EFAULT]
        !            76: .I Buf
        !            77: extends outside the process's allocated address space.
        !            78: .SH SEE ALSO
        !            79: stat(2), lstat(2), symlink(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.