?? readlink.2
字號(hào):
.\" SCCSID: @(#)readlink.2 8.1 9/11/90.TH readlink 2.SH Namereadlink \- read value of a symbolic link.SH Syntax.nf.ft Bcc = readlink(path, buf, bufsiz)int cc;char *path, *buf;int bufsiz;.fi.ft R.SH Description.NXR "readlink system call".NXR "file" "reading symbolic link"The.PN readlinksystem call places the contents of the symbolic link.I path in the buffer.I buf,which has size.IR bufsiz . The contents of the link are not null terminated when returned..SH Return ValuesThe call returns the count of characters placed in the bufferif it succeeds, or a \-1 if an error occurs, placing the errorcode in the global variable \fIerrno\fP..SH DiagnosticsThe.PN readlinksystem call fails under the following conditions:.TP 15[ENOTDIR]A component of the path prefix is not a directory..TP 15[ENAMETOOLONG]A component of a pathname exceeded 255 characters, or an entirepathname exceeded 1023 characters..TP 15[ENOENT]The named file does not exist..TP 15[EACCES]Search permission is denied on a component of the path prefix..TP 15[EINVAL]The named file is not a symbolic link..TP 15[EFAULT]The.I bufextends outside the process's allocated address space..TP 15[ELOOP]Too many symbolic links were encountered in translating the pathname..TP 15[EIO]An I/O error occurred while reading from the file system..TP[ETIMEDOUT]A connect request or remote file operation failed,because the connected partydid not properly respond after a periodof time that is dependent on the communications protocol..SH See Alsolstat(2), symlink(2), stat(2)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -