/home/aaron/olsrd-current/olsrd/src/win32/compat.c File Reference

#include <unistd.h>
#include <sys/time.h>
#include <ctype.h>
#include <dlfcn.h>
#include <io.h>
#include <arpa/inet.h>
#include <stdio.h>
#include "defs.h"
#include "common/string.h"
#include "os_time.h"
Include dependency graph for compat.c:

Go to the source code of this file.

Defines

#define NS_INADDRSZ   4
#define NS_IN6ADDRSZ   16
#define NS_INT16SZ   2
#define CHUNK_SIZE   512

Functions

void srandom (unsigned int Seed)
unsigned int random (void)
int getpid (void)
char * win32_strerror (unsigned int ErrNo)
void * dlopen (const char *Name, int Flags __attribute__((unused)))
int dlclose (void *Handle)
void * dlsym (void *Handle, const char *Name)
char * dlerror (void)
static int inet_pton4 (const char *src, unsigned char *dst)
static int inet_pton6 (const char *src, unsigned char *dst)
int inet_pton (int af, const char *src, void *dst)
static char * inet_ntop4 (const unsigned char *src, char *dst, int size)
static char * inet_ntop6 (const unsigned char *src, char *dst, int size)
char * inet_ntop (int af, const void *src, char *dst, int size)
int isatty (int fd)
int write (int fd, const void *buf, unsigned int count)

Variables

static unsigned int RandState

Define Documentation

#define CHUNK_SIZE   512

Definition at line 459 of file compat.c.

Referenced by write().

#define NS_IN6ADDRSZ   16

Definition at line 155 of file compat.c.

Referenced by inet_ntop6(), and inet_pton6().

#define NS_INADDRSZ   4

Definition at line 154 of file compat.c.

Referenced by inet_pton4(), and inet_pton6().

#define NS_INT16SZ   2

Definition at line 156 of file compat.c.

Referenced by inet_ntop6(), and inet_pton6().


Function Documentation

int dlclose ( void *  Handle  ) 

Definition at line 129 of file compat.c.

Referenced by olsr_internal_unload_plugin().

char* dlerror ( void   ) 

Definition at line 149 of file compat.c.

References win32_strerror().

Referenced by olsr_init_plugin(), and olsr_load_legacy_plugin().

Here is the call graph for this function:

void* dlopen ( const char *  Name,
int Flags   __attribute__(unused) 
)

Definition at line 116 of file compat.c.

Referenced by olsr_init_plugin().

void* dlsym ( void *  Handle,
const char *  Name 
)

Definition at line 136 of file compat.c.

Referenced by olsr_load_legacy_plugin().

int getpid ( void   ) 

Definition at line 88 of file compat.c.

Referenced by main().

char* inet_ntop ( int  af,
const void *  src,
char *  dst,
int  size 
)
static char* inet_ntop4 ( const unsigned char *  src,
char *  dst,
int  size 
) [static]

Definition at line 322 of file compat.c.

References strscpy().

Referenced by inet_ntop(), and inet_ntop6().

Here is the call graph for this function:

static char* inet_ntop6 ( const unsigned char *  src,
char *  dst,
int  size 
) [static]

Definition at line 334 of file compat.c.

References inet_ntop4(), NS_IN6ADDRSZ, NS_INT16SZ, and strscpy().

Referenced by inet_ntop().

Here is the call graph for this function:

int inet_pton ( int  af,
const char *  src,
void *  dst 
)
static int inet_pton4 ( const char *  src,
unsigned char *  dst 
) [static]

Definition at line 159 of file compat.c.

References NS_INADDRSZ.

Referenced by inet_pton(), and inet_pton6().

static int inet_pton6 ( const char *  src,
unsigned char *  dst 
) [static]

Definition at line 206 of file compat.c.

References inet_pton4(), NS_IN6ADDRSZ, NS_INADDRSZ, and NS_INT16SZ.

Referenced by inet_pton().

Here is the call graph for this function:

int isatty ( int  fd  ) 

Definition at line 431 of file compat.c.

Referenced by main(), and olsr_process_changes().

unsigned int random ( void   ) 

Definition at line 80 of file compat.c.

References RandState.

Referenced by add_interface(), init_msg_seqno(), olsr_init_tc(), olsr_timer_start(), and olsr_timer_walk().

void srandom ( unsigned int  Seed  ) 

Definition at line 74 of file compat.c.

References RandState.

Referenced by main().

char * win32_strerror ( unsigned int  ErrNo  ) 

Definition at line 95 of file compat.c.

References strscpy().

Referenced by dlerror(), GetIntInfo(), ListInterfaces(), os_route_add_rtentry(), os_route_del_rtentry(), and os_socket_set_nonblocking().

Here is the call graph for this function:

int write ( int  fd,
const void *  buf,
unsigned int  count 
)

Variable Documentation

unsigned int RandState [static]

Definition at line 71 of file compat.c.

Referenced by random(), and srandom().

Generated on Wed Jun 19 06:00:06 2013 for olsrd by  doxygen 1.6.3