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)  

process.c File Reference
#include "config.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <signal.h>
#include <pthread.h>
#include <langinfo.h>
#include "common.h"
#include "list.h"
#include "smb_conn_proto.h"
#include "process.h"
Include dependency graph for process.c:

Go to the source code of this file.

Data Structures

struct  process_rec


#define CHARSET_LEN   64


int process_init (void)
void process_disable_new_smb_conn_starting (void)
int process_set_server_listen_timeout (int timeout)
int process_set_server_smb_timeout (int timeout)
int process_set_server_smb_debug_level (int level)
int process_set_server_local_charset (const char *charset)
int process_set_server_samba_charset (const char *charset)
int process_start_new_smb_conn (char *shmem_ptr, size_t shmem_size)
int process_is_smb_conn_alive (int fd)
void process_kill_all (void)
void process_kill_by_smb_conn_fd (int fd)
void process_cleanup_from_zombies (void)


static char process_system_charset [64] = "UTF-8"
static char process_server_local_charset [64] = "UTF-8"
static char process_server_samba_charset [64] = "UTF-8"
static int process_server_listen_timeout = 300
static int process_server_smb_timeout = 20000
static int process_server_smb_debug_level = 0
static int process_start_enabled = 1
static LIST process_list = { &( process_list ), &( process_list ) }
static pthread_mutex_t m_process = PTHREAD_MUTEX_INITIALIZER

Macro Definition Documentation


#define CHARSET_LEN   64

Definition at line 18 of file process.c.

Function Documentation

◆ process_cleanup_from_zombies()

void process_cleanup_from_zombies ( void  )

◆ process_disable_new_smb_conn_starting()

void process_disable_new_smb_conn_starting ( void  )

Definition at line 63 of file process.c.

References DPRINTF, m_process, and process_start_enabled.

Referenced by event_destroy().

◆ process_init()

int process_init ( void  )

◆ process_is_smb_conn_alive()

int process_is_smb_conn_alive ( int  fd)

◆ process_kill_all()

◆ process_kill_by_smb_conn_fd()

◆ process_set_server_listen_timeout()

int process_set_server_listen_timeout ( int  timeout)

Definition at line 70 of file process.c.

References DPRINTF, m_process, and process_server_listen_timeout.

Referenced by reconfigure_analyse_simple_option().

◆ process_set_server_local_charset()

int process_set_server_local_charset ( const char *  charset)

◆ process_set_server_samba_charset()

int process_set_server_samba_charset ( const char *  charset)

Definition at line 109 of file process.c.

References CHARSET_LEN, DPRINTF, m_process, and process_server_samba_charset.

Referenced by reconfigure_analyse_simple_option().

◆ process_set_server_smb_debug_level()

int process_set_server_smb_debug_level ( int  level)

Definition at line 88 of file process.c.

References DPRINTF, m_process, and process_server_smb_debug_level.

Referenced by reconfigure_analyse_simple_option().

◆ process_set_server_smb_timeout()

int process_set_server_smb_timeout ( int  timeout)

Definition at line 79 of file process.c.

References DPRINTF, m_process, and process_server_smb_timeout.

Referenced by reconfigure_analyse_simple_option().

◆ process_start_new_smb_conn()

Variable Documentation

◆ m_process

◆ process_list

LIST process_list = { &( process_list ), &( process_list ) }

◆ process_server_listen_timeout

int process_server_listen_timeout = 300

Definition at line 29 of file process.c.

Referenced by process_set_server_listen_timeout(), and process_start_new_smb_conn().

◆ process_server_local_charset

char process_server_local_charset[64] = "UTF-8"

◆ process_server_samba_charset

char process_server_samba_charset[64] = "UTF-8"

◆ process_server_smb_debug_level

int process_server_smb_debug_level = 0

Definition at line 31 of file process.c.

Referenced by process_set_server_smb_debug_level(), and process_start_new_smb_conn().

◆ process_server_smb_timeout

int process_server_smb_timeout = 20000

Definition at line 30 of file process.c.

Referenced by process_set_server_smb_timeout(), and process_start_new_smb_conn().

◆ process_start_enabled

int process_start_enabled = 1

Definition at line 32 of file process.c.

Referenced by process_disable_new_smb_conn_starting(), and process_start_new_smb_conn().

◆ process_system_charset

char process_system_charset[64] = "UTF-8"

Definition at line 26 of file process.c.

Referenced by process_init(), and process_set_server_local_charset().