| 1 |
/* |
| 2 |
* librc.h |
| 3 |
* Internal header file to setup build env for files in librc.so |
| 4 |
* Copyright 2007 Gentoo Foundation |
| 5 |
* Released under the GPLv2 |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef _LIBRC_H_ |
| 9 |
#define _LIBRC_H_ |
| 10 |
|
| 11 |
#define _IN_LIBRC |
| 12 |
|
| 13 |
#include <sys/stat.h> |
| 14 |
#include <sys/time.h> |
| 15 |
#include <sys/types.h> |
| 16 |
#include <sys/utsname.h> |
| 17 |
#include <sys/wait.h> |
| 18 |
|
| 19 |
#ifdef __linux__ |
| 20 |
#include <sys/sysinfo.h> |
| 21 |
#endif |
| 22 |
|
| 23 |
#include <dirent.h> |
| 24 |
#include <errno.h> |
| 25 |
#include <fcntl.h> |
| 26 |
#include <libgen.h> |
| 27 |
#include <limits.h> |
| 28 |
#include <regex.h> |
| 29 |
#include <stdarg.h> |
| 30 |
#include <stdbool.h> |
| 31 |
#include <stdio.h> |
| 32 |
#include <stdlib.h> |
| 33 |
#include <string.h> |
| 34 |
#include <time.h> |
| 35 |
#include <unistd.h> |
| 36 |
|
| 37 |
#if defined(__DragonFly__) || defined(__FreeBSD__) || \ |
| 38 |
defined(__NetBSD__) || defined (__OpenBSD__) |
| 39 |
#include <sys/param.h> |
| 40 |
#include <sys/user.h> |
| 41 |
#include <sys/sysctl.h> |
| 42 |
#include <kvm.h> |
| 43 |
#endif |
| 44 |
|
| 45 |
#include "librc-daemon.h" |
| 46 |
#include "librc-depend.h" |
| 47 |
#include "rc.h" |
| 48 |
#include "rc-misc.h" |
| 49 |
#include "strlist.h" |
| 50 |
|
| 51 |
#include "hidden-visibility.h" |
| 52 |
#define librc_hidden_proto(x) hidden_proto(x) |
| 53 |
#define librc_hidden_def(x) hidden_def(x) |
| 54 |
|
| 55 |
librc_hidden_proto(rc_config_list) |
| 56 |
librc_hidden_proto(rc_config_load) |
| 57 |
librc_hidden_proto(rc_config_value) |
| 58 |
librc_hidden_proto(rc_deptree_depends) |
| 59 |
librc_hidden_proto(rc_deptree_free) |
| 60 |
librc_hidden_proto(rc_deptree_load) |
| 61 |
librc_hidden_proto(rc_deptree_order_services) |
| 62 |
librc_hidden_proto(rc_deptree_update) |
| 63 |
librc_hidden_proto(rc_deptree_update_needed) |
| 64 |
librc_hidden_proto(rc_env_bool) |
| 65 |
librc_hidden_proto(rc_env_config) |
| 66 |
librc_hidden_proto(rc_env_filter) |
| 67 |
librc_hidden_proto(rc_exists) |
| 68 |
librc_hidden_proto(rc_find_pids) |
| 69 |
librc_hidden_proto(rc_is_dir) |
| 70 |
librc_hidden_proto(rc_is_exec) |
| 71 |
librc_hidden_proto(rc_is_file) |
| 72 |
librc_hidden_proto(rc_is_link) |
| 73 |
librc_hidden_proto(rc_ls_dir) |
| 74 |
librc_hidden_proto(rc_rm_dir) |
| 75 |
librc_hidden_proto(rc_runlevel_exists) |
| 76 |
librc_hidden_proto(rc_runlevel_get) |
| 77 |
librc_hidden_proto(rc_runlevel_list) |
| 78 |
librc_hidden_proto(rc_runlevel_set) |
| 79 |
librc_hidden_proto(rc_runlevel_starting) |
| 80 |
librc_hidden_proto(rc_runlevel_stopping) |
| 81 |
librc_hidden_proto(rc_service_add) |
| 82 |
librc_hidden_proto(rc_service_daemons_crashed) |
| 83 |
librc_hidden_proto(rc_service_delete) |
| 84 |
librc_hidden_proto(rc_service_description) |
| 85 |
librc_hidden_proto(rc_service_exists) |
| 86 |
librc_hidden_proto(rc_service_in_runlevel) |
| 87 |
librc_hidden_proto(rc_service_mark) |
| 88 |
librc_hidden_proto(rc_service_options) |
| 89 |
librc_hidden_proto(rc_service_plugable) |
| 90 |
librc_hidden_proto(rc_service_resolve) |
| 91 |
librc_hidden_proto(rc_service_schedule_clear) |
| 92 |
librc_hidden_proto(rc_service_schedule_start) |
| 93 |
librc_hidden_proto(rc_service_start) |
| 94 |
librc_hidden_proto(rc_service_stop) |
| 95 |
librc_hidden_proto(rc_service_wait) |
| 96 |
librc_hidden_proto(rc_services_in_runlevel) |
| 97 |
librc_hidden_proto(rc_services_in_state) |
| 98 |
librc_hidden_proto(rc_services_scheduled) |
| 99 |
librc_hidden_proto(rc_services_scheduled_by) |
| 100 |
librc_hidden_proto(rc_service_started_daemon) |
| 101 |
librc_hidden_proto(rc_service_state) |
| 102 |
librc_hidden_proto(rc_service_value_get) |
| 103 |
librc_hidden_proto(rc_service_value_set) |
| 104 |
librc_hidden_proto(rc_strcatpaths) |
| 105 |
librc_hidden_proto(rc_strlist_add) |
| 106 |
librc_hidden_proto(rc_strlist_addu) |
| 107 |
librc_hidden_proto(rc_strlist_addsort) |
| 108 |
librc_hidden_proto(rc_strlist_addsortc) |
| 109 |
librc_hidden_proto(rc_strlist_addsortu) |
| 110 |
librc_hidden_proto(rc_strlist_delete) |
| 111 |
librc_hidden_proto(rc_strlist_free) |
| 112 |
librc_hidden_proto(rc_strlist_join) |
| 113 |
librc_hidden_proto(rc_strlist_reverse) |
| 114 |
librc_hidden_proto(rc_waitpid) |
| 115 |
librc_hidden_proto(rc_xmalloc) |
| 116 |
librc_hidden_proto(rc_xrealloc) |
| 117 |
librc_hidden_proto(rc_xstrdup) |
| 118 |
|
| 119 |
librc_hidden_proto(__rc_service_daemon_set) |
| 120 |
|
| 121 |
#endif |