Path: utzoo!utgpu!water!watmath!clyde!bellcore!tness7!tness1!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: Who's got the lock? Message-ID: <2015@sugar.UUCP> Date: 18 May 88 13:10:39 GMT References: <8805171753.AA06964@cory.Berkeley.EDU> Organization: Sugar Land UNIX - Houston, TX Lines: 23 In article ... dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: > Relatively simple. If you will refer to the DOS packet > ACTION_RENAMEOBJECT, it takes four arguments: OK. Next time I RTFM. > Arg1 = FromLock (src dir) > Arg2 = FromName > Arg3 = ToLock (dst dir) > Arg4 = ToName > All you have to do is construct and send the packet to the proper > handler yourself! Remember, BPTR's and BSTR's. You also *must* ensure > the two locks are on the same device node... a simple field check. And you have so thoughtfully provided the code to send packets to DOS, so I can do the right thing. I presume I can send the packet to: ((struct FileLock *)(lock<<2))->fl_Task. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- "Have you hugged your U wolf today?" ...!bellcore!tness1!sugar!peter -- Disclaimer: These may be the official opinions of Hackercorp.