smbnetfs  0.6.3
About: SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft network in the same manner as the network neighborhood in Microsoft Windows.
  Fossies Dox: smbnetfs-0.6.3.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stat_workaround.c File Reference
#include "config.h"
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "list.h"
#include "common.h"
#include "smbitem.h"
#include "stat_workaround.h"
Include dependency graph for stat_workaround.c:

Go to the source code of this file.

Data Structures

struct  stat_workaround_predefined
 
struct  stat_workaround
 
struct  stat_workaround_exception
 

Functions

int stat_workaround_enable_default_entries (int new_status)
 
int stat_workaround_set_default_depth (int depth)
 
static int stat_workaround_add_name_internal (const char *name, int case_sensitive, int depth)
 
int stat_workaround_add_name (const char *name, int case_sensitive, int depth)
 
static int stat_workaround_add_exception_internal_low (const char *path, size_t len, int depth)
 
static int stat_workaround_add_exception_internal (const char *path)
 
int stat_workaround_add_exception (const char *path)
 
void stat_workaround_add_default_entries (void)
 
void stat_workaround_delete_obsolete (time_t threshold)
 
static int stat_workaround_check_path (const char *path, int min_depth)
 
int stat_workaround_is_name_ignored (const char *path)
 

Variables

static struct stat_workaround_predefined stat_workaround_predefined_list []
 
static int stat_workaround_default_entries = 1
 
static int stat_workaround_default_depth = 3
 
static LIST stat_workaround_list = { &( stat_workaround_list ), &( stat_workaround_list ) }
 
static LIST stat_workaround_exception_list = { &( stat_workaround_exception_list ), &( stat_workaround_exception_list ) }
 
static pthread_mutex_t m_stat_workaround = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ stat_workaround_add_default_entries()

◆ stat_workaround_add_exception()

int stat_workaround_add_exception ( const char *  path)

◆ stat_workaround_add_exception_internal()

◆ stat_workaround_add_exception_internal_low()

static int stat_workaround_add_exception_internal_low ( const char *  path,
size_t  len,
int  depth 
)
static

◆ stat_workaround_add_name()

int stat_workaround_add_name ( const char *  name,
int  case_sensitive,
int  depth 
)

◆ stat_workaround_add_name_internal()

◆ stat_workaround_check_path()

static int stat_workaround_check_path ( const char *  path,
int  min_depth 
)
static

◆ stat_workaround_delete_obsolete()

◆ stat_workaround_enable_default_entries()

int stat_workaround_enable_default_entries ( int  new_status)

◆ stat_workaround_is_name_ignored()

◆ stat_workaround_set_default_depth()

int stat_workaround_set_default_depth ( int  depth)

Variable Documentation

◆ m_stat_workaround

◆ stat_workaround_default_depth

int stat_workaround_default_depth = 3
static

◆ stat_workaround_default_entries

int stat_workaround_default_entries = 1
static

◆ stat_workaround_exception_list

LIST stat_workaround_exception_list = { &( stat_workaround_exception_list ), &( stat_workaround_exception_list ) }
static

◆ stat_workaround_list

LIST stat_workaround_list = { &( stat_workaround_list ), &( stat_workaround_list ) }
static

◆ stat_workaround_predefined_list

struct stat_workaround_predefined stat_workaround_predefined_list[]
static
Initial value:
= {
{ 1, 3, ".directory" },
{ 1, 3, ".git" },
{ 1, 3, "HEAD" },
{ 0, 3, "desktop.ini" },
{ 1, 1, "autorun.inf" },
{ 1, 1, ".xdg-volume-info" },
{ 0, 0, NULL }
}

Definition at line 1 of file stat_workaround.c.

Referenced by stat_workaround_add_default_entries().