Displaying 10 results from an estimated 10 matches for "cleanup_free_str".
Did you mean:
cleanup_free_stat
2023 Aug 30
2
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...ally indicates a bug "
- "in the script",
- argv0);
+ *pipe_full = true;
+ r = wbuflen;
}
else
nbdkit_error ("%s: write: %m", argv0);
@@ -555,7 +550,7 @@ call (const char **argv)
CLEANUP_FREE_STRING string rbuf = empty_vector;
CLEANUP_FREE_STRING string ebuf = empty_vector;
- r = call3 (NULL, 0, &rbuf, &ebuf, argv);
+ r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
return handle_script_error (argv[0], &ebuf, r);
}
@@ -568,7 +563,7 @@ call_read (string *rbuf, co...
2023 Aug 31
1
[nbdkit PATCH] sh: Allow pwrite to not consume all data
..."in the script",
> - argv0);
> + *pipe_full = true;
> + r = wbuflen;
> }
> else
> nbdkit_error ("%s: write: %m", argv0);
> @@ -555,7 +550,7 @@ call (const char **argv)
> CLEANUP_FREE_STRING string rbuf = empty_vector;
> CLEANUP_FREE_STRING string ebuf = empty_vector;
>
> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> return handle_script_error (argv[0], &ebuf, r);
> }
>
> @@ -568...
2023 Aug 31
1
[nbdkit PATCH] sh: Allow pwrite to not consume all data
..."in the script",
> - argv0);
> + *pipe_full = true;
> + r = wbuflen;
> }
> else
> nbdkit_error ("%s: write: %m", argv0);
> @@ -555,7 +550,7 @@ call (const char **argv)
> CLEANUP_FREE_STRING string rbuf = empty_vector;
> CLEANUP_FREE_STRING string ebuf = empty_vector;
>
> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> return handle_script_error (argv[0], &ebuf, r);
> }
>
> @@ -568...
2023 Aug 31
1
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...> > - argv0);
> > + *pipe_full = true;
> > + r = wbuflen;
> > }
> > else
> > nbdkit_error ("%s: write: %m", argv0);
> > @@ -555,7 +550,7 @@ call (const char **argv)
> > CLEANUP_FREE_STRING string rbuf = empty_vector;
> > CLEANUP_FREE_STRING string ebuf = empty_vector;
> >
> > - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> > + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> > return handle_script_error (argv[0], &ebuf, r);
&...
2023 Aug 31
2
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...",
>> - argv0);
>> + *pipe_full = true;
>> + r = wbuflen;
>> }
>> else
>> nbdkit_error ("%s: write: %m", argv0);
>> @@ -555,7 +550,7 @@ call (const char **argv)
>> CLEANUP_FREE_STRING string rbuf = empty_vector;
>> CLEANUP_FREE_STRING string ebuf = empty_vector;
>>
>> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
>> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
>> return handle_script_error (argv[0], &ebuf, r);
>>...
2023 Aug 31
2
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...argv0);
> >> + *pipe_full = true;
> >> + r = wbuflen;
> >> }
> >> else
> >> nbdkit_error ("%s: write: %m", argv0);
> >> @@ -555,7 +550,7 @@ call (const char **argv)
> >> CLEANUP_FREE_STRING string rbuf = empty_vector;
> >> CLEANUP_FREE_STRING string ebuf = empty_vector;
> >>
> >> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> >> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> >> return handle_script_error (argv[0...
2023 Aug 31
1
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...argv0);
>>> + *pipe_full = true;
>>> + r = wbuflen;
>>> }
>>> else
>>> nbdkit_error ("%s: write: %m", argv0);
>>> @@ -555,7 +550,7 @@ call (const char **argv)
>>> CLEANUP_FREE_STRING string rbuf = empty_vector;
>>> CLEANUP_FREE_STRING string ebuf = empty_vector;
>>>
>>> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
>>> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
>>> return handle_script_error (argv[0], &a...
2023 Aug 31
0
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...ll = true;
> >>>> + r = wbuflen;
> >>>> }
> >>>> else
> >>>> nbdkit_error ("%s: write: %m", argv0);
> >>>> @@ -555,7 +550,7 @@ call (const char **argv)
> >>>> CLEANUP_FREE_STRING string rbuf = empty_vector;
> >>>> CLEANUP_FREE_STRING string ebuf = empty_vector;
> >>>>
> >>>> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> >>>> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> >>>&g...
2023 Aug 31
1
[nbdkit PATCH] sh: Allow pwrite to not consume all data
...> + *pipe_full = true;
> >>> + r = wbuflen;
> >>> }
> >>> else
> >>> nbdkit_error ("%s: write: %m", argv0);
> >>> @@ -555,7 +550,7 @@ call (const char **argv)
> >>> CLEANUP_FREE_STRING string rbuf = empty_vector;
> >>> CLEANUP_FREE_STRING string ebuf = empty_vector;
> >>>
> >>> - r = call3 (NULL, 0, &rbuf, &ebuf, argv);
> >>> + r = call3 (NULL, 0, NULL, &rbuf, &ebuf, argv);
> >>> return handle_...
2023 Mar 15
1
[libnbd PATCH v4 1/3] lib/utils: introduce xwritel() as a more robust and convenient write()
...d the cleanup attribute, and libnbd
> didn't. First I thought it was a mistake / oversight, but then I found a
> porting note from Rich, in libnbd commit f306e231d294 ("common/utils:
> Add extensible string, based on vector", 2022-03-12):
>
> RWMJ: This removes the CLEANUP_FREE_STRING macro since libnbd does not
> use __attribute__((cleanup)).
>
> and then again in f3828bfd42be ("common/utils: Add new string vector
> types", 2022-03-12):
>
> RWMJ: Removed the CLEANUP_* macros.
>
Most attributes are merely extensions that aid the compi...