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)  

Go to the documentation of this file.
1 #ifndef __SAMBA_H__
2 #define __SAMBA_H__
4 #include <time.h>
5 #include <sys/types.h>
6 #include <unistd.h>
7 #include "smb_conn.h"
11 int samba_init(size_t max_rw_block_size);
12 int samba_set_max_ctx_count(int count);
13 void samba_allocate_ctxs(void);
14 void samba_destroy_unused_ctxs(void);
16 samba_fd samba_open (const char *url, int flags, mode_t mode);
17 samba_fd samba_creat (const char *url, mode_t mode);
18 ssize_t samba_read (samba_fd fd, off_t offset, char *buf, size_t bufsize);
19 ssize_t samba_write (samba_fd fd, off_t offset, const char *buf, size_t bufsize);
20 int samba_close (samba_fd fd);
21 int samba_unlink (const char *url);
22 int samba_rename (const char *old_url, const char *new_url);
23 samba_fd samba_opendir (const char *url);
24 int samba_closedir (samba_fd fd);
25 ssize_t samba_readdir (samba_fd fd, void *buf, size_t bufsize);
26 int samba_mkdir (const char *url, mode_t mode);
27 int samba_rmdir (const char *url);
28 int samba_stat (const char *url, struct stat *st);
29 int samba_fstat (samba_fd fd, struct stat *st);
30 int samba_ftruncate (samba_fd fd, off_t size);
31 int samba_chmod (const char *url, mode_t mode);
32 int samba_utimes (const char *url, struct timeval *tbuf);
33 int samba_setxattr (const char *url, const char *name,
34  const void *value, size_t size, int flags);
35 int samba_getxattr (const char *url, const char *name,
36  void *value, size_t size);
37 int samba_listxattr (const char *url, char *list, size_t size);
38 int samba_removexattr(const char *url, const char *name);
40 #endif /* __SAMBA_H__ */
void samba_allocate_ctxs(void)
Definition: samba.c:154
int samba_removexattr(const char *url, const char *name)
Definition: samba.c:532
samba_fd samba_open(const char *url, int flags, mode_t mode)
Definition: samba.c:225
ssize_t samba_write(samba_fd fd, off_t offset, const char *buf, size_t bufsize)
Definition: samba.c:280
int samba_set_max_ctx_count(int count)
Definition: samba.c:145
ssize_t samba_read(samba_fd fd, off_t offset, char *buf, size_t bufsize)
Definition: samba.c:257
int samba_stat(const char *url, struct stat *st)
Definition: samba.c:420
int samba_chmod(const char *url, mode_t mode)
Definition: samba.c:453
ssize_t samba_readdir(samba_fd fd, void *buf, size_t bufsize)
Definition: samba.c:381
int samba_getxattr(const char *url, const char *name, void *value, size_t size)
Definition: samba.c:500
int samba_fstat(samba_fd fd, struct stat *st)
Definition: samba.c:435
samba_fd samba_creat(const char *url, mode_t mode)
Definition: samba.c:241
int samba_closedir(samba_fd fd)
Definition: samba.c:365
void samba_destroy_unused_ctxs(void)
Definition: samba.c:164
int samba_setxattr(const char *url, const char *name, const void *value, size_t size, int flags)
Definition: samba.c:483
int samba_close(samba_fd fd)
Definition: samba.c:303
int samba_utimes(const char *url, struct timeval *tbuf)
Definition: samba.c:468
int samba_unlink(const char *url)
Definition: samba.c:319
int samba_init(size_t max_rw_block_size)
Definition: samba.c:30
smb_conn_fd samba_fd
Definition: samba.h:9
samba_fd samba_opendir(const char *url)
Definition: samba.c:349
int samba_rmdir(const char *url)
Definition: samba.c:405
int samba_ftruncate(samba_fd fd, off_t size)
Definition: samba.c:444
int samba_mkdir(const char *url, mode_t mode)
Definition: samba.c:390
int samba_rename(const char *old_url, const char *new_url)
Definition: samba.c:334
int samba_listxattr(const char *url, char *list, size_t size)
Definition: samba.c:517