uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mkromfs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <dirent.h>
#include <string.h>

Go to the source code of this file.

Macros

#define hash_init   5381
 

Functions

uint32_t hash_djb2 (const uint8_t *str, uint32_t hash)
 
void usage (const char *binname)
 
void processdir (DIR *dirp, const char *curpath, FILE *outfile, const char *prefix)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define hash_init   5381

Definition at line 11 of file mkromfs.c.

Function Documentation

uint32_t hash_djb2 ( const uint8_t *  str,
uint32_t  hash 
)

Definition at line 13 of file mkromfs.c.

int main ( int  argc,
char **  argv 
)

Definition at line 84 of file mkromfs.c.

void processdir ( DIR *  dirp,
const char *  curpath,
FILE outfile,
const char *  prefix 
)

Definition at line 27 of file mkromfs.c.

void usage ( const char *  binname)

Definition at line 22 of file mkromfs.c.