| 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 |
#include <sys/select.h> |
| 12 |
#include <sys/stat.h> |
| 13 |
#include <sys/time.h> |
| 14 |
#include <sys/types.h> |
| 15 |
#include <sys/utsname.h> |
| 16 |
#include <sys/wait.h> |
| 17 |
|
| 18 |
#ifdef __linux__ |
| 19 |
#include <sys/sysinfo.h> |
| 20 |
#endif |
| 21 |
|
| 22 |
#include <dirent.h> |
| 23 |
#include <errno.h> |
| 24 |
#include <fcntl.h> |
| 25 |
#include <libgen.h> |
| 26 |
#include <limits.h> |
| 27 |
#include <regex.h> |
| 28 |
#include <stdarg.h> |
| 29 |
#include <stdbool.h> |
| 30 |
#include <stdio.h> |
| 31 |
#include <stdlib.h> |
| 32 |
#include <string.h> |
| 33 |
#include <time.h> |
| 34 |
#include <unistd.h> |
| 35 |
|
| 36 |
#if defined(__DragonFly__) || defined(__FreeBSD__) || \ |
| 37 |
defined(__NetBSD__) || defined (__OpenBSD__) |
| 38 |
#include <sys/param.h> |
| 39 |
#include <sys/user.h> |
| 40 |
#include <sys/sysctl.h> |
| 41 |
#include <kvm.h> |
| 42 |
#endif |
| 43 |
|
| 44 |
#include "einfo.h" |
| 45 |
#include "rc.h" |
| 46 |
#include "rc-misc.h" |
| 47 |
#include "strlist.h" |
| 48 |
|
| 49 |
#include "hidden-visibility.h" |
| 50 |
#define librc_hidden_proto(x) hidden_proto(x) |
| 51 |
#define librc_hidden_def(x) hidden_def(x) |
| 52 |
|
| 53 |
librc_hidden_proto(rc_allow_plug) |
| 54 |
librc_hidden_proto(rc_config_env) |
| 55 |
librc_hidden_proto(rc_exists) |
| 56 |
librc_hidden_proto(rc_filter_env) |
| 57 |
librc_hidden_proto(rc_find_pids) |
| 58 |
librc_hidden_proto(rc_free_deptree) |
| 59 |
librc_hidden_proto(rc_get_config) |
| 60 |
librc_hidden_proto(rc_get_config_entry) |
| 61 |
librc_hidden_proto(rc_get_depends) |
| 62 |
librc_hidden_proto(rc_get_depinfo) |
| 63 |
librc_hidden_proto(rc_get_deptype) |
| 64 |
librc_hidden_proto(rc_get_list) |
| 65 |
librc_hidden_proto(rc_get_runlevel) |
| 66 |
librc_hidden_proto(rc_get_runlevels) |
| 67 |
librc_hidden_proto(rc_get_service_option) |
| 68 |
librc_hidden_proto(rc_is_dir) |
| 69 |
librc_hidden_proto(rc_is_env) |
| 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_load_deptree) |
| 74 |
librc_hidden_proto(rc_ls_dir) |
| 75 |
librc_hidden_proto(rc_mark_service) |
| 76 |
librc_hidden_proto(rc_order_services) |
| 77 |
librc_hidden_proto(rc_resolve_service) |
| 78 |
librc_hidden_proto(rc_rm_dir) |
| 79 |
librc_hidden_proto(rc_runlevel_exists) |
| 80 |
librc_hidden_proto(rc_runlevel_starting) |
| 81 |
librc_hidden_proto(rc_runlevel_stopping) |
| 82 |
librc_hidden_proto(rc_schedule_clear) |
| 83 |
librc_hidden_proto(rc_schedule_start_service) |
| 84 |
librc_hidden_proto(rc_service_add) |
| 85 |
librc_hidden_proto(rc_service_daemons_crashed) |
| 86 |
librc_hidden_proto(rc_service_delete) |
| 87 |
librc_hidden_proto(rc_service_exists) |
| 88 |
librc_hidden_proto(rc_service_in_runlevel) |
| 89 |
librc_hidden_proto(rc_services_in_runlevel) |
| 90 |
librc_hidden_proto(rc_services_in_state) |
| 91 |
librc_hidden_proto(rc_services_scheduled) |
| 92 |
librc_hidden_proto(rc_services_scheduled_by) |
| 93 |
librc_hidden_proto(rc_service_started_daemon) |
| 94 |
librc_hidden_proto(rc_service_state) |
| 95 |
librc_hidden_proto(rc_set_runlevel) |
| 96 |
librc_hidden_proto(rc_set_service_daemon) |
| 97 |
librc_hidden_proto(rc_set_service_option) |
| 98 |
librc_hidden_proto(rc_start_service) |
| 99 |
librc_hidden_proto(rc_stop_service) |
| 100 |
librc_hidden_proto(rc_strcatpaths) |
| 101 |
librc_hidden_proto(rc_strlist_add) |
| 102 |
librc_hidden_proto(rc_strlist_addu) |
| 103 |
librc_hidden_proto(rc_strlist_addsort) |
| 104 |
librc_hidden_proto(rc_strlist_addsortc) |
| 105 |
librc_hidden_proto(rc_strlist_addsortu) |
| 106 |
librc_hidden_proto(rc_strlist_delete) |
| 107 |
librc_hidden_proto(rc_strlist_free) |
| 108 |
librc_hidden_proto(rc_strlist_join) |
| 109 |
librc_hidden_proto(rc_strlist_reverse) |
| 110 |
librc_hidden_proto(rc_update_deptree) |
| 111 |
librc_hidden_proto(rc_wait_service) |
| 112 |
librc_hidden_proto(rc_xcalloc) |
| 113 |
librc_hidden_proto(rc_xmalloc) |
| 114 |
librc_hidden_proto(rc_xrealloc) |
| 115 |
librc_hidden_proto(rc_xstrdup) |
| 116 |
|
| 117 |
#endif |