repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s3:smbd: consistently use talloc_tos() memory for rpc_pipe_open_interface()
[Samba.git]
/
testsuite
/
unittests
/
rpc_test_dummy_module.c
blob
d067b6e2d2b8de6684be5e393d0b14eee27d77b0
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <signal.h>
4
#include <unistd.h>
5
6
int
samba_init_module
(
void
);
7
int
samba_init_module
(
void
)
8
{
9
int
rc
;
10
11
fprintf
(
stderr
,
"Test dummy executed!
\n
"
);
12
13
rc
=
setenv
(
"UNITTEST_DUMMY_MODULE_LOADED"
,
"TRUE"
,
1
);
14
if
(
rc
<
0
) {
15
kill
(
getpid
(),
SIGILL
);
16
exit
(-
1
);
17
}
18
19
return
0
;
20
}