Xref: utzoo comp.unix.wizards:15370 comp.databases:2260 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!killer!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.unix.wizards,comp.databases Subject: getcwd() and friends. Message-ID: <3675@ficc.uu.net> Date: 4 Apr 89 13:34:48 GMT Organization: Xenix Support Lines: 17 One thing that really would make things a lot easier would be a fchdir() call, that took a file descriptor and tried to chdir to it. All the info that UNIX needs for the chdir is available via the fd. Then you could do this: cwfd = open(".", 0); /* chdir around building cwd */ fchdir(cwfd); close(cwfd); One of the few features AmigaDOS has over UNIX... -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.