GETCWD.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- GETCWD(3) Minix Programmer's Manual GETCWD(3)
- NAME
- getcwd - get current working directory pathname
- SYNOPSIS
- #include <unistd.h>
- char *getcwd(char *pathname, size_t len)
- DESCRIPTION
- Getcwd copies the absolute pathname of the current working directory to
- pathname and returns a pointer to the result. Pathname is a character
- array of length len.
- DIAGNOSTICS
- Getcwd returns a null pointer and sets errno if an error occurs. The
- error will reflect the system call errors that may occur if the path to
- the current directory is searched upwards to the root directory. The
- error ERANGE is returned if the result does not fit within len bytes.
- 5BSD May 12, 1986 1