Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!ukma!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.lang.perl Subject: Re: Named pipes (was Re: perl compared to other Unix tools) Message-ID: <1990Dec13.225207.22123@NCoast.ORG> Date: 13 Dec 90 22:52:07 GMT References: <110275@convex.convex.com> <110864@convex.convex.com> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.lang.perl Organization: North Coast Public Access *NIX, Cleveland, OH Lines: 34 As quoted from <110864@convex.convex.com> by tchrist@convex.COM (Tom Christiansen): +--------------- | In article fuchs@it.uka.de (Harald Fuchs) | quotes me: | :>For unrelated processes, you're going to have to use named pipes | :>or sockets. | :Named pipes? Hmm... how about adding the mknod system call to perl? | | Is there some reason why you can't use system("/etc/mknod ...")? +--------------- You've done it again, Tom. System V Release 2 and earlier had a stupid /etc/mknod that assumed that only root was permitted to run it, even though non-root is allowed to make FIFOs. (SVR2 and earlier: A/UX, AIX, 3B1 UNIX, etc.) It did *not* let mknod() fail; it did *not* have root-only modes; it complained if geteuid() was not 0. Sigh. +--------------- | "Ah," you say, "but I want to rewrite MAKEDEV in perl." Ok, then use | syscall and SYS_mknod instead then. It doesn't seem too hard to me. +--------------- Again --- show me syscall() for System V. The original message was concerned with portability. BSD-specific responses aren't portable.... ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY