[klibc] fopencookie: Add an implementation of fopencookie()

fopencookie() is a glibc extension which allows the stdio framework to
be used with a user-defined backend.  The entire implementation is 172
bytes long on x86-64.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
10 files changed