The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
misc.c File Reference
#include "includes.h"
#include <dirent.h>
#include <sys/wait.h>
#include "common.h"
Include dependency graph for misc.c:

Functions

char xor_int (int i)
 
void swap_array (int nmemb, size_t nmemb_sz, void *src, void *dst)
 
void swap_ints (int nmemb, unsigned int *x, unsigned int *y)
 
void swap_shorts (int nmemb, unsigned short *x, unsigned short *y)
 
int rand_range (int _min, int _max)
 
void xsrand (void)
 
char * last_token (char *string, char tok)
 
void strip_char (char *string, char char_to_strip)
 
char ** split_string (char *str, const char *div_str, int *substrings, int max_substrings, int max_substring_sz)
 
int find_int (int x, int *ia, int nmemb)
 
void xtimer (u_int secs, u_int steps, int *counter)
 
int check_and_create_dir (char *dir)
 
int file_exist (char *filename)
 
int exec_root_script (char *script, char *argv)
 
void do_nothing (void)
 

Function Documentation

int check_and_create_dir ( char *  dir)

Here is the call graph for this function:

Here is the caller graph for this function:

void do_nothing ( void  )

Here is the caller graph for this function:

int exec_root_script ( char *  script,
char *  argv 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int file_exist ( char *  filename)

Here is the caller graph for this function:

int find_int ( int  x,
int *  ia,
int  nmemb 
)

Here is the caller graph for this function:

char* last_token ( char *  string,
char  tok 
)

Here is the caller graph for this function:

int rand_range ( int  _min,
int  _max 
)
inline

Here is the caller graph for this function:

char** split_string ( char *  str,
const char *  div_str,
int *  substrings,
int  max_substrings,
int  max_substring_sz 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void strip_char ( char *  string,
char  char_to_strip 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void swap_array ( int  nmemb,
size_t  nmemb_sz,
void *  src,
void *  dst 
)

Here is the caller graph for this function:

void swap_ints ( int  nmemb,
unsigned int *  x,
unsigned int *  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void swap_shorts ( int  nmemb,
unsigned short *  x,
unsigned short *  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char xor_int ( int  i)

Here is the caller graph for this function:

void xsrand ( void  )

Here is the caller graph for this function:

void xtimer ( u_int  secs,
u_int  steps,
int *  counter 
)

Here is the caller graph for this function: