Commit | Line | Data |
---|---|---|
241e0a5a FD |
1 | #ifndef _RUNAS_STUB_H |
2 | #define _RUNAS_STUB_H | |
3 | ||
4 | /* | |
5 | * Copyright (C) 2018 - Francis Deslauriers <francis.deslauriers@efficios.com> | |
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, version 2 only, | |
9 | * as published by the Free Software Foundation. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
14 | * more details. | |
15 | * | |
16 | * You should have received a copy of the GNU General Public License along | |
17 | * with this program; if not, write to the Free Software Foundation, Inc., | |
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
19 | */ | |
20 | ||
21 | #include <sys/types.h> | |
22 | #include <stdint.h> | |
23 | ||
24 | int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid) | |
25 | { | |
26 | return -1; | |
27 | } | |
28 | int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid) | |
29 | { | |
30 | return -1; | |
31 | } | |
32 | int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid) | |
33 | { | |
34 | return -1; | |
35 | } | |
36 | int run_as_unlink(const char *path, uid_t uid, gid_t gid) | |
37 | { | |
38 | return -1; | |
39 | } | |
40 | int run_as_rmdir_recursive(const char *path, uid_t uid, gid_t gid) | |
41 | { | |
42 | return -1; | |
43 | } | |
44 | int lttng_elf_get_symbol_offset(int fd, char *symbol, uint64_t *offset) | |
45 | { | |
46 | return -1; | |
47 | } | |
0ef03255 FD |
48 | int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name, |
49 | const char *probe_name, uint64_t **offsets, uint32_t *nb_probe) | |
50 | { | |
51 | return -1; | |
52 | } | |
241e0a5a FD |
53 | int run_as_create_worker(char *procname) |
54 | { | |
55 | return -1; | |
56 | } | |
57 | void run_as_destroy_worker(void) | |
58 | { | |
59 | return; | |
60 | } | |
61 | ||
62 | #endif /* _RUNAS_STUB_H */ |