⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chdir.2

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 2
字号:
.\" SCCSID: @(#)chdir.2	8.1	9/11/90.TH chdir 2.SH Namechdir \- change working directory.SH Syntax.nfchdir(\fIpath\fP).brchar *\fIpath;\fP.fi.SH Description.NXR "chdir system call" .NXA "chdir system call" "chroot system call".NXR "working directory" "changing"The.I pathis the pathname of a directory.  The.PN chdirsystem call causes this directoryto become the current working directory, which isthe starting point for pathnames that do not begin at the root directory(/). .PPFor a directory to become the current directory,the process must have execute (search) access to the directory..SH Return ValuesUpon successful completion, a value of 0 is returned.Otherwise, a value of \-1 is returned and \fIerrno\fP is set to indicatethe error..SH EnvironmentDiffers from the System V definition in that ELOOP is a possible error condition..SH DiagnosticsThe.PN chdirsystem callfails and the current working directory is unchanged under the followingconditions:.TP 15[ENOTDIR]A component of the pathname is not a directory..TP 15[ENAMETOOLONG]A component of a pathname exceeds 255 characters, oran entire path name exceeds 1023 characters..TP 15[ENOENT]The named directory does not exist or the path points to anempty string and the environment defined is POSIX or SYSTEM_FIVE..TP 15[EACCES]Search permission is denied for any component ofthe path name..TP 15[EFAULT]The.I pathpoints outside the process's allocated address space..TP 15[ELOOP]Too many symbolic links were encountered in translatingthe pathname..TP 15[EIO]An I/O error occurred while reading from or writing to the filesystem..TP 15[ESTALE]The file handle given in the argument was invalid.  The file referred to by that file handle no longer exists or has been revoked..TP 15[ETIMEDOUT]A connect request or remote file operation failedbecause the connected partydid not properly respond after a periodof time that is dependent on the communications protocol..SH See Alsochroot(2)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -