sigmd 0.1.0

Windows API signature metadata
Documentation
#include <winsock2.h>

//
// There is conflicting SAL annotation for the `name` parameter
// of `gethostname` in the Windows SDK:
//
//      winsock.h       _Out_writes_bytes_to_(namelen, return) char FAR * name
//      WinSock2.h      _Out_writes_bytes_(namelen)            char FAR * name
//
// The annotation in winsock.h is buggy - it says that the length
// of the `name` buffer is equal to the return value of `gethostname`,
// which is not true.
//
// The annotation in WinSock2.h is correct, which is what we use in
// the override.
//

__OVERRIDE
WINSOCK_API_LINKAGE
int
WSAAPI
gethostname(
    _Out_writes_bytes_(namelen) char FAR * name,
    _In_ int namelen
    );