"Fossies" - the Fresh Open Source Software Archive

Member "smbnetfs-0.6.3/src/samba.h" (1 Feb 2018, 1697 Bytes) of package /linux/misc/smbnetfs-0.6.3.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "samba.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 0.6.1_vs_0.6.2.

    1 #ifndef __SAMBA_H__
    2 #define __SAMBA_H__
    3 
    4 #include <time.h>
    5 #include <sys/types.h>
    6 #include <unistd.h>
    7 #include "smb_conn.h"
    8 
    9 typedef smb_conn_fd samba_fd;
   10 
   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);
   15 
   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);
   39 
   40 #endif /* __SAMBA_H__ */