ntar_int.h File Reference

#include "ntar.h"
#include "ntar_debug.h"
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <fcntl.h>

Go to the source code of this file.

Defines

#define stricmp   strcasecmp
#define NTAR_POS_NOT_DEFINED   ((ntar_foff)(-1))
 The position of a block/section is not defined.
#define NTAR_BEGINNING_OF_FILE   ((ntar_foff)0)
 The position of a block/section is at the beginning of the file (i.e. offset 0).

Typedefs

typedef struct struct struct
_ntar_read_iterator 
ntar_read_iterator
 This structure is used to maintain the offset of previous, current and next section or block in a file opened in read mode.

Functions

int reallocate_memory (void **buffer, size_t *buffer_size, size_t new_size)
 This fcn reallocates a given buffer if it's too small.
int ntar_convert_errno (int local_errno)
 This fcn converts an errno value to the corresponding ntar error code.
int ntar_native_file_write (void *handle, void *buffer, size_t size)
int ntar_native_file_read (void *handle, void *buffer, size_t size, size_t *read_bytes)
int ntar_native_file_seek (void *handle, ntar_foff new_position, int origin, ntar_foff *old_position)
int ntar_native_file_close (ntar_file_handlers file_handlers)
int ntar_native_file_open (char *filename, char *flags, ntar_file_handlers *file_handlers)


Define Documentation

#define NTAR_BEGINNING_OF_FILE   ((ntar_foff)0)
 

The position of a block/section is at the beginning of the file (i.e. offset 0).

#define NTAR_POS_NOT_DEFINED   ((ntar_foff)(-1))
 

The position of a block/section is not defined.

#define stricmp   strcasecmp
 


Typedef Documentation

typedef struct struct struct struct _ntar_read_iterator ntar_read_iterator
 

This structure is used to maintain the offset of previous, current and next section or block in a file opened in read mode.


NTAR documentation. Copyright (c) 2004 - 2005 Condor Engineering, Inc. All rights reserved.