[PATCH] Fix posix_fadvise for x86 and arm

Khem Raj kraj at mvista.com
Sat Mar 3 09:18:38 UTC 2007


Hi

Attached patch corrects the posix_fadvise and posix_fadvise64 return 
values as mentioned in
http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html

Currently it was always return -1 on failure which was incorrect

Second part of patch implements posix_fadvise and posix_fadvise64 for 
arm. I also considered the patch David
posted here.

http://uclibc.org/lists/uclibc/2007-February/017441.html

It has to be modified to return correct values on failure and also 
instead of modifying common
implementation the arm needs a special implementation therefore put it 
in arm specific arch directory

I have tested the patch on x86 and arm.

OK?

-- 
Khem Raj <kraj at mvista.com>
MontaVista Software Inc.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uclibc-posix-fadvise.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20070303/4ef8a0d2/attachment.diff 


More information about the uClibc mailing list