search for: reg_handl

Displaying 5 results from an estimated 5 matches for "reg_handl".

Did you mean: reg_handle
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
...ng to do with collectd and how it runs programs. > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? If I understand the question correctly - it's about how collectd loads its plugins? If so it uses: static int plugin_load_file(const char *file, _Bool global) { void (*reg_handle)(void); int flags = RTLD_NOW; if (global) flags |= RTLD_GLOBAL; void *dlh = *dlopen*(file, flags); //... reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); //... *(*reg_handle)();* } Does this give any clues? Best Regards, Peter On Wed, Nov 7, 2018 a...
2018 Nov 07
0
Re: guestfs_launch() fails when C application is started as a systemd service
...uns programs. > > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? > > If I understand the question correctly - it's about how collectd loads its > plugins? If so it uses: > > static int plugin_load_file(const char *file, _Bool global) { > void (*reg_handle)(void); > int flags = RTLD_NOW; > if (global) > flags |= RTLD_GLOBAL; > void *dlh = *dlopen*(file, flags); > //... > reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); > //... > *(*reg_handle)();* > } > > > Does this...
2018 Nov 08
2
Re: guestfs_launch() fails when C application is started as a systemd service
...ng LD_PRELOAD trickery, or replacing libc, or using seccomp? > > > > If I understand the question correctly - it's about how collectd loads > its > > plugins? If so it uses: > > > > static int plugin_load_file(const char *file, _Bool global) { > > void (*reg_handle)(void); > > int flags = RTLD_NOW; > > if (global) > > flags |= RTLD_GLOBAL; > > void *dlh = *dlopen*(file, flags); > > //... > > reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); > > //... > > *(*reg_handle...
2004 Apr 05
1
Comboot menu crashes when it goes off screen
...04, ganapathy murali krishnan wrote: > You write your own menupos_handler (like in complex.c) and register the > handler. > > So all you need to do is to copy the code for the menupos_handler from > complex.c and modify it to suit yourself.. > and add the line > > "reg_handler(NULL,&menupos_handler);" before you start creating the menu > entries. > > - Murali > > Aaron McSorley wrote: > > >Ok, but can you give an example of how to do this in simple.c > > > > > >On Fri, 2 Apr 2004, ganapathy murali krishnan wrote: &...
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
Thank you, Rich, This was the issue indeed. export LIBGUESTFS_BACKEND=direct fixed it. The next step I tried was to integrate libguestfs in collectd virt plugin to collect this data automatically. In this case I'm having an unknown error in add_libvirt_dom() (same with add_domain) when it's invoking qemu-img to create overlay image. There is no difference between manual and service