getcwd() and friends.

Peter da Silva peter at ficc.uu.net
Tue Apr 4 23:34:48 AEST 1989


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 at ficc.uu.net, +1 713 274 5180.
Personal: ...!texbell!sugar!peter, peter at sugar.hackercorp.com.



More information about the Comp.unix.wizards mailing list