]> git.proxmox.com Git - mirror_lxcfs.git/blob - src/proc_loadavg.h
tree-wide: align lxcfs and lxc licensing
[mirror_lxcfs.git] / src / proc_loadavg.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXCFS_PROC_LOADAVG_FUSE_H
4 #define __LXCFS_PROC_LOADAVG_FUSE_H
5
6 #ifndef _GNU_SOURCE
7 #define _GNU_SOURCE
8 #endif
9
10 #ifndef FUSE_USE_VERSION
11 #define FUSE_USE_VERSION 26
12 #endif
13
14 #define _FILE_OFFSET_BITS 64
15
16 #include <fuse.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <sys/stat.h>
20 #include <sys/types.h>
21 #include <unistd.h>
22
23 #include "config.h"
24 #include "macro.h"
25
26 extern int proc_loadavg_read(char *buf, size_t size, off_t offset,
27 struct fuse_file_info *fi);
28 extern pthread_t load_daemon(int load_use);
29 extern int stop_load_daemon(pthread_t pid);
30 extern int calc_hash(const char *name);
31
32 #endif /* __LXCFS_PROC_LOADAVG_FUSE_H */
33