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)  

smb_conn_srv.c File Reference
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <iconv.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <libsmbclient.h>
#include "charset.h"
#include "smb_conn_proto.h"
#include "smb_conn_srv.h"
Include dependency graph for smb_conn_srv.c:

Go to the source code of this file.

Functions

void smb_conn_srv_debug_print (struct smb_conn_srv_ctx *ctx, enum smb_conn_cmd msg_type, int errno_value, int level, int no_fallback, const char *fmt,...)
 
static void smb_conn_srv_auth_fn (SMBCCTX *ctx, const char *server, const char *share, char *wrkgrp, int wrkgrplen, char *user, int userlen, char *passwd, int passwdlen)
 
static void smb_conn_srv_samba_init (struct smb_conn_srv_ctx *srv_ctx)
 
void smb_conn_srv_listen (struct smb_conn_srv_ctx *ctx)
 
void smb_conn_srv_send_reply (struct smb_conn_srv_ctx *ctx, enum smb_conn_cmd reply_cmd, int errno_value, void *reply, size_t reply_len)
 
int smb_conn_srv_send_msg (struct smb_conn_srv_ctx *ctx, enum smb_conn_cmd msg_type, int errno_value, int level, const char *msg)
 
void smb_conn_srv_open (struct smb_conn_srv_ctx *ctx, struct smb_conn_open_query *query, size_t query_len)
 
void smb_conn_srv_creat (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_mode_query *query, size_t query_len)
 
void smb_conn_srv_read (struct smb_conn_srv_ctx *ctx, struct smb_conn_rw_query *query, size_t query_len)
 
void smb_conn_srv_write (struct smb_conn_srv_ctx *ctx, struct smb_conn_rw_query *query, size_t query_len)
 
void smb_conn_srv_close (struct smb_conn_srv_ctx *ctx, struct smb_conn_fd_query *query, size_t query_len)
 
void smb_conn_srv_unlink (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_query *query, size_t query_len)
 
void smb_conn_srv_rename (struct smb_conn_srv_ctx *ctx, struct smb_conn_rename_query *query, size_t query_len)
 
void smb_conn_srv_opendir (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_query *query, size_t query_len)
 
void smb_conn_srv_closedir (struct smb_conn_srv_ctx *ctx, struct smb_conn_fd_query *query, size_t query_len)
 
void smb_conn_srv_readdir (struct smb_conn_srv_ctx *ctx, struct smb_conn_rw_query *query, size_t query_len)
 
void smb_conn_srv_mkdir (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_mode_query *query, size_t query_len)
 
void smb_conn_srv_rmdir (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_query *query, size_t query_len)
 
void smb_conn_srv_stat (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_query *query, size_t query_len)
 
void smb_conn_srv_fstat (struct smb_conn_srv_ctx *ctx, struct smb_conn_fd_query *query, size_t query_len)
 
void smb_conn_srv_ftruncate (struct smb_conn_srv_ctx *ctx, struct smb_conn_ftruncate_query *query, size_t query_len)
 
void smb_conn_srv_chmod (struct smb_conn_srv_ctx *ctx, struct smb_conn_url_mode_query *query, size_t query_len)
 
void smb_conn_srv_utimes (struct smb_conn_srv_ctx *ctx, struct smb_conn_utimes_query *query, size_t query_len)
 
void smb_conn_srv_setxattr (struct smb_conn_srv_ctx *ctx, struct smb_conn_setxattr_query *query, size_t query_len)
 
void smb_conn_srv_getxattr (struct smb_conn_srv_ctx *ctx, struct smb_conn_getxattr_query *query, size_t query_len)
 
void smb_conn_srv_listxattr (struct smb_conn_srv_ctx *ctx, struct smb_conn_listxattr_query *query, size_t query_len)
 
void smb_conn_srv_removexattr (struct smb_conn_srv_ctx *ctx, struct smb_conn_removexattr_query *query, size_t query_len)
 

Function Documentation

◆ smb_conn_srv_auth_fn()

◆ smb_conn_srv_chmod()

void smb_conn_srv_chmod ( struct smb_conn_srv_ctx ctx,
struct smb_conn_url_mode_query query,
size_t  query_len 
)

◆ smb_conn_srv_close()

void smb_conn_srv_close ( struct smb_conn_srv_ctx ctx,
struct smb_conn_fd_query query,
size_t  query_len 
)

◆ smb_conn_srv_closedir()

void smb_conn_srv_closedir ( struct smb_conn_srv_ctx ctx,
struct smb_conn_fd_query query,
size_t  query_len 
)

◆ smb_conn_srv_creat()

◆ smb_conn_srv_debug_print()

void smb_conn_srv_debug_print ( struct smb_conn_srv_ctx ctx,
enum smb_conn_cmd  msg_type,
int  errno_value,
int  level,
int  no_fallback,
const char *  fmt,
  ... 
)

◆ smb_conn_srv_fstat()

void smb_conn_srv_fstat ( struct smb_conn_srv_ctx ctx,
struct smb_conn_fd_query query,
size_t  query_len 
)

◆ smb_conn_srv_ftruncate()

◆ smb_conn_srv_getxattr()

◆ smb_conn_srv_listen()

◆ smb_conn_srv_listxattr()

◆ smb_conn_srv_mkdir()

void smb_conn_srv_mkdir ( struct smb_conn_srv_ctx ctx,
struct smb_conn_url_mode_query query,
size_t  query_len 
)

◆ smb_conn_srv_open()

◆ smb_conn_srv_opendir()

◆ smb_conn_srv_read()

◆ smb_conn_srv_readdir()

◆ smb_conn_srv_removexattr()

◆ smb_conn_srv_rename()

void smb_conn_srv_rename ( struct smb_conn_srv_ctx ctx,
struct smb_conn_rename_query query,
size_t  query_len 
)

◆ smb_conn_srv_rmdir()

void smb_conn_srv_rmdir ( struct smb_conn_srv_ctx ctx,
struct smb_conn_url_query query,
size_t  query_len 
)

◆ smb_conn_srv_samba_init()

static void smb_conn_srv_samba_init ( struct smb_conn_srv_ctx srv_ctx)
static

◆ smb_conn_srv_send_msg()

int smb_conn_srv_send_msg ( struct smb_conn_srv_ctx ctx,
enum smb_conn_cmd  msg_type,
int  errno_value,
int  level,
const char *  msg 
)

◆ smb_conn_srv_send_reply()

◆ smb_conn_srv_setxattr()

◆ smb_conn_srv_stat()

void smb_conn_srv_stat ( struct smb_conn_srv_ctx ctx,
struct smb_conn_url_query query,
size_t  query_len 
)

◆ smb_conn_srv_unlink()

void smb_conn_srv_unlink ( struct smb_conn_srv_ctx ctx,
struct smb_conn_url_query query,
size_t  query_len 
)

◆ smb_conn_srv_utimes()

void smb_conn_srv_utimes ( struct smb_conn_srv_ctx ctx,
struct smb_conn_utimes_query query,
size_t  query_len 
)

◆ smb_conn_srv_write()