[lkml]   [1999]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: lseek("/dev/hda1", 0, SEEK_END) returns 0

> > I would like to ask you if the lseek with SEEK_END and offset of 0
> > should return 0
> > when used on raw devices like hard disk or cdrom.
> Its not defined for them

Some time ago patch floated around which made SEEK_END work. I guess
it gives sense for partitions, still it is not going to be usefull on
i386 anytime soon.

I think working SEEK_END would be nice feature...

> > By example Solaris 2.5 returns the correct length of partiton but Linux
> > 2.0 returns 0.
> 2.5 doesnt - try it on an 8Gig partition...

:-( but on alpha it might be nice.
I'm really Pavel
Look at ;-).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [W:0.067 / U:10.544 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site