Added _h_errnop(), fixing bug #898.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19042 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-11 10:48:34 +00:00
parent 4e4c58037e
commit 598d9e8dd5
2 changed files with 14 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#include <OS.h>
#include <image.h>
#include <cstring>
#include <string.h>
bool __gR5Compatibility = false;

View File

@ -10,7 +10,9 @@
#include <SupportDefs.h>
#include <TLS.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
@ -18,6 +20,7 @@
struct net_settings;
extern "C" {
int *_h_errnop(void);
int _netstat(int fd, char **output, int verbose);
int closesocket(int socket);
char *find_net_setting(net_settings* settings, const char* heading,
@ -29,6 +32,16 @@ extern "C" {
}
int32 __gHErrnoTLS = tls_allocate();
int *
_h_errnop(void)
{
return (int *)tls_address(__gHErrnoTLS);
}
int
_netstat(int fd, char **output, int verbose)
{