Wireshark mailing list archives

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


From: Jakub Zawadzki <darkjames-ws () darkjames pl>
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 () wireshark org 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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: