Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!ecsgate!seq!session From: session@seq.uncwil.edu (Zack C. Sessions) Newsgroups: comp.os.os9 Subject: Re: open() + sharable file = no disk Message-ID: <1656@seq.uncwil.edu> Date: 11 Jun 91 19:40:20 GMT References: <1991Jun11.012640.904@tkou02.enet.dec.com> Organization: Univ. of North Carolina @ Wilmington Lines: 36 Wow, have you ever found a strange one!! I tried your program on my system, a 512K CoCo3 with OS-9 Level 2, the original Microware C Compiler and the Dev Pack Ramdisk. The only possible difference is that I am using the Kreider Lib, but I would be surprised to find that Carl's open() function would work any different from the stock version. But it does!! First off, it is my understanding that the s attribute is not the "sharable" attribute, but the "single-user" attribute. According to the Tech Ref, if this bit is on in the file's attribute mask, then only one process can have an active path to it at one time. It also goes on to state that you can specify this bit on during the Open call to temporarily dis-allow any other access as long as you have it opened that way. Only thing is, the second method does not appear to work!! While I cannot get the program to successfully open a file or directory with the single user bit on, though, it doesn't trash my disk. Files and directories are all still there and readable, but the program does return an Error 203, Illegal mode!! No ownership problems, since all is being done from userid 0. So, basically I can't say what is happening to you except that I cannot get the single-user access bit to work either, but it doesn't trash the file system on the disk I test it with. Maybe Kev will see this and respond! Zack Sessions session@seq.uncwil.edu ^^^ | +---> Note: username is session, not sessions. Not my fault, ask my SysAdmin about it!!