The lightweight storage library |
#include <inttypes.h>
#include <osl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <sys/mman.h>
#include <fcntl.h>
Go to the source code of this file.
Enumerations | |
enum | osltar_columns { OTC_NAME, OTC_DATA, NUM_OT_COLUMNS } |
Functions | |
__static__ int | string_compare (const struct osl_object *obj1, const struct osl_object *obj2) |
int | main (int argc, char **argv) |
A simple file archiver with many limitations. Do not use it. It is just an * example to illustrate programming with libosl.
Definition in file osltar.c.
enum osltar_columns |
The columns of the osl table.
Enumerator | |
---|---|
OTC_NAME |
File name. |
OTC_DATA |
File content. |
NUM_OT_COLUMNS |
two. |
int main | ( | int | argc, |
char ** | argv | ||
) |
__static__ int string_compare | ( | const struct osl_object * | obj1, |
const struct osl_object * | obj2 | ||
) |
Compare two osl objects of string type.
obj1 | Pointer to the first object. |
obj2 | Pointer to the second object. |
Definition at line 56 of file osltar.c.
References osl_object::data, osl_table_description::dir, osl_table_description::name, NUM_OT_COLUMNS, osl_add_row(), osl_close_table(), osl_create_table(), osl_get_object(), osl_get_row(), OSL_MAPPED_STORAGE, OSL_MARK_CLEAN, osl_open_table(), OSL_RBTREE, osl_rbtree_loop(), osl_strerror(), OSL_UNIQUE, OTC_DATA, OTC_NAME, osl_object::size, and osl_column_description::storage_type.