[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Missing "file-type" in posix import
From: |
J Altfas |
Subject: |
[Chicken-users] Missing "file-type" in posix import |
Date: |
Tue, 23 Apr 2013 23:52:10 -0700 |
When I was trying to use (file-type ...) in a compiled module, it was a
big surprise when csc instantly ground to a halt, issuing an error
saying "file-type" was an unknown identifier. (And no, I didn't forgot to
put (import posix) in the module.)
It was especially puzzling since (file-type ) worked just fine in csi.
Checking "posix.import.scm" sure enough showed "file-type" was not among
the exported identifiers. Adding it to the list of exports, recompiling and
reinstalling Chicken was the solution.
Here's the whole change:
--- posix.import.orig.scm 2013-04-23 21:58:54.000000000 -0700
posix.import.scm 2013-04-22 22:52:52.000000000 -0700
@@ -120,6 120,7 @@
file-test-lock
file-truncate
file-type
file-unlock
file-write
Actually, I was grateful this was pretty simple to rectify, as it allowed
me to quickly return to my usual pursuit of obscure bugs of my own making.
Thanks,
Jules Altfas.
- [Chicken-users] Missing "file-type" in posix import,
J Altfas <=