Lseek Error

P

pavunkumar

Dear Friend :

I have doubt about lseek error. Actually it will
come whenever we are using undefine memory . But I dont know it will
exactly affect the program . Can you any one explain..... ?

Thanks,,,
 
J

James Kuyper

pavunkumar said:
Dear Friend :

I have doubt about lseek error. Actually it will
come whenever we are using undefine memory . But I dont know it will
exactly affect the program . Can you any one explain..... ?

lseek() is not a C standard library function. According to the man page
on my home computer, it is
CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001.

Assuming that my man page describes the same function you're talking
about, the more appropriate place to ask about it is comp.programming.unix.

I'm not sure what you mean when you talk about "using undefined memory".
According to that man page, lseek takes three arguments, none of which
is a pointer to memory. If any of the those arguments was extracted from
memory that has not been initialized, then the behavior of your program
is undefined before it even calls lseek(). The way in which this will
"affect the program" is to make the behavior of the program completely
unpredictable.

If that is not what you're referring to when you talk about "using
undefine memory", then when you re-post this inquiry to
comp.programming.unix, you should explain more precisely what it is you
are talking about.

An lseek error will leave errno with one of the following values:
 
R

Rob Clarke

pavunkumar scribbles:
Dear Friend :

I have doubt about lseek error. Actually it will
come whenever we are using undefine memory . But I dont know it will
exactly affect the program . Can you any one explain..... ?

Thanks,,,

Errr, what? Probably the better newsgroup is comp.unix.programmer.
But reword that before posting there!

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top