libdsm  0.0.4-11-g223c1ba
Minimalist and read-only SMB client lib
 All Data Structures Files Functions Typedefs Enumerator Macros
Macros | Enumerations
smb_defs.h File Reference

SMB usefull constants. More...

Macros

#define SMB_MOD_READ   (1 << 0)
 Flag for smb_file_open. Request right for reading.
 
#define SMB_MOD_WRITE   (1 << 1)
 Flag for smb_file_open. Request right for writing.
 
#define SMB_MOD_APPEND   (1 << 2)
 Flag for smb_file_open. Request right for appending.
 
#define SMB_MOD_READ_EXT   (1 << 3)
 Flag for smb_file_open. Request right for extended read (?)
 
#define SMB_MOD_WRITE_EXT   (1 << 4)
 Flag for smb_file_open. Request right for extended write (?)
 
#define SMB_MOD_EXEC   (1 << 5)
 Flag for smb_file_open. Request right for execution (?)
 
#define SMB_MOD_RMCHILD   (1 << 6)
 Flag for smb_file_open. Request right for child removal (?)
 
#define SMB_MOD_READ_ATTR   (1 << 7)
 Flag for smb_file_open. Request right for reading file attributes.
 
#define SMB_MOD_WRITE_ATTR   (1 << 8)
 Flag for smb_file_open. Request right for writing file attributes.
 
#define SMB_MOD_RM   (1 << 16)
 Flag for smb_file_open. Request right for removing file.
 
#define SMB_MOD_READ_CTL   (1 << 17)
 Flag for smb_file_open. Request right for reading ACL.
 
#define SMB_MOD_WRITE_DAC   (1 << 18)
 Flag for smb_file_open. Request right for writing ACL.
 
#define SMB_MOD_CHOWN   (1 << 19)
 Flag for smb_file_open. Request right for changing owner.
 
#define SMB_MOD_SYNC   (1 << 20)
 Flag for smb_file_open. (??)
 
#define SMB_MOD_SYS   (1 << 24)
 Flag for smb_file_open. (??)
 
#define SMB_MOD_MAX_ALLOWED   (1 << 25)
 Flag for smb_file_open. (??)
 
#define SMB_MOD_GENERIC_ALL   (1 << 28)
 Flag for smb_file_open. Request all generic rights (??)
 
#define SMB_MOD_GENERIC_EXEC   (1 << 29)
 Flag for smb_file_open. Request generic exec right (??)
 
#define SMB_MOD_GENERIC_READ   (1 << 30)
 Flag for smb_file_open. Request generic read right (??)
 
#define SMB_MOD_GENERIC_WRITE   (1 << 31)
 Flag for smb_file_open. Request generic write right (??)
 
#define SMB_MOD_RW
 Flag for smb_file_open. Default R/W mode. More...
 
#define SMB_MOD_RO
 Flag for smb_file_open. Default R/O mode. More...
 

Enumerations

enum  { SMB_TRANSPORT_TCP = 1, SMB_TRANSPORT_NBT = 2 }
 
enum  {
  SMB_STATE_ERROR = -1, SMB_STATE_NEW = 0, SMB_STATE_NETBIOS_OK = 1, SMB_STATE_DIALECT_OK = 2,
  SMB_STATE_SESSION_OK = 3
}
 
enum  { SMB_SEEK_SET = 0, SMB_SEEK_CUR = 1 }
 

Detailed Description

SMB usefull constants.

Macro Definition Documentation

#define SMB_MOD_RO
Value:
#define SMB_MOD_READ_ATTR
Flag for smb_file_open. Request right for reading file attributes.
Definition: smb_defs.h:101
#define SMB_MOD_READ_CTL
Flag for smb_file_open. Request right for reading ACL.
Definition: smb_defs.h:107
#define SMB_MOD_READ_EXT
Flag for smb_file_open. Request right for extended read (?)
Definition: smb_defs.h:93
#define SMB_MOD_READ
Flag for smb_file_open. Request right for reading.
Definition: smb_defs.h:87

Flag for smb_file_open. Default R/O mode.

A few flags OR'ed

#define SMB_MOD_RW
Value:
#define SMB_MOD_APPEND
Flag for smb_file_open. Request right for appending.
Definition: smb_defs.h:91
#define SMB_MOD_READ_ATTR
Flag for smb_file_open. Request right for reading file attributes.
Definition: smb_defs.h:101
#define SMB_MOD_WRITE_EXT
Flag for smb_file_open. Request right for extended write (?)
Definition: smb_defs.h:95
#define SMB_MOD_READ_CTL
Flag for smb_file_open. Request right for reading ACL.
Definition: smb_defs.h:107
#define SMB_MOD_READ_EXT
Flag for smb_file_open. Request right for extended read (?)
Definition: smb_defs.h:93
#define SMB_MOD_WRITE_ATTR
Flag for smb_file_open. Request right for writing file attributes.
Definition: smb_defs.h:103
#define SMB_MOD_WRITE
Flag for smb_file_open. Request right for writing.
Definition: smb_defs.h:89
#define SMB_MOD_READ
Flag for smb_file_open. Request right for reading.
Definition: smb_defs.h:87

Flag for smb_file_open. Default R/W mode.

A few flags OR'ed

Enumeration Type Documentation

anonymous enum
Enumerator
SMB_TRANSPORT_TCP 

SMB with Direct-TCP connection (OSX supports only this)

SMB_TRANSPORT_NBT 

SMB with Netbios over TCP (older mechanism)

anonymous enum
Enumerator
SMB_STATE_ERROR 

Error state, there was an error somewhere.

SMB_STATE_NEW 

The SMB session has just been created.

SMB_STATE_NETBIOS_OK 

A Netbios session has been successfully established.

SMB_STATE_DIALECT_OK 

Dialect was successfully negotiated.

SMB_STATE_SESSION_OK 

Session Authentication was successfull, you can become nasty.

anonymous enum
Enumerator
SMB_SEEK_SET 

Set the read pointer at the given position.

SMB_SEEK_CUR 

Adjusts the read pointer relatively to the actual position.