Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!bellcore!faline!ulysses!sfmag!sfsup!mpl From: mpl@sfsup.UUCP (M.P.Lindner) Newsgroups: comp.unix.questions Subject: Re: Three-way write Message-ID: <2241@sfsup.UUCP> Date: Wed, 21-Oct-87 18:06:46 EDT Article-I.D.: sfsup.2241 Posted: Wed Oct 21 18:06:46 1987 Date-Received: Sat, 24-Oct-87 16:42:07 EDT References: <3154@uwmcsd1.UUCP> <15100001@bucc2> <273@ddsw1.UUCP> Organization: AT&T-IS, Summit N.J. USA Lines: 22 Summary: ever hear of ttys? In article <273@ddsw1.UUCP>, karl@ddsw1.UUCP writes: > In article <15100001@bucc2> brian@bucc2.UUCP writes: > >> I'm looking for C source code to a three (or more) way write program. > >> Does something like this exist?? > > I am currently writing such a program. It will only run on SysV, though, > >since I am using shared memory. > > I've posted a up-to 15 user chat program for System III and later (it uses > named pipes) to alt.sources a while ago. It's written for System V, and > would have to be hacked for other systems, but should be pretty close... Has anyone ever considered writing a "write" program that writes to ttys? Amazingly enough, this is how the two way "write" program does it, and guess what? It's portable! I know there are certain drawbacks, like each user must know all the other users in the conversation, but guess what? It's portable. Sorry to sound facetious, but I'm sick of porting little programs like "this does a cat backwards, and uses semaphores." Peace. Mike Lindner attunix!mpl