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: