Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site tekecs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!mtunh!mtung!mtunf!ariel!vax135!cornell!uw-beaver!tektronix!orca!tekecs!paulsc From: paulsc@tekecs.UUCP (Paul Scherf) Newsgroups: net.unix-wizards Subject: Re: more unix ideas Message-ID: <5466@tekecs.UUCP> Date: Thu, 20-Jun-85 22:14:51 EDT Article-I.D.: tekecs.5466 Posted: Thu Jun 20 22:14:51 1985 Date-Received: Sat, 22-Jun-85 23:56:00 EDT References: <6954@ucbvax.ARPA> <5687@utzoo.UUCP> Reply-To: paulsc@radio_flyer.TEK.UUCP (Paul Scherf) Organization: Tektronix, Wilsonville OR Lines: 10 >> 1) have a swapfd system call >> Usage: swapfd(fd1,proc,fd2) >> or possibly: swapfd(proc1,fd1,proc2,fd2) >> >> what this does, is makes procs (usually another process) fd2, to become >> my fd1, and my fd1 to become (point to a file structure) of procs fd2. You might try using sockets on 4.2BSD to pass file descriptors. Paul Scherf, Tektronix, Wilsonville, Oregon, USA, tektronix!tekecs!paulsc