Article View: uk.comp.os.linux
Article #607Sysread/seek on Linux
From: Robert Inder
Date: Mon, 11 Oct 1999 00:00
Date: Mon, 11 Oct 1999 00:00
36 lines
1974 bytes
1974 bytes
I have been trying to port a Perl application that works on
Solaris and FreeBSD onto Linux (redhat 5.2).
The application uses sysread/syswrite and seek, and basically, it seems
that these things do not work: I can seek once and sysread or syswrite, but
thereafter &tell() aways returns 0, and seeks appear to have no effect.
Read and Print, on the other hand, behave correctly.
I have found a comment from somebody simply stating in passing that
sysread/syswrite are unusable in Perl on Linux, but I haven't been able to
find anything more specific.
What is the situation?
Is Linux Perl really fundamentally broken?
Or is there just something wrong with the 5.004 build that Red Hat supply
(both 5.004m4 and 5.004m7)
Should I be trying to re-write my application, or build Perl from scratch,
or what?
Can anyone shed any light?
Robert.
--
_ --------------------------------------------------------------------------
|_)obert Inder, (http://www.hcrc.ed.ac.uk/~robert/)
| \ Research Fellow, HCRC, (http://www.hcrc.ed.ac.uk/)
University of Edinburgh, 2, Buccleuch Place, Edinburgh EH8 9LW SCOTLAND
------------------------------------------------------------------------------
Best Viewed in Ebriated.
Technical Details
Message-ID:
<f51n1tpamof.fsf@cogsci.ed.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d8ad,e66fc27742978826,start X-Google-Attributes: gid10d8ad,public X-Google-Thread: 1107b1,e66fc27742978826,start X-Google-Attributes: gid1107b1,public From: Robert Inder <robert@cogsci.ed.ac.uk> Subject: Sysread/seek on Linux Date: 1999/10/11 Message-ID: <f51n1tpamof.fsf@cogsci.ed.ac.uk> X-Deja-AN: 535437866 X-Complaints-To: usenet@cogsci.ed.ac.uk X-Trace: pc-news.cogsci.ed.ac.uk 939659302 52491 129.215.110.29 (11 Oct 1999 16:28:22 GMT) Organization: Division of Informatics, University of Edinburgh NNTP-Posting-Date: 11 Oct 1999 16:28:22 GMT Newsgroups: uk.comp.os.linux,ed.linux