Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lowlevel-posix.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/wait.h>
#include "Portable.h"
+ Include dependency graph for lowlevel-posix.c:

Macros

#define _BSD_SOURCE

Functions

int execute (const char *filename, const char *argv[], const char *env[])
void fill_random (uint8_t *buffer, int len)
 fills specified buffer with random data
int get_hostname (char *hostname, int hostname_len)
 returns host name of this host
uint32_t getAAASPIfromFile ()

Macro Definition Documentation

#define _BSD_SOURCE

Function Documentation

int execute ( const char *  filename,
const char *  argv[],
const char *  env[] 
)
void fill_random ( uint8_t *  buffer,
int  len 
)

fills specified buffer with random data

Parameters
bufferrandom data will be written here
lenlength of the buffer
int get_hostname ( char *  hostname,
int  hostname_len 
)

returns host name of this host

Parameters
hostnamebuffer (hostname will be stored here)
hostname_lenlength of the buffer
Returns
LOWLEVEL_NO_ERROR if successful, appropriate LOWLEVEL_ERROR_* otherwise
uint32_t getAAASPIfromFile ( )