summaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-28 10:46:12 +0000
committerRoy Marples <roy@marples.name>2008-03-28 10:46:12 +0000
commitee4e861796ad9b19acb45c576ed181ce2fdfebf5 (patch)
tree425c9a68f127bce193717055d99be03a1380516c /src/includes
parent11e33e81c855395cbd931e99f7452ed6b3fef357 (diff)
downloadopenrc-ee4e861796ad9b19acb45c576ed181ce2fdfebf5.tar.gz
openrc-ee4e861796ad9b19acb45c576ed181ce2fdfebf5.tar.bz2
openrc-ee4e861796ad9b19acb45c576ed181ce2fdfebf5.tar.xz
Put some dir locations in rc.h so that 3rd party apps can become awware of them.
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 7085016..d6bc8d9 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -37,45 +37,10 @@
#include <stdbool.h>
#include <string.h>
-#ifndef LIB
-# define LIB "lib"
-#endif
-
-#ifdef PREFIX
-# define RC_PREFIX PREFIX
-#else
-# define RC_PREFIX
-#endif
-
-#ifndef SYSCONFDIR
-# define SYSCONFDIR RC_PREFIX "/etc"
-#endif
-
#define RC_LEVEL_BOOT "boot"
#define RC_LEVEL_DEFAULT "default"
-#define RC_LIBDIR RC_PREFIX "/" LIB "/rc"
-#define RC_SVCDIR RC_LIBDIR "/init.d"
#define RC_DEPTREE_CACHE RC_SVCDIR "/deptree"
-#define RC_RUNLEVELDIR SYSCONFDIR "/runlevels"
-#define RC_INITDIR SYSCONFDIR "/init.d"
-#define RC_CONFDIR SYSCONFDIR "/conf.d"
-
-/* PKG_PREFIX is where packages are installed if different from the base OS
- * On Gentoo this is normally unset, on FreeBSD /usr/local and on NetBSD
- * /usr/pkg. */
-#ifdef PKG_PREFIX
-# define RC_PKG_INITDIR PKG_PREFIX "/etc/init.d"
-# define RC_PKG_CONFDIR PKG_PREFIX "/etc/conf.d"
-#endif
-
-/* LOCAL_PREFIX is for user written stuff, which the base OS and package
- * manger don't touch. */
-#ifdef LOCAL_PREFIX
-# define RC_LOCAL_INITDIR LOCAL_PREFIX "/etc/init.d"
-# define RC_LOCAL_CONFDIR LOCAL_PREFIX "/etc/conf.d"
-#endif
-
#define RC_KRUNLEVEL RC_SVCDIR "/krunlevel"
#define RC_STARTING RC_SVCDIR "/rc.starting"
#define RC_STOPPING RC_SVCDIR "/rc.stopping"
@@ -85,8 +50,6 @@
#define RC_SVCDIR_STARTED RC_SVCDIR "/started"
#define RC_SVCDIR_COLDPLUGGED RC_SVCDIR "/coldplugged"
-#define RC_PLUGINDIR RC_LIBDIR "/plugins"
-
#define ERRX fprintf (stderr, "out of memory\n"); exit (1)
#ifdef lint
@@ -98,7 +61,6 @@
# define _unused
#endif
-
/* Some libc implemntations don't have these */
#ifndef STAILQ_CONCAT
#define STAILQ_CONCAT(head1, head2) do { \