/[baselayout]/trunk/src/rc-plugin.c
Gentoo

Log of /trunk/src/rc-plugin.c

Parent Directory Parent Directory | Revision Log Revision Log



Revision 3049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 22 19:33:42 2007 UTC (7 years, 1 month ago) by uberlord
File length: 4347 byte(s)
Diff to previous 3036
Wait for plugins to finish before moving on.

Revision 3036 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 12 00:01:33 2007 UTC (7 years, 2 months ago) by uberlord
File length: 4007 byte(s)
Diff to previous 3009
malloc over fatty buffers

Revision 3009 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 8 11:16:22 2007 UTC (7 years, 2 months ago) by uberlord
File length: 3948 byte(s)
Diff to previous 3008
Wups, should be xstrdup

Revision 3008 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 8 11:11:21 2007 UTC (7 years, 2 months ago) by uberlord
File length: 3947 byte(s)
Diff to previous 2999
Punt rc_ from xstrdup, xalloc, xrealloc and exists as they're not in librc anymore

Revision 2999 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 5 10:16:14 2007 UTC (7 years, 2 months ago) by uberlord
File length: 3957 byte(s)
Diff to previous 2928
Punt rc_ls_dir

Revision 2928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 17:30:07 2007 UTC (7 years, 2 months ago) by uberlord
File length: 3933 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 (7 years, 2 months ago) by uberlord
File length: 3936 byte(s)
Diff to previous 2893
We no longer use bool in our public headers, using int instead.

Revision 2893 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 09:00:43 2007 UTC (7 years, 3 months ago) by uberlord
File length: 3933 byte(s)
Diff to previous 2883
    plugin hook function is now rc_plugin_hook instead of a name based
    on the name of the plugin.

Revision 2883 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 18 12:04:51 2007 UTC (7 years, 3 months ago) by uberlord
File length: 4079 byte(s)
Diff to previous 2828
    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 2828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 9 14:33:20 2007 UTC (7 years, 4 months ago) by uberlord
File length: 4085 byte(s)
Diff to previous 2768
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 2768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 11 12:06:37 2007 UTC (7 years, 5 months ago) by uberlord
File length: 4078 byte(s)
Diff to previous 2747
Punt the dodgy ebuffer code. We now force prefixing for parallel starts which also reduces our variable pollution.

Revision 2747 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 5 08:39:32 2007 UTC (7 years, 5 months ago) by uberlord
File length: 4104 byte(s)
Diff to previous 2745
Don't trust the plugin

Revision 2745 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 4 16:06:40 2007 UTC (7 years, 5 months ago) by uberlord
File length: 4025 byte(s)
Diff to previous 2744
Flush the ebuffer before and after running a plugin.

Revision 2744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 4 16:02:01 2007 UTC (7 years, 5 months ago) by uberlord
File length: 3999 byte(s)
Diff to previous 2704
As we're running each plugin in a fork, we need to call our cleanup code so we don't leak memory. To this extent, we now have the global boolean rc_in_plugin and the cleanup code can act accordingly.

Revision 2704 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 14 19:50:13 2007 UTC (7 years, 7 months ago) by uberlord
File length: 3804 byte(s)
Diff to previous 2703
Implement FreeBSD's dlfunc function to avoid ISO warnings on dlsym - thanks to drizztbsd for find public domain code :)

Revision 2703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 14 17:05:55 2007 UTC (7 years, 7 months ago) by uberlord
File length: 3699 byte(s)
Diff to previous 2656
Use correct function casts. Use dlfunc where available to remove ISO warnings :)

Revision 2656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 25 15:48:54 2007 UTC (7 years, 7 months ago) by uberlord
File length: 3541 byte(s)
Diff to previous 2636
Don't pass $CONSOLE to sulogin and split rc_environ_fd on NULLs

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

Revision 2634 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 14:54:35 2007 UTC (7 years, 8 months ago) by uberlord
File length: 2206 byte(s)
Diff to previous 2633
strdup -> rc_xstrdup

Revision 2633 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 14:41:10 2007 UTC (7 years, 8 months ago) by uberlord
File length: 2202 byte(s)
Diff to previous 2577
Use RTLD_NOW instead of RTLD_LAZY

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

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

Revision 2550 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 6 01:04:07 2007 UTC (7 years, 8 months ago) by uberlord
File length: 2173 byte(s)
Diff to previous 2547
Misc fixes, plugged a memory leak in runscript.c and use va_copy to avoid nasty segfaults

Revision 2547 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Apr 5 11:18:42 2007 UTC (7 years, 8 months ago) by uberlord
File length: 2137 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