Displaying 20 results from an estimated 349 matches for "exit_success".
Did you mean:
efi_success
2017 Mar 31
0
[PATCH 2/3] Use Unicode single quotes ‘’ in place of `' in strings throughout.
...| 30 +++++++++++++++---------------
22 files changed, 37 insertions(+), 37 deletions(-)
diff --git a/align/scan.c b/align/scan.c
index 175df1e83..7ae8adf1f 100644
--- a/align/scan.c
+++ b/align/scan.c
@@ -76,7 +76,7 @@ static void __attribute__((noreturn))
usage (int status)
{
if (status != EXIT_SUCCESS)
- fprintf (stderr, _("Try `%s --help' for more information.\n"),
+ fprintf (stderr, _("Try ‘%s --help’ for more information.\n"),
getprogname ());
else {
printf (_("%s: check alignment of virtual machine partitions\n"
diff --git a/cat/c...
2009 Nov 20
1
fix new failures from latest-from-gnulib syntax-check
There's a new syntax check rule from gnulib.
It requires that you write e.g., exit (EXIT_SUCCESS), not exit (0).
And the same for 1/EXIT_FAILURE and any other constants.
There were a lot of violations, including a few false positives,
so I started with the exemptions (see the .x-sc file below).
Then I converted the vast majority automatically, with this:
maint: use EXIT_SUCCESS and EXIT_...
2010 Mar 19
0
[PATCH] Change some _exit(0|1) to _exit(EXIT_SUCCESS|EXIT_FAILURE).
...en guests.
http://et.redhat.com/~rjones/virt-p2v
-------------- next part --------------
>From 1cb5de862a92322b3c8c682324b865fb2be5368c Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Fri, 19 Mar 2010 17:19:49 +0000
Subject: [PATCH] Change some _exit(0|1) to _exit(EXIT_SUCCESS|EXIT_FAILURE).
---
src/guestfs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 02d5fdb..729b687 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -1268,7 +1268,7 @@ guestfs__launch (guestfs_h *g)
if (dup (wfd[0]) == -1)...
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...CommandLineToArgvW (GetCommandLineW (), &argc);
-
- SERVICE_TABLE_ENTRY DispatchTable[] = {
- {
- SVCNAME,
- (LPSERVICE_MAIN_FUNCTION) SvcMain
- },
- { NULL, NULL }
- };
-
- if(
- lstrcmpi(
- argv[1],
- TEXT("install")
- ) == 0
- ) {
- SvcInstall();
- return EXIT_SUCCESS;
- }
-
- if (!StartServiceCtrlDispatcher( DispatchTable ))
- {
- SvcReportEvent(TEXT("StartServiceCtrlDispatcher"));
- return EXIT_FAILURE;
+ argv = CommandLineToArgvW (GetCommandLineW (), &argc);
+
+ SERVICE_TABLE_ENTRY DispatchTable[] = {
+ {
+...
2012 Oct 03
1
[PATCH] pxedump.c32: Simple PXE cached packet dumping
..."Usage: pxedump.c32 --cached\n"
+ "You might want a serial connection.\n"
+ );
+ return EXIT_FAILURE;
+ }
+
+ get_cached_pkts(&cached_pkts);
+ dump_cached_pkts(&cached_pkts);
+ free_cached_pkts(&cached_pkts);
+
+ return EXIT_SUCCESS;
+ }
+
+/*
+ * Caller is responsible for cached_pkts != NULL.
+ * This function initializes *cached_pkts and allocates memory
+ * for the cached packets, which must be freed with a call to
+ * free_cached_pkts()
+ */
+static int get_cached_pkts(struct cached_pkts * cached_pkts) {
+ unsigned int...
2023 Apr 14
1
[libnbd PATCH 2/4] copy: rename <purpose>_OPTION to OPT_<purpose>
...uot;verbose", no_argument, NULL, 'v' },
{ "version", no_argument, NULL, 'V' },
@@ -152,10 +152,10 @@ main (int argc, char *argv[])
break;
switch (c) {
- case HELP_OPTION:
+ case OPT_HELP:
usage (stdout, EXIT_SUCCESS);
- case LONG_OPTIONS_OPTION:
+ case OPT_LONG_OPTIONS:
for (i = 0; long_options[i].name != NULL; ++i) {
if (strcmp (long_options[i].name, "long-options") != 0 &&
strcmp (long_options[i].name, "short-options") != 0)
@@ -163,30 +163,30...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...nt, NULL, 'S' },
{ "synchronous", no_argument, NULL, SYNCHRONOUS_OPTION },
{ "target-is-zero", no_argument, NULL, DESTINATION_IS_ZERO_OPTION },
@@ -155,7 +155,7 @@ main (int argc, char *argv[])
case HELP_OPTION:
usage (stdout, EXIT_SUCCESS);
- case LONG_OPTIONS:
+ case LONG_OPTIONS_OPTION:
for (i = 0; long_options[i].name != NULL; ++i) {
if (strcmp (long_options[i].name, "long-options") != 0 &&
strcmp (long_options[i].name, "short-options") != 0)
@@ -163,7 +163,7 @@ mai...
2008 Dec 04
2
Round four: Re: code review req: 6750659 drti.o crashes app due to corrupt environment
I believe that I have incorporated all of the feedback given
(thanks!). Changes since the 2008-11-16 version include:
- ksh style & coding standards compliance in test script (Roland)
- "dof_init_debug == B_FALSE" vs. "!dof_init_debug" (Adam)
The updated webrev is at:
http://cr.opensolaris.org/~mgerdts/6750659-2008-12-03/
--
Mike Gerdts
http://mgerdts.blogspot.com/
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...CommandLineToArgvW (GetCommandLineW (), &argc);
-
- SERVICE_TABLE_ENTRY DispatchTable[] = {
- {
- SVCNAME,
- (LPSERVICE_MAIN_FUNCTION) SvcMain
- },
- { NULL, NULL }
- };
-
- if(
- lstrcmpi(
- argv[1],
- TEXT("install")
- ) == 0
- ) {
- SvcInstall();
- return EXIT_SUCCESS;
- }
-
- if (!StartServiceCtrlDispatcher( DispatchTable ))
- {
- SvcReportEvent(TEXT("StartServiceCtrlDispatcher"));
- return EXIT_FAILURE;
+ argv = CommandLineToArgvW (GetCommandLineW (), &argc);
+
+ SERVICE_TABLE_ENTRY DispatchTable[] = {
+ {
+...
2023 Apr 14
4
[libnbd PATCH 0/4] copy: wrap source code at 80 characters
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
I figured I'd work on the libnbd line wrapping in shorter waves than how
long the nbdkit patch series was.
Laszlo
Laszlo Ersek (4):
copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
copy: rename <purpose>_OPTION to OPT_<purpose>
copy: fix layout of "long_options" table
copy: rewrap
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...> { "synchronous", no_argument, NULL, SYNCHRONOUS_OPTION },
> { "target-is-zero", no_argument, NULL, DESTINATION_IS_ZERO_OPTION },
> @@ -155,7 +155,7 @@ main (int argc, char *argv[])
> case HELP_OPTION:
> usage (stdout, EXIT_SUCCESS);
>
> - case LONG_OPTIONS:
> + case LONG_OPTIONS_OPTION:
> for (i = 0; long_options[i].name != NULL; ++i) {
> if (strcmp (long_options[i].name, "long-options") != 0 &&
> strcmp (long_options[i].name, "short-options")...
2006 Mar 02
1
calling R's library using C
...veryone for all the help! So, here is my calling function in C
(called
test.c):
#include<stdio.h>
#include<stdlib.h>
#include<Rmath.h>
int main(void) {
printf("%f \n",pchisq(2.,7., 1, 0));
printf("%f \n",pnchisq(2.,7.,0., 1, 0));
return EXIT_SUCCESS;
}
I compile using:
gcc test.c -I/usr/lib/R/include -L/usr/lib/R/lib -lm -lR
However, running
./a.out
gives me:
1.000000
0.040160
The first is wrong, but the second non-central is correct, and matches the
answer from R.
Incidentally, pgamma (which is what pchisq calls...
2012 Aug 06
1
[PATCH V2] virt-diff: add new virt-diff tool
...for seed. */
+static guestfs_h *sg;
+
+/* libguestfs handle for temp. */
+static guestfs_h *dg;
+
+const char *libvirt_uri = NULL;
+
+static inline char *
+diff_bad_case (char const *s)
+{
+ return (char *) s;
+}
+
+static void __attribute__((noreturn))
+diff_usage (int status)
+{
+ if (status != EXIT_SUCCESS) {
+ fprintf (stderr, _("Try `%s --help' for more information.\n"),
+ program_name);
+ } else {
+ fprintf (stdout,
+ _("%s: Show the differences between seed Guest and the others\n"
+ "Copyright (C) 2012 Fujitsu Limited.\n"...
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
...in lli? lli does not seem to
want to load Foundation.framework.
Please see below.
Thanks,
Eric Brunstad
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"test!");
[pool drain];
return EXIT_SUCCESS;
}
cmu-351714:llvm-2.5 ericbrunstad$ /Users/ericbrunstad/Downloads/
llvm-2.5/Release/bin/lli -force-interpreter=true -stats /Users/
ericbrunstad/Desktop/test/test.o -load=/System/Library/Frameworks/
Foundation.framework/Foundation
Could not resolve external global address:
__CFConstantStrin...
2016 Sep 08
4
[PATCH 0/3] Use gnulib's getprogname
Hi,
this series update libguestfs to a recent gnulib version, so that we
can use its new getprogname module, and solve altogether one of the
porting issues (the need for 'program_name' by the error module of
gnulib), and have a single way to get the name of the current program.
A number of changes in tools mostly, although mechanical.
Thanks,
Pino Toscano (3):
Update gnulib to latest
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2003 Aug 25
1
Re: R 1.7.x and inaccurate log1p() on OpenBSD 3.2 and NetBSD 1.6 (PR#3979)
...e <stdio.h>
#include <stdlib.h>
#include <math.h>
int
main(int argc, char* argv[])
{
int k;
double x;
for (k = 0; k <= 100; ++k)
{
x = pow(2.0,(double)(-k));
printf("%3d\t%.15e\t%.15e\n", k, log1p(x), log(1.0 + x));
}
return (EXIT_SUCCESS);
}
% cc bug-log1p.c -lm && ./a.out
0 6.931471805599453e-01 6.931471805599453e-01
1 4.054651081081644e-01 4.054651081081644e-01
2 2.231435513142098e-01 2.231435513142098e-01
...
51 4.440892098500625e-16 4.440892098500625e-16
52 2.220446049250313e-16 2....
2017 Mar 31
6
[PATCH 0/3] Fix some quoting issues.
Fix some quoting issues by introducing Unicode quotes.
Note this intentionally only affects end-user messages and documentation.
Rich.
2006 Mar 03
1
Fwd: Re: calling R's library using C
...gt; | #include<stdio.h>
> > | #include<stdlib.h>
> > | #include<Rmath.h>
> > |
> > | int main(void) {
> > | printf("%f \n",pchisq(2.,7., 1, 0));
> > | printf("%f \n",pnchisq(2.,7.,0., 1, 0));
> > | return EXIT_SUCCESS;
> > | }
> > |
> > | I compile using:
> > |
> > | gcc test.c -I/usr/lib/R/include -L/usr/lib/R/lib -lm -lR
> > |
> > | However, running
> > | ./a.out
> > |
> > | gives me:
> > |
> > | 1.000000
> > | 0...
2017 Mar 31
1
Re: [PATCH 2/3] Use Unicode single quotes ‘’ in place of `' in strings throughout.
On 03/31/2017 04:32 AM, Richard W.M. Jones wrote:
> See: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
> ---
> +++ b/align/scan.c
> @@ -76,7 +76,7 @@ static void __attribute__((noreturn))
> usage (int status)
> {
> if (status != EXIT_SUCCESS)
> - fprintf (stderr, _("Try `%s --help' for more information.\n"),
> + fprintf (stderr, _("Try ‘%s --help’ for more information.\n"),
> getprogname ());
The `' form of quoting is definitely out of style. But these days, it is
debatable whet...