This is more in line with the rest of the Samba code, like connections_forall
etc.
void file_init(void);
void file_close_user(int vuid);
void file_dump_open_table(void);
-struct files_struct *file_walk_table(
+struct files_struct *files_forall(
struct files_struct *(*fn)(struct files_struct *fsp,
void *private_data),
void *private_data);
if (result->pid == 0) {
close(fdpair[0]);
result->sockfd = fdpair[1];
- file_walk_table(close_fsp_fd, NULL);
+ files_forall(close_fsp_fd, NULL);
aio_child_loop(result->sockfd, result->map);
}
* Walk the files table until "fn" returns non-NULL
*/
-struct files_struct *file_walk_table(
+struct files_struct *files_forall(
struct files_struct *(*fn)(struct files_struct *fsp,
void *private_data),
void *private_data)