Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dartvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!houxz!vax135!floyd!whuxle!mit-eddie!genrad!decvax!dartvax!cmi From: cmi@dartvax.UUCP (Theo Pozzy/R. Green) Newsgroups: net.lang.c,net.wanted Subject: Need C sources for directory manipulation Message-ID: <1748@dartvax.UUCP> Date: Fri, 1-Jun-84 09:14:51 EDT Article-I.D.: dartvax.1748 Posted: Fri Jun 1 09:14:51 1984 Date-Received: Tue, 5-Jun-84 08:44:46 EDT Organization: Dartmouth College Lines: 23 [][][][][][][][][][][][][] Help! I have unsuccessfully been trying to figure out how to manipulate directories under UNIX in such a way that the code will be reasonably compatible with Version 7, System III, System V, and BSD 4.X. There are three functions that I have not been able to figure out: 1) rename(old,new); /* renames file "old" to file name "new" */ 2) initdir(), readdir(); /* routines to initialize a directory search and return the next matching file name */ 3) getcurdir(); /* get current directory path name */ If anyone has sources which implement one or more of these functions (hopefully portable), could you please send them to me via electronic mail? Thanks in advance. Theo Pozzy CSNET cmi@dartmough USENET decvax!dartvax!cmi USMAIL p.o. box 242, hanover, nh 03755