search for: s_fn

Displaying 4 results from an estimated 4 matches for "s_fn".

Did you mean: _fn
2020 Sep 10
1
[libnbd PATCH] python: Fix more memory leaks
...n | Closure { cbname } -> - pr " struct user_data *%s_user_data = alloc_user_data ();\n" cbname; - pr " if (%s_user_data == NULL) goto out;\n" cbname; + pr " struct user_data *%s_user_data = NULL;\n" cbname; + pr " PyObject *py_%s_fn;\n" cbname; pr " nbd_%s_callback %s = { .callback = %s_wrapper,\n" cbname cbname cbname; - pr " .user_data = %s_user_data,\n" cbname; pr " .free = free_user_data };\n" | Enum (n,...
2020 Sep 29
2
[PATCH libnbd] generator: Add SizeT type, maps to C size_t.
...(n, _) -> pr " \"O\"" | String n -> pr " \"s\"" | StringList n -> pr " \"O\"" @@ -365,8 +368,7 @@ let print_python_binding name { args; optargs; ret; may_set_error } = | Closure { cbname } -> pr ", &py_%s_fn" cbname | Enum (n, _) -> pr ", &%s" n | Flags (n, _) -> pr ", &%s" n - | Fd n | Int n -> pr ", &%s" n - | Int64 n -> pr ", &%s" n + | Fd n | Int n | SizeT n | Int64 n -> pr ", &%s" n |...
2020 Sep 11
0
[libnbd PATCH v2 2/5] generator: Refactor filtering of accepted OFlags
...pr " uint32_t %s_u32;\n" n; pr " unsigned int %s; /* really uint32_t */\n" n ) optargs; @@ -378,7 +378,7 @@ let print_python_binding name { args; optargs; ret; may_set_error } = List.iter ( function | OClosure { cbname } -> pr ", &py_%s_fn" cbname - | OFlags (n, _) -> pr ", &%s" n + | OFlags (n, _, _) -> pr ", &%s" n ) optargs; pr "))\n"; pr " goto out;\n"; @@ -402,7 +402,7 @@ let print_python_binding name { args; optargs; ret; may_set_error } = pr &...
2020 Sep 11
10
[libnbd PATCH v2 0/5] Add knobs for client- vs. server-side validation
In v2: - now based on my proposal to add LIBNBD_SHUTDOWN_IMMEDIATE - four flags instead of two: STRICT_FLAGS is new (patch 4), and STRICT_BOUNDS is separate from STRICT_ZERO_SIZE (patch 5) - various refactorings for more shared code and less duplication Eric Blake (5): api: Add xxx_MASK constant for each Flags type generator: Refactor filtering of accepted OFlags api: Add