summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-25 12:09:58 +0200
committerVolker Lendecke <vl@samba.org>2008-10-25 12:09:58 +0200
commitff211be69681c8dbbd7b6364fafb7aa6e8b5a1f5 (patch)
tree500da80f1cddc59cf58bc5be99035cffbea3fd7c /source3
parentd6afe7c61a7ba36253321bbdac7b65fc925cacde (diff)
downloadsamba-ff211be69681c8dbbd7b6364fafb7aa6e8b5a1f5.tar.gz
samba-ff211be69681c8dbbd7b6364fafb7aa6e8b5a1f5.tar.bz2
samba-ff211be69681c8dbbd7b6364fafb7aa6e8b5a1f5.zip
Remove "pipe_handle_offset" -- pipes now use "struct files_struct"
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c16
-rw-r--r--source3/smbd/files.c5
3 files changed, 0 insertions, 22 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 83cd740a78..d04968ed8a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -7110,7 +7110,6 @@ bool api_pipe_request(pipes_struct *p);
pipes_struct *get_first_internal_pipe(void);
pipes_struct *get_next_internal_pipe(pipes_struct *p);
-void set_pipe_handle_offset(int max_open_files);
void init_rpc_pipe_hnd(void);
bool fsp_is_np(struct files_struct *fsp);
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index c8037e6e43..aaa355790d 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -55,22 +55,6 @@ pipes_struct *get_next_internal_pipe(pipes_struct *p)
return p->next;
}
-/* this must be larger than the sum of the open files and directories */
-static int pipe_handle_offset;
-
-/****************************************************************************
- Set the pipe_handle_offset. Called from smbd/files.c
-****************************************************************************/
-
-void set_pipe_handle_offset(int max_open_files)
-{
- if(max_open_files < 0x7000) {
- pipe_handle_offset = 0x7000;
- } else {
- pipe_handle_offset = max_open_files + 10; /* For safety. :-) */
- }
-}
-
/****************************************************************************
Initialise pipe handle states.
****************************************************************************/
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 4a27d02cfe..d3bfce7499 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -200,11 +200,6 @@ open files, %d are available.\n", request_max_open_files, real_max_open_files));
if (!file_bmap) {
exit_server("out of memory in file_init");
}
-
- /*
- * Ensure that pipe_handle_oppset is set correctly.
- */
- set_pipe_handle_offset(real_max_open_files);
}
/****************************************************************************