/[baselayout]/trunk/src/rc.h
Gentoo

Log of /trunk/src/rc.h

Parent Directory Parent Directory | Revision Log Revision Log



Revision 2986 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 14:11:45 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17322 byte(s)
Diff to previous 2984
Revert making function private

Revision 2984 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 13:51:57 2007 UTC (6 years, 9 months ago) by uberlord
File length: 16889 byte(s)
Diff to previous 2983
__rc_service_daemon_set is now a private function

Revision 2983 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 13:38:47 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17322 byte(s)
Diff to previous 2981
depinfo and deptype are now internal use only. rc-depend cuddles up to getopt.

Revision 2981 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:48:50 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17844 byte(s)
Diff to previous 2980
rc_make_env -> rc_env_config, rc_filter_env -> rc_env_filter

Revision 2980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:43:05 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17842 byte(s)
Diff to previous 2979
Rename config funcs

Revision 2979 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:31:16 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17841 byte(s)
Diff to previous 2978
reorg our header a little

Revision 2978 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:22:45 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17809 byte(s)
Diff to previous 2977
rc_service_option_set -> rc_service_value_set, rc_service_option_get -> rc_service_value_get

Revision 2977 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:18:52 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17809 byte(s)
Diff to previous 2976
rc_schedule_clear -> rc_service_schedule_clear, rc_schedule_start_service -> rc_service_schedule_start

Revision 2976 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:14:44 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17801 byte(s)
Diff to previous 2975
reorder header a little

Revision 2975 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:11:55 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17797 byte(s)
Diff to previous 2967
rc_get_runlevels -> rc_runlevel_list

Revision 2967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 09:57:23 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17797 byte(s)
Diff to previous 2966
rc_allow_plug -> rc_service_plugable

Revision 2966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 09:04:10 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17791 byte(s)
Diff to previous 2965
rc_set_service_daemon -> rc_service_daemon_set

Revision 2965 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 09:02:08 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17791 byte(s)
Diff to previous 2960
rc_set_service_option -> rc_service_option_set, rc_get_service_option -> rc_service_option_get

Revision 2960 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 29 17:03:38 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17791 byte(s)
Diff to previous 2958
rc_wait_service -> rc_service_wait

Revision 2958 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 29 16:54:58 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17791 byte(s)
Diff to previous 2957
Rationalise more functions into rc_service_

Revision 2957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 29 16:42:08 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17791 byte(s)
Diff to previous 2954
librc no longer uses libeinfo. deptree function names are now all under rc_deptree_

Revision 2954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 15:04:15 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17540 byte(s)
Diff to previous 2953
Crashed is not a baselayout state as such

Revision 2953 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 14:53:38 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17637 byte(s)
Diff to previous 2950
rc_service_state now returns the state as a mask, which means that we can do things with just the one call making is more efficient.


Revision 2950 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 12:29:23 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17722 byte(s)
Diff to previous 2949
enums are now fixed to specific values and are in UPPER CASE.

Revision 2949 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 27 23:16:40 2007 UTC (6 years, 9 months ago) by uberlord
File length: 17287 byte(s)
Diff to previous 2936
The rc_depinfo_t and rc_deptype_t structures are not for public consumption.

Revision 2936 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 26 07:05:33 2007 UTC (6 years, 10 months ago) by uberlord
File length: 17728 byte(s)
Diff to previous 2929
rc_is_env is now rc_env_bool and just works with boolean values.

Revision 2929 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 17:32:12 2007 UTC (6 years, 10 months ago) by uberlord
File length: 17604 byte(s)
Diff to previous 2928
Use bools

Revision 2928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 17:30:07 2007 UTC (6 years, 10 months ago) by uberlord
File length: 17597 byte(s)
Diff to previous 2927
Revert last patch

Revision 2927 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 17:19:02 2007 UTC (6 years, 10 months ago) by uberlord
File length: 17515 byte(s)
Diff to previous 2921
We no longer use bool in our public headers, using int instead.

Revision 2921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 15:38:21 2007 UTC (6 years, 10 months ago) by uberlord
File length: 17597 byte(s)
Diff to previous 2896
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.

Revision 2896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 13:55:01 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7588 byte(s)
Diff to previous 2889
Punt rc_xcalloc as nothing uses it

Revision 2889 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 15:43:19 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7630 byte(s)
Diff to previous 2888
Don't be an ass - don't free the 2nd list. Instead just empty it.

Revision 2888 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 14:18:22 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7649 byte(s)
Diff to previous 2886
Clarify strlist_join behaviour

Revision 2886 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 14:08:56 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7519 byte(s)
Diff to previous 2885
Match the recent api change to rc_strlist_join also. We now free the 2nd list for ease of use.

Revision 2885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 12:20:55 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7521 byte(s)
Diff to previous 2883
API change! rc_config_env is renamed to rc_make_env and takes no argument.

Revision 2883 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 12:04:51 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7529 byte(s)
Diff to previous 2882
    API change! rc_ls_dir, rc_get_config and rc_get_list no longer take
    a starting list as a first argument. Instead, use rc_strlist_join
    to append or prepend the new list to an existing list.

