s3-vfs: Add pread_send/recv to vfs modules
[kai/samba.git] / source3 / modules / vfs_netatalk.c
index 12d1f66c58b24085833b3b688a838c3f5850f281..a4573550fad7b07d753fb967745e68c150389f3c 100644 (file)
@@ -152,15 +152,15 @@ static void atalk_add_to_list(name_compare_entry **list)
 static void atalk_rrmdir(TALLOC_CTX *ctx, char *path)
 {
        char *dpath;
-       SMB_STRUCT_DIRENT *dent = 0;
-       SMB_STRUCT_DIR *dir;
+       struct dirent *dent = 0;
+       DIR *dir;
 
        if (!path) return;
 
        dir = opendir(path);
        if (!dir) return;
 
-       while (NULL != (dent = sys_readdir(dir))) {
+       while (NULL != (dent = readdir(dir))) {
                if (strcmp(dent->d_name, ".") == 0 ||
                    strcmp(dent->d_name, "..") == 0)
                        continue;
@@ -170,16 +170,16 @@ static void atalk_rrmdir(TALLOC_CTX *ctx, char *path)
                atalk_unlink_file(dpath);
        }
 
-       sys_closedir(dir);
+       closedir(dir);
 }
 
 /* Disk operations */
 
 /* Directory operations */
 
-static SMB_STRUCT_DIR *atalk_opendir(struct vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr)
+static DIR *atalk_opendir(struct vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr)
 {
-       SMB_STRUCT_DIR *ret = 0;
+       DIR *ret = 0;
 
        ret = SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr);
 
@@ -198,9 +198,9 @@ static SMB_STRUCT_DIR *atalk_opendir(struct vfs_handle_struct *handle, const cha
        return ret;
 }
 
-static SMB_STRUCT_DIR *atalk_fdopendir(struct vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr)
+static DIR *atalk_fdopendir(struct vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr)
 {
-       SMB_STRUCT_DIR *ret = 0;
+       DIR *ret = 0;
 
        ret = SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr);