summaryrefslogtreecommitdiff
path: root/sysctl.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-07-30 14:37:19 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-07-30 14:37:19 +0200
commit20e2a6a9b199a1a54bd53f62f29003eb4f5bec6b (patch)
tree96896fc768e9a2bbc9200823b879d73e0f1bf4ea /sysctl.h
parentfa772d69bce431ea208f30c9966355d00eede6cd (diff)
sysctl: Export procfs base path in sysctl.h
Rename SYS_PATH to SYSCTL_PROC_PATH and make it available in sysctl.h such that it can be used e.g. in error messages. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'sysctl.h')
-rw-r--r--sysctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysctl.h b/sysctl.h
index 2f88f0a..332380b 100644
--- a/sysctl.h
+++ b/sysctl.h
@@ -1,6 +1,8 @@
#ifndef SYSCTL_H
#define SYSCTL_H
+#define SYSCTL_PROC_PATH "/proc/sys/"
+
int sysctl_set_int(const char *file, int value);
int sysctl_get_int(const char *file, int *value);