On Thu, 3 Jan 2008, Russell Sears wrote: > I've attached a patch that adds support for Linux's sync_file_range. I > tested it under x86_64, and added an entry for x86 since I happened to find > the syscall number in my /usr/include directory. Presumably, it's supported > on other architectures too... > > The manpage lists "off64_t" as the type for some of the parameters, but there > is no vki_off64_t type, so I used vki_off_t. Should I use vki_loff_t > instead?
If a kernel type isn't present, a vki_* version should be added. See the comment at the top of include/vki/vki-linux.h. But don't trust the man pages, they mostly describe glibc's wrappers for the syscalls. These mostly are the same as the kernel syscalls, but not always. Only trust the kernel code. Unfortunately, I can't remember where in the kernel code the syscall prototypes are defined. Nick ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Valgrind-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-developers
