From owner-freebsd-questions Wed Feb 7 23:59:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pericles.IPAustralia.gov.au (pericles.IPAustralia.gov.au [202.14.186.30]) by hub.freebsd.org (Postfix) with ESMTP id A55B637B401 for ; Wed, 7 Feb 2001 23:59:24 -0800 (PST) Received: (from smap@localhost) by pericles.IPAustralia.gov.au (8.11.1/8.11.1) id f187xKt20484; Thu, 8 Feb 2001 18:59:20 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: from wf-155.aipo.gov.au(192.168.1.155) by pericles.IPAustralia.gov.au via smap (V2.0) id xma020482; Thu, 8 Feb 01 18:59:14 +1100 Received: from localhost (anwsmh@localhost) by stan.aipo.gov.au (8.11.1/8.11.1) with ESMTP id f1884IH00533; Thu, 8 Feb 2001 19:04:19 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) X-Authentication-Warning: stan.aipo.gov.au: anwsmh owned process doing -bs Date: Thu, 8 Feb 2001 19:04:18 +1100 (EST) From: Stanley Hopcroft X-Sender: anwsmh@stan.aipo.gov.au To: FreeBSD-Questions@FreeBSD.ORG Cc: Carl Makin Subject: Perl 5.005 in FreeBSD 4.2-STABLE (some POSIX constants missing). Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear Ladies and Gentlemen, I am writing to ask your help explain why some of the POSIX constants seem to be missing from the FreeBSD 4.2-STABLE implementation. My Perl script reads interleaves data (from different writing processes, each writing less than 512 bytes/write to the one pipe) when it reads from a named pipe (/var/tmp/fifo made with mkfifo)). When I went to check the value of _POSIX_PIPE_BUFF I see (perl -de 1) DB<17> use POSIX DB<18> print STDOUT _POSIX_NAME_MAX, "\n" 14 DB<19> print STDOUT _POSIX_PIPE_BUFF, "\n" _POSIX_PIPE_BUFF DB<20> print STDOUT ARG_MAX, "\n" 65536 DB<21> print STDOUT PIPE_BUFF, "\n" PIPE_BUFF DB<22> q > uname -a FreeBSD stan.aipo.gov.au 4.2-20010110-STABLE FreeBSD 4.2-20010110-STABLE #5: Mon Jan 15 21:51:07 EST 2001 root@stan.aipo.gov.au:/usr/src/sys/compile/STAN i386 > perl -v This is perl, version 5.005_03 built for i386-freebsd Copyright 1987-1999, Larry Wall This doesn't seem to be what "Programming Perl" 2nd edition (ORA, L Wall et al p487) document, or what is illustrated in "Perl Cookbokk" (ORA, Christiansen and Torkingtion). Is there anything wrong with the FreeBSD named pipe implementation , or with the FreeBSD perl interface to them ? (Probably not, because when I restrict the amount of data/write to about 233 bytes there is still interleaving, ie one writes data is mixed with anothers). Thank you, Yours sincerely. S Hopcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message