This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mip64el, RHEL6, sendfile64 not implemented


On Thu, Nov 15, 2012 at 2:31 AM,  <yili0568@gmail.com> wrote:
> Hello, everyone, when I compile the file used sendfile64 in mips64el,
> gcc reported that warning: sendfile64 is not implemented.
> Are the 3 files "sysdeps/unix/sysv/linux/syscalls.list
> ports/sysdeps/unix/sysv/linux/mips/mips64/syscalls.list
> ports/sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
> " the template of syscalls?

Yes, and no.

They are the descriptions of the system calls that are simple
enough to be handled in an automated fashion.

The actual template is in sysdeps/unix/make-syscalls.sh.

> What the relationship of the 3 files. And I found sendfile64 in the
> file sysdeps/unix/sysv/linux/syscalls.list. But why gcc report
> that warning?

The build system, depending on certain variables, scans all
of the syscalls.list files for your machine, and uses them to
build syscall wrappers using make-syscalls.sh. This is only for
syscalls that are simple enough to be thin wrappers around
the kernel syscall.

I don't know why gcc reports the warning, you haven't provided
enough context.

> How could I fix the bug? Implemented sendifle64 in
> ports/sysdeps/unix/sysv/linux/mips/mips64/n64/?

I don't even know if there is a bug.

No, you don't need to implement sendfile64, it's already defined
in one of the syscalls.list.

I would have expected MIPS64 to be using:
sysdeps/unix/sysv/linux/wordsize-64/syscalls.list

There is no "sendfile" syscall in MIPS64, it's *always* sendfile64,
the two are equivalent on a MIPS64.

> my kernel is 2.6.36, if I use mips assembly language to call
> sysendfile64, the program works well.

What glibc source are you compiling? Are you compiling from git master?

How did you configure glibc i.e. what options did you pass when you
ran configure?

Exactly what error are you getting? Please provide several lines from
your build log.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]