]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Add funopen() function
authorGuillem Jover <guillem@hadrons.org>
Mon, 21 Oct 2013 03:07:56 +0000 (05:07 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 21 Oct 2013 03:35:44 +0000 (05:35 +0200)
commitf41fdcf186abbe26b11ba10fb3d4d0c1f109501e
tree37360497802bbb330e969559e9323f722d423dfa
parent86cbff385a756f428091441674a5867603b1c910
Add funopen() function

This is a wrapper over the glibc fopencookie() function.

We diverge from the FreeBSD, OpenBSD and DragonFlyBSD declarations,
because seekfn() there wrongly uses fpos_t, assuming it's an integral
type, and any code using that on a system where fpos_t is a struct
(such as GNU-based systems or NetBSD) will fail to build. In which case,
as the code has to be modified anyway, we might just as well use the
correct declaration.
configure.ac
include/bsd/stdio.h
man/Makefile.am
man/funopen.3 [new file with mode: 0644]
src/Makefile.am
src/funopen.c [new file with mode: 0644]
src/libbsd.map
test/.gitignore
test/Makefile.am
test/funopen.c [new file with mode: 0644]