From: Sam S. <sd...@gn...> - 2003-04-25 15:15:23
|
> * In message <160...@ho...> > * On the subject of "Re: OPEN problem on Cygwin." > * Sent on Fri, 25 Apr 2003 12:41:34 +0200 (CEST) > * Honorable Bruno Haible <br...@cl...> writes: > > > On Cygwin, the /dev/tty file exists, but the directory /dev does not. WE > > get this: > > > > [1]> (with-open-file (x "/dev/tty")) > > > > *** - nonexistent directory: #P"/dev/" > > > > Second-guessing the operating system's path component resolution > > strategy not only wastes cycles, but leads to incorrect guesses when > > the operating system recognizes special cases. > > CLISP generally assumes a POSIX like filesystem, especially on Unix > platforms (and Cygwin presents itself as a Unix platform). > > Hack the special cases into stream.d:stat_for_search(). 1. where would I get the "struct stat" to emulate "/dev" existance? 2. I am confused: stat_for_search() has if (asciz_equal(pathstring,"/proc")) { errno = ENOENT; return -1; } but this works: (with-open-file (s "/proc/uptime") (read-line s)) "49206.78 47743.21" ; -- Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Bus error -- please leave by the rear door. |