From: sjenkins@iastate.edu (Steven L Jenkins)
Newsgroups: comp.lang.scheme.scsh
vincent% pwd
pwd: getwd: read error in ..
vincent% scsh
Scsh 0.4
> (cwd)
Error: 26
"Text file busy"
#{Procedure 8231 cwd}
1> (cwd)
"/afs/iastate.edu/project/vincent/experimental/sjenkins/scheme/mzscheme/mzscheme/dynsrc"
1>
Eh? What's going on here..
I have no idea; that's strange. The core of scsh's (CWD) proc is defined
in syscalls1.c. It calls getcwd(). Some possibilities:
- Your Unix's getcwd() function actually calls a separate program.
- Error 26 for getcwd() is actually some other error besides
"Text file busy" (I doubt it, but you could check errno.h).
- The error 26 is being reported for the malloc() or realloc() calls.
(Unlikely)
You could fire up scsh under gdb, set a breakpoint at scheme_cwd(), and
single step through the 10 lines of code, see where it breaks.
-Olin
|