]> git.proxmox.com Git - mirror_lxcfs.git/blob - src/cpuset_parse.h
5ff8e668bdd414957eb1c1d5bfbd567fa665bdfa
[mirror_lxcfs.git] / src / cpuset_parse.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXCFS_CPUSET_PARSE_H
4 #define __LXCFS_CPUSET_PARSE_H
5
6 #ifndef _GNU_SOURCE
7 #define _GNU_SOURCE
8 #endif
9
10 #define _FILE_OFFSET_BITS 64
11
12 #include <stdbool.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <sys/stat.h>
16 #include <sys/types.h>
17 #include <unistd.h>
18
19 #include "macro.h"
20
21 extern bool cpu_in_cpuset(int cpu, const char *cpuset);
22 extern int cpu_number_in_cpuset(const char *cpuset);
23 extern char *get_cpuset(const char *cg);
24
25 #endif /* __LXCFS_CPUSET_PARSE_H */
26
27