also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
9 lines
165 B
C
9 lines
165 B
C
#define _GNU_SOURCE
|
|
#include <stdio.h>
|
|
#include <netdb.h>
|
|
|
|
void herror(const char *msg)
|
|
{
|
|
fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno));
|
|
}
|