swrap: Wrap fopen to detect stale file descriptors.
swrap: Wrap fopen to detect stale file descriptors.

Signed-off-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@samba.org>
Reviewed-by: Stefan Metzmacher <f1988b9e977fc98ae4b41148d1c7fe6accb829c3@samba.org>

jhrozek/socket_wrapper,anoopcs9/socket_wrapper,jhrozek/socket_wrapper,anoopcs9/socket_wrapper