posix_getcwd Pathname of current directory Description stringposix_getcwd posix_getcwd returns the absolute pathname of the script's current working directory. posix_getcwd returns &false; on error.