Menu

#2 Linux File Channel problems

open
nobody
None
5
2004-01-19
2004-01-19
No

I am still working at trying to track down where exactly this
problem starts. It has a chicken and egg feel to it.

First. if I do chan =unt chan always comes out to 1. If I then open
a file on chan I am given error 12: Duplicate or undefined channel.
This error is thrown by line 1188 in runtime.c But I feel the error is
a symptom of the channel problem (though this only a slightly
educated guess).

This is running on a Red Hat 9 system with GCC 3.2.2

Discussion

  • Karl Tatgenhorst

    Logged In: YES
    user_id=467807

    I am looking at a lot of things pertaining to this and have
    some ideas. One idea is that I will have a channel struct
    that will save data based on open, call, load and run
    commands. This structure would get the fid, the file name
    and also the type (ie called program, text file etc...). I
    would then in addition to using the traditional fid(chan)
    which will return the filename I will also write an ftype
    function -> ? ftype(fid(4)) which will return the file
    type. I am not sure I am still trying to see how the file
    name is currently stored and accessed.

     
  • Karl Tatgenhorst

    Logged In: YES
    user_id=467807

    struct filetbl already exists in mybb.h so I guess I should
    look at it from there.

     
  • Karl Tatgenhorst

    Logged In: YES
    user_id=467807

    struct filetbl already exists in mybb.h so I guess I should
    look at it from there.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.