This should finally fix the AIX build and allow to remove AIX specific ifdefs.
Guenther
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104
/* File operations */
- .open = skel_open,
+ .open_fn = skel_open,
.create_file = skel_create_file,
.close_fn = skel_close_fn,
.vfs_read = skel_vfs_read,
/* File operations */
- .open = skel_open,
+ .open_fn = skel_open,
.create_file = skel_create_file,
.close_fn = skel_close_fn,
.vfs_read = skel_vfs_read,
/* Leave at 28 - not yet released. Rename posix_fallocate to fallocate
to split out the two possible uses. JRA. */
/* Leave at 28 - not yet released. Add fdopendir. JRA. */
+/* Leave at 28 - not yet released. Rename open function to open_fn. - gd */
#define SMB_VFS_INTERFACE_VERSION 28
/* File operations */
- int (*open)(struct vfs_handle_struct *handle,
- struct smb_filename *smb_fname, files_struct *fsp,
- int flags, mode_t mode);
+ int (*open_fn)(struct vfs_handle_struct *handle,
+ struct smb_filename *smb_fname, files_struct *fsp,
+ int flags, mode_t mode);
NTSTATUS (*create_file)(struct vfs_handle_struct *handle,
struct smb_request *req,
uint16_t root_dir_fid,
.opendir = opendir_acl_common,
.mkdir = mkdir_acl_common,
.rmdir = rmdir_acl_tdb,
- .open = open_acl_common,
+ .open_fn = open_acl_common,
.create_file = create_file_acl_common,
.unlink = unlink_acl_tdb,
.chmod = chmod_acl_module_common,
.opendir = opendir_acl_common,
.mkdir = mkdir_acl_common,
.rmdir = rmdir_acl_common,
- .open = open_acl_common,
+ .open_fn = open_acl_common,
.create_file = create_file_acl_common,
.unlink = unlink_acl_common,
.chmod = chmod_acl_module_common,
.opendir = audit_opendir,
.mkdir = audit_mkdir,
.rmdir = audit_rmdir,
- .open = audit_open,
+ .open_fn = audit_open,
.close_fn = audit_close,
.rename = audit_rename,
.unlink = audit_unlink,
.readdir = cap_readdir,
.mkdir = cap_mkdir,
.rmdir = cap_rmdir,
- .open = cap_open,
+ .open_fn = cap_open,
.rename = cap_rename,
.stat = cap_stat,
.lstat = cap_lstat,
.mkdir = catia_mkdir,
.rmdir = catia_rmdir,
.opendir = catia_opendir,
- .open = catia_open,
+ .open_fn = catia_open,
.rename = catia_rename,
.stat = catia_stat,
.lstat = catia_lstat,
}
static struct vfs_fn_pointers vfs_commit_fns = {
- .open = commit_open,
+ .open_fn = commit_open,
.close_fn = commit_close,
.write = commit_write,
.pwrite = commit_pwrite,
return -1;
}
-#ifdef AIX
-#undef open /* AIX defines open to be open64 */
-#endif
-
static struct vfs_fn_pointers vfs_default_fns = {
/* Disk operations */
/* File operations */
- .open = vfswrap_open,
+ .open_fn = vfswrap_open,
.create_file = vfswrap_create_file,
.close_fn = vfswrap_close,
.vfs_read = vfswrap_read,
.opendir = audit_opendir,
.mkdir = audit_mkdir,
.rmdir = audit_rmdir,
- .open = audit_open,
+ .open_fn = audit_open,
.close_fn = audit_close,
.rename = audit_rename,
.unlink = audit_unlink,
.rmdir = smb_full_audit_rmdir,
.closedir = smb_full_audit_closedir,
.init_search_op = smb_full_audit_init_search_op,
- .open = smb_full_audit_open,
+ .open_fn = smb_full_audit_open,
.create_file = smb_full_audit_create_file,
.close_fn = smb_full_audit_close,
.vfs_read = smb_full_audit_read,
.mkdir = onefs_mkdir,
.closedir = onefs_closedir,
.init_search_op = onefs_init_search_op,
- .open = onefs_open,
+ .open_fn = onefs_open,
.create_file = onefs_create_file,
.close_fn = onefs_close,
.sendfile = onefs_sendfile,
.opendir = onefs_shadow_copy_opendir,
.mkdir = onefs_shadow_copy_mkdir,
.rmdir = onefs_shadow_copy_rmdir,
- .open = onefs_shadow_copy_open,
+ .open_fn = onefs_shadow_copy_open,
.create_file = onefs_shadow_copy_create_file,
.rename = onefs_shadow_copy_rename,
.stat = onefs_shadow_copy_stat,
}
static struct vfs_fn_pointers prealloc_fns = {
- .open = prealloc_open,
+ .open_fn = prealloc_open,
.ftruncate = prealloc_ftruncate,
.connect_fn = prealloc_connect,
};
}
static struct vfs_fn_pointers vfs_preopen_fns = {
- .open = preopen_open
+ .open_fn = preopen_open
};
NTSTATUS vfs_preopen_init(void);
.rmdir = scannedonly_rmdir,
.stat = scannedonly_stat,
.lstat = scannedonly_lstat,
- .open = scannedonly_open,
+ .open_fn = scannedonly_open,
.close_fn = scannedonly_close,
.rename = scannedonly_rename,
.unlink = scannedonly_unlink,
.lremovexattr = shadow_copy2_lremovexattr,
.setxattr = shadow_copy2_setxattr,
.lsetxattr = shadow_copy2_lsetxattr,
- .open = shadow_copy2_open,
+ .open_fn = shadow_copy2_open,
.rename = shadow_copy2_rename,
.stat = shadow_copy2_stat,
.lstat = shadow_copy2_lstat,
.mkdir = smb_traffic_analyzer_mkdir,
.rename = smb_traffic_analyzer_rename,
.chdir = smb_traffic_analyzer_chdir,
- .open = smb_traffic_analyzer_open,
+ .open_fn = smb_traffic_analyzer_open,
.rmdir = smb_traffic_analyzer_rmdir,
.close_fn = smb_traffic_analyzer_close,
.sendfile = smb_traffic_analyzer_sendfile,
static struct vfs_fn_pointers vfs_streams_depot_fns = {
.fs_capabilities = streams_depot_fs_capabilities,
- .open = streams_depot_open,
+ .open_fn = streams_depot_open,
.stat = streams_depot_stat,
.lstat = streams_depot_lstat,
.unlink = streams_depot_unlink,
static struct vfs_fn_pointers vfs_streams_xattr_fns = {
.fs_capabilities = streams_xattr_fs_capabilities,
- .open = streams_xattr_open,
+ .open_fn = streams_xattr_open,
.stat = streams_xattr_stat,
.fstat = streams_xattr_fstat,
.lstat = streams_xattr_lstat,
.connect_fn = syncops_connect,
.mkdir = syncops_mkdir,
.rmdir = syncops_rmdir,
- .open = syncops_open,
+ .open_fn = syncops_open,
.rename = syncops_rename,
.unlink = syncops_unlink,
.symlink = syncops_symlink,
.rmdir = smb_time_audit_rmdir,
.closedir = smb_time_audit_closedir,
.init_search_op = smb_time_audit_init_search_op,
- .open = smb_time_audit_open,
+ .open_fn = smb_time_audit_open,
.create_file = smb_time_audit_create_file,
.close_fn = smb_time_audit_close,
.vfs_read = smb_time_audit_read,
struct smb_filename *smb_fname, struct files_struct *fsp,
int flags, mode_t mode)
{
-#ifdef AIX
-#undef open /* AIX defines open to be open64 */
-#endif
- VFS_FIND(open);
- return handle->fns->open(handle, smb_fname, fsp, flags, mode);
+ VFS_FIND(open_fn);
+ return handle->fns->open_fn(handle, smb_fname, fsp, flags, mode);
}
NTSTATUS smb_vfs_call_create_file(struct vfs_handle_struct *handle,