Revision 2882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 11:36:55 2007 UTC (6 years, 10 months ago) by uberlord
File length: 7568 byte(s)
Diff to previous 2831
    API change! rc_strlist_add and friends now take char *** instead of
    char ** and return a pointer to the item added instead of the new
    list head. This is so we can easily tell if the item was successfully
    added or not instead of iterating through the list looking for it.

    list = rc_strlist_add (list, item);
    becomes
    rc_strlist_add (&list, item);

Revision 2831 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 15 14:49:41 2007 UTC (6 years, 11 months ago) by uberlord
File length: 7570 byte(s)
Diff to previous 2828
    `config /etc/fstab' can now be used in depend() functions to show that
    the deptree should be regenerated if /etc/fstab has changed.

Revision 2828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 9 14:33:20 2007 UTC (6 years, 11 months ago) by uberlord
File length: 7643 byte(s)
Diff to previous 2811
Don't link to rt anymore as it makes dlopen leak - we now use nanosleeps to achieve the same goal (a loop + timeout). No longer put / at the end of directories, instead prefix like so RC_LIBDIR "/foo" to ensure more robust code.

Revision 2811 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 3 10:14:38 2007 UTC (6 years, 11 months ago) by uberlord
File length: 7624 byte(s)
Diff to previous 2799
Wups, these definitions need to be in rc.h really

Revision 2799 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 31 16:05:56 2007 UTC (6 years, 11 months ago) by uberlord
File length: 5908 byte(s)
Diff to previous 2776
    All our binaries are now mulicalls into rc, which makes our on disk size
    a lot smaller.

Revision 2776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 13 14:30:33 2007 UTC (7 years ago) by uberlord
File length: 7624 byte(s)
Diff to previous 2764
Don't use 'this' as a variable name as it confuses c++

Revision 2764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 10 19:14:37 2007 UTC (7 years ago) by uberlord
File length: 7622 byte(s)
Diff to previous 2763
Rename variable

Revision 2763 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 10 19:09:41 2007 UTC (7 years ago) by uberlord
File length: 7624 byte(s)
Diff to previous 2759
init scripts and their extra options can now have descriptions, #184327.

Revision 2759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 10 11:42:56 2007 UTC (7 years ago) by uberlord
File length: 7501 byte(s)
Diff to previous 2665
We no longer care about numerical runlevels, #184733.

Revision 2665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 27 11:24:05 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7368 byte(s)
Diff to previous 2641
env-update now respects COLON_SEPARATED and SPACE_SEPARATED env.d values, #176198.

Revision 2641 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 18:58:42 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7261 byte(s)
Diff to previous 2640
Re-work the starting and stopping of services so we always know the pid so we can kill our children without the need for process groups which we cannot use as keyboard will not work in init.

Revision 2640 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 15:02:13 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7232 byte(s)
Diff to previous 2636
Fix rc-abort to notify the plugins we are aborting

Revision 2636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 09:39:47 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7088 byte(s)
Diff to previous 2582
Plugins now run in a forked process for extra resliance.

Revision 2582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 12 13:18:52 2007 UTC (7 years, 3 months ago) by uberlord
File length: 6909 byte(s)
Diff to previous 2577
Style updates

Revision 2577 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 11 12:44:47 2007 UTC (7 years, 3 months ago) by uberlord
File length: 6887 byte(s)
Diff to previous 2574
Cuddle up to LKML C style

Revision 2574 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 11 10:40:53 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7096 byte(s)
Diff to previous 2573
Move carrier detection back into net.sh. Reserve a new hook numbers

Revision 2573 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 11 07:15:02 2007 UTC (7 years, 3 months ago) by uberlord
File length: 7003 byte(s)
Diff to previous 2569
Add new service hooks, remove pmake stuff from our Makefile and fix rc_services_in_state for scheduled.

Revision 2569 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 10 11:24:58 2007 UTC (7 years, 3 months ago) by uberlord
File length: 6535 byte(s)
Diff to previous 2549
Fix indentation

Revision 2549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 5 15:01:09 2007 UTC (7 years, 3 months ago) by uberlord
File length: 6346 byte(s)
Diff to previous 2547
We now compile on OpenBSD (no idea if it works or not yet)

Revision 2547 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Apr 5 11:18:42 2007 UTC (7 years, 3 months ago) by uberlord
File length: 6263 byte(s)
    Rewrite the core parts in C. We now provide librc so other programs can
    query runlevels, services and state without using bash. We also provide
    libeinfo so other programs can easily use our informational functions.

    As such, we have dropped the requirement of using bash as the init script
    shell. We now use /bin/sh and have strived to make the scripts as portable
    as possible. Shells that work are bash and dash. busybox works provided
    you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
    should disable find too.
    zsh and ksh do not work at this time.

    Networking support is currently being re-vamped also as it was heavily bash
    array based. As such, a new config format is available like so
    config_eth0="1.2.3.4/24 5.6.7.8/16"
    or like so
    config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"

    We will still support the old bash array format provided that /bin/sh IS
    a link it bash.

    ChangeLog for baselayout-1 can be found in our SVN repo.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sticky Revision:
(Current path doesn't exist after revision 3108)

  ViewVC Help
Powered by ViewVC 1.1.20