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
passdb: Make [ug]id_to_sid use xid_to_sid
[Samba.git]
/
testsuite
/
unittests
/
rpc_test_dummy_module.c
blob
2b4e6e2e06729c0b1566066d8eea91abc877aeea
1
#include
"replace.h"
2
#include <sys/types.h>
3
#include <signal.h>
4
#include <unistd.h>
5
#include
"libcli/util/ntstatus.h"
6
7
NTSTATUS
samba_init_module
(
void
);
8
NTSTATUS
samba_init_module
(
void
)
9
{
10
int
rc
;
11
12
fprintf
(
stderr
,
"Test dummy executed!
\n
"
);
13
14
rc
=
setenv
(
"UNITTEST_DUMMY_MODULE_LOADED"
,
"TRUE"
,
1
);
15
if
(
rc
<
0
) {
16
kill
(
getpid
(),
SIGILL
);
17
exit
(-
1
);
18
}
19
20
return
NT_STATUS_OK
;
21
}