blob: 151d2d72b214f207273e42979d9f2ae02479b311 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
Copyright 2016 Zbigniew Jędrzejewski-Szmek
***/
#include <dlfcn.h>
#include <stdlib.h>
#include "macro.h"
int main(int argc, char **argv) {
void *handle;
assert_se((handle = dlopen(argv[1], RTLD_NOW)));
assert_se(dlclose(handle) == 0);
return EXIT_SUCCESS;
}
|