[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [ID 19991230.006] open >&= works on RDONLY filehandle?



On 30 Dec 1999 23:16:23 GMT, joseph@cscaper.com wrote:
>use POSIX;
>$fd = POSIX::open("foo", O_RDONLY, 0644) or die $!;
>open FH, ">&=$fd" or die $!;
>print FH "here's something\n" or die $!;
>
>Does it make sense that this yields no errors?

This looks Solaris-specific.  The fdopen() fails properly on Linux 2.0.36
with glibc.


Sarathy
gsar@ActiveState.com

>Site configuration information for perl 5.00502:
>
>Configured by root at Thu Dec 31 02:40:42 MST 1998.
>
>Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
>  Platform:
>    osname=solaris, osvers=2.7, archname=sun4-solaris
>    uname='sunos rom 5.7 generic sun4u sparc sunw,ultrasparc-iii-engine '


Follow-Ups from:
sthoenna@efn.org (Yitzchak Scott-Thoennes)
References to:
joseph@cscaper.com

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]