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)  

common.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <pthread.h>
#include <execinfo.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "common.h"
Include dependency graph for common.c:

Go to the source code of this file.

Functions

void common_init (void)
 
int common_set_smbnetfs_debug_level (int level)
 
int common_set_log_file (const char *logfile)
 
void common_debug_print (const char *fmt,...)
 
void common_print_backtrace (void)
 

Variables

int common_debug_level = 0
 
static int common_logfd [2] = {2, -1}
 
static char common_logfile [256] = ""
 
static pthread_mutex_t m_common = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ common_debug_print()

void common_debug_print ( const char *  fmt,
  ... 
)

Definition at line 63 of file common.c.

References common_logfd, and m_common.

◆ common_init()

void common_init ( void  )

Definition at line 21 of file common.c.

References common_logfd.

Referenced by main().

◆ common_print_backtrace()

void common_print_backtrace ( void  )

Definition at line 77 of file common.c.

References common_logfd.

Referenced by sig_handler().

◆ common_set_log_file()

int common_set_log_file ( const char *  logfile)

Definition at line 33 of file common.c.

References common_logfd, common_logfile, DPRINTF, and m_common.

Referenced by reconfigure_analyse_simple_option().

◆ common_set_smbnetfs_debug_level()

int common_set_smbnetfs_debug_level ( int  level)

Definition at line 26 of file common.c.

References common_debug_level, and DPRINTF.

Referenced by reconfigure_analyse_simple_option().

Variable Documentation

◆ common_debug_level

int common_debug_level = 0

Definition at line 15 of file common.c.

Referenced by common_get_smbnetfs_debug_level(), and common_set_smbnetfs_debug_level().

◆ common_logfd

int common_logfd[2] = {2, -1}
static

◆ common_logfile

char common_logfile[256] = ""
static

Definition at line 17 of file common.c.

Referenced by common_set_log_file().

◆ m_common

pthread_mutex_t m_common = PTHREAD_MUTEX_INITIALIZER
static

Definition at line 18 of file common.c.

Referenced by common_debug_print(), and common_set_log_file().