Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
gen_init_cpio.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>

Go to the source code of this file.

Data Structures

struct  file_handler
 
struct  generic_type
 

Macros

#define xstr(s)   #s
 
#define str(s)   xstr(s)
 
#define LINE_SIZE   (2 * PATH_MAX + 50)
 

Enumerations

enum  generic_types { GT_DIR, GT_PIPE, GT_SOCK }
 

Functions

int main (int argc, char *argv[])
 

Variables

struct file_handler file_handler_table []
 

Macro Definition Documentation

#define LINE_SIZE   (2 * PATH_MAX + 50)

Definition at line 528 of file gen_init_cpio.c.

#define str (   s)    xstr(s)

Definition at line 21 of file gen_init_cpio.c.

#define xstr (   s)    #s

Definition at line 20 of file gen_init_cpio.c.

Enumeration Type Documentation

Enumerator:
GT_DIR 
GT_PIPE 
GT_SOCK 

Definition at line 179 of file gen_init_cpio.c.

Function Documentation

int main ( int  argc,
char argv[] 
)

Definition at line 530 of file gen_init_cpio.c.

Variable Documentation

struct file_handler file_handler_table[]
Initial value:
= {
{
.type = "file",
.handler = cpio_mkfile_line,
}, {
.type = "nod",
.handler = cpio_mknod_line,
}, {
.type = "dir",
.handler = cpio_mkdir_line,
}, {
.type = "slink",
.handler = cpio_mkslink_line,
}, {
.type = "pipe",
.handler = cpio_mkpipe_line,
}, {
.type = "sock",
.handler = cpio_mksock_line,
}, {
.type = NULL,
.handler = NULL,
}
}

Definition at line 503 of file gen_init_cpio.c.