IDZEBRA  2.2.7
Functions
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.

Functions

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

◆ dir_cmp()

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

Definition at line 132 of file dir.c.

References dir_entry::name.

Referenced by dir_sort().

◆ dir_free()

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().

◆ dir_open()

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

◆ dir_sort()

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().

◆ zebra_file_stat()

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().