search for: null_open

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

2005 Apr 02
2
Building new graphic device drivers with g++
...Rprintf("text(%lf,%lf,\"%s\",%lf,%lf)\n", x, y, str, rot, hadj); } static void NULL_NewPage(R_GE_gcontext *gc, NewDevDesc *dev) { Rprintf("newpage\n"); } static void NULL_Close(NewDevDesc *dev) { Rprintf("close\n"); } Rboolean NULL_Open(NewDevDesc *dev) { Rprintf("open\n"); return TRUE; } static void NULL_Activate(NewDevDesc *dev) { Rprintf("activate\n"); } static void NULL_Clip(double x0, double x1, double y0, double y1, NewDevDesc *dev) { Rprintf("clip(%lf,%lf,%lf,%...
2019 Jan 01
0
[PATCH nbdkit] plugins, filters: Define and use NBDKIT_HANDLE_NOT_NEEDED.
...T_NEEDED; } #define THREAD_MODEL NBDKIT_THREAD_MODEL_SERIALIZE_ALL_REQUESTS diff --git a/plugins/null/null.c b/plugins/null/null.c index cee22f5..20d333e 100644 --- a/plugins/null/null.c +++ b/plugins/null/null.c @@ -72,9 +72,7 @@ null_config (const char *key, const char *value) static void * null_open (int readonly) { - static int handle; - - return &handle; + return NBDKIT_HANDLE_NOT_NEEDED; } #define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL diff --git a/plugins/partitioning/partitioning.c b/plugins/partitioning/partitioning.c index 2889e67..43bdd7c 100644 --- a/plugins/partitionin...
2018 Dec 02
0
[PATCH nbdkit 2/4] valgrind: Add --show-leak-kinds=all and comprehensive list of suppressions.
...un:error_open @@ -73,7 +64,7 @@ } { - nbdkit_5 + nbdkit_4 Memcheck:Leak fun:malloc fun:file_open @@ -81,7 +72,7 @@ } { - nbdkit_6 + nbdkit_5 Memcheck:Leak fun:malloc fun:memory_open @@ -89,7 +80,7 @@ } { - nbdkit_7 + nbdkit_6 Memcheck:Leak fun:malloc fun:null_open @@ -97,7 +88,7 @@ } { - nbdkit_8 + nbdkit_7 Memcheck:Leak fun:malloc fun:partition_open diff --git a/valgrind/perl.suppressions b/valgrind/perl.suppressions new file mode 100644 index 0000000..57d1fcc --- /dev/null +++ b/valgrind/perl.suppressions @@ -0,0 +1,40 @@ +# Perl valgrind su...
2018 Dec 02
10
[PATCH nbdkit 0/4] Multiple valgrind improvements and possible security fix.
I worked out why valgrind wasn't being applied to nbdkit when run by many of the tests (patches 1-2). Unfortunately I'm not able to make it actually fail tests when valgrind fails. Although the situation is marginally improved in that you can now manually examine the *.log files and find valgrind failures that way. Also adds valgrinding of the Python plugin (patch 3). Along the way I
2019 May 16
27
[nbdkit PATCH v2 00/24] implement NBD_CMD_CACHE
Since v1: - rework .can_cache to be tri-state, with default of no advertisement (ripple effect through other patches) - add a lot more patches in order to round out filter support And in the meantime, Rich pushed NBD_CMD_CACHE support into libnbd, so in theory we now have a way to test cache commands through the entire stack. Eric Blake (24): server: Internal hooks for implementing