Date: Thu, 8 Feb 2001 19:04:18 +1100 (EST) From: Stanley Hopcroft <Stanley.Hopcroft@IPAustralia.Gov.AU> To: FreeBSD-Questions@FreeBSD.ORG Cc: Carl Makin <Carl.Makin@IPAustralia.Gov.AU> Subject: Perl 5.005 in FreeBSD 4.2-STABLE (some POSIX constants missing). Message-ID: <Pine.BSF.4.21.0102081850070.373-100000@stan.aipo.gov.au>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102081850070.373-100000>