IDZEBRA  2.1.3
dir.c File Reference
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <direntz.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include "index.h"

Go to the source code of this file.


int zebra_file_stat (const char *file_name, struct stat *buf, int follow_links)
struct dir_entrydir_open (const char *rep, const char *base, int follow_links)
static int dir_cmp (const void *p1, const void *p2)
void dir_sort (struct dir_entry *e)
void dir_free (struct dir_entry **e_p)

Function Documentation

static int dir_cmp ( const void *  p1,
const void *  p2 

Definition at line 132 of file dir.c.

References dir_entry::name.

Referenced by dir_sort().

void dir_free ( struct dir_entry **  e_p)

Definition at line 146 of file dir.c.

References dir_entry::name.

Referenced by file_update_r(), and repositoryExtractR().

struct dir_entry* dir_open ( const char *  rep,
const char *  base,
int  follow_links 
void dir_sort ( struct dir_entry e)

Definition at line 138 of file dir.c.

References dir_cmp(), and dir_entry::name.

Referenced by file_update_r().

int zebra_file_stat ( const char *  file_name,
struct stat *  buf,
int  follow_links 

Definition at line 38 of file dir.c.

Referenced by dir_open(), file_update_top(), and repositoryExtract().