Path: utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!nic.MR.NET!umn-cs!randy From: randy@umn-cs.cs.umn.edu (Randy Orrison) Newsgroups: comp.unix.wizards Subject: Portable Message Queues Message-ID: <7317@umn-cs.cs.umn.edu> Date: 7 Sep 88 16:25:06 GMT Reply-To: randy@umn-cs.UUCP (Randy Orrison) Organization: Control Data, Arden Hills, Minnesota Lines: 26 For the application I'm working on, I would like to be able to use System V message queues, however, I have reason to believe that they are somewhat less than universally available. Since a major goal in this project is for it to be portable, I need to find a similar, but more portable, mechanism. I expect that the best I can do will be just writing messages to a file and using some form of file locking to ensure that the file doesn't get mangled. Is there a portable way of achieving file locking under all versions of Unix? I believe that using open(...O_CREAT|O_EXCL) on a lock file is the best there is. Is this always true, and is there nothing better? Please e-mail if the answer is non-trivial, simple, and obvious. Please post if you think others may be interested. (What does POSIX say?) Thanks in advance... -randy -- Randy Orrison, Chemical Computer Thinking Battery -- randy@cctb.mn.org randy@ux.acss.umn.edu {bungia, uunet!hi-csc, rutgers, sun}!umn-cs!randy "Good morning. Welcome to reality. I'm afraid all our guides are busy this millenium, so you'll have to take the self-guided tour."