関数 | |
static void | catia_string_replace (char *s, unsigned char oldc, unsigned char newc) |
static void | from_unix (char *s) |
static void | to_unix (char *s) |
static SMB_STRUCT_DIR * | catia_opendir (vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr) |
static SMB_STRUCT_DIRENT * | catia_readdir (vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp) |
static int | catia_open (vfs_handle_struct *handle, const char *fname, files_struct *fsp, int flags, mode_t mode) |
static int | catia_rename (vfs_handle_struct *handle, const char *oldname, const char *newname) |
static int | catia_stat (vfs_handle_struct *handle, const char *fname, SMB_STRUCT_STAT *sbuf) |
static int | catia_lstat (vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf) |
static int | catia_unlink (vfs_handle_struct *handle, const char *path) |
static int | catia_chmod (vfs_handle_struct *handle, const char *path, mode_t mode) |
static int | catia_chown (vfs_handle_struct *handle, const char *path, uid_t uid, gid_t gid) |
static int | catia_chdir (vfs_handle_struct *handle, const char *path) |
static char * | catia_getwd (vfs_handle_struct *handle, char *buf) |
static int | catia_ntimes (vfs_handle_struct *handle, const char *path, const struct timespec ts[2]) |
static BOOL | catia_symlink (vfs_handle_struct *handle, const char *oldpath, const char *newpath) |
static BOOL | catia_readlink (vfs_handle_struct *handle, const char *path, char *buf, size_t bufsiz) |
static int | catia_link (vfs_handle_struct *handle, const char *oldpath, const char *newpath) |
static int | catia_mknod (vfs_handle_struct *handle, const char *path, mode_t mode, SMB_DEV_T dev) |
static char * | catia_realpath (vfs_handle_struct *handle, const char *path, char *resolved_path) |
static size_t | catia_get_nt_acl (vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info, struct security_descriptor_info **ppdesc) |
static BOOL | catia_set_nt_acl (vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info_sent, struct security_descriptor_info *psd) |
static int | catia_chmod_acl (vfs_handle_struct *handle, const char *name, mode_t mode) |
NTSTATUS | vfs_catia_init (void) |
変数 | |
static vfs_op_tuple | catia_op_tuples [] |
static void catia_string_replace | ( | char * | s, | |
unsigned char | oldc, | |||
unsigned char | newc | |||
) | [static] |
vfs_catia.c の 31 行で定義されています。
参照先 pull_ucs2()・push_ucs2()・tmpbuf.
参照元 from_unix()・to_unix().
00033 { 00034 static smb_ucs2_t tmpbuf[sizeof(pstring)]; 00035 smb_ucs2_t *ptr = tmpbuf; 00036 smb_ucs2_t old = oldc; 00037 00038 push_ucs2(NULL, tmpbuf, s, sizeof(tmpbuf), STR_TERMINATE); 00039 00040 for (;*ptr;ptr++) 00041 if (*ptr==old) *ptr=newc; 00042 00043 pull_ucs2(NULL, s, tmpbuf, -1, sizeof(tmpbuf), STR_TERMINATE); 00044 }
static void from_unix | ( | char * | s | ) | [static] |
vfs_catia.c の 46 行で定義されています。
参照元 catia_readdir().
00047 { 00048 catia_string_replace(s, '\x22', '\xa8'); 00049 catia_string_replace(s, '\x2a', '\xa4'); 00050 catia_string_replace(s, '\x2f', '\xf8'); 00051 catia_string_replace(s, '\x3a', '\xf7'); 00052 catia_string_replace(s, '\x3c', '\xab'); 00053 catia_string_replace(s, '\x3e', '\xbb'); 00054 catia_string_replace(s, '\x3f', '\xbf'); 00055 catia_string_replace(s, '\x5c', '\xff'); 00056 catia_string_replace(s, '\x7c', '\xa6'); 00057 catia_string_replace(s, ' ', '\xb1'); 00058 }
static void to_unix | ( | char * | s | ) | [static] |
vfs_catia.c の 60 行で定義されています。
参照元 catia_chdir()・catia_chmod()・catia_chown()・catia_lstat()・catia_open()・catia_opendir()・catia_rename()・catia_stat()・catia_unlink().
00061 { 00062 catia_string_replace(s, '\xa8', '\x22'); 00063 catia_string_replace(s, '\xa4', '\x2a'); 00064 catia_string_replace(s, '\xf8', '\x2f'); 00065 catia_string_replace(s, '\xf7', '\x3a'); 00066 catia_string_replace(s, '\xab', '\x3c'); 00067 catia_string_replace(s, '\xbb', '\x3e'); 00068 catia_string_replace(s, '\xbf', '\x3f'); 00069 catia_string_replace(s, '\xff', '\x5c'); 00070 catia_string_replace(s, '\xa6', '\x7c'); 00071 catia_string_replace(s, '\xb1', ' '); 00072 }
static SMB_STRUCT_DIR* catia_opendir | ( | vfs_handle_struct * | handle, | |
const char * | fname, | |||
const char * | mask, | |||
uint32 | attr | |||
) | [static] |
static SMB_STRUCT_DIRENT* catia_readdir | ( | vfs_handle_struct * | handle, | |
SMB_STRUCT_DIR * | dirp | |||
) | [static] |
vfs_catia.c の 84 行で定義されています。
参照先 from_unix()・handle・result.
00086 { 00087 SMB_STRUCT_DIRENT *result = SMB_VFS_NEXT_READDIR(handle, dirp); 00088 00089 if (result == NULL) 00090 return result; 00091 00092 from_unix(result->d_name); 00093 return result; 00094 }
static int catia_open | ( | vfs_handle_struct * | handle, | |
const char * | fname, | |||
files_struct * | fsp, | |||
int | flags, | |||
mode_t | mode | |||
) | [static] |
static int catia_rename | ( | vfs_handle_struct * | handle, | |
const char * | oldname, | |||
const char * | newname | |||
) | [static] |
vfs_catia.c の 107 行で定義されています。
00109 { 00110 pstring oname, nname; 00111 00112 pstrcpy(oname, oldname); 00113 to_unix(oname); 00114 pstrcpy(nname, newname); 00115 to_unix(nname); 00116 00117 DEBUG(10, ("converted old name: %s\n", oname)); 00118 DEBUG(10, ("converted new name: %s\n", nname)); 00119 00120 return SMB_VFS_NEXT_RENAME(handle, oname, nname); 00121 }
static int catia_stat | ( | vfs_handle_struct * | handle, | |
const char * | fname, | |||
SMB_STRUCT_STAT * | sbuf | |||
) | [static] |
static int catia_lstat | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
SMB_STRUCT_STAT * | sbuf | |||
) | [static] |
static int catia_unlink | ( | vfs_handle_struct * | handle, | |
const char * | path | |||
) | [static] |
static int catia_chmod | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
mode_t | mode | |||
) | [static] |
static int catia_chown | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
uid_t | uid, | |||
gid_t | gid | |||
) | [static] |
static int catia_chdir | ( | vfs_handle_struct * | handle, | |
const char * | path | |||
) | [static] |
static char* catia_getwd | ( | vfs_handle_struct * | handle, | |
char * | buf | |||
) | [static] |
static int catia_ntimes | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
const struct timespec | ts[2] | |||
) | [static] |
vfs_catia.c の 187 行で定義されています。
参照先 handle.
00189 { 00190 return SMB_VFS_NEXT_NTIMES(handle, path, ts); 00191 }
static BOOL catia_symlink | ( | vfs_handle_struct * | handle, | |
const char * | oldpath, | |||
const char * | newpath | |||
) | [static] |
vfs_catia.c の 193 行で定義されています。
参照先 handle.
00195 { 00196 return SMB_VFS_NEXT_SYMLINK(handle, oldpath, newpath); 00197 }
static BOOL catia_readlink | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
char * | buf, | |||
size_t | bufsiz | |||
) | [static] |
static int catia_link | ( | vfs_handle_struct * | handle, | |
const char * | oldpath, | |||
const char * | newpath | |||
) | [static] |
vfs_catia.c の 205 行で定義されています。
参照先 handle.
00207 { 00208 return SMB_VFS_NEXT_LINK(handle, oldpath, newpath); 00209 }
static int catia_mknod | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
mode_t | mode, | |||
SMB_DEV_T | dev | |||
) | [static] |
static char* catia_realpath | ( | vfs_handle_struct * | handle, | |
const char * | path, | |||
char * | resolved_path | |||
) | [static] |
vfs_catia.c の 217 行で定義されています。
参照先 handle.
00219 { 00220 return SMB_VFS_NEXT_REALPATH(handle, path, resolved_path); 00221 }
static size_t catia_get_nt_acl | ( | vfs_handle_struct * | handle, | |
files_struct * | fsp, | |||
const char * | name, | |||
uint32 | security_info, | |||
struct security_descriptor_info ** | ppdesc | |||
) | [static] |
vfs_catia.c の 223 行で定義されています。
参照先 handle.
00226 { 00227 return SMB_VFS_NEXT_GET_NT_ACL(handle, fsp, name, security_info, 00228 ppdesc); 00229 }
static BOOL catia_set_nt_acl | ( | vfs_handle_struct * | handle, | |
files_struct * | fsp, | |||
const char * | name, | |||
uint32 | security_info_sent, | |||
struct security_descriptor_info * | psd | |||
) | [static] |
vfs_catia.c の 231 行で定義されています。
参照先 handle.
00234 { 00235 return SMB_VFS_NEXT_SET_NT_ACL(handle, fsp, name, security_info_sent, 00236 psd); 00237 }
static int catia_chmod_acl | ( | vfs_handle_struct * | handle, | |
const char * | name, | |||
mode_t | mode | |||
) | [static] |
NTSTATUS vfs_catia_init | ( | void | ) |
vfs_catia.c の 312 行で定義されています。
参照先 catia_op_tuples・smb_register_vfs().
00313 { 00314 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "catia", 00315 catia_op_tuples); 00316 }
vfs_op_tuple catia_op_tuples[] [static] |