Article View: comp.arch
Article #10843UNIX fseek time (was Re: Comparison of Alpha, MIPS and PA-RISC-II wanted)
From: Conor O'Neill
Date: Thu, 24 Dec 1992 11:24
Date: Thu, 24 Dec 1992 11:24
22 lines
1591 bytes
1591 bytes
In article <fW0DHHa@quack.sac.ca.us> dfox@quack.sac.ca.us (David Fox) writes: > >>Honestly it's the definition of IO that's missing here. C/UNIX >>have standardized on NOT sequential but flat direct-access files >>for the filesystem and sequential access for pipes, some devices, >>input format for most system commands, etc. > >That's an interesting point. I am not an expert in Unix file access >but I'd guess that Unix has standardized on both sequential >and flat direct-access files, and that sequential access is just a >special case of direct access: read so many bytes sequentially from >a randomly-accessible point in a file. Or, it has standardized on >sequential file access, and that direct access is a special case, using >the fseek() library call. But, given that 'fseek' is incredibly slow on most Unix systems, one could almost assume that Unix doesn't support random-access files. --- Conor O'Neill, Software Group, INMOS Ltd., UK. UK: conor@inmos.co.uk US: conor@inmos.com "It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art".
Technical Details
Message-ID:
<1992Dec24.112422.12434@titan.inmos.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!inmos!titan.inmos.co.uk!newsReferences:
<1992Dec20.164501.291@rlgsc.com> <1992Dec21.194657.759@qb.rhein-main.de> <fW0DHHa@quack.sac.ca.us>Show Full Headers
Complete Article Headers
Newsgroups: comp.arch Path: arc1-ca.pugleaf.net!sparky!uunet!inmos!titan.inmos.co.uk!news From: conor@lion.inmos.co.uk (Conor O'Neill) Subject: UNIX fseek time (was Re: Comparison of Alpha, MIPS and PA-RISC-II wanted) Message-ID: <1992Dec24.112422.12434@titan.inmos.co.uk> Sender: news@titan.inmos.co.uk Organization: INMOS Limited, Bristol, UK References: <1992Dec20.164501.291@rlgsc.com> <1992Dec21.194657.759@qb.rhein-main.de> <fW0DHHa@quack.sac.ca.us> Date: Thu, 24 Dec 1992 11:24:22 GMT Lines: 22