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:
@@ -12,7 +12,7 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
|
|
||||||
#include <cstring>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
bool __gR5Compatibility = false;
|
bool __gR5Compatibility = false;
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
#include <TLS.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@@ -18,6 +20,7 @@
|
|||||||
struct net_settings;
|
struct net_settings;
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
int *_h_errnop(void);
|
||||||
int _netstat(int fd, char **output, int verbose);
|
int _netstat(int fd, char **output, int verbose);
|
||||||
int closesocket(int socket);
|
int closesocket(int socket);
|
||||||
char *find_net_setting(net_settings* settings, const char* heading,
|
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
|
int
|
||||||
_netstat(int fd, char **output, int verbose)
|
_netstat(int fd, char **output, int verbose)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user