modules/vfs_irixacl.c

説明を見る。
00001 /*
00002    Unix SMB/Netbios implementation.
00003    VFS module to get and set irix acls
00004    Copyright (C) Michael Adam 2006
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 
00021 #include "includes.h"
00022 
00023 /* prototypes for private functions first - for clarity */
00024 
00025 /* public functions - the api */
00026 
00027 SMB_ACL_T irixacl_sys_acl_get_file(vfs_handle_struct *handle,
00028                                     const char *path_p,
00029                                     SMB_ACL_TYPE_T type)
00030 {
00031         errno = ENOTSUP;
00032         return NULL;
00033 }
00034 
00035 SMB_ACL_T irixacl_sys_acl_get_fd(vfs_handle_struct *handle,
00036                                   files_struct *fsp,
00037                                   int fd)
00038 {
00039         errno = ENOTSUP;
00040         return NULL;
00041 }
00042 
00043 int irixacl_sys_acl_set_file(vfs_handle_struct *handle,
00044                               const char *name,
00045                               SMB_ACL_TYPE_T type,
00046                               SMB_ACL_T theacl)
00047 {
00048         errno = ENOTSUP;
00049         return -1;
00050 }
00051 
00052 int irixacl_sys_acl_set_fd(vfs_handle_struct *handle,
00053                             files_struct *fsp,
00054                             int fd, SMB_ACL_T theacl)
00055 {
00056         errno = ENOTSUP;
00057         return -1;
00058 }
00059 
00060 int irixacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
00061                                      const char *path)
00062 {
00063         errno = ENOTSUP;
00064         return -1;
00065 }
00066 
00067 /* private functions */
00068 
00069 /* VFS operations structure */
00070 
00071 static vfs_op_tuple irixacl_op_tuples[] = {
00072         /* Disk operations */
00073   {SMB_VFS_OP(irixacl_sys_acl_get_file),
00074    SMB_VFS_OP_SYS_ACL_GET_FILE,
00075    SMB_VFS_LAYER_TRANSPARENT},
00076 
00077   {SMB_VFS_OP(irixacl_sys_acl_get_fd),
00078    SMB_VFS_OP_SYS_ACL_GET_FD,
00079    SMB_VFS_LAYER_TRANSPARENT},
00080 
00081   {SMB_VFS_OP(irixacl_sys_acl_set_file),
00082    SMB_VFS_OP_SYS_ACL_SET_FILE,
00083    SMB_VFS_LAYER_TRANSPARENT},
00084 
00085   {SMB_VFS_OP(irixacl_sys_acl_set_fd),
00086    SMB_VFS_OP_SYS_ACL_SET_FD,
00087    SMB_VFS_LAYER_TRANSPARENT},
00088 
00089   {SMB_VFS_OP(irixacl_sys_acl_delete_def_file),
00090    SMB_VFS_OP_SYS_ACL_DELETE_DEF_FILE,
00091    SMB_VFS_LAYER_TRANSPARENT},
00092 
00093   {SMB_VFS_OP(NULL),
00094    SMB_VFS_OP_NOOP,
00095    SMB_VFS_LAYER_NOOP}
00096 };
00097 
00098 NTSTATUS vfs_irixacl_init(void);
00099 NTSTATUS vfs_irixacl_init(void)
00100 {
00101         return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "irixacl",
00102                                 irixacl_op_tuples);
00103 }
00104 
00105 /* ENTE */

Sambaに対してSat Aug 29 21:23:07 2009に生成されました。  doxygen 1.4.7