[lkml]   [2003]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectGetting file offsets for open files of a process?
lsof has this option:

-o This option directs lsof to display file offset
at all times. It causes the SIZE/OFF output col­
umn title to be changed to OFFSET.

but the source contains

#define OFFTST_STAT 0 /* Linux lsof can't report offsets */

That information is not available in /proc either.

(I'm not sure if the older, non-/proc based lsof version supported this on
linux. Newest lsof has the non-/proc linux mode removed, and I can't find
the old source anymore.)

Is there any way of getting this information in linux?

I suppose Solaris and maybe some others export this information via /proc?

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

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