Hi,

The second boolean in each pair is intended to indicate whether a  
directory entry is a directory or not; in your case, all files are  
reported to be ordinary files.

Please change the parse_dir_entry() function in vm/os-linux.c as  
follows:

CELL parse_dir_entry(struct dirent *file)
{
        CELL name = tag_object(from_char_string(file->d_name));
        CELL dirp = tag_boolean(file->d_type == DT_DIR);

        /* Debug message - what is d_type here?? */
        printf("%s %d\n",file->d_name,file->d_type);

        return allot_array_2(name,dirp);
}

Can you please recompile, then issue "" resource-path directory  
again, and post the output here?

Slava


On 29-Aug-07, at 6:48 AM, [EMAIL PROTECTED] wrote:

> Hi Slava,
>
> ( scratchpad ) <interactive>:1
> Note: resource-path not in search path; automatically using io.files
> "" resource-path .
> "/home/kio/repos/Factor/"
>
> "" resource-path directory .
> {
>     { "vm" f }
>     { "core" f }
>     { "misc" f }
>     { "Makefile" f }
>     { "extra" f }
>     { "fonts" f }
>     { "cp_dir" f }
>     { "Vocab_empty.txt" f }
>     { "factor" f }
>     { "README.txt" f }
>     { "Factor.app" f }
>     { "boot.x86.64.image" f }
>     { "libfactor.a" f }
>     { "license.txt" f }
>     { "factor.image" f }
>     { "raytracer.pnm" f }
>     { "bun_zipper.ply" f }
>     { "unmaintained" f }
> }
>
> ( scratchpad ) "kernel" vocab-root .
> "resource:core"
>
> Kio
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to