¿ªÔÆÌåÓý

Re: gcc vm370 lseek


 

Folks,

GCC only supports the "C90" standard library. lseek() is a UNIX specific interface and is not part of the "C90" standard.
The C90 equivalent is fseek() but its very inefficient on CMS. The problem is, in generally you don't know how much space is taken by BDW and RDW.
So you end up just reading the appropriate number of bytes.
Avoid.

Dave

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of
ggs@...
Sent: 11 January 2021 18:45
To: [email protected]
Subject: Re: [h390-vm] gcc vm370 lseek

On Mon, 2021-01-11 at 09:36 -0800, Tom Chandler wrote:
I am working on some "C" code, and it appears that the gcc compiler
does not support the lseek function. Did I misread it or is there
another option.
Just being a bit pedantic, but there is nothing in the C language that specifies
any of the stdio functions (such as lseek and such). Those are part of the
standard "C" libraries and those are distinct from the compiler itself.

Typically to get lseek and friends you need to include the appropriate header
files (unistd.h on my Linux system).

So, what error are you seeing? Is there a small snippet of code that
demonstrates the problem?

TTFN - Guy






Join [email protected] to automatically receive all group messages.