Functions splice and vmsplice in glibc 2.5 not being declared for c progam
Bug #88091 reported by
Larry Dawson
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Larry Dawson |
Bug Description
Feisty Fawn appears to almost support splice and vmsplice - the functions are in declared /usr/include/
(splice and vmsplice are new functions added in linux kernel 2.6.17, and supported by glibc 2.5)
echo '#include <fcntl.h>
int main(){ vmsplice(
result in:
dummy.c: In function ‘main’:
dummy.c:2: warning: implicit declaration of function ‘vmsplice’
The result with splice is the same.
To post a comment you must log in.
I had a little more time to explore this, and it turns out that the splice and vmsplice features are included only if the symbol _GNU_SOURCE is defined - in which case they compile correctly without the warning. That seems like a philosophical issue, so I think I should just withdraw the bug and file it under 'user misunderstanding'