Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!linus!philabs!aecom!aecom2!jschwart From: jschwart@aecom2.UUCP Newsgroups: comp.unix.wizards Subject: Dir(3) emulation - missing seekdir(3) Message-ID: <264@aecom2.UUCP> Date: Tue, 24-Mar-87 11:57:40 EST Article-I.D.: aecom2.264 Posted: Tue Mar 24 11:57:40 1987 Date-Received: Fri, 27-Mar-87 06:35:10 EST Organization: Yeshiva University, New York Lines: 20 Keywords: J.E. Lapin, Portable C and Unix Hi: I just finished typing in the BSD dir(3) emulation routines for System V, which are found in the back of J.E. Lapin's "Portable C and Unix System Programming" Prentice Hall 1987. Well, he seems to have left off seekdir(3). After five minutes of looking at his code, I have this as a first approximation. Does this look right?? void seekdir(dirp, offset) /* hack - this proc was missing */ register DIR *dirp; register long offset; { lseek(dirp->dd_fd, offset); dirp->dd_loc = 0; /* ??? */ } Eric Safern ...{philabs,cucard,pegasus,rocky2}!aecom!aecom2!jschwart