Problems with pread() in 2.2.2 for HP-UX 11.00

samba-technical at thewrittenword.com samba-technical at thewrittenword.com
Tue Oct 16 21:56:24 GMT 2001


On Tue, Oct 16, 2001 at 09:47:45PM -0700, Jeremy Allison wrote:
> On Tue, Oct 16, 2001 at 11:40:54PM -0500, samba-technical at thewrittenword.com wrote:
> > HP-UX 11.00 doesn't even have a man page for pread. So, I hopped on
> > over to the IRTC support page. There I found patch PHKL_22589 and
> > noted the following in the description:
> >   PHKL_20349:
> >   ( SR: 8606110852 CR: JAGab83602 )
> >   Enhancement to add new pread(2), pwrite(2), pread64(2) and
> >   pwrite64(2) system calls.  These 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.
> > 
> > So, I loaded PHKL_22589 and now pread works. So, it's not good enough
> > to test if pread is available. We must test if it works.
> 
> Hmmmm. But pread is supposed to be a standard system call.
> 
> We can't check to see if *every* system calls works, or we'd be spending
> time supporting checking the basics on every platform....
> 
> What does everyone else think ? Are pread/pwrite exotic enough
> so that we have to test basic functionality ? Or should we just
> assume that if they're shipped with a system the should bloody
> well work (you can tell I favour the latter can't you :-) :-).

How about we just document that PHKL_20349 is necessary on HP-UX
11.00? Good enough for me.

-- 
albert chin (china at thewrittenword.com)




More information about the samba-technical mailing list