Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 51169: / /trunk/epan/: app_mem_usage

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Tue, 6 Aug 2013 20:14:05 +0200
On Tue, Aug 06, 2013 at 10:59:42AM -0700, Guy Harris wrote:
> 
> On Aug 6, 2013, at 9:38 AM, darkjames@xxxxxxxxxxxxx wrote:
> 
> > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51169
> > 
> > User: darkjames
> > Date: 2013/08/06 09:38 AM
> > 
> > Log:
> > app_mem_usage fixes:
> > 
> > - Add missing feature test macro for pread()
> 
> Do all versions of the Linux kernel and of glibc have pread()?

Probably, from man:

The  pread()  and  pwrite() system calls were added to Linux in version 2.1.60
(...) C library support (including emulation using lseek(2) on older
kernels without the system calls) was added in glibc 2.1

glibc 2.1 was released about 1999

> If not, would an lseek() followed by a read() do just as well?

Sure.