src/filereader.c File Reference

#include <unistd.h>
#include <fcntl.h>
#include "rdd.h"
#include "reader.h"

Include dependency graph for filereader.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

int rdd_open_file_reader (RDD_READER **r, const char *path, int raw)
 Instantiates a reader that reads from a file.

Variables

static char copyright []


Define Documentation

#define _GNU_SOURCE

Definition at line 43 of file filereader.c.


Function Documentation

int rdd_open_file_reader ( RDD_READER **  r,
const char *  path,
int  raw 
)

Instantiates a reader that reads from a file.

Parameters:
r output value: a new reader object.
path the name of the file that the reader will read from.
raw true iff path refers to a raw-device file
Returns:
Returns RDD_OK on success.
A file reader opens a file and reads from it.

Definition at line 51 of file filereader.c.

References RDD_EOPEN, and rdd_open_fd_reader().

Here is the call graph for this function:


Variable Documentation

char copyright[] [static]

Initial value:

"@(#) Copyright (c) 2002-2004\n\
    Netherlands Forensic Institute.  All rights reserved.\n"

Definition at line 34 of file filereader.c.


Generated on Sun Feb 6 12:36:09 2011 for rdd by  doxygen 1.5.6