1 | /*
|
---|
2 | Unix SMB/CIFS implementation.
|
---|
3 | RPC pipe client
|
---|
4 |
|
---|
5 | Copyright (C) Gerald (Jerry) Carter 2004.
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or modify
|
---|
8 | it under the terms of the GNU General Public License as published by
|
---|
9 | the Free Software Foundation; either version 3 of the License, or
|
---|
10 | (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 |
|
---|
21 | /* Stupid dummy functions required due to the horrible dependency mess
|
---|
22 | in Samba. */
|
---|
23 |
|
---|
24 | #include "includes.h"
|
---|
25 |
|
---|
26 | int find_service(TALLOC_CTX *ctx, const char *service_in, char **p_service_out)
|
---|
27 | {
|
---|
28 | return -1;
|
---|
29 | }
|
---|
30 |
|
---|
31 | bool conn_snum_used(int snum)
|
---|
32 | {
|
---|
33 | return False;
|
---|
34 | }
|
---|
35 |
|
---|
36 | void cancel_pending_lock_requests_by_fid(files_struct *fsp,
|
---|
37 | struct byte_range_lock *br_lck,
|
---|
38 | enum file_close_type close_type)
|
---|
39 | {
|
---|
40 | }
|
---|
41 |
|
---|
42 | void send_stat_cache_delete_message(struct messaging_context *msg_ctx,
|
---|
43 | const char *name)
|
---|
44 | {
|
---|
45 | }
|
---|
46 |
|
---|
47 | NTSTATUS can_delete_directory_fsp(files_struct *fsp)
|
---|
48 | {
|
---|
49 | return NT_STATUS_OK;
|
---|
50 | }
|
---|
51 |
|
---|
52 | bool change_to_root_user(void)
|
---|
53 | {
|
---|
54 | return false;
|
---|
55 | }
|
---|
56 |
|
---|
57 | struct event_context *smbd_event_context(void)
|
---|
58 | {
|
---|
59 | return NULL;
|
---|
60 | }
|
---|
61 |
|
---|
62 | /**
|
---|
63 | * The following two functions need to be called from inside the low-level BRL
|
---|
64 | * code for oplocks correctness in smbd. Since other utility binaries also
|
---|
65 | * link in some of the brl code directly, these dummy functions are necessary
|
---|
66 | * to avoid needing to link in the oplocks code and its dependencies to all of
|
---|
67 | * the utility binaries.
|
---|
68 | */
|
---|
69 | void contend_level2_oplocks_begin(files_struct *fsp,
|
---|
70 | enum level2_contention_type type)
|
---|
71 | {
|
---|
72 | return;
|
---|
73 | }
|
---|
74 |
|
---|
75 | void contend_level2_oplocks_end(files_struct *fsp,
|
---|
76 | enum level2_contention_type type)
|
---|
77 | {
|
---|
78 | return;
|
---|
79 | }
|
---|