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)  

charset.c File Reference
#include "config.h"
#include <errno.h>
#include <iconv.h>
#include <string.h>
#include "charset.h"
Include dependency graph for charset.c:

Go to the source code of this file.

Functions

int charset_init (const char *local, const char *samba)
 
static char * charset_samba_to_local (iconv_t cd, const char *str, size_t str_len, char *buf, size_t buf_len)
 
static char * charset_local_to_samba (iconv_t cd, const char *str, size_t str_len, char *buf, size_t buf_len)
 
char * charset_local2smb_r (const char *src, char *dst, size_t dst_len)
 
char * charset_smb2local_r (const char *src, char *dst, size_t dst_len)
 
char * charset_local2smb (const char *src)
 
char * charset_smb2local (const char *src)
 

Variables

static char charset_buf [2048]
 
static char charset_hex_digit [] = "0123456789ABCDEF"
 
static iconv_t charset_local2samba = (iconv_t) (-1)
 
static iconv_t charset_samba2local = (iconv_t) (-1)
 

Function Documentation

◆ charset_init()

int charset_init ( const char *  local,
const char *  samba 
)

Definition at line 14 of file charset.c.

References charset_local2samba, and charset_samba2local.

Referenced by smb_conn_srv_listen().

◆ charset_local2smb()

◆ charset_local2smb_r()

char* charset_local2smb_r ( const char *  src,
char *  dst,
size_t  dst_len 
)

Definition at line 120 of file charset.c.

References charset_local2samba, and charset_local_to_samba().

Referenced by charset_local2smb().

◆ charset_local_to_samba()

static char* charset_local_to_samba ( iconv_t  cd,
const char *  str,
size_t  str_len,
char *  buf,
size_t  buf_len 
)
static

Definition at line 86 of file charset.c.

Referenced by charset_local2smb_r().

◆ charset_samba_to_local()

static char* charset_samba_to_local ( iconv_t  cd,
const char *  str,
size_t  str_len,
char *  buf,
size_t  buf_len 
)
static

Definition at line 27 of file charset.c.

References charset_hex_digit.

Referenced by charset_smb2local_r().

◆ charset_smb2local()

char* charset_smb2local ( const char *  src)

Definition at line 151 of file charset.c.

References charset_buf, and charset_smb2local_r().

Referenced by smb_conn_srv_readdir().

◆ charset_smb2local_r()

char* charset_smb2local_r ( const char *  src,
char *  dst,
size_t  dst_len 
)

Definition at line 134 of file charset.c.

References charset_samba2local, and charset_samba_to_local().

Referenced by charset_smb2local(), and smb_conn_srv_auth_fn().

Variable Documentation

◆ charset_buf

char charset_buf[2048]
static

Definition at line 7 of file charset.c.

Referenced by charset_local2smb(), charset_smb2local(), and smb_conn_srv_auth_fn().

◆ charset_hex_digit

char charset_hex_digit[] = "0123456789ABCDEF"
static

Definition at line 9 of file charset.c.

Referenced by charset_samba_to_local().

◆ charset_local2samba

iconv_t charset_local2samba = (iconv_t) (-1)
static

Definition at line 10 of file charset.c.

Referenced by charset_init(), and charset_local2smb_r().

◆ charset_samba2local

iconv_t charset_samba2local = (iconv_t) (-1)
static

Definition at line 11 of file charset.c.

Referenced by charset_init(), and charset_smb2local_r().