Operating System - HP-UX
1834118 Members
2660 Online
110064 Solutions
New Discussion

Does HP-UX have pread & pwrite function?

 
SOLVED
Go to solution
Sachin Patel
Honored Contributor

Does HP-UX have pread & pwrite function?

I have read in book that unix has two new parallel i/o functions pread and pwrite. does this available on HPUX.

Thanks
Sachin
Is photography a hobby or another way to spend $
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: Does HP-UX have pread & pwrite function?

Hi:

See document #3100122518:

These system calls came with patch PHKL_20349.

SYNOPSIS
#include

ssize_t read(int fildes, void *buf, size_t nbyte, long offset);

DESCRIPTION
The pread(2), pwrite(2), pread64(2) and pwrite64(2) system calls perform the same action as read(2) and write(2) except that they
read/write from a given position in the file (specified in the fourth argument) without changing the file pointer.

Note: Install patch PHCO_20765 if it is necessary to have access to the essential libraries and include files.

...JRF...