Functions splice and vmsplice in glibc 2.5 not being declared for c progam

Bug #88091 reported by Larry Dawson
2
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/bits/fnctl.h, and are defined in the glibc library , but for some reason the declarations do not seem to be available during my compile:
(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(0,0,0,0,0,0); return 0;}' > dummy.c && gcc -Wall dummy.c

result in:
dummy.c: In function ‘main’:
dummy.c:2: warning: implicit declaration of function ‘vmsplice’

The result with splice is the same.

Revision history for this message
Larry Dawson (larry-dawson) wrote :

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'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.