search for: bexit

Displaying 3 results from an estimated 3 matches for "bexit".

Did you mean: exit
2016 Apr 04
1
Re: [PATCH 2/2] Use 'error' function for fprintf followed by exit.
...ous commit because we must be > careful to: > > - Remove the program name (since error(3) prints it). > > - Remove any trailing \n character from the message. > > Candidates for replacement were found using: > > pcregrep --buffer-size 10M -M '\bfprintf\b.*\n.*\bexit\b' `git ls-files` > --- Really nice improvement -- just a couple of notes. > @@ -130,10 +131,8 @@ main (int argc, char *argv[]) > int r; > > g = guestfs_create (); > - if (g == NULL) { > - fprintf (stderr, _("guestfs_create: failed to create handle\n&quot...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...This is also the reason why error(3) cannot be marked as __attribute__((noreturn)). Because the examples can't use gnulib, I did not change them. To search for multiline patterns of the above form, pcregrep -M turns out to be very useful: pcregrep --buffer-size 10M -M '\bperror\b.*\n.*\bexit\b' `git ls-files` --- builder/index-validate.c | 7 +- cat/cat.c | 19 +-- cat/filesystems.c | 67 ++++------ cat/ls.c | 115 ++++++---------- daemon/guestfsd.c...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...It's slightly more complex than the previous commit because we must be careful to: - Remove the program name (since error(3) prints it). - Remove any trailing \n character from the message. Candidates for replacement were found using: pcregrep --buffer-size 10M -M '\bfprintf\b.*\n.*\bexit\b' `git ls-files` --- align/scan.c | 7 +- cat/cat.c | 16 ++-- cat/filesystems.c | 24 +++--- cat/log.c | 17 ++-- cat/ls.c | 31 +++